configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for libpthread-stubs 0.1.
4 #
5 # Report bugs to <xcb (at] lists.freedesktop.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" "" $as_nl"
67
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80 ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105 do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
157 fi
158
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
162 }
163 as_func_success () {
164 as_func_return 0
165 }
166 as_func_failure () {
167 as_func_return 1
168 }
169 as_func_ret_success () {
170 return 0
171 }
172 as_func_ret_failure () {
173 return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178 :
179 else
180 exitcode=1
181 echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190 :
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203 else
204 exitcode=1
205 echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216 :
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274 (exit $1)
275 }
276 as_func_success () {
277 as_func_return 0
278 }
279 as_func_failure () {
280 as_func_return 1
281 }
282 as_func_ret_success () {
283 return 0
284 }
285 as_func_ret_failure () {
286 return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291 :
292 else
293 exitcode=1
294 echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303 :
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316 else
317 exitcode=1
318 echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331 break
332 fi
333
334 fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363 (exit \$1)
364 }
365 as_func_success () {
366 as_func_return 0
367 }
368 as_func_failure () {
369 as_func_return 1
370 }
371 as_func_ret_success () {
372 return 0
373 }
374 as_func_ret_failure () {
375 return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380 :
381 else
382 exitcode=1
383 echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392 :
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405 else
406 exitcode=1
407 echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415 }
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475 *)
476 ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$ECHO in
544 X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548 esac
549
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
559 :
560 else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
569 $*
570 EOF
571 exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590 fi
591
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596 else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 tagnames=${tagnames+${tagnames},}CXX
690
691 tagnames=${tagnames+${tagnames},}F77
692
693 exec 7<&0 </dev/null 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
712
713 # Identity of this package.
714 PACKAGE_NAME='libpthread-stubs'
715 PACKAGE_TARNAME='libpthread-stubs'
716 PACKAGE_VERSION='0.1'
717 PACKAGE_STRING='libpthread-stubs 0.1'
718 PACKAGE_BUGREPORT='xcb (at] lists.freedesktop.org'
719
720 ac_unique_file="pthread-stubs.pc.in"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #ifdef HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #ifdef HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #ifdef STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # ifdef HAVE_STDLIB_H
735 # include <stdlib.h>
736 # endif
737 #endif
738 #ifdef HAVE_STRING_H
739 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
740 # include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #ifdef HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #ifdef HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #ifdef HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #ifdef HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
756
757 ac_subst_vars='SHELL
758 PATH_SEPARATOR
759 PACKAGE_NAME
760 PACKAGE_TARNAME
761 PACKAGE_VERSION
762 PACKAGE_STRING
763 PACKAGE_BUGREPORT
764 exec_prefix
765 prefix
766 program_transform_name
767 bindir
768 sbindir
769 libexecdir
770 datarootdir
771 datadir
772 sysconfdir
773 sharedstatedir
774 localstatedir
775 includedir
776 oldincludedir
777 docdir
778 infodir
779 htmldir
780 dvidir
781 pdfdir
782 psdir
783 libdir
784 localedir
785 mandir
786 DEFS
787 ECHO_C
788 ECHO_N
789 ECHO_T
790 LIBS
791 build_alias
792 host_alias
793 target_alias
794 INSTALL_PROGRAM
795 INSTALL_SCRIPT
796 INSTALL_DATA
797 CYGPATH_W
798 PACKAGE
799 VERSION
800 ACLOCAL
801 AUTOCONF
802 AUTOMAKE
803 AUTOHEADER
804 MAKEINFO
805 install_sh
806 STRIP
807 INSTALL_STRIP_PROGRAM
808 mkdir_p
809 AWK
810 SET_MAKE
811 am__leading_dot
812 AMTAR
813 am__tar
814 am__untar
815 build
816 build_cpu
817 build_vendor
818 build_os
819 host
820 host_cpu
821 host_vendor
822 host_os
823 CC
824 CFLAGS
825 LDFLAGS
826 CPPFLAGS
827 ac_ct_CC
828 EXEEXT
829 OBJEXT
830 DEPDIR
831 am__include
832 am__quote
833 AMDEP_TRUE
834 AMDEP_FALSE
835 AMDEPBACKSLASH
836 CCDEPMODE
837 am__fastdepCC_TRUE
838 am__fastdepCC_FALSE
839 GREP
840 EGREP
841 LN_S
842 ECHO
843 AR
844 RANLIB
845 CPP
846 CXX
847 CXXFLAGS
848 ac_ct_CXX
849 CXXDEPMODE
850 am__fastdepCXX_TRUE
851 am__fastdepCXX_FALSE
852 CXXCPP
853 F77
854 FFLAGS
855 ac_ct_F77
856 LIBTOOL
857 PKG_CONFIG_LIBS
858 BUILD_LIB_TRUE
859 BUILD_LIB_FALSE
860 LIBOBJS
861 LTLIBOBJS'
862 ac_subst_files=''
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
870 CPP
871 CXX
872 CXXFLAGS
873 CCC
874 CXXCPP
875 F77
876 FFLAGS'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
934 fi
935
936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
967 -datadir | --datadir | --datadi | --datad)
968 ac_prev=datadir ;;
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
971
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
979 -disable-* | --disable-*)
980 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
983 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984 { (exit 1); exit 1; }; }
985 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
986 eval enable_$ac_feature=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1005 eval enable_$ac_feature=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid package name: $ac_package" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_package=`echo $ac_package| sed 's/-/_/g'`
1202 eval with_$ac_package=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid package name: $ac_package" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_package=`echo $ac_package | sed 's/-/_/g'`
1211 eval with_$ac_package=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) { echo "$as_me: error: unrecognized option: $ac_option
1232 Try \`$0 --help' for more information." >&2
1233 { (exit 1); exit 1; }; }
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241 { (exit 1); exit 1; }; }
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 { echo "$as_me: error: missing argument to $ac_option" >&2
1259 { (exit 1); exit 1; }; }
1260 fi
1261
1262 # Be sure to have absolute directory names.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267 do
1268 eval ac_val=\$$ac_var
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274 { (exit 1); exit 1; }; }
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 { echo "$as_me: error: Working directory cannot be determined" >&2
1305 { (exit 1); exit 1; }; }
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 { echo "$as_me: error: pwd does not report name of working directory" >&2
1308 { (exit 1); exit 1; }; }
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$0" ||
1316 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$0" : 'X\(//\)[^/]' \| \
1318 X"$0" : 'X\(//\)$' \| \
1319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 echo X"$0" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1348 { (exit 1); exit 1; }; }
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1353 { (exit 1); exit 1; }; }
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures libpthread-stubs 0.1 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libpthread-stubs]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of libpthread-stubs 0.1:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-dependency-tracking speeds up one-time build
1461 --enable-dependency-tracking do not reject slow dependency extractors
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-pic try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-tags[=TAGS] include additional configurations [automatic]
1471
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor
1483 F77 Fortran 77 compiler command
1484 FFLAGS Fortran 77 compiler flags
1485
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1488
1489 Report bugs to <xcb@lists.freedesktop.org>.
1490 _ACEOF
1491 ac_status=$?
1492 fi
1493
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" || continue
1498 ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 libpthread-stubs configure 0.1
1551 generated by GNU Autoconf 2.60a
1552
1553 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1554 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1557 _ACEOF
1558 exit
1559 fi
1560 cat >config.log <<_ACEOF
1561 This file contains any messages produced by compilers while
1562 running configure, to aid debugging if configure makes a mistake.
1563
1564 It was created by libpthread-stubs $as_me 0.1, which was
1565 generated by GNU Autoconf 2.60a. Invocation command line was
1566
1567 $ $0 $@
1568
1569 _ACEOF
1570 exec 5>>config.log
1571 {
1572 cat <<_ASUNAME
1573 ## --------- ##
1574 ## Platform. ##
1575 ## --------- ##
1576
1577 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1578 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1579 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1580 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1581 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582
1583 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1584 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1585
1586 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1587 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1588 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1589 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1590 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1591 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1592 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1593
1594 _ASUNAME
1595
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1598 do
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 echo "PATH: $as_dir"
1602 done
1603 IFS=$as_save_IFS
1604
1605 } >&5
1606
1607 cat >&5 <<_ACEOF
1608
1609
1610 ## ----------- ##
1611 ## Core tests. ##
1612 ## ----------- ##
1613
1614 _ACEOF
1615
1616
1617 # Keep a trace of the command line.
1618 # Strip out --no-create and --no-recursion so they do not pile up.
1619 # Strip out --silent because we don't want to record it for future runs.
1620 # Also quote any args containing shell meta-characters.
1621 # Make two passes to allow for proper duplicate-argument suppression.
1622 ac_configure_args=
1623 ac_configure_args0=
1624 ac_configure_args1=
1625 ac_must_keep_next=false
1626 for ac_pass in 1 2
1627 do
1628 for ac_arg
1629 do
1630 case $ac_arg in
1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1634 continue ;;
1635 *\'*)
1636 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 esac
1638 case $ac_pass in
1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1640 2)
1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642 if test $ac_must_keep_next = true; then
1643 ac_must_keep_next=false # Got value, back to normal.
1644 else
1645 case $ac_arg in
1646 *=* | --config-cache | -C | -disable-* | --disable-* \
1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649 | -with-* | --with-* | -without-* | --without-* | --x)
1650 case "$ac_configure_args0 " in
1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 esac
1653 ;;
1654 -* ) ac_must_keep_next=true ;;
1655 esac
1656 fi
1657 ac_configure_args="$ac_configure_args '$ac_arg'"
1658 ;;
1659 esac
1660 done
1661 done
1662 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1663 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1664
1665 # When interrupted or exit'd, cleanup temporary files, and complete
1666 # config.log. We remove comments because anyway the quotes in there
1667 # would cause problems or look ugly.
1668 # WARNING: Use '\'' to represent an apostrophe within the trap.
1669 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1670 trap 'exit_status=$?
1671 # Save into config.log some information that might help in debugging.
1672 {
1673 echo
1674
1675 cat <<\_ASBOX
1676 ## ---------------- ##
1677 ## Cache variables. ##
1678 ## ---------------- ##
1679 _ASBOX
1680 echo
1681 # The following way of writing the cache mishandles newlines in values,
1682 (
1683 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1684 eval ac_val=\$$ac_var
1685 case $ac_val in #(
1686 *${as_nl}*)
1687 case $ac_var in #(
1688 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1689 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1690 esac
1691 case $ac_var in #(
1692 _ | IFS | as_nl) ;; #(
1693 *) $as_unset $ac_var ;;
1694 esac ;;
1695 esac
1696 done
1697 (set) 2>&1 |
1698 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1699 *${as_nl}ac_space=\ *)
1700 sed -n \
1701 "s/'\''/'\''\\\\'\'''\''/g;
1702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1703 ;; #(
1704 *)
1705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 ;;
1707 esac |
1708 sort
1709 )
1710 echo
1711
1712 cat <<\_ASBOX
1713 ## ----------------- ##
1714 ## Output variables. ##
1715 ## ----------------- ##
1716 _ASBOX
1717 echo
1718 for ac_var in $ac_subst_vars
1719 do
1720 eval ac_val=\$$ac_var
1721 case $ac_val in
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 esac
1724 echo "$ac_var='\''$ac_val'\''"
1725 done | sort
1726 echo
1727
1728 if test -n "$ac_subst_files"; then
1729 cat <<\_ASBOX
1730 ## ------------------- ##
1731 ## File substitutions. ##
1732 ## ------------------- ##
1733 _ASBOX
1734 echo
1735 for ac_var in $ac_subst_files
1736 do
1737 eval ac_val=\$$ac_var
1738 case $ac_val in
1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 esac
1741 echo "$ac_var='\''$ac_val'\''"
1742 done | sort
1743 echo
1744 fi
1745
1746 if test -s confdefs.h; then
1747 cat <<\_ASBOX
1748 ## ----------- ##
1749 ## confdefs.h. ##
1750 ## ----------- ##
1751 _ASBOX
1752 echo
1753 cat confdefs.h
1754 echo
1755 fi
1756 test "$ac_signal" != 0 &&
1757 echo "$as_me: caught signal $ac_signal"
1758 echo "$as_me: exit $exit_status"
1759 } >&5
1760 rm -f core *.core core.conftest.* &&
1761 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762 exit $exit_status
1763 ' 0
1764 for ac_signal in 1 2 13 15; do
1765 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1766 done
1767 ac_signal=0
1768
1769 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1770 rm -f -r conftest* confdefs.h
1771
1772 # Predefined preprocessor variables.
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_NAME "$PACKAGE_NAME"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_STRING "$PACKAGE_STRING"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796 _ACEOF
1797
1798
1799 # Let the site file select an alternate cache file if it wants to.
1800 # Prefer explicitly selected file to automatically selected ones.
1801 if test -n "$CONFIG_SITE"; then
1802 set x "$CONFIG_SITE"
1803 elif test "x$prefix" != xNONE; then
1804 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1805 else
1806 set x "$ac_default_prefix/share/config.site" \
1807 "$ac_default_prefix/etc/config.site"
1808 fi
1809 shift
1810 for ac_site_file
1811 do
1812 if test -r "$ac_site_file"; then
1813 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814 echo "$as_me: loading site script $ac_site_file" >&6;}
1815 sed 's/^/| /' "$ac_site_file" >&5
1816 . "$ac_site_file"
1817 fi
1818 done
1819
1820 if test -r "$cache_file"; then
1821 # Some versions of bash will fail to source /dev/null (special
1822 # files actually), so we avoid doing that.
1823 if test -f "$cache_file"; then
1824 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825 echo "$as_me: loading cache $cache_file" >&6;}
1826 case $cache_file in
1827 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828 *) . "./$cache_file";;
1829 esac
1830 fi
1831 else
1832 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833 echo "$as_me: creating cache $cache_file" >&6;}
1834 >$cache_file
1835 fi
1836
1837 # Check that the precious variables saved in the cache have kept the same
1838 # value.
1839 ac_cache_corrupted=false
1840 for ac_var in $ac_precious_vars; do
1841 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1842 eval ac_new_set=\$ac_env_${ac_var}_set
1843 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1844 eval ac_new_val=\$ac_env_${ac_var}_value
1845 case $ac_old_set,$ac_new_set in
1846 set,)
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1850 ,set)
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1854 ,);;
1855 *)
1856 if test "x$ac_old_val" != "x$ac_new_val"; then
1857 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1860 echo "$as_me: former value: $ac_old_val" >&2;}
1861 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1862 echo "$as_me: current value: $ac_new_val" >&2;}
1863 ac_cache_corrupted=:
1864 fi;;
1865 esac
1866 # Pass precious variables to config.status.
1867 if test "$ac_new_set" = set; then
1868 case $ac_new_val in
1869 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 *) ac_arg=$ac_var=$ac_new_val ;;
1871 esac
1872 case " $ac_configure_args " in
1873 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1874 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875 esac
1876 fi
1877 done
1878 if $ac_cache_corrupted; then
1879 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1880 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1881 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1882 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1883 { (exit 1); exit 1; }; }
1884 fi
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910 ac_ext=c
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916
1917
1918 am__api_version="1.9"
1919 ac_aux_dir=
1920 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1921 if test -f "$ac_dir/install-sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1924 break
1925 elif test -f "$ac_dir/install.sh"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1928 break
1929 elif test -f "$ac_dir/shtool"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1932 break
1933 fi
1934 done
1935 if test -z "$ac_aux_dir"; then
1936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1938 { (exit 1); exit 1; }; }
1939 fi
1940
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948
1949
1950 # Find a good install program. We prefer a C program (faster),
1951 # so one script is as good as another. But avoid the broken or
1952 # incompatible versions:
1953 # SysV /etc/install, /usr/sbin/install
1954 # SunOS /usr/etc/install
1955 # IRIX /sbin/install
1956 # AIX /bin/install
1957 # AmigaOS /C/install, which installs bootblocks on floppy discs
1958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1961 # OS/2's system install, which has a completely different semantic
1962 # ./install, which can be erroneously created by make from ./install.sh.
1963 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1964 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1965 if test -z "$INSTALL"; then
1966 if test "${ac_cv_path_install+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 # Account for people who put trailing slashes in PATH elements.
1975 case $as_dir/ in
1976 ./ | .// | /cC/* | \
1977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1978 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1979 /usr/ucb/* ) ;;
1980 *)
1981 # OSF1 and SCO ODT 3.0 have their own names for install.
1982 # Don't use installbsd from OSF since it installs stuff as root
1983 # by default.
1984 for ac_prog in ginstall scoinst install; do
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1987 if test $ac_prog = install &&
1988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1989 # AIX install. It has an incompatible calling convention.
1990 :
1991 elif test $ac_prog = install &&
1992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993 # program-specific install script used by HP pwplus--don't use.
1994 :
1995 else
1996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1997 break 3
1998 fi
1999 fi
2000 done
2001 done
2002 ;;
2003 esac
2004 done
2005 IFS=$as_save_IFS
2006
2007
2008 fi
2009 if test "${ac_cv_path_install+set}" = set; then
2010 INSTALL=$ac_cv_path_install
2011 else
2012 # As a last resort, use the slow shell script. Don't cache a
2013 # value for INSTALL within a source directory, because that will
2014 # break other packages using the cache if that directory is
2015 # removed, or if the value is a relative name.
2016 INSTALL=$ac_install_sh
2017 fi
2018 fi
2019 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2020 echo "${ECHO_T}$INSTALL" >&6; }
2021
2022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023 # It thinks the first close brace ends the variable substitution.
2024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2025
2026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2027
2028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2029
2030 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2031 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2032 # Just in case
2033 sleep 1
2034 echo timestamp > conftest.file
2035 # Do `set' in a subshell so we don't clobber the current shell's
2036 # arguments. Must try -L first in case configure is actually a
2037 # symlink; some systems play weird games with the mod time of symlinks
2038 # (eg FreeBSD returns the mod time of the symlink's containing
2039 # directory).
2040 if (
2041 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2042 if test "$*" = "X"; then
2043 # -L didn't work.
2044 set X `ls -t $srcdir/configure conftest.file`
2045 fi
2046 rm -f conftest.file
2047 if test "$*" != "X $srcdir/configure conftest.file" \
2048 && test "$*" != "X conftest.file $srcdir/configure"; then
2049
2050 # If neither matched, then we have a broken ls. This can happen
2051 # if, for instance, CONFIG_SHELL is bash and it inherits a
2052 # broken ls alias from the environment. This has actually
2053 # happened. Such a system could not be considered "sane".
2054 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2055 alias in your environment" >&5
2056 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2057 alias in your environment" >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060
2061 test "$2" = conftest.file
2062 )
2063 then
2064 # Ok.
2065 :
2066 else
2067 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2068 Check your system clock" >&5
2069 echo "$as_me: error: newly created file is older than distributed files!
2070 Check your system clock" >&2;}
2071 { (exit 1); exit 1; }; }
2072 fi
2073 { echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6; }
2075 test "$program_prefix" != NONE &&
2076 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2077 # Use a double $ so make ignores it.
2078 test "$program_suffix" != NONE &&
2079 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2080 # Double any \ or $. echo might interpret backslashes.
2081 # By default was `s,x,x', remove it if useless.
2082 cat <<\_ACEOF >conftest.sed
2083 s/[\\$]/&&/g;s/;s,x,x,$//
2084 _ACEOF
2085 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2086 rm -f conftest.sed
2087
2088 # expand $ac_aux_dir to an absolute path
2089 am_aux_dir=`cd $ac_aux_dir && pwd`
2090
2091 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2092 # Use eval to expand $SHELL
2093 if eval "$MISSING --run true"; then
2094 am_missing_run="$MISSING --run "
2095 else
2096 am_missing_run=
2097 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2098 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2099 fi
2100
2101 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2102 # We used to keeping the `.' as first argument, in order to
2103 # allow $(mkdir_p) to be used without argument. As in
2104 # $(mkdir_p) $(somedir)
2105 # where $(somedir) is conditionally defined. However this is wrong
2106 # for two reasons:
2107 # 1. if the package is installed by a user who cannot write `.'
2108 # make install will fail,
2109 # 2. the above comment should most certainly read
2110 # $(mkdir_p) $(DESTDIR)$(somedir)
2111 # so it does not work when $(somedir) is undefined and
2112 # $(DESTDIR) is not.
2113 # To support the latter case, we have to write
2114 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2115 # so the `.' trick is pointless.
2116 mkdir_p='mkdir -p --'
2117 else
2118 # On NextStep and OpenStep, the `mkdir' command does not
2119 # recognize any option. It will interpret all options as
2120 # directories to create, and then abort because `.' already
2121 # exists.
2122 for d in ./-p ./--version;
2123 do
2124 test -d $d && rmdir $d
2125 done
2126 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2127 if test -f "$ac_aux_dir/mkinstalldirs"; then
2128 mkdir_p='$(mkinstalldirs)'
2129 else
2130 mkdir_p='$(install_sh) -d'
2131 fi
2132 fi
2133
2134 for ac_prog in gawk mawk nawk awk
2135 do
2136 # Extract the first word of "$ac_prog", so it can be a program name with args.
2137 set dummy $ac_prog; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_prog_AWK+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 if test -n "$AWK"; then
2144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 ac_cv_prog_AWK="$ac_prog"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2156 fi
2157 done
2158 done
2159 IFS=$as_save_IFS
2160
2161 fi
2162 fi
2163 AWK=$ac_cv_prog_AWK
2164 if test -n "$AWK"; then
2165 { echo "$as_me:$LINENO: result: $AWK" >&5
2166 echo "${ECHO_T}$AWK" >&6; }
2167 else
2168 { echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6; }
2170 fi
2171
2172
2173 test -n "$AWK" && break
2174 done
2175
2176 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2178 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2179 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 cat >conftest.make <<\_ACEOF
2183 SHELL = /bin/sh
2184 all:
2185 @echo '@@@%%%=$(MAKE)=@@@%%%'
2186 _ACEOF
2187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2189 *@@@%%%=?*=@@@%%%*)
2190 eval ac_cv_prog_make_${ac_make}_set=yes;;
2191 *)
2192 eval ac_cv_prog_make_${ac_make}_set=no;;
2193 esac
2194 rm -f conftest.make
2195 fi
2196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2197 { echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6; }
2199 SET_MAKE=
2200 else
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2203 SET_MAKE="MAKE=${MAKE-make}"
2204 fi
2205
2206 rm -rf .tst 2>/dev/null
2207 mkdir .tst 2>/dev/null
2208 if test -d .tst; then
2209 am__leading_dot=.
2210 else
2211 am__leading_dot=_
2212 fi
2213 rmdir .tst 2>/dev/null
2214
2215 # test to see if srcdir already configured
2216 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2217 test -f $srcdir/config.status; then
2218 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2219 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2220 { (exit 1); exit 1; }; }
2221 fi
2222
2223 # test whether we have cygpath
2224 if test -z "$CYGPATH_W"; then
2225 if (cygpath --version) >/dev/null 2>/dev/null; then
2226 CYGPATH_W='cygpath -w'
2227 else
2228 CYGPATH_W=echo
2229 fi
2230 fi
2231
2232
2233 # Define the identity of the package.
2234 PACKAGE='libpthread-stubs'
2235 VERSION='0.1'
2236
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE "$PACKAGE"
2240 _ACEOF
2241
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define VERSION "$VERSION"
2245 _ACEOF
2246
2247 # Some tools Automake needs.
2248
2249 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2250
2251
2252 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2253
2254
2255 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2256
2257
2258 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2259
2260
2261 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2262
2263 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2264
2265 # Installed binaries are usually stripped using `strip' when the user
2266 # run `make install-strip'. However `strip' might not be the right
2267 # tool to use in cross-compilation environments, therefore Automake
2268 # will honor the `STRIP' environment variable to overrule this program.
2269 if test "$cross_compiling" != no; then
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}strip; ac_word=$2
2273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2275 if test "${ac_cv_prog_STRIP+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 if test -n "$STRIP"; then
2279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2291 fi
2292 done
2293 done
2294 IFS=$as_save_IFS
2295
2296 fi
2297 fi
2298 STRIP=$ac_cv_prog_STRIP
2299 if test -n "$STRIP"; then
2300 { echo "$as_me:$LINENO: result: $STRIP" >&5
2301 echo "${ECHO_T}$STRIP" >&6; }
2302 else
2303 { echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6; }
2305 fi
2306
2307
2308 fi
2309 if test -z "$ac_cv_prog_STRIP"; then
2310 ac_ct_STRIP=$STRIP
2311 # Extract the first word of "strip", so it can be a program name with args.
2312 set dummy strip; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318 if test -n "$ac_ct_STRIP"; then
2319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_ac_ct_STRIP="strip"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2331 fi
2332 done
2333 done
2334 IFS=$as_save_IFS
2335
2336 fi
2337 fi
2338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2339 if test -n "$ac_ct_STRIP"; then
2340 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2341 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2342 else
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2345 fi
2346
2347 if test "x$ac_ct_STRIP" = x; then
2348 STRIP=":"
2349 else
2350 case $cross_compiling:$ac_tool_warned in
2351 yes:)
2352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2353 whose name does not start with the host triplet. If you think this
2354 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2358 ac_tool_warned=yes ;;
2359 esac
2360 STRIP=$ac_ct_STRIP
2361 fi
2362 else
2363 STRIP="$ac_cv_prog_STRIP"
2364 fi
2365
2366 fi
2367 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2368
2369 # We need awk for the "check" target. The system "awk" is bad on
2370 # some platforms.
2371 # Always define AMTAR for backward compatibility.
2372
2373 AMTAR=${AMTAR-"${am_missing_run}tar"}
2374
2375 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2376
2377
2378
2379
2380
2381
2382 ac_config_headers="$ac_config_headers config.h"
2383
2384
2385 # Check whether --enable-shared was given.
2386 if test "${enable_shared+set}" = set; then
2387 enableval=$enable_shared; p=${PACKAGE-default}
2388 case $enableval in
2389 yes) enable_shared=yes ;;
2390 no) enable_shared=no ;;
2391 *)
2392 enable_shared=no
2393 # Look at the argument we got. We use all the common list separators.
2394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2395 for pkg in $enableval; do
2396 IFS="$lt_save_ifs"
2397 if test "X$pkg" = "X$p"; then
2398 enable_shared=yes
2399 fi
2400 done
2401 IFS="$lt_save_ifs"
2402 ;;
2403 esac
2404 else
2405 enable_shared=yes
2406 fi
2407
2408
2409 # Check whether --enable-static was given.
2410 if test "${enable_static+set}" = set; then
2411 enableval=$enable_static; p=${PACKAGE-default}
2412 case $enableval in
2413 yes) enable_static=yes ;;
2414 no) enable_static=no ;;
2415 *)
2416 enable_static=no
2417 # Look at the argument we got. We use all the common list separators.
2418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2419 for pkg in $enableval; do
2420 IFS="$lt_save_ifs"
2421 if test "X$pkg" = "X$p"; then
2422 enable_static=yes
2423 fi
2424 done
2425 IFS="$lt_save_ifs"
2426 ;;
2427 esac
2428 else
2429 enable_static=yes
2430 fi
2431
2432
2433 # Check whether --enable-fast-install was given.
2434 if test "${enable_fast_install+set}" = set; then
2435 enableval=$enable_fast_install; p=${PACKAGE-default}
2436 case $enableval in
2437 yes) enable_fast_install=yes ;;
2438 no) enable_fast_install=no ;;
2439 *)
2440 enable_fast_install=no
2441 # Look at the argument we got. We use all the common list separators.
2442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2443 for pkg in $enableval; do
2444 IFS="$lt_save_ifs"
2445 if test "X$pkg" = "X$p"; then
2446 enable_fast_install=yes
2447 fi
2448 done
2449 IFS="$lt_save_ifs"
2450 ;;
2451 esac
2452 else
2453 enable_fast_install=yes
2454 fi
2455
2456
2457 # Make sure we can run config.sub.
2458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2459 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2460 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2461 { (exit 1); exit 1; }; }
2462
2463 { echo "$as_me:$LINENO: checking build system type" >&5
2464 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2465 if test "${ac_cv_build+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468 ac_build_alias=$build_alias
2469 test "x$ac_build_alias" = x &&
2470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2471 test "x$ac_build_alias" = x &&
2472 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2473 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2474 { (exit 1); exit 1; }; }
2475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2476 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2478 { (exit 1); exit 1; }; }
2479
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2482 echo "${ECHO_T}$ac_cv_build" >&6; }
2483 case $ac_cv_build in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2486 echo "$as_me: error: invalid value of canonical build" >&2;}
2487 { (exit 1); exit 1; }; };;
2488 esac
2489 build=$ac_cv_build
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_build
2492 shift
2493 build_cpu=$1
2494 build_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 build_os=$*
2499 IFS=$ac_save_IFS
2500 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 { echo "$as_me:$LINENO: checking host system type" >&5
2504 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2505 if test "${ac_cv_host+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 if test "x$host_alias" = x; then
2509 ac_cv_host=$ac_cv_build
2510 else
2511 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2512 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2513 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2514 { (exit 1); exit 1; }; }
2515 fi
2516
2517 fi
2518 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2519 echo "${ECHO_T}$ac_cv_host" >&6; }
2520 case $ac_cv_host in
2521 *-*-*) ;;
2522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2523 echo "$as_me: error: invalid value of canonical host" >&2;}
2524 { (exit 1); exit 1; }; };;
2525 esac
2526 host=$ac_cv_host
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_host
2529 shift
2530 host_cpu=$1
2531 host_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 host_os=$*
2536 IFS=$ac_save_IFS
2537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 DEPDIR="${am__leading_dot}deps"
2541
2542 ac_config_commands="$ac_config_commands depfiles"
2543
2544
2545 am_make=${MAKE-make}
2546 cat > confinc << 'END'
2547 am__doit:
2548 @echo done
2549 .PHONY: am__doit
2550 END
2551 # If we don't find an include directive, just comment out the code.
2552 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2553 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2554 am__include="#"
2555 am__quote=
2556 _am_result=none
2557 # First try GNU make style include.
2558 echo "include confinc" > confmf
2559 # We grep out `Entering directory' and `Leaving directory'
2560 # messages which can occur if `w' ends up in MAKEFLAGS.
2561 # In particular we don't look at `^make:' because GNU make might
2562 # be invoked under some other name (usually "gmake"), in which
2563 # case it prints its new name instead of `make'.
2564 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2565 am__include=include
2566 am__quote=
2567 _am_result=GNU
2568 fi
2569 # Now try BSD make style include.
2570 if test "$am__include" = "#"; then
2571 echo '.include "confinc"' > confmf
2572 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2573 am__include=.include
2574 am__quote="\""
2575 _am_result=BSD
2576 fi
2577 fi
2578
2579
2580 { echo "$as_me:$LINENO: result: $_am_result" >&5
2581 echo "${ECHO_T}$_am_result" >&6; }
2582 rm -f confinc confmf
2583
2584 # Check whether --enable-dependency-tracking was given.
2585 if test "${enable_dependency_tracking+set}" = set; then
2586 enableval=$enable_dependency_tracking;
2587 fi
2588
2589 if test "x$enable_dependency_tracking" != xno; then
2590 am_depcomp="$ac_aux_dir/depcomp"
2591 AMDEPBACKSLASH='\'
2592 fi
2593
2594
2595 if test "x$enable_dependency_tracking" != xno; then
2596 AMDEP_TRUE=
2597 AMDEP_FALSE='#'
2598 else
2599 AMDEP_TRUE='#'
2600 AMDEP_FALSE=
2601 fi
2602
2603
2604
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640 { echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6; }
2642 else
2643 { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2645 fi
2646
2647
2648 fi
2649 if test -z "$ac_cv_prog_CC"; then
2650 ac_ct_CC=$CC
2651 # Extract the first word of "gcc", so it can be a program name with args.
2652 set dummy gcc; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_ac_ct_CC="gcc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 echo "${ECHO_T}$ac_ct_CC" >&6; }
2682 else
2683 { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2685 fi
2686
2687 if test "x$ac_ct_CC" = x; then
2688 CC=""
2689 else
2690 case $cross_compiling:$ac_tool_warned in
2691 yes:)
2692 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet. If you think this
2694 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2695 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2696 whose name does not start with the host triplet. If you think this
2697 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2698 ac_tool_warned=yes ;;
2699 esac
2700 CC=$ac_ct_CC
2701 fi
2702 else
2703 CC="$ac_cv_prog_CC"
2704 fi
2705
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}cc; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="${ac_tool_prefix}cc"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 { echo "$as_me:$LINENO: result: $CC" >&5
2738 echo "${ECHO_T}$CC" >&6; }
2739 else
2740 { echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6; }
2742 fi
2743
2744
2745 fi
2746 fi
2747 if test -z "$CC"; then
2748 # Extract the first word of "cc", so it can be a program name with args.
2749 set dummy cc; ac_word=$2
2750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2752 if test "${ac_cv_prog_CC+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 ac_prog_rejected=no
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767 ac_prog_rejected=yes
2768 continue
2769 fi
2770 ac_cv_prog_CC="cc"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 if test $ac_prog_rejected = yes; then
2779 # We found a bogon in the path, so make sure we never use it.
2780 set dummy $ac_cv_prog_CC
2781 shift
2782 if test $# != 0; then
2783 # We chose a different compiler from the bogus one.
2784 # However, it has the same basename, so the bogon will be chosen
2785 # first if we set CC to just the basename; use the full file name.
2786 shift
2787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2788 fi
2789 fi
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { echo "$as_me:$LINENO: result: $CC" >&5
2795 echo "${ECHO_T}$CC" >&6; }
2796 else
2797 { echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6; }
2799 fi
2800
2801
2802 fi
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 for ac_prog in cl.exe
2806 do
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2811 if test "${ac_cv_prog_CC+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 { echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6; }
2838 else
2839 { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2841 fi
2842
2843
2844 test -n "$CC" && break
2845 done
2846 fi
2847 if test -z "$CC"; then
2848 ac_ct_CC=$CC
2849 for ac_prog in cl.exe
2850 do
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$ac_ct_CC"; then
2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_ac_ct_CC="$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879 if test -n "$ac_ct_CC"; then
2880 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2881 echo "${ECHO_T}$ac_ct_CC" >&6; }
2882 else
2883 { echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6; }
2885 fi
2886
2887
2888 test -n "$ac_ct_CC" && break
2889 done
2890
2891 if test "x$ac_ct_CC" = x; then
2892 CC=""
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet. If you think this
2898 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet. If you think this
2901 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904 CC=$ac_ct_CC
2905 fi
2906 fi
2907
2908 fi
2909
2910
2911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2916
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking for C compiler version" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler --version >&5") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -v >&5") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compiler -V >&5") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2950
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957
2958 int
2959 main ()
2960 {
2961
2962 ;
2963 return 0;
2964 }
2965 _ACEOF
2966 ac_clean_files_save=$ac_clean_files
2967 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2968 # Try to create an executable without -o first, disregard a.out.
2969 # It will help us diagnose broken compilers, and finding out an intuition
2970 # of exeext.
2971 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2972 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2973 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2974 #
2975 # List of possible output files, starting from the most likely.
2976 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2977 # only as a last resort. b.out is created by i960 compilers.
2978 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2979 #
2980 # The IRIX 6 linker writes into existing files which may not be
2981 # executable, retaining their permissions. Remove them first so a
2982 # subsequent execution test works.
2983 ac_rmfiles=
2984 for ac_file in $ac_files
2985 do
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 esac
2990 done
2991 rm -f $ac_rmfiles
2992
2993 if { (ac_try="$ac_link_default"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_link_default") 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; then
3003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3006 # so that the user can short-circuit this test for compilers unknown to
3007 # Autoconf.
3008 for ac_file in $ac_files ''
3009 do
3010 test -f "$ac_file" || continue
3011 case $ac_file in
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3013 ;;
3014 [ab].out )
3015 # We found the default executable, but exeext='' is most
3016 # certainly right.
3017 break;;
3018 *.* )
3019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3020 then :; else
3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 fi
3023 # We set ac_cv_exeext here because the later test for it is not
3024 # safe: cross compilers may not add the suffix if given an `-o'
3025 # argument, so we may need to know it at that point already.
3026 # Even if this section looks crufty: it has the advantage of
3027 # actually working.
3028 break;;
3029 * )
3030 break;;
3031 esac
3032 done
3033 test "$ac_cv_exeext" = no && ac_cv_exeext=
3034
3035 else
3036 ac_file=''
3037 fi
3038
3039 { echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6; }
3041 if test -z "$ac_file"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: C compiler cannot create executables
3048 See \`config.log' for more details." >&2;}
3049 { (exit 77); exit 77; }; }
3050 fi
3051
3052 ac_exeext=$ac_cv_exeext
3053
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3057 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3058 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3059 # If not cross compiling, check that we can run a simple program.
3060 if test "$cross_compiling" != yes; then
3061 if { ac_try='./$ac_file'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 cross_compiling=no
3072 else
3073 if test "$cross_compiling" = maybe; then
3074 cross_compiling=yes
3075 else
3076 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3077 If you meant to cross compile, use \`--host'.
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: cannot run C compiled programs.
3080 If you meant to cross compile, use \`--host'.
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }
3083 fi
3084 fi
3085 fi
3086 { echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6; }
3088
3089 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3090 ac_clean_files=$ac_clean_files_save
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3094 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3095 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3096 echo "${ECHO_T}$cross_compiling" >&6; }
3097
3098 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3099 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3100 if { (ac_try="$ac_link"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_link") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; then
3110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3112 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 # `rm'.
3114 for ac_file in conftest.exe conftest conftest.*; do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 break;;
3120 * ) break;;
3121 esac
3122 done
3123 else
3124 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&5
3126 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3129 fi
3130
3131 rm -f conftest$ac_cv_exeext
3132 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3133 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3134
3135 rm -f conftest.$ac_ext
3136 EXEEXT=$ac_cv_exeext
3137 ac_exeext=$EXEEXT
3138 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3139 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3140 if test "${ac_cv_objext+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149
3150 int
3151 main ()
3152 {
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.o conftest.obj
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file in conftest.o conftest.obj conftest.*; do
3170 test -f "$ac_file" || continue;
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174 break;;
3175 esac
3176 done
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&5
3183 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details." >&2;}
3185 { (exit 1); exit 1; }; }
3186 fi
3187
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189 fi
3190 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3191 echo "${ECHO_T}$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3193 ac_objext=$OBJEXT
3194 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3195 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_try") 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_compiler_gnu=yes
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 ac_compiler_gnu=no
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3261
3262 fi
3263 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3264 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3265 GCC=`test $ac_compiler_gnu = yes && echo yes`
3266 ac_test_CFLAGS=${CFLAGS+set}
3267 ac_save_CFLAGS=$CFLAGS
3268 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_cc_g+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3275 ac_cv_prog_cc_g=no
3276 CFLAGS="-g"
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283
3284 int
3285 main ()
3286 {
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_compile") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3307 { (case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_try") 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try='test -s conftest.$ac_objext'
3317 { (case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_try") 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 ac_cv_prog_cc_g=yes
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 CFLAGS=""
3332 cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h. */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3362 { (case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_try") 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_try") 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 :
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3387 CFLAGS="-g"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3418 { (case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_try") 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_try") 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_cv_prog_cc_g=yes
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442
3443 fi
3444
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 fi
3447
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3453 fi
3454 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3455 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3456 if test "$ac_test_CFLAGS" = set; then
3457 CFLAGS=$ac_save_CFLAGS
3458 elif test $ac_cv_prog_cc_g = yes; then
3459 if test "$GCC" = yes; then
3460 CFLAGS="-g -O2"
3461 else
3462 CFLAGS="-g"
3463 fi
3464 else
3465 if test "$GCC" = yes; then
3466 CFLAGS="-O2"
3467 else
3468 CFLAGS=
3469 fi
3470 fi
3471 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3472 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_cc_c89+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 ac_cv_prog_cc_c89=no
3477 ac_save_CC=$CC
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <stdarg.h>
3485 #include <stdio.h>
3486 #include <sys/types.h>
3487 #include <sys/stat.h>
3488 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3489 struct buf { int x; };
3490 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3491 static char *e (p, i)
3492 char **p;
3493 int i;
3494 {
3495 return p[i];
3496 }
3497 static char *f (char * (*g) (char **, int), char **p, ...)
3498 {
3499 char *s;
3500 va_list v;
3501 va_start (v,p);
3502 s = g (p, va_arg (v,int));
3503 va_end (v);
3504 return s;
3505 }
3506
3507 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3508 function prototypes and stuff, but not '\xHH' hex character constants.
3509 These don't provoke an error unfortunately, instead are silently treated
3510 as 'x'. The following induces an error, until -std is added to get
3511 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3512 array size at least. It's necessary to write '\x00'==0 to get something
3513 that's true only with -std. */
3514 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515
3516 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3517 inside strings and character constants. */
3518 #define FOO(x) 'x'
3519 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520
3521 int test (int i, double x);
3522 struct s1 {int (*f) (int a);};
3523 struct s2 {int (*f) (double a);};
3524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3525 int argc;
3526 char **argv;
3527 int
3528 main ()
3529 {
3530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3536 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 do
3538 CC="$ac_save_CC $ac_arg"
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_compile") 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3554 { (case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_try") 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; } &&
3563 { ac_try='test -s conftest.$ac_objext'
3564 { (case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_try") 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_prog_cc_c89=$ac_arg
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext
3582 test "x$ac_cv_prog_cc_c89" != "xno" && break
3583 done
3584 rm -f conftest.$ac_ext
3585 CC=$ac_save_CC
3586
3587 fi
3588 # AC_CACHE_VAL
3589 case "x$ac_cv_prog_cc_c89" in
3590 x)
3591 { echo "$as_me:$LINENO: result: none needed" >&5
3592 echo "${ECHO_T}none needed" >&6; } ;;
3593 xno)
3594 { echo "$as_me:$LINENO: result: unsupported" >&5
3595 echo "${ECHO_T}unsupported" >&6; } ;;
3596 *)
3597 CC="$CC $ac_cv_prog_cc_c89"
3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3599 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3600 esac
3601
3602
3603 ac_ext=c
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608
3609 depcc="$CC" am_compiler_list=
3610
3611 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3612 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3613 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3617 # We make a subdir and do the tests there. Otherwise we can end up
3618 # making bogus files that we don't know about and never remove. For
3619 # instance it was reported that on HP-UX the gcc test will end up
3620 # making a dummy file named `D' -- because `-MD' means `put the output
3621 # in D'.
3622 mkdir conftest.dir
3623 # Copy depcomp to subdir because otherwise we won't find it if we're
3624 # using a relative directory.
3625 cp "$am_depcomp" conftest.dir
3626 cd conftest.dir
3627 # We will build objects and dependencies in a subdirectory because
3628 # it helps to detect inapplicable dependency modes. For instance
3629 # both Tru64's cc and ICC support -MD to output dependencies as a
3630 # side effect of compilation, but ICC will put the dependencies in
3631 # the current directory while Tru64 will put them in the object
3632 # directory.
3633 mkdir sub
3634
3635 am_cv_CC_dependencies_compiler_type=none
3636 if test "$am_compiler_list" = ""; then
3637 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3638 fi
3639 for depmode in $am_compiler_list; do
3640 # Setup a source with many dependencies, because some compilers
3641 # like to wrap large dependency lists on column 80 (with \), and
3642 # we should not choose a depcomp mode which is confused by this.
3643 #
3644 # We need to recreate these files for each test, as the compiler may
3645 # overwrite some of them when testing with obscure command lines.
3646 # This happens at least with the AIX C compiler.
3647 : > sub/conftest.c
3648 for i in 1 2 3 4 5 6; do
3649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3651 # Solaris 8's {/usr,}/bin/sh.
3652 touch sub/conftst$i.h
3653 done
3654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3655
3656 case $depmode in
3657 nosideeffect)
3658 # after this tag, mechanisms are not by side-effect, so they'll
3659 # only be used when explicitly requested
3660 if test "x$enable_dependency_tracking" = xyes; then
3661 continue
3662 else
3663 break
3664 fi
3665 ;;
3666 none) break ;;
3667 esac
3668 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3669 # mode. It turns out that the SunPro C++ compiler does not properly
3670 # handle `-M -o', and we need to detect this.
3671 if depmode=$depmode \
3672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3675 >/dev/null 2>conftest.err &&
3676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3677 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3679 # icc doesn't choke on unknown options, it will just issue warnings
3680 # or remarks (even with -Werror). So we grep stderr for any message
3681 # that says an option was ignored or not supported.
3682 # When given -MP, icc 7.0 and 7.1 complain thusly:
3683 # icc: Command line warning: ignoring option '-M'; no argument required
3684 # The diagnosis changed in icc 8.0:
3685 # icc: Command line remark: option '-MP' not supported
3686 if (grep 'ignoring option' conftest.err ||
3687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3688 am_cv_CC_dependencies_compiler_type=$depmode
3689 break
3690 fi
3691 fi
3692 done
3693
3694 cd ..
3695 rm -rf conftest.dir
3696 else
3697 am_cv_CC_dependencies_compiler_type=none
3698 fi
3699
3700 fi
3701 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3702 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3703 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3704
3705
3706
3707 if
3708 test "x$enable_dependency_tracking" != xno \
3709 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3710 am__fastdepCC_TRUE=
3711 am__fastdepCC_FALSE='#'
3712 else
3713 am__fastdepCC_TRUE='#'
3714 am__fastdepCC_FALSE=
3715 fi
3716
3717
3718 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3719 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3720 if test "${lt_cv_path_SED+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 # Loop through the user's path and test for sed and gsed.
3724 # Then use that list of sed's as ones to test for truncation.
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for lt_ac_prog in sed gsed; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3733 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3734 fi
3735 done
3736 done
3737 done
3738 lt_ac_max=0
3739 lt_ac_count=0
3740 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3741 # along with /bin/sed that truncates output.
3742 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3743 test ! -f $lt_ac_sed && continue
3744 cat /dev/null > conftest.in
3745 lt_ac_count=0
3746 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3747 # Check for GNU sed and select it if it is found.
3748 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3749 lt_cv_path_SED=$lt_ac_sed
3750 break
3751 fi
3752 while true; do
3753 cat conftest.in conftest.in >conftest.tmp
3754 mv conftest.tmp conftest.in
3755 cp conftest.in conftest.nl
3756 echo >>conftest.nl
3757 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3758 cmp -s conftest.out conftest.nl || break
3759 # 10000 chars as input seems more than enough
3760 test $lt_ac_count -gt 10 && break
3761 lt_ac_count=`expr $lt_ac_count + 1`
3762 if test $lt_ac_count -gt $lt_ac_max; then
3763 lt_ac_max=$lt_ac_count
3764 lt_cv_path_SED=$lt_ac_sed
3765 fi
3766 done
3767 done
3768
3769 fi
3770
3771 SED=$lt_cv_path_SED
3772 { echo "$as_me:$LINENO: result: $SED" >&5
3773 echo "${ECHO_T}$SED" >&6; }
3774
3775 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 # Extract the first word of "grep ggrep" to use in msg output
3781 if test -z "$GREP"; then
3782 set dummy grep ggrep; ac_prog_name=$2
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 ac_path_GREP_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_prog in grep ggrep; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3797 # Check for GNU ac_path_GREP and select it if it is found.
3798 # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3800 *GNU*)
3801 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802 *)
3803 ac_count=0
3804 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805 while :
3806 do
3807 cat "conftest.in" "conftest.in" >"conftest.tmp"
3808 mv "conftest.tmp" "conftest.in"
3809 cp "conftest.in" "conftest.nl"
3810 echo 'GREP' >> "conftest.nl"
3811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813 ac_count=`expr $ac_count + 1`
3814 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815 # Best one so far, save it but keep looking for a better one
3816 ac_cv_path_GREP="$ac_path_GREP"
3817 ac_path_GREP_max=$ac_count
3818 fi
3819 # 10*(2^10) chars as input seems more than enough
3820 test $ac_count -gt 10 && break
3821 done
3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 esac
3824
3825
3826 $ac_path_GREP_found && break 3
3827 done
3828 done
3829
3830 done
3831 IFS=$as_save_IFS
3832
3833
3834 fi
3835
3836 GREP="$ac_cv_path_GREP"
3837 if test -z "$GREP"; then
3838 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840 { (exit 1); exit 1; }; }
3841 fi
3842
3843 else
3844 ac_cv_path_GREP=$GREP
3845 fi
3846
3847
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851 GREP="$ac_cv_path_GREP"
3852
3853
3854 { echo "$as_me:$LINENO: checking for egrep" >&5
3855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860 then ac_cv_path_EGREP="$GREP -E"
3861 else
3862 # Extract the first word of "egrep" to use in msg output
3863 if test -z "$EGREP"; then
3864 set dummy egrep; ac_prog_name=$2
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in egrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3882 *GNU*)
3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 *)
3885 ac_count=0
3886 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887 while :
3888 do
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 ac_count=`expr $ac_count + 1`
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP="$ac_path_EGREP"
3899 ac_path_EGREP_max=$ac_count
3900 fi
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3903 done
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907
3908 $ac_path_EGREP_found && break 3
3909 done
3910 done
3911
3912 done
3913 IFS=$as_save_IFS
3914
3915
3916 fi
3917
3918 EGREP="$ac_cv_path_EGREP"
3919 if test -z "$EGREP"; then
3920 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922 { (exit 1); exit 1; }; }
3923 fi
3924
3925 else
3926 ac_cv_path_EGREP=$EGREP
3927 fi
3928
3929
3930 fi
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934 EGREP="$ac_cv_path_EGREP"
3935
3936
3937
3938 # Check whether --with-gnu-ld was given.
3939 if test "${with_gnu_ld+set}" = set; then
3940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3941 else
3942 with_gnu_ld=no
3943 fi
3944
3945 ac_prog=ld
3946 if test "$GCC" = yes; then
3947 # Check if gcc -print-prog-name=ld gives a path.
3948 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3949 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3950 case $host in
3951 *-*-mingw*)
3952 # gcc leaves a trailing carriage return which upsets mingw
3953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3954 *)
3955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3956 esac
3957 case $ac_prog in
3958 # Accept absolute paths.
3959 [\\/]* | ?:[\\/]*)
3960 re_direlt='/[^/][^/]*/\.\./'
3961 # Canonicalize the pathname of ld
3962 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3963 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3964 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3965 done
3966 test -z "$LD" && LD="$ac_prog"
3967 ;;
3968 "")
3969 # If it fails, then pretend we aren't using GCC.
3970 ac_prog=ld
3971 ;;
3972 *)
3973 # If it is relative, then search for the first ld in PATH.
3974 with_gnu_ld=unknown
3975 ;;
3976 esac
3977 elif test "$with_gnu_ld" = yes; then
3978 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3979 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3980 else
3981 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3982 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3983 fi
3984 if test "${lt_cv_path_LD+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if test -z "$LD"; then
3988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3989 for ac_dir in $PATH; do
3990 IFS="$lt_save_ifs"
3991 test -z "$ac_dir" && ac_dir=.
3992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3993 lt_cv_path_LD="$ac_dir/$ac_prog"
3994 # Check to see if the program is GNU ld. I'd rather use --version,
3995 # but apparently some variants of GNU ld only accept -v.
3996 # Break only if it was the GNU/non-GNU ld that we prefer.
3997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3998 *GNU* | *'with BFD'*)
3999 test "$with_gnu_ld" != no && break
4000 ;;
4001 *)
4002 test "$with_gnu_ld" != yes && break
4003 ;;
4004 esac
4005 fi
4006 done
4007 IFS="$lt_save_ifs"
4008 else
4009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4010 fi
4011 fi
4012
4013 LD="$lt_cv_path_LD"
4014 if test -n "$LD"; then
4015 { echo "$as_me:$LINENO: result: $LD" >&5
4016 echo "${ECHO_T}$LD" >&6; }
4017 else
4018 { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4020 fi
4021 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4022 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4023 { (exit 1); exit 1; }; }
4024 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4025 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4026 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4030 case `$LD -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
4032 lt_cv_prog_gnu_ld=yes
4033 ;;
4034 *)
4035 lt_cv_prog_gnu_ld=no
4036 ;;
4037 esac
4038 fi
4039 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4040 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4041 with_gnu_ld=$lt_cv_prog_gnu_ld
4042
4043
4044 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4045 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4046 if test "${lt_cv_ld_reload_flag+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 lt_cv_ld_reload_flag='-r'
4050 fi
4051 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4052 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4053 reload_flag=$lt_cv_ld_reload_flag
4054 case $reload_flag in
4055 "" | " "*) ;;
4056 *) reload_flag=" $reload_flag" ;;
4057 esac
4058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4059 case $host_os in
4060 darwin*)
4061 if test "$GCC" = yes; then
4062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4063 else
4064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065 fi
4066 ;;
4067 esac
4068
4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4071 if test "${lt_cv_path_NM+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$NM"; then
4075 # Let the user override the test.
4076 lt_cv_path_NM="$NM"
4077 else
4078 lt_nm_to_check="${ac_tool_prefix}nm"
4079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4080 lt_nm_to_check="$lt_nm_to_check nm"
4081 fi
4082 for lt_tmp_nm in $lt_nm_to_check; do
4083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4085 IFS="$lt_save_ifs"
4086 test -z "$ac_dir" && ac_dir=.
4087 tmp_nm="$ac_dir/$lt_tmp_nm"
4088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4089 # Check to see if the nm accepts a BSD-compat flag.
4090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091 # nm: unknown option "B" ignored
4092 # Tru64's nm complains that /dev/null is an invalid object file
4093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4094 */dev/null* | *'Invalid file or object type'*)
4095 lt_cv_path_NM="$tmp_nm -B"
4096 break
4097 ;;
4098 *)
4099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4100 */dev/null*)
4101 lt_cv_path_NM="$tmp_nm -p"
4102 break
4103 ;;
4104 *)
4105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4106 continue # so that we can try to find one that supports BSD flags
4107 ;;
4108 esac
4109 ;;
4110 esac
4111 fi
4112 done
4113 IFS="$lt_save_ifs"
4114 done
4115 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4116 fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4119 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4120 NM="$lt_cv_path_NM"
4121
4122 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4123 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4124 LN_S=$as_ln_s
4125 if test "$LN_S" = "ln -s"; then
4126 { echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6; }
4128 else
4129 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4130 echo "${ECHO_T}no, using $LN_S" >&6; }
4131 fi
4132
4133 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4134 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4135 if test "${lt_cv_deplibs_check_method+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 lt_cv_file_magic_cmd='$MAGIC_CMD'
4139 lt_cv_file_magic_test_file=
4140 lt_cv_deplibs_check_method='unknown'
4141 # Need to set the preceding variable on all platforms that support
4142 # interlibrary dependencies.
4143 # 'none' -- dependencies not supported.
4144 # `unknown' -- same as none, but documents that we really don't know.
4145 # 'pass_all' -- all dependencies passed with no checks.
4146 # 'test_compile' -- check by making test program.
4147 # 'file_magic [[regex]]' -- check by looking for files in library path
4148 # which responds to the $file_magic_cmd with a given extended regex.
4149 # If you have `file' or equivalent on your system and you're not sure
4150 # whether `pass_all' will *always* work, you probably want this one.
4151
4152 case $host_os in
4153 aix4* | aix5*)
4154 lt_cv_deplibs_check_method=pass_all
4155 ;;
4156
4157 beos*)
4158 lt_cv_deplibs_check_method=pass_all
4159 ;;
4160
4161 bsdi[45]*)
4162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4163 lt_cv_file_magic_cmd='/usr/bin/file -L'
4164 lt_cv_file_magic_test_file=/shlib/libc.so
4165 ;;
4166
4167 cygwin*)
4168 # func_win32_libid is a shell function defined in ltmain.sh
4169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4170 lt_cv_file_magic_cmd='func_win32_libid'
4171 ;;
4172
4173 mingw* | pw32*)
4174 # Base MSYS/MinGW do not provide the 'file' command needed by
4175 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4176 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4177 lt_cv_file_magic_cmd='$OBJDUMP -f'
4178 ;;
4179
4180 darwin* | rhapsody*)
4181 lt_cv_deplibs_check_method=pass_all
4182 ;;
4183
4184 freebsd* | dragonfly*)
4185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186 case $host_cpu in
4187 i*86 )
4188 # Not sure whether the presence of OpenBSD here was a mistake.
4189 # Let's accept both of them until this is cleared up.
4190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4191 lt_cv_file_magic_cmd=/usr/bin/file
4192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4193 ;;
4194 esac
4195 else
4196 lt_cv_deplibs_check_method=pass_all
4197 fi
4198 ;;
4199
4200 gnu*)
4201 lt_cv_deplibs_check_method=pass_all
4202 ;;
4203
4204 hpux10.20* | hpux11*)
4205 lt_cv_file_magic_cmd=/usr/bin/file
4206 case $host_cpu in
4207 ia64*)
4208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4210 ;;
4211 hppa*64*)
4212 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]'
4213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4214 ;;
4215 *)
4216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4217 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4218 ;;
4219 esac
4220 ;;
4221
4222 interix3*)
4223 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4225 ;;
4226
4227 irix5* | irix6* | nonstopux*)
4228 case $LD in
4229 *-32|*"-32 ") libmagic=32-bit;;
4230 *-n32|*"-n32 ") libmagic=N32;;
4231 *-64|*"-64 ") libmagic=64-bit;;
4232 *) libmagic=never-match;;
4233 esac
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237 # This must be Linux ELF.
4238 linux* | k*bsd*-gnu)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241
4242 netbsd* | netbsdelf*-gnu)
4243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4245 else
4246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4247 fi
4248 ;;
4249
4250 newos6*)
4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4252 lt_cv_file_magic_cmd=/usr/bin/file
4253 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4254 ;;
4255
4256 nto-qnx*)
4257 lt_cv_deplibs_check_method=unknown
4258 ;;
4259
4260 openbsd*)
4261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4263 else
4264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4265 fi
4266 ;;
4267
4268 osf3* | osf4* | osf5*)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
4271
4272 solaris*)
4273 lt_cv_deplibs_check_method=pass_all
4274 ;;
4275
4276 sysv4 | sysv4.3*)
4277 case $host_vendor in
4278 motorola)
4279 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]'
4280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4281 ;;
4282 ncr)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285 sequent)
4286 lt_cv_file_magic_cmd='/bin/file'
4287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4288 ;;
4289 sni)
4290 lt_cv_file_magic_cmd='/bin/file'
4291 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4292 lt_cv_file_magic_test_file=/lib/libc.so
4293 ;;
4294 siemens)
4295 lt_cv_deplibs_check_method=pass_all
4296 ;;
4297 pc)
4298 lt_cv_deplibs_check_method=pass_all
4299 ;;
4300 esac
4301 ;;
4302
4303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306 esac
4307
4308 fi
4309 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4310 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4311 file_magic_cmd=$lt_cv_file_magic_cmd
4312 deplibs_check_method=$lt_cv_deplibs_check_method
4313 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4314
4315
4316
4317
4318 # If no C compiler was specified, use CC.
4319 LTCC=${LTCC-"$CC"}
4320
4321 # If no C compiler flags were specified, use CFLAGS.
4322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4323
4324 # Allow CC to be a program name with arguments.
4325 compiler=$CC
4326
4327
4328 # Check whether --enable-libtool-lock was given.
4329 if test "${enable_libtool_lock+set}" = set; then
4330 enableval=$enable_libtool_lock;
4331 fi
4332
4333 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4334
4335 # Some flags need to be propagated to the compiler or linker for good
4336 # libtool support.
4337 case $host in
4338 ia64-*-hpux*)
4339 # Find out which ABI we are using.
4340 echo 'int i;' > conftest.$ac_ext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; then
4346 case `/usr/bin/file conftest.$ac_objext` in
4347 *ELF-32*)
4348 HPUX_IA64_MODE="32"
4349 ;;
4350 *ELF-64*)
4351 HPUX_IA64_MODE="64"
4352 ;;
4353 esac
4354 fi
4355 rm -rf conftest*
4356 ;;
4357 *-*-irix6*)
4358 # Find out which ABI we are using.
4359 echo '#line 4359 "configure"' > conftest.$ac_ext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; then
4365 if test "$lt_cv_prog_gnu_ld" = yes; then
4366 case `/usr/bin/file conftest.$ac_objext` in
4367 *32-bit*)
4368 LD="${LD-ld} -melf32bsmip"
4369 ;;
4370 *N32*)
4371 LD="${LD-ld} -melf32bmipn32"
4372 ;;
4373 *64-bit*)
4374 LD="${LD-ld} -melf64bmip"
4375 ;;
4376 esac
4377 else
4378 case `/usr/bin/file conftest.$ac_objext` in
4379 *32-bit*)
4380 LD="${LD-ld} -32"
4381 ;;
4382 *N32*)
4383 LD="${LD-ld} -n32"
4384 ;;
4385 *64-bit*)
4386 LD="${LD-ld} -64"
4387 ;;
4388 esac
4389 fi
4390 fi
4391 rm -rf conftest*
4392 ;;
4393
4394 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4395 # Find out which ABI we are using.
4396 echo 'int i;' > conftest.$ac_ext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 case `/usr/bin/file conftest.o` in
4403 *32-bit*)
4404 case $host in
4405 x86_64-*linux*)
4406 LD="${LD-ld} -m elf_i386"
4407 ;;
4408 ppc64-*linux*|powerpc64-*linux*)
4409 LD="${LD-ld} -m elf32ppclinux"
4410 ;;
4411 s390x-*linux*)
4412 LD="${LD-ld} -m elf_s390"
4413 ;;
4414 sparc64-*linux*)
4415 LD="${LD-ld} -m elf32_sparc"
4416 ;;
4417 esac
4418 ;;
4419 *64-bit*)
4420 case $host in
4421 x86_64-*linux*)
4422 LD="${LD-ld} -m elf_x86_64"
4423 ;;
4424 ppc*-*linux*|powerpc*-*linux*)
4425 LD="${LD-ld} -m elf64ppc"
4426 ;;
4427 s390*-*linux*)
4428 LD="${LD-ld} -m elf64_s390"
4429 ;;
4430 sparc*-*linux*)
4431 LD="${LD-ld} -m elf64_sparc"
4432 ;;
4433 esac
4434 ;;
4435 esac
4436 fi
4437 rm -rf conftest*
4438 ;;
4439
4440 *-*-sco3.2v5*)
4441 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4442 SAVE_CFLAGS="$CFLAGS"
4443 CFLAGS="$CFLAGS -belf"
4444 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4445 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4446 if test "${lt_cv_cc_needs_belf+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461
4462 int
4463 main ()
4464 {
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext conftest$ac_exeext
4471 if { (ac_try="$ac_link"
4472 case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_link") 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest$ac_exeext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 lt_cv_cc_needs_belf=yes
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 lt_cv_cc_needs_belf=no
4510 fi
4511
4512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4513 conftest$ac_exeext conftest.$ac_ext
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520 fi
4521 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4522 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4523 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4525 CFLAGS="$SAVE_CFLAGS"
4526 fi
4527 ;;
4528 sparc*-*solaris*)
4529 # Find out which ABI we are using.
4530 echo 'int i;' > conftest.$ac_ext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532 (eval $ac_compile) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; then
4536 case `/usr/bin/file conftest.o` in
4537 *64-bit*)
4538 case $lt_cv_prog_gnu_ld in
4539 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4540 *) LD="${LD-ld} -64" ;;
4541 esac
4542 ;;
4543 esac
4544 fi
4545 rm -rf conftest*
4546 ;;
4547
4548
4549 esac
4550
4551 need_locks="$enable_libtool_lock"
4552
4553
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4560 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4561 # On Suns, sometimes $CPP names a directory.
4562 if test -n "$CPP" && test -d "$CPP"; then
4563 CPP=
4564 fi
4565 if test -z "$CPP"; then
4566 if test "${ac_cv_prog_CPP+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 # Double quotes because CPP needs to be expanded
4570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4571 do
4572 ac_preproc_ok=false
4573 for ac_c_preproc_warn_flag in '' yes
4574 do
4575 # Use a header file that comes with gcc, so configuring glibc
4576 # with a fresh cross-compiler works.
4577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 # <limits.h> exists even on freestanding compilers.
4579 # On the NeXT, cc -E runs the code through the compiler's parser,
4580 # not just through cpp. "Syntax error" is here to catch this case.
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 #ifdef __STDC__
4588 # include <limits.h>
4589 #else
4590 # include <assert.h>
4591 #endif
4592 Syntax error
4593 _ACEOF
4594 if { (ac_try="$ac_cpp conftest.$ac_ext"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } >/dev/null; then
4607 if test -s conftest.err; then
4608 ac_cpp_err=$ac_c_preproc_warn_flag
4609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4610 else
4611 ac_cpp_err=
4612 fi
4613 else
4614 ac_cpp_err=yes
4615 fi
4616 if test -z "$ac_cpp_err"; then
4617 :
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 # Broken: fails on valid input.
4623 continue
4624 fi
4625
4626 rm -f conftest.err conftest.$ac_ext
4627
4628 # OK, works on sane cases. Now check whether nonexistent headers
4629 # can be detected and how.
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <ac_nonexistent.h>
4637 _ACEOF
4638 if { (ac_try="$ac_cpp conftest.$ac_ext"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } >/dev/null; then
4651 if test -s conftest.err; then
4652 ac_cpp_err=$ac_c_preproc_warn_flag
4653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4654 else
4655 ac_cpp_err=
4656 fi
4657 else
4658 ac_cpp_err=yes
4659 fi
4660 if test -z "$ac_cpp_err"; then
4661 # Broken: success on invalid input.
4662 continue
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 # Passes both tests.
4668 ac_preproc_ok=:
4669 break
4670 fi
4671
4672 rm -f conftest.err conftest.$ac_ext
4673
4674 done
4675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4676 rm -f conftest.err conftest.$ac_ext
4677 if $ac_preproc_ok; then
4678 break
4679 fi
4680
4681 done
4682 ac_cv_prog_CPP=$CPP
4683
4684 fi
4685 CPP=$ac_cv_prog_CPP
4686 else
4687 ac_cv_prog_CPP=$CPP
4688 fi
4689 { echo "$as_me:$LINENO: result: $CPP" >&5
4690 echo "${ECHO_T}$CPP" >&6; }
4691 ac_preproc_ok=false
4692 for ac_c_preproc_warn_flag in '' yes
4693 do
4694 # Use a header file that comes with gcc, so configuring glibc
4695 # with a fresh cross-compiler works.
4696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697 # <limits.h> exists even on freestanding compilers.
4698 # On the NeXT, cc -E runs the code through the compiler's parser,
4699 # not just through cpp. "Syntax error" is here to catch this case.
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 #ifdef __STDC__
4707 # include <limits.h>
4708 #else
4709 # include <assert.h>
4710 #endif
4711 Syntax error
4712 _ACEOF
4713 if { (ac_try="$ac_cpp conftest.$ac_ext"
4714 case "(($ac_try" in
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4717 esac
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } >/dev/null; then
4726 if test -s conftest.err; then
4727 ac_cpp_err=$ac_c_preproc_warn_flag
4728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4729 else
4730 ac_cpp_err=
4731 fi
4732 else
4733 ac_cpp_err=yes
4734 fi
4735 if test -z "$ac_cpp_err"; then
4736 :
4737 else
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 # Broken: fails on valid input.
4742 continue
4743 fi
4744
4745 rm -f conftest.err conftest.$ac_ext
4746
4747 # OK, works on sane cases. Now check whether nonexistent headers
4748 # can be detected and how.
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 #include <ac_nonexistent.h>
4756 _ACEOF
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null; then
4770 if test -s conftest.err; then
4771 ac_cpp_err=$ac_c_preproc_warn_flag
4772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4773 else
4774 ac_cpp_err=
4775 fi
4776 else
4777 ac_cpp_err=yes
4778 fi
4779 if test -z "$ac_cpp_err"; then
4780 # Broken: success on invalid input.
4781 continue
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 # Passes both tests.
4787 ac_preproc_ok=:
4788 break
4789 fi
4790
4791 rm -f conftest.err conftest.$ac_ext
4792
4793 done
4794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4795 rm -f conftest.err conftest.$ac_ext
4796 if $ac_preproc_ok; then
4797 :
4798 else
4799 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4800 See \`config.log' for more details." >&5
4801 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4802 See \`config.log' for more details." >&2;}
4803 { (exit 1); exit 1; }; }
4804 fi
4805
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4815 if test "${ac_cv_header_stdc+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #include <stdlib.h>
4825 #include <stdarg.h>
4826 #include <string.h>
4827 #include <float.h>
4828
4829 int
4830 main ()
4831 {
4832
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (ac_try="$ac_compile"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_compile") 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } &&
4851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4852 { (case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855 esac
4856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_try") 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_try") 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 ac_cv_header_stdc=yes
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 ac_cv_header_stdc=no
4877 fi
4878
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880
4881 if test $ac_cv_header_stdc = yes; then
4882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 #include <string.h>
4890
4891 _ACEOF
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893 $EGREP "memchr" >/dev/null 2>&1; then
4894 :
4895 else
4896 ac_cv_header_stdc=no
4897 fi
4898 rm -f conftest*
4899
4900 fi
4901
4902 if test $ac_cv_header_stdc = yes; then
4903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #include <stdlib.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "free" >/dev/null 2>&1; then
4915 :
4916 else
4917 ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
4923 if test $ac_cv_header_stdc = yes; then
4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925 if test "$cross_compiling" = yes; then
4926 :
4927 else
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 #include <ctype.h>
4935 #include <stdlib.h>
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939 #else
4940 # define ISLOWER(c) \
4941 (('a' <= (c) && (c) <= 'i') \
4942 || ('j' <= (c) && (c) <= 'r') \
4943 || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4945 #endif
4946
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4948 int
4949 main ()
4950 {
4951 int i;
4952 for (i = 0; i < 256; i++)
4953 if (XOR (islower (i), ISLOWER (i))
4954 || toupper (i) != TOUPPER (i))
4955 return 2;
4956 return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest$ac_exeext
4960 if { (ac_try="$ac_link"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_link") 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4970 { (case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973 esac
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_try") 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 :
4980 else
4981 echo "$as_me: program exited with status $ac_status" >&5
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ( exit $ac_status )
4986 ac_cv_header_stdc=no
4987 fi
4988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4989 fi
4990
4991
4992 fi
4993 fi
4994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4996 if test $ac_cv_header_stdc = yes; then
4997
4998 cat >>confdefs.h <<\_ACEOF
4999 #define STDC_HEADERS 1
5000 _ACEOF
5001
5002 fi
5003
5004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5015 inttypes.h stdint.h unistd.h
5016 do
5017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 $ac_includes_default
5030
5031 #include <$ac_header>
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (ac_try="$ac_compile"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_compile") 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5048 { (case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_try") 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest.$ac_objext'
5058 { (case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_try") 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 eval "$as_ac_Header=yes"
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 eval "$as_ac_Header=no"
5073 fi
5074
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 ac_res=`eval echo '${'$as_ac_Header'}'`
5078 { echo "$as_me:$LINENO: result: $ac_res" >&5
5079 echo "${ECHO_T}$ac_res" >&6; }
5080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5081 cat >>confdefs.h <<_ACEOF
5082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5083 _ACEOF
5084
5085 fi
5086
5087 done
5088
5089
5090
5091 for ac_header in dlfcn.h
5092 do
5093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 fi
5100 ac_res=`eval echo '${'$as_ac_Header'}'`
5101 { echo "$as_me:$LINENO: result: $ac_res" >&5
5102 echo "${ECHO_T}$ac_res" >&6; }
5103 else
5104 # Is the header compilable?
5105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5114 #include <$ac_header>
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_compile") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5131 { (case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_try") 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; } &&
5140 { ac_try='test -s conftest.$ac_objext'
5141 { (case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_try") 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_header_compiler=yes
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 ac_header_compiler=no
5156 fi
5157
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5160 echo "${ECHO_T}$ac_header_compiler" >&6; }
5161
5162 # Is the header present?
5163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <$ac_header>
5172 _ACEOF
5173 if { (ac_try="$ac_cpp conftest.$ac_ext"
5174 case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_c_preproc_warn_flag
5188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5189 else
5190 ac_cpp_err=
5191 fi
5192 else
5193 ac_cpp_err=yes
5194 fi
5195 if test -z "$ac_cpp_err"; then
5196 ac_header_preproc=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 ac_header_preproc=no
5202 fi
5203
5204 rm -f conftest.err conftest.$ac_ext
5205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206 echo "${ECHO_T}$ac_header_preproc" >&6; }
5207
5208 # So? What about this header?
5209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5210 yes:no: )
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5215 ac_header_preproc=yes
5216 ;;
5217 no:yes:* )
5218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5230 ( cat <<\_ASBOX
5231 ## ---------------------------------------- ##
5232 ## Report this to xcb (at] lists.freedesktop.org ##
5233 ## ---------------------------------------- ##
5234 _ASBOX
5235 ) | sed "s/^/$as_me: WARNING: /" >&2
5236 ;;
5237 esac
5238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 eval "$as_ac_Header=\$ac_header_preproc"
5244 fi
5245 ac_res=`eval echo '${'$as_ac_Header'}'`
5246 { echo "$as_me:$LINENO: result: $ac_res" >&5
5247 echo "${ECHO_T}$ac_res" >&6; }
5248
5249 fi
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h <<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5254
5255 fi
5256
5257 done
5258
5259 ac_ext=cpp
5260 ac_cpp='$CXXCPP $CPPFLAGS'
5261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5264 if test -z "$CXX"; then
5265 if test -n "$CCC"; then
5266 CXX=$CCC
5267 else
5268 if test -n "$ac_tool_prefix"; then
5269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5270 do
5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_CXX+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 if test -n "$CXX"; then
5279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 CXX=$ac_cv_prog_CXX
5299 if test -n "$CXX"; then
5300 { echo "$as_me:$LINENO: result: $CXX" >&5
5301 echo "${ECHO_T}$CXX" >&6; }
5302 else
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5305 fi
5306
5307
5308 test -n "$CXX" && break
5309 done
5310 fi
5311 if test -z "$CXX"; then
5312 ac_ct_CXX=$CXX
5313 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5314 do
5315 # Extract the first word of "$ac_prog", so it can be a program name with args.
5316 set dummy $ac_prog; ac_word=$2
5317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5319 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 if test -n "$ac_ct_CXX"; then
5323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_ac_ct_CXX="$ac_prog"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5343 if test -n "$ac_ct_CXX"; then
5344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5345 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5346 else
5347 { echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6; }
5349 fi
5350
5351
5352 test -n "$ac_ct_CXX" && break
5353 done
5354
5355 if test "x$ac_ct_CXX" = x; then
5356 CXX="g++"
5357 else
5358 case $cross_compiling:$ac_tool_warned in
5359 yes:)
5360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5361 whose name does not start with the host triplet. If you think this
5362 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5364 whose name does not start with the host triplet. If you think this
5365 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 CXX=$ac_ct_CXX
5369 fi
5370 fi
5371
5372 fi
5373 fi
5374 # Provide some information about the compiler.
5375 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5376 ac_compiler=`set X $ac_compile; echo $2`
5377 { (ac_try="$ac_compiler --version >&5"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_compiler --version >&5") 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }
5387 { (ac_try="$ac_compiler -v >&5"
5388 case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compiler -v >&5") 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }
5397 { (ac_try="$ac_compiler -V >&5"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compiler -V >&5") 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }
5407
5408 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5409 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5410 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419
5420 int
5421 main ()
5422 {
5423 #ifndef __GNUC__
5424 choke me
5425 #endif
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $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 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5446 { (case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_try") 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_try") 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
5465 ac_compiler_gnu=yes
5466 else
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 ac_compiler_gnu=no
5471 fi
5472
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5475
5476 fi
5477 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5478 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5479 GXX=`test $ac_compiler_gnu = yes && echo yes`
5480 ac_test_CXXFLAGS=${CXXFLAGS+set}
5481 ac_save_CXXFLAGS=$CXXFLAGS
5482 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5483 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5484 if test "${ac_cv_prog_cxx_g+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5488 ac_cxx_werror_flag=yes
5489 ac_cv_prog_cxx_g=no
5490 CXXFLAGS="-g"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497
5498 int
5499 main ()
5500 {
5501
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5521 { (case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_try") 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_try") 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_prog_cxx_g=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545 CXXFLAGS=""
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552
5553 int
5554 main ()
5555 {
5556
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5563 case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } &&
5575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5576 { (case "(($ac_try" in
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_try") 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_try") 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 :
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5601 CXXFLAGS="-g"
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608
5609 int
5610 main ()
5611 {
5612
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5619 case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5632 { (case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_try") 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645 esac
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_try") 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_cv_prog_cxx_g=yes
5652 else
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5655
5656
5657 fi
5658
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 fi
5661
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 fi
5664
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5667 fi
5668 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5670 if test "$ac_test_CXXFLAGS" = set; then
5671 CXXFLAGS=$ac_save_CXXFLAGS
5672 elif test $ac_cv_prog_cxx_g = yes; then
5673 if test "$GXX" = yes; then
5674 CXXFLAGS="-g -O2"
5675 else
5676 CXXFLAGS="-g"
5677 fi
5678 else
5679 if test "$GXX" = yes; then
5680 CXXFLAGS="-O2"
5681 else
5682 CXXFLAGS=
5683 fi
5684 fi
5685 ac_ext=cpp
5686 ac_cpp='$CXXCPP $CPPFLAGS'
5687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5690
5691 depcc="$CXX" am_compiler_list=
5692
5693 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5695 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5699 # We make a subdir and do the tests there. Otherwise we can end up
5700 # making bogus files that we don't know about and never remove. For
5701 # instance it was reported that on HP-UX the gcc test will end up
5702 # making a dummy file named `D' -- because `-MD' means `put the output
5703 # in D'.
5704 mkdir conftest.dir
5705 # Copy depcomp to subdir because otherwise we won't find it if we're
5706 # using a relative directory.
5707 cp "$am_depcomp" conftest.dir
5708 cd conftest.dir
5709 # We will build objects and dependencies in a subdirectory because
5710 # it helps to detect inapplicable dependency modes. For instance
5711 # both Tru64's cc and ICC support -MD to output dependencies as a
5712 # side effect of compilation, but ICC will put the dependencies in
5713 # the current directory while Tru64 will put them in the object
5714 # directory.
5715 mkdir sub
5716
5717 am_cv_CXX_dependencies_compiler_type=none
5718 if test "$am_compiler_list" = ""; then
5719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5720 fi
5721 for depmode in $am_compiler_list; do
5722 # Setup a source with many dependencies, because some compilers
5723 # like to wrap large dependency lists on column 80 (with \), and
5724 # we should not choose a depcomp mode which is confused by this.
5725 #
5726 # We need to recreate these files for each test, as the compiler may
5727 # overwrite some of them when testing with obscure command lines.
5728 # This happens at least with the AIX C compiler.
5729 : > sub/conftest.c
5730 for i in 1 2 3 4 5 6; do
5731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5733 # Solaris 8's {/usr,}/bin/sh.
5734 touch sub/conftst$i.h
5735 done
5736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5737
5738 case $depmode in
5739 nosideeffect)
5740 # after this tag, mechanisms are not by side-effect, so they'll
5741 # only be used when explicitly requested
5742 if test "x$enable_dependency_tracking" = xyes; then
5743 continue
5744 else
5745 break
5746 fi
5747 ;;
5748 none) break ;;
5749 esac
5750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5751 # mode. It turns out that the SunPro C++ compiler does not properly
5752 # handle `-M -o', and we need to detect this.
5753 if depmode=$depmode \
5754 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5756 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5757 >/dev/null 2>conftest.err &&
5758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5759 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5761 # icc doesn't choke on unknown options, it will just issue warnings
5762 # or remarks (even with -Werror). So we grep stderr for any message
5763 # that says an option was ignored or not supported.
5764 # When given -MP, icc 7.0 and 7.1 complain thusly:
5765 # icc: Command line warning: ignoring option '-M'; no argument required
5766 # The diagnosis changed in icc 8.0:
5767 # icc: Command line remark: option '-MP' not supported
5768 if (grep 'ignoring option' conftest.err ||
5769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5770 am_cv_CXX_dependencies_compiler_type=$depmode
5771 break
5772 fi
5773 fi
5774 done
5775
5776 cd ..
5777 rm -rf conftest.dir
5778 else
5779 am_cv_CXX_dependencies_compiler_type=none
5780 fi
5781
5782 fi
5783 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5784 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5785 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5786
5787
5788
5789 if
5790 test "x$enable_dependency_tracking" != xno \
5791 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5792 am__fastdepCXX_TRUE=
5793 am__fastdepCXX_FALSE='#'
5794 else
5795 am__fastdepCXX_TRUE='#'
5796 am__fastdepCXX_FALSE=
5797 fi
5798
5799
5800
5801
5802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5804 (test "X$CXX" != "Xg++"))) ; then
5805 ac_ext=cpp
5806 ac_cpp='$CXXCPP $CPPFLAGS'
5807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5810 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5811 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5812 if test -z "$CXXCPP"; then
5813 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 # Double quotes because CXXCPP needs to be expanded
5817 for CXXCPP in "$CXX -E" "/lib/cpp"
5818 do
5819 ac_preproc_ok=false
5820 for ac_cxx_preproc_warn_flag in '' yes
5821 do
5822 # Use a header file that comes with gcc, so configuring glibc
5823 # with a fresh cross-compiler works.
5824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 # <limits.h> exists even on freestanding compilers.
5826 # On the NeXT, cc -E runs the code through the compiler's parser,
5827 # not just through cpp. "Syntax error" is here to catch this case.
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #ifdef __STDC__
5835 # include <limits.h>
5836 #else
5837 # include <assert.h>
5838 #endif
5839 Syntax error
5840 _ACEOF
5841 if { (ac_try="$ac_cpp conftest.$ac_ext"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev/null; then
5854 if test -s conftest.err; then
5855 ac_cpp_err=$ac_cxx_preproc_warn_flag
5856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5857 else
5858 ac_cpp_err=
5859 fi
5860 else
5861 ac_cpp_err=yes
5862 fi
5863 if test -z "$ac_cpp_err"; then
5864 :
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 # Broken: fails on valid input.
5870 continue
5871 fi
5872
5873 rm -f conftest.err conftest.$ac_ext
5874
5875 # OK, works on sane cases. Now check whether nonexistent headers
5876 # can be detected and how.
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <ac_nonexistent.h>
5884 _ACEOF
5885 if { (ac_try="$ac_cpp conftest.$ac_ext"
5886 case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } >/dev/null; then
5898 if test -s conftest.err; then
5899 ac_cpp_err=$ac_cxx_preproc_warn_flag
5900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5901 else
5902 ac_cpp_err=
5903 fi
5904 else
5905 ac_cpp_err=yes
5906 fi
5907 if test -z "$ac_cpp_err"; then
5908 # Broken: success on invalid input.
5909 continue
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5913
5914 # Passes both tests.
5915 ac_preproc_ok=:
5916 break
5917 fi
5918
5919 rm -f conftest.err conftest.$ac_ext
5920
5921 done
5922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5923 rm -f conftest.err conftest.$ac_ext
5924 if $ac_preproc_ok; then
5925 break
5926 fi
5927
5928 done
5929 ac_cv_prog_CXXCPP=$CXXCPP
5930
5931 fi
5932 CXXCPP=$ac_cv_prog_CXXCPP
5933 else
5934 ac_cv_prog_CXXCPP=$CXXCPP
5935 fi
5936 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5937 echo "${ECHO_T}$CXXCPP" >&6; }
5938 ac_preproc_ok=false
5939 for ac_cxx_preproc_warn_flag in '' yes
5940 do
5941 # Use a header file that comes with gcc, so configuring glibc
5942 # with a fresh cross-compiler works.
5943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5944 # <limits.h> exists even on freestanding compilers.
5945 # On the NeXT, cc -E runs the code through the compiler's parser,
5946 # not just through cpp. "Syntax error" is here to catch this case.
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #ifdef __STDC__
5954 # include <limits.h>
5955 #else
5956 # include <assert.h>
5957 #endif
5958 Syntax error
5959 _ACEOF
5960 if { (ac_try="$ac_cpp conftest.$ac_ext"
5961 case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } >/dev/null; then
5973 if test -s conftest.err; then
5974 ac_cpp_err=$ac_cxx_preproc_warn_flag
5975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5976 else
5977 ac_cpp_err=
5978 fi
5979 else
5980 ac_cpp_err=yes
5981 fi
5982 if test -z "$ac_cpp_err"; then
5983 :
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 # Broken: fails on valid input.
5989 continue
5990 fi
5991
5992 rm -f conftest.err conftest.$ac_ext
5993
5994 # OK, works on sane cases. Now check whether nonexistent headers
5995 # can be detected and how.
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #include <ac_nonexistent.h>
6003 _ACEOF
6004 if { (ac_try="$ac_cpp conftest.$ac_ext"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } >/dev/null; then
6017 if test -s conftest.err; then
6018 ac_cpp_err=$ac_cxx_preproc_warn_flag
6019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6020 else
6021 ac_cpp_err=
6022 fi
6023 else
6024 ac_cpp_err=yes
6025 fi
6026 if test -z "$ac_cpp_err"; then
6027 # Broken: success on invalid input.
6028 continue
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 # Passes both tests.
6034 ac_preproc_ok=:
6035 break
6036 fi
6037
6038 rm -f conftest.err conftest.$ac_ext
6039
6040 done
6041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6042 rm -f conftest.err conftest.$ac_ext
6043 if $ac_preproc_ok; then
6044 :
6045 else
6046 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6047 See \`config.log' for more details." >&5
6048 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6049 See \`config.log' for more details." >&2;}
6050 { (exit 1); exit 1; }; }
6051 fi
6052
6053 ac_ext=cpp
6054 ac_cpp='$CXXCPP $CPPFLAGS'
6055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6058
6059 fi
6060
6061
6062 ac_ext=f
6063 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6064 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6066 if test -n "$ac_tool_prefix"; then
6067 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6068 do
6069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6073 if test "${ac_cv_prog_F77+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 if test -n "$F77"; then
6077 ac_cv_prog_F77="$F77" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 F77=$ac_cv_prog_F77
6097 if test -n "$F77"; then
6098 { echo "$as_me:$LINENO: result: $F77" >&5
6099 echo "${ECHO_T}$F77" >&6; }
6100 else
6101 { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6103 fi
6104
6105
6106 test -n "$F77" && break
6107 done
6108 fi
6109 if test -z "$F77"; then
6110 ac_ct_F77=$F77
6111 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6112 do
6113 # Extract the first word of "$ac_prog", so it can be a program name with args.
6114 set dummy $ac_prog; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 if test -n "$ac_ct_F77"; then
6121 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_ac_ct_F77="$ac_prog"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6141 if test -n "$ac_ct_F77"; then
6142 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6143 echo "${ECHO_T}$ac_ct_F77" >&6; }
6144 else
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6147 fi
6148
6149
6150 test -n "$ac_ct_F77" && break
6151 done
6152
6153 if test "x$ac_ct_F77" = x; then
6154 F77=""
6155 else
6156 case $cross_compiling:$ac_tool_warned in
6157 yes:)
6158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6159 whose name does not start with the host triplet. If you think this
6160 configuration is useful to you, please write to autoconf@gnu.org." >&5
6161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6162 whose name does not start with the host triplet. If you think this
6163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166 F77=$ac_ct_F77
6167 fi
6168 fi
6169
6170
6171 # Provide some information about the compiler.
6172 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6173 ac_compiler=`set X $ac_compile; echo $2`
6174 { (ac_try="$ac_compiler --version >&5"
6175 case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compiler --version >&5") 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }
6184 { (ac_try="$ac_compiler -v >&5"
6185 case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compiler -v >&5") 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }
6194 { (ac_try="$ac_compiler -V >&5"
6195 case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compiler -V >&5") 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }
6204 rm -f a.out
6205
6206 # If we don't use `.F' as extension, the preprocessor is not run on the
6207 # input file. (Note that this only needs to work for GNU compilers.)
6208 ac_save_ext=$ac_ext
6209 ac_ext=F
6210 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6211 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6212 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 cat >conftest.$ac_ext <<_ACEOF
6216 program main
6217 #ifndef __GNUC__
6218 choke me
6219 #endif
6220
6221 end
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_try") 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_compiler_gnu=yes
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ac_compiler_gnu=no
6263 fi
6264
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6267
6268 fi
6269 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6270 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6271 ac_ext=$ac_save_ext
6272 ac_test_FFLAGS=${FFLAGS+set}
6273 ac_save_FFLAGS=$FFLAGS
6274 FFLAGS=
6275 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6276 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6277 if test "${ac_cv_prog_f77_g+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 FFLAGS=-g
6281 cat >conftest.$ac_ext <<_ACEOF
6282 program main
6283
6284 end
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (ac_try="$ac_compile"
6288 case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6301 { (case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_try") 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_try") 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_cv_prog_f77_g=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_cv_prog_f77_g=no
6326 fi
6327
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330 fi
6331 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6332 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6333 if test "$ac_test_FFLAGS" = set; then
6334 FFLAGS=$ac_save_FFLAGS
6335 elif test $ac_cv_prog_f77_g = yes; then
6336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6337 FFLAGS="-g -O2"
6338 else
6339 FFLAGS="-g"
6340 fi
6341 else
6342 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6343 FFLAGS="-O2"
6344 else
6345 FFLAGS=
6346 fi
6347 fi
6348
6349 G77=`test $ac_compiler_gnu = yes && echo yes`
6350 ac_ext=c
6351 ac_cpp='$CPP $CPPFLAGS'
6352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6355
6356
6357
6358 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6359
6360 # find the maximum length of command line arguments
6361 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6362 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 i=0
6367 teststring="ABCD"
6368
6369 case $build_os in
6370 msdosdjgpp*)
6371 # On DJGPP, this test can blow up pretty badly due to problems in libc
6372 # (any single argument exceeding 2000 bytes causes a buffer overrun
6373 # during glob expansion). Even if it were fixed, the result of this
6374 # check would be larger than it should be.
6375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6376 ;;
6377
6378 gnu*)
6379 # Under GNU Hurd, this test is not required because there is
6380 # no limit to the length of command line arguments.
6381 # Libtool will interpret -1 as no limit whatsoever
6382 lt_cv_sys_max_cmd_len=-1;
6383 ;;
6384
6385 cygwin* | mingw*)
6386 # On Win9x/ME, this test blows up -- it succeeds, but takes
6387 # about 5 minutes as the teststring grows exponentially.
6388 # Worse, since 9x/ME are not pre-emptively multitasking,
6389 # you end up with a "frozen" computer, even though with patience
6390 # the test eventually succeeds (with a max line length of 256k).
6391 # Instead, let's just punt: use the minimum linelength reported by
6392 # all of the supported platforms: 8192 (on NT/2K/XP).
6393 lt_cv_sys_max_cmd_len=8192;
6394 ;;
6395
6396 amigaos*)
6397 # On AmigaOS with pdksh, this test takes hours, literally.
6398 # So we just punt and use a minimum line length of 8192.
6399 lt_cv_sys_max_cmd_len=8192;
6400 ;;
6401
6402 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6403 # This has been around since 386BSD, at least. Likely further.
6404 if test -x /sbin/sysctl; then
6405 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6406 elif test -x /usr/sbin/sysctl; then
6407 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6408 else
6409 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6410 fi
6411 # And add a safety zone
6412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6414 ;;
6415
6416 interix*)
6417 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6418 lt_cv_sys_max_cmd_len=196608
6419 ;;
6420
6421 osf*)
6422 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6423 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6424 # nice to cause kernel panics so lets avoid the loop below.
6425 # First set a reasonable default.
6426 lt_cv_sys_max_cmd_len=16384
6427 #
6428 if test -x /sbin/sysconfig; then
6429 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6430 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6431 esac
6432 fi
6433 ;;
6434 sco3.2v5*)
6435 lt_cv_sys_max_cmd_len=102400
6436 ;;
6437 sysv5* | sco5v6* | sysv4.2uw2*)
6438 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6439 if test -n "$kargmax"; then
6440 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6441 else
6442 lt_cv_sys_max_cmd_len=32768
6443 fi
6444 ;;
6445 *)
6446 # If test is not a shell built-in, we'll probably end up computing a
6447 # maximum length that is only half of the actual maximum length, but
6448 # we can't tell.
6449 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6450 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6451 = "XX$teststring") >/dev/null 2>&1 &&
6452 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6453 lt_cv_sys_max_cmd_len=$new_result &&
6454 test $i != 17 # 1/2 MB should be enough
6455 do
6456 i=`expr $i + 1`
6457 teststring=$teststring$teststring
6458 done
6459 teststring=
6460 # Add a significant safety factor because C++ compilers can tack on massive
6461 # amounts of additional arguments before passing them to the linker.
6462 # It appears as though 1/2 is a usable value.
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6464 ;;
6465 esac
6466
6467 fi
6468
6469 if test -n $lt_cv_sys_max_cmd_len ; then
6470 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6472 else
6473 { echo "$as_me:$LINENO: result: none" >&5
6474 echo "${ECHO_T}none" >&6; }
6475 fi
6476
6477
6478
6479
6480 # Check for command to grab the raw symbol name followed by C symbol from nm.
6481 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6482 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486
6487 # These are sane defaults that work on at least a few old systems.
6488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6489
6490 # Character class describing NM global symbol codes.
6491 symcode='[BCDEGRST]'
6492
6493 # Regexp to match symbols that can be accessed directly from C.
6494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6495
6496 # Transform an extracted symbol line into a proper C declaration
6497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6498
6499 # Transform an extracted symbol line into symbol name and symbol address
6500 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'"
6501
6502 # Define system-specific variables.
6503 case $host_os in
6504 aix*)
6505 symcode='[BCDT]'
6506 ;;
6507 cygwin* | mingw* | pw32*)
6508 symcode='[ABCDGISTW]'
6509 ;;
6510 hpux*) # Its linker distinguishes data from code symbols
6511 if test "$host_cpu" = ia64; then
6512 symcode='[ABCDEGRST]'
6513 fi
6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515 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'"
6516 ;;
6517 linux* | k*bsd*-gnu)
6518 if test "$host_cpu" = ia64; then
6519 symcode='[ABCDGIRSTW]'
6520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6521 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'"
6522 fi
6523 ;;
6524 irix* | nonstopux*)
6525 symcode='[BCDEGRST]'
6526 ;;
6527 osf*)
6528 symcode='[BCDEGQRST]'
6529 ;;
6530 solaris*)
6531 symcode='[BDRT]'
6532 ;;
6533 sco3.2v5*)
6534 symcode='[DT]'
6535 ;;
6536 sysv4.2uw2*)
6537 symcode='[DT]'
6538 ;;
6539 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6540 symcode='[ABDT]'
6541 ;;
6542 sysv4)
6543 symcode='[DFNSTU]'
6544 ;;
6545 esac
6546
6547 # Handle CRLF in mingw tool chain
6548 opt_cr=
6549 case $build_os in
6550 mingw*)
6551 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6552 ;;
6553 esac
6554
6555 # If we're using GNU nm, then use its standard symbol codes.
6556 case `$NM -V 2>&1` in
6557 *GNU* | *'with BFD'*)
6558 symcode='[ABCDGIRSTW]' ;;
6559 esac
6560
6561 # Try without a prefix undercore, then with it.
6562 for ac_symprfx in "" "_"; do
6563
6564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565 symxfrm="\\1 $ac_symprfx\\2 \\2"
6566
6567 # Write the raw and C identifiers.
6568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6569
6570 # Check to see that the pipe works correctly.
6571 pipe_works=no
6572
6573 rm -f conftest*
6574 cat > conftest.$ac_ext <<EOF
6575 #ifdef __cplusplus
6576 extern "C" {
6577 #endif
6578 char nm_test_var;
6579 void nm_test_func(){}
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 EOF
6585
6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587 (eval $ac_compile) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; then
6591 # Now try to grab the symbols.
6592 nlist=conftest.nm
6593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && test -s "$nlist"; then
6598 # Try sorting and uniquifying the output.
6599 if sort "$nlist" | uniq > "$nlist"T; then
6600 mv -f "$nlist"T "$nlist"
6601 else
6602 rm -f "$nlist"T
6603 fi
6604
6605 # Make sure that we snagged all the symbols we need.
6606 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6607 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6608 cat <<EOF > conftest.$ac_ext
6609 #ifdef __cplusplus
6610 extern "C" {
6611 #endif
6612
6613 EOF
6614 # Now generate the symbol file.
6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6616
6617 cat <<EOF >> conftest.$ac_ext
6618 #if defined (__STDC__) && __STDC__
6619 # define lt_ptr_t void *
6620 #else
6621 # define lt_ptr_t char *
6622 # define const
6623 #endif
6624
6625 /* The mapping between symbol names and symbols. */
6626 const struct {
6627 const char *name;
6628 lt_ptr_t address;
6629 }
6630 lt_preloaded_symbols[] =
6631 {
6632 EOF
6633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6634 cat <<\EOF >> conftest.$ac_ext
6635 {0, (lt_ptr_t) 0}
6636 };
6637
6638 #ifdef __cplusplus
6639 }
6640 #endif
6641 EOF
6642 # Now try linking the two files.
6643 mv conftest.$ac_objext conftstm.$ac_objext
6644 lt_save_LIBS="$LIBS"
6645 lt_save_CFLAGS="$CFLAGS"
6646 LIBS="conftstm.$ac_objext"
6647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6653 pipe_works=yes
6654 fi
6655 LIBS="$lt_save_LIBS"
6656 CFLAGS="$lt_save_CFLAGS"
6657 else
6658 echo "cannot find nm_test_func in $nlist" >&5
6659 fi
6660 else
6661 echo "cannot find nm_test_var in $nlist" >&5
6662 fi
6663 else
6664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665 fi
6666 else
6667 echo "$progname: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 fi
6670 rm -f conftest* conftst*
6671
6672 # Do not use the global_symbol_pipe unless it works.
6673 if test "$pipe_works" = yes; then
6674 break
6675 else
6676 lt_cv_sys_global_symbol_pipe=
6677 fi
6678 done
6679
6680 fi
6681
6682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6683 lt_cv_sys_global_symbol_to_cdecl=
6684 fi
6685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6686 { echo "$as_me:$LINENO: result: failed" >&5
6687 echo "${ECHO_T}failed" >&6; }
6688 else
6689 { echo "$as_me:$LINENO: result: ok" >&5
6690 echo "${ECHO_T}ok" >&6; }
6691 fi
6692
6693 { echo "$as_me:$LINENO: checking for objdir" >&5
6694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6695 if test "${lt_cv_objdir+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698 rm -f .libs 2>/dev/null
6699 mkdir .libs 2>/dev/null
6700 if test -d .libs; then
6701 lt_cv_objdir=.libs
6702 else
6703 # MS-DOS does not allow filenames that begin with a dot.
6704 lt_cv_objdir=_libs
6705 fi
6706 rmdir .libs 2>/dev/null
6707 fi
6708 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6709 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6710 objdir=$lt_cv_objdir
6711
6712
6713
6714
6715
6716 case $host_os in
6717 aix3*)
6718 # AIX sometimes has problems with the GCC collect2 program. For some
6719 # reason, if we set the COLLECT_NAMES environment variable, the problems
6720 # vanish in a puff of smoke.
6721 if test "X${COLLECT_NAMES+set}" != Xset; then
6722 COLLECT_NAMES=
6723 export COLLECT_NAMES
6724 fi
6725 ;;
6726 esac
6727
6728 # Sed substitution that helps us do robust quoting. It backslashifies
6729 # metacharacters that are still active within double-quoted strings.
6730 Xsed='sed -e 1s/^X//'
6731 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6732
6733 # Same as above, but do not quote variable references.
6734 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6735
6736 # Sed substitution to delay expansion of an escaped shell variable in a
6737 # double_quote_subst'ed string.
6738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6739
6740 # Sed substitution to avoid accidental globbing in evaled expressions
6741 no_glob_subst='s/\*/\\\*/g'
6742
6743 # Constants:
6744 rm="rm -f"
6745
6746 # Global variables:
6747 default_ofile=libtool
6748 can_build_shared=yes
6749
6750 # All known linkers require a `.a' archive for static linking (except MSVC,
6751 # which needs '.lib').
6752 libext=a
6753 ltmain="$ac_aux_dir/ltmain.sh"
6754 ofile="$default_ofile"
6755 with_gnu_ld="$lt_cv_prog_gnu_ld"
6756
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ar; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_AR+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 if test -n "$AR"; then
6766 ac_cv_prog_AR="$AR" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_AR="${ac_tool_prefix}ar"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 AR=$ac_cv_prog_AR
6786 if test -n "$AR"; then
6787 { echo "$as_me:$LINENO: result: $AR" >&5
6788 echo "${ECHO_T}$AR" >&6; }
6789 else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_AR"; then
6797 ac_ct_AR=$AR
6798 # Extract the first word of "ar", so it can be a program name with args.
6799 set dummy ar; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 if test -n "$ac_ct_AR"; then
6806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_AR="ar"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6826 if test -n "$ac_ct_AR"; then
6827 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6828 echo "${ECHO_T}$ac_ct_AR" >&6; }
6829 else
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6832 fi
6833
6834 if test "x$ac_ct_AR" = x; then
6835 AR="false"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet. If you think this
6841 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6843 whose name does not start with the host triplet. If you think this
6844 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 AR=$ac_ct_AR
6848 fi
6849 else
6850 AR="$ac_cv_prog_AR"
6851 fi
6852
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6885 else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925 else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6928 fi
6929
6930 if test "x$ac_ct_RANLIB" = x; then
6931 RANLIB=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943 RANLIB=$ac_ct_RANLIB
6944 fi
6945 else
6946 RANLIB="$ac_cv_prog_RANLIB"
6947 fi
6948
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}strip; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_prog_STRIP+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 if test -n "$STRIP"; then
6958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 STRIP=$ac_cv_prog_STRIP
6978 if test -n "$STRIP"; then
6979 { echo "$as_me:$LINENO: result: $STRIP" >&5
6980 echo "${ECHO_T}$STRIP" >&6; }
6981 else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987 fi
6988 if test -z "$ac_cv_prog_STRIP"; then
6989 ac_ct_STRIP=$STRIP
6990 # Extract the first word of "strip", so it can be a program name with args.
6991 set dummy strip; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 if test -n "$ac_ct_STRIP"; then
6998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_prog_ac_ct_STRIP="strip"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7018 if test -n "$ac_ct_STRIP"; then
7019 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7020 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7021 else
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026 if test "x$ac_ct_STRIP" = x; then
7027 STRIP=":"
7028 else
7029 case $cross_compiling:$ac_tool_warned in
7030 yes:)
7031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7032 whose name does not start with the host triplet. If you think this
7033 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7035 whose name does not start with the host triplet. If you think this
7036 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7037 ac_tool_warned=yes ;;
7038 esac
7039 STRIP=$ac_ct_STRIP
7040 fi
7041 else
7042 STRIP="$ac_cv_prog_STRIP"
7043 fi
7044
7045
7046 old_CC="$CC"
7047 old_CFLAGS="$CFLAGS"
7048
7049 # Set sane defaults for various variables
7050 test -z "$AR" && AR=ar
7051 test -z "$AR_FLAGS" && AR_FLAGS=cru
7052 test -z "$AS" && AS=as
7053 test -z "$CC" && CC=cc
7054 test -z "$LTCC" && LTCC=$CC
7055 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7056 test -z "$DLLTOOL" && DLLTOOL=dlltool
7057 test -z "$LD" && LD=ld
7058 test -z "$LN_S" && LN_S="ln -s"
7059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7060 test -z "$NM" && NM=nm
7061 test -z "$SED" && SED=sed
7062 test -z "$OBJDUMP" && OBJDUMP=objdump
7063 test -z "$RANLIB" && RANLIB=:
7064 test -z "$STRIP" && STRIP=:
7065 test -z "$ac_objext" && ac_objext=o
7066
7067 # Determine commands to create old-style static archives.
7068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7069 old_postinstall_cmds='chmod 644 $oldlib'
7070 old_postuninstall_cmds=
7071
7072 if test -n "$RANLIB"; then
7073 case $host_os in
7074 openbsd*)
7075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7076 ;;
7077 *)
7078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7079 ;;
7080 esac
7081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7082 fi
7083
7084 for cc_temp in $compiler""; do
7085 case $cc_temp in
7086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7088 \-*) ;;
7089 *) break;;
7090 esac
7091 done
7092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7093
7094
7095 # Only perform the check for file, if the check method requires it
7096 case $deplibs_check_method in
7097 file_magic*)
7098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7099 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 case $MAGIC_CMD in
7105 [\\/*] | ?:[\\/]*)
7106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 lt_save_MAGIC_CMD="$MAGIC_CMD"
7110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7112 for ac_dir in $ac_dummy; do
7113 IFS="$lt_save_ifs"
7114 test -z "$ac_dir" && ac_dir=.
7115 if test -f $ac_dir/${ac_tool_prefix}file; then
7116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7117 if test -n "$file_magic_test_file"; then
7118 case $deplibs_check_method in
7119 "file_magic "*)
7120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7123 $EGREP "$file_magic_regex" > /dev/null; then
7124 :
7125 else
7126 cat <<EOF 1>&2
7127
7128 *** Warning: the command libtool uses to detect shared libraries,
7129 *** $file_magic_cmd, produces output that libtool cannot recognize.
7130 *** The result is that libtool may fail to recognize shared libraries
7131 *** as such. This will affect the creation of libtool libraries that
7132 *** depend on shared libraries, but programs linked with such libtool
7133 *** libraries will work regardless of this problem. Nevertheless, you
7134 *** may want to report the problem to your system manager and/or to
7135 *** bug-libtool@gnu.org
7136
7137 EOF
7138 fi ;;
7139 esac
7140 fi
7141 break
7142 fi
7143 done
7144 IFS="$lt_save_ifs"
7145 MAGIC_CMD="$lt_save_MAGIC_CMD"
7146 ;;
7147 esac
7148 fi
7149
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if test -n "$MAGIC_CMD"; then
7152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7153 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7154 else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159 if test -z "$lt_cv_path_MAGIC_CMD"; then
7160 if test -n "$ac_tool_prefix"; then
7161 { echo "$as_me:$LINENO: checking for file" >&5
7162 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 case $MAGIC_CMD in
7167 [\\/*] | ?:[\\/]*)
7168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169 ;;
7170 *)
7171 lt_save_MAGIC_CMD="$MAGIC_CMD"
7172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7174 for ac_dir in $ac_dummy; do
7175 IFS="$lt_save_ifs"
7176 test -z "$ac_dir" && ac_dir=.
7177 if test -f $ac_dir/file; then
7178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7179 if test -n "$file_magic_test_file"; then
7180 case $deplibs_check_method in
7181 "file_magic "*)
7182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7185 $EGREP "$file_magic_regex" > /dev/null; then
7186 :
7187 else
7188 cat <<EOF 1>&2
7189
7190 *** Warning: the command libtool uses to detect shared libraries,
7191 *** $file_magic_cmd, produces output that libtool cannot recognize.
7192 *** The result is that libtool may fail to recognize shared libraries
7193 *** as such. This will affect the creation of libtool libraries that
7194 *** depend on shared libraries, but programs linked with such libtool
7195 *** libraries will work regardless of this problem. Nevertheless, you
7196 *** may want to report the problem to your system manager and/or to
7197 *** bug-libtool@gnu.org
7198
7199 EOF
7200 fi ;;
7201 esac
7202 fi
7203 break
7204 fi
7205 done
7206 IFS="$lt_save_ifs"
7207 MAGIC_CMD="$lt_save_MAGIC_CMD"
7208 ;;
7209 esac
7210 fi
7211
7212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213 if test -n "$MAGIC_CMD"; then
7214 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7215 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7216 else
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7220
7221 else
7222 MAGIC_CMD=:
7223 fi
7224 fi
7225
7226 fi
7227 ;;
7228 esac
7229
7230 enable_dlopen=no
7231 enable_win32_dll=no
7232
7233 # Check whether --enable-libtool-lock was given.
7234 if test "${enable_libtool_lock+set}" = set; then
7235 enableval=$enable_libtool_lock;
7236 fi
7237
7238 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7239
7240
7241 # Check whether --with-pic was given.
7242 if test "${with_pic+set}" = set; then
7243 withval=$with_pic; pic_mode="$withval"
7244 else
7245 pic_mode=default
7246 fi
7247
7248 test -z "$pic_mode" && pic_mode=default
7249
7250 # Use C for the default configuration in the libtool script
7251 tagname=
7252 lt_save_CC="$CC"
7253 ac_ext=c
7254 ac_cpp='$CPP $CPPFLAGS'
7255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258
7259
7260 # Source file extension for C test sources.
7261 ac_ext=c
7262
7263 # Object file extension for compiled C test sources.
7264 objext=o
7265 objext=$objext
7266
7267 # Code to be used in simple compile tests
7268 lt_simple_compile_test_code="int some_variable = 0;\n"
7269
7270 # Code to be used in simple link tests
7271 lt_simple_link_test_code='int main(){return(0);}\n'
7272
7273
7274 # If no C compiler was specified, use CC.
7275 LTCC=${LTCC-"$CC"}
7276
7277 # If no C compiler flags were specified, use CFLAGS.
7278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7279
7280 # Allow CC to be a program name with arguments.
7281 compiler=$CC
7282
7283
7284 # save warnings/boilerplate of simple test code
7285 ac_outfile=conftest.$ac_objext
7286 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7288 _lt_compiler_boilerplate=`cat conftest.err`
7289 $rm conftest*
7290
7291 ac_outfile=conftest.$ac_objext
7292 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7294 _lt_linker_boilerplate=`cat conftest.err`
7295 $rm conftest*
7296
7297
7298
7299 lt_prog_compiler_no_builtin_flag=
7300
7301 if test "$GCC" = yes; then
7302 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7303
7304
7305 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7306 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7307 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 lt_cv_prog_compiler_rtti_exceptions=no
7311 ac_outfile=conftest.$ac_objext
7312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7313 lt_compiler_flag="-fno-rtti -fno-exceptions"
7314 # Insert the option either (1) after the last *FLAGS variable, or
7315 # (2) before a word containing "conftest.", or (3) at the end.
7316 # Note that $ac_compile itself does not contain backslashes and begins
7317 # with a dollar sign (not a hyphen), so the echo should work correctly.
7318 # The option is referenced via a variable to avoid confusing sed.
7319 lt_compile=`echo "$ac_compile" | $SED \
7320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7322 -e 's:$: $lt_compiler_flag:'`
7323 (eval echo "\"\$as_me:7323: $lt_compile\"" >&5)
7324 (eval "$lt_compile" 2>conftest.err)
7325 ac_status=$?
7326 cat conftest.err >&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 if (exit $ac_status) && test -s "$ac_outfile"; then
7329 # The compiler can only warn and ignore the option if not recognized
7330 # So say no if there are warnings other than the usual output.
7331 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7333 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7334 lt_cv_prog_compiler_rtti_exceptions=yes
7335 fi
7336 fi
7337 $rm conftest*
7338
7339 fi
7340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7341 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7342
7343 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7344 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7345 else
7346 :
7347 fi
7348
7349 fi
7350
7351 lt_prog_compiler_wl=
7352 lt_prog_compiler_pic=
7353 lt_prog_compiler_static=
7354
7355 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7356 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7357
7358 if test "$GCC" = yes; then
7359 lt_prog_compiler_wl='-Wl,'
7360 lt_prog_compiler_static='-static'
7361
7362 case $host_os in
7363 aix*)
7364 # All AIX code is PIC.
7365 if test "$host_cpu" = ia64; then
7366 # AIX 5 now supports IA64 processor
7367 lt_prog_compiler_static='-Bstatic'
7368 fi
7369 ;;
7370
7371 amigaos*)
7372 # FIXME: we need at least 68020 code to build shared libraries, but
7373 # adding the `-m68020' flag to GCC prevents building anything better,
7374 # like `-m68040'.
7375 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7376 ;;
7377
7378 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7379 # PIC is the default for these OSes.
7380 ;;
7381
7382 mingw* | pw32* | os2*)
7383 # This hack is so that the source file can tell whether it is being
7384 # built for inclusion in a dll (and should export symbols for example).
7385 lt_prog_compiler_pic='-DDLL_EXPORT'
7386 ;;
7387
7388 darwin* | rhapsody*)
7389 # PIC is the default on this platform
7390 # Common symbols not allowed in MH_DYLIB files
7391 lt_prog_compiler_pic='-fno-common'
7392 ;;
7393
7394 interix3*)
7395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7396 # Instead, we relocate shared libraries at runtime.
7397 ;;
7398
7399 msdosdjgpp*)
7400 # Just because we use GCC doesn't mean we suddenly get shared libraries
7401 # on systems that don't support them.
7402 lt_prog_compiler_can_build_shared=no
7403 enable_shared=no
7404 ;;
7405
7406 sysv4*MP*)
7407 if test -d /usr/nec; then
7408 lt_prog_compiler_pic=-Kconform_pic
7409 fi
7410 ;;
7411
7412 hpux*)
7413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7414 # not for PA HP-UX.
7415 case $host_cpu in
7416 hppa*64*|ia64*)
7417 # +Z the default
7418 ;;
7419 *)
7420 lt_prog_compiler_pic='-fPIC'
7421 ;;
7422 esac
7423 ;;
7424
7425 *)
7426 lt_prog_compiler_pic='-fPIC'
7427 ;;
7428 esac
7429 else
7430 # PORTME Check for flag to pass linker flags through the system compiler.
7431 case $host_os in
7432 aix*)
7433 lt_prog_compiler_wl='-Wl,'
7434 if test "$host_cpu" = ia64; then
7435 # AIX 5 now supports IA64 processor
7436 lt_prog_compiler_static='-Bstatic'
7437 else
7438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7439 fi
7440 ;;
7441 darwin*)
7442 # PIC is the default on this platform
7443 # Common symbols not allowed in MH_DYLIB files
7444 case $cc_basename in
7445 xlc*)
7446 lt_prog_compiler_pic='-qnocommon'
7447 lt_prog_compiler_wl='-Wl,'
7448 ;;
7449 esac
7450 ;;
7451
7452 mingw* | pw32* | os2*)
7453 # This hack is so that the source file can tell whether it is being
7454 # built for inclusion in a dll (and should export symbols for example).
7455 lt_prog_compiler_pic='-DDLL_EXPORT'
7456 ;;
7457
7458 hpux9* | hpux10* | hpux11*)
7459 lt_prog_compiler_wl='-Wl,'
7460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7461 # not for PA HP-UX.
7462 case $host_cpu in
7463 hppa*64*|ia64*)
7464 # +Z the default
7465 ;;
7466 *)
7467 lt_prog_compiler_pic='+Z'
7468 ;;
7469 esac
7470 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7471 lt_prog_compiler_static='${wl}-a ${wl}archive'
7472 ;;
7473
7474 irix5* | irix6* | nonstopux*)
7475 lt_prog_compiler_wl='-Wl,'
7476 # PIC (with -KPIC) is the default.
7477 lt_prog_compiler_static='-non_shared'
7478 ;;
7479
7480 newsos6)
7481 lt_prog_compiler_pic='-KPIC'
7482 lt_prog_compiler_static='-Bstatic'
7483 ;;
7484
7485 linux* | k*bsd*-gnu)
7486 case $cc_basename in
7487 icc* | ecc*)
7488 lt_prog_compiler_wl='-Wl,'
7489 lt_prog_compiler_pic='-KPIC'
7490 lt_prog_compiler_static='-static'
7491 ;;
7492 pgcc* | pgf77* | pgf90* | pgf95*)
7493 # Portland Group compilers (*not* the Pentium gcc compiler,
7494 # which looks to be a dead project)
7495 lt_prog_compiler_wl='-Wl,'
7496 lt_prog_compiler_pic='-fpic'
7497 lt_prog_compiler_static='-Bstatic'
7498 ;;
7499 ccc*)
7500 lt_prog_compiler_wl='-Wl,'
7501 # All Alpha code is PIC.
7502 lt_prog_compiler_static='-non_shared'
7503 ;;
7504 esac
7505 ;;
7506
7507 osf3* | osf4* | osf5*)
7508 lt_prog_compiler_wl='-Wl,'
7509 # All OSF/1 code is PIC.
7510 lt_prog_compiler_static='-non_shared'
7511 ;;
7512
7513 solaris*)
7514 lt_prog_compiler_pic='-KPIC'
7515 lt_prog_compiler_static='-Bstatic'
7516 case $cc_basename in
7517 f77* | f90* | f95*)
7518 lt_prog_compiler_wl='-Qoption ld ';;
7519 *)
7520 lt_prog_compiler_wl='-Wl,';;
7521 esac
7522 ;;
7523
7524 sunos4*)
7525 lt_prog_compiler_wl='-Qoption ld '
7526 lt_prog_compiler_pic='-PIC'
7527 lt_prog_compiler_static='-Bstatic'
7528 ;;
7529
7530 sysv4 | sysv4.2uw2* | sysv4.3*)
7531 lt_prog_compiler_wl='-Wl,'
7532 lt_prog_compiler_pic='-KPIC'
7533 lt_prog_compiler_static='-Bstatic'
7534 ;;
7535
7536 sysv4*MP*)
7537 if test -d /usr/nec ;then
7538 lt_prog_compiler_pic='-Kconform_pic'
7539 lt_prog_compiler_static='-Bstatic'
7540 fi
7541 ;;
7542
7543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7544 lt_prog_compiler_wl='-Wl,'
7545 lt_prog_compiler_pic='-KPIC'
7546 lt_prog_compiler_static='-Bstatic'
7547 ;;
7548
7549 unicos*)
7550 lt_prog_compiler_wl='-Wl,'
7551 lt_prog_compiler_can_build_shared=no
7552 ;;
7553
7554 uts4*)
7555 lt_prog_compiler_pic='-pic'
7556 lt_prog_compiler_static='-Bstatic'
7557 ;;
7558
7559 *)
7560 lt_prog_compiler_can_build_shared=no
7561 ;;
7562 esac
7563 fi
7564
7565 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7566 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7567
7568 #
7569 # Check to make sure the PIC flag actually works.
7570 #
7571 if test -n "$lt_prog_compiler_pic"; then
7572
7573 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7574 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7575 if test "${lt_prog_compiler_pic_works+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 lt_prog_compiler_pic_works=no
7579 ac_outfile=conftest.$ac_objext
7580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7581 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7582 # Insert the option either (1) after the last *FLAGS variable, or
7583 # (2) before a word containing "conftest.", or (3) at the end.
7584 # Note that $ac_compile itself does not contain backslashes and begins
7585 # with a dollar sign (not a hyphen), so the echo should work correctly.
7586 # The option is referenced via a variable to avoid confusing sed.
7587 lt_compile=`echo "$ac_compile" | $SED \
7588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7590 -e 's:$: $lt_compiler_flag:'`
7591 (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
7592 (eval "$lt_compile" 2>conftest.err)
7593 ac_status=$?
7594 cat conftest.err >&5
7595 echo "$as_me:7595: \$? = $ac_status" >&5
7596 if (exit $ac_status) && test -s "$ac_outfile"; then
7597 # The compiler can only warn and ignore the option if not recognized
7598 # So say no if there are warnings other than the usual output.
7599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7602 lt_prog_compiler_pic_works=yes
7603 fi
7604 fi
7605 $rm conftest*
7606
7607 fi
7608 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7609 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7610
7611 if test x"$lt_prog_compiler_pic_works" = xyes; then
7612 case $lt_prog_compiler_pic in
7613 "" | " "*) ;;
7614 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7615 esac
7616 else
7617 lt_prog_compiler_pic=
7618 lt_prog_compiler_can_build_shared=no
7619 fi
7620
7621 fi
7622 case $host_os in
7623 # For platforms which do not support PIC, -DPIC is meaningless:
7624 *djgpp*)
7625 lt_prog_compiler_pic=
7626 ;;
7627 *)
7628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7629 ;;
7630 esac
7631
7632 #
7633 # Check to make sure the static flag actually works.
7634 #
7635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7636 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7637 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7638 if test "${lt_prog_compiler_static_works+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 lt_prog_compiler_static_works=no
7642 save_LDFLAGS="$LDFLAGS"
7643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7644 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7646 # The linker can only warn and ignore the option if not recognized
7647 # So say no if there are warnings
7648 if test -s conftest.err; then
7649 # Append any errors to the config.log.
7650 cat conftest.err 1>&5
7651 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7653 if diff conftest.exp conftest.er2 >/dev/null; then
7654 lt_prog_compiler_static_works=yes
7655 fi
7656 else
7657 lt_prog_compiler_static_works=yes
7658 fi
7659 fi
7660 $rm conftest*
7661 LDFLAGS="$save_LDFLAGS"
7662
7663 fi
7664 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7665 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7666
7667 if test x"$lt_prog_compiler_static_works" = xyes; then
7668 :
7669 else
7670 lt_prog_compiler_static=
7671 fi
7672
7673
7674 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7675 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7676 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 lt_cv_prog_compiler_c_o=no
7680 $rm -r conftest 2>/dev/null
7681 mkdir conftest
7682 cd conftest
7683 mkdir out
7684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7685
7686 lt_compiler_flag="-o out/conftest2.$ac_objext"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 lt_compile=`echo "$ac_compile" | $SED \
7692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7694 -e 's:$: $lt_compiler_flag:'`
7695 (eval echo "\"\$as_me:7695: $lt_compile\"" >&5)
7696 (eval "$lt_compile" 2>out/conftest.err)
7697 ac_status=$?
7698 cat out/conftest.err >&5
7699 echo "$as_me:7699: \$? = $ac_status" >&5
7700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7701 then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings
7704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_c_o=yes
7708 fi
7709 fi
7710 chmod u+w . 2>&5
7711 $rm conftest*
7712 # SGI C++ compiler will create directory out/ii_files/ for
7713 # template instantiation
7714 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7715 $rm out/* && rmdir out
7716 cd ..
7717 rmdir conftest
7718 $rm conftest*
7719
7720 fi
7721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7722 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7723
7724
7725 hard_links="nottested"
7726 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7727 # do not overwrite the value of need_locks provided by the user
7728 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7729 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7730 hard_links=yes
7731 $rm conftest*
7732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7733 touch conftest.a
7734 ln conftest.a conftest.b 2>&5 || hard_links=no
7735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7736 { echo "$as_me:$LINENO: result: $hard_links" >&5
7737 echo "${ECHO_T}$hard_links" >&6; }
7738 if test "$hard_links" = no; then
7739 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7740 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7741 need_locks=warn
7742 fi
7743 else
7744 need_locks=no
7745 fi
7746
7747 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7748 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7749
7750 runpath_var=
7751 allow_undefined_flag=
7752 enable_shared_with_static_runtimes=no
7753 archive_cmds=
7754 archive_expsym_cmds=
7755 old_archive_From_new_cmds=
7756 old_archive_from_expsyms_cmds=
7757 export_dynamic_flag_spec=
7758 whole_archive_flag_spec=
7759 thread_safe_flag_spec=
7760 hardcode_libdir_flag_spec=
7761 hardcode_libdir_flag_spec_ld=
7762 hardcode_libdir_separator=
7763 hardcode_direct=no
7764 hardcode_minus_L=no
7765 hardcode_shlibpath_var=unsupported
7766 link_all_deplibs=unknown
7767 hardcode_automatic=no
7768 module_cmds=
7769 module_expsym_cmds=
7770 always_export_symbols=no
7771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7772 # include_expsyms should be a list of space-separated symbols to be *always*
7773 # included in the symbol list
7774 include_expsyms=
7775 # exclude_expsyms can be an extended regexp of symbols to exclude
7776 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7777 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7778 # as well as any symbol that contains `d'.
7779 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7780 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7781 # platforms (ab)use it in PIC code, but their linkers get confused if
7782 # the symbol is explicitly referenced. Since portable code cannot
7783 # rely on this symbol name, it's probably fine to never include it in
7784 # preloaded symbol tables.
7785 extract_expsyms_cmds=
7786 # Just being paranoid about ensuring that cc_basename is set.
7787 for cc_temp in $compiler""; do
7788 case $cc_temp in
7789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7791 \-*) ;;
7792 *) break;;
7793 esac
7794 done
7795 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7796
7797 case $host_os in
7798 cygwin* | mingw* | pw32*)
7799 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7800 # When not using gcc, we currently assume that we are using
7801 # Microsoft Visual C++.
7802 if test "$GCC" != yes; then
7803 with_gnu_ld=no
7804 fi
7805 ;;
7806 interix*)
7807 # we just hope/assume this is gcc and not c89 (= MSVC++)
7808 with_gnu_ld=yes
7809 ;;
7810 openbsd*)
7811 with_gnu_ld=no
7812 ;;
7813 esac
7814
7815 ld_shlibs=yes
7816 if test "$with_gnu_ld" = yes; then
7817 # If archive_cmds runs LD, not CC, wlarc should be empty
7818 wlarc='${wl}'
7819
7820 # Set some defaults for GNU ld with shared library support. These
7821 # are reset later if shared libraries are not supported. Putting them
7822 # here allows them to be overridden if necessary.
7823 runpath_var=LD_RUN_PATH
7824 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7825 export_dynamic_flag_spec='${wl}--export-dynamic'
7826 # ancient GNU ld didn't support --whole-archive et. al.
7827 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7828 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7829 else
7830 whole_archive_flag_spec=
7831 fi
7832 supports_anon_versioning=no
7833 case `$LD -v 2>/dev/null` in
7834 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7835 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7836 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7837 *\ 2.11.*) ;; # other 2.11 versions
7838 *) supports_anon_versioning=yes ;;
7839 esac
7840
7841 # See if GNU ld supports shared libraries.
7842 case $host_os in
7843 aix3* | aix4* | aix5*)
7844 # On AIX/PPC, the GNU linker is very broken
7845 if test "$host_cpu" != ia64; then
7846 ld_shlibs=no
7847 cat <<EOF 1>&2
7848
7849 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7850 *** to be unable to reliably create shared libraries on AIX.
7851 *** Therefore, libtool is disabling shared libraries support. If you
7852 *** really care for shared libraries, you may want to modify your PATH
7853 *** so that a non-GNU linker is found, and then restart.
7854
7855 EOF
7856 fi
7857 ;;
7858
7859 amigaos*)
7860 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)'
7861 hardcode_libdir_flag_spec='-L$libdir'
7862 hardcode_minus_L=yes
7863
7864 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7865 # that the semantics of dynamic libraries on AmigaOS, at least up
7866 # to version 4, is to share data among multiple programs linked
7867 # with the same dynamic library. Since this doesn't match the
7868 # behavior of shared libraries on other platforms, we can't use
7869 # them.
7870 ld_shlibs=no
7871 ;;
7872
7873 beos*)
7874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7875 allow_undefined_flag=unsupported
7876 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7877 # support --undefined. This deserves some investigation. FIXME
7878 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7879 else
7880 ld_shlibs=no
7881 fi
7882 ;;
7883
7884 cygwin* | mingw* | pw32*)
7885 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7886 # as there is no search path for DLLs.
7887 hardcode_libdir_flag_spec='-L$libdir'
7888 allow_undefined_flag=unsupported
7889 always_export_symbols=no
7890 enable_shared_with_static_runtimes=yes
7891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7892
7893 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7895 # If the export-symbols file already is a .def file (1st line
7896 # is EXPORTS), use it as is; otherwise, prepend...
7897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7898 cp $export_symbols $output_objdir/$soname.def;
7899 else
7900 echo EXPORTS > $output_objdir/$soname.def;
7901 cat $export_symbols >> $output_objdir/$soname.def;
7902 fi~
7903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7904 else
7905 ld_shlibs=no
7906 fi
7907 ;;
7908
7909 interix3*)
7910 hardcode_direct=no
7911 hardcode_shlibpath_var=no
7912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7913 export_dynamic_flag_spec='${wl}-E'
7914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7915 # Instead, shared libraries are loaded at an image base (0x10000000 by
7916 # default) and relocated if they conflict, which is a slow very memory
7917 # consuming and fragmenting process. To avoid this, we pick a random,
7918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7921 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'
7922 ;;
7923
7924 linux* | k*bsd*-gnu)
7925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7926 tmp_addflag=
7927 case $cc_basename,$host_cpu in
7928 pgcc*) # Portland Group C compiler
7929 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'
7930 tmp_addflag=' $pic_flag'
7931 ;;
7932 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7933 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'
7934 tmp_addflag=' $pic_flag -Mnomain' ;;
7935 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7936 tmp_addflag=' -i_dynamic' ;;
7937 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7938 tmp_addflag=' -i_dynamic -nofor_main' ;;
7939 ifc* | ifort*) # Intel Fortran compiler
7940 tmp_addflag=' -nofor_main' ;;
7941 esac
7942 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7943
7944 if test $supports_anon_versioning = yes; then
7945 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7947 $echo "local: *; };" >> $output_objdir/$libname.ver~
7948 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7949 fi
7950 link_all_deplibs=no
7951 else
7952 ld_shlibs=no
7953 fi
7954 ;;
7955
7956 netbsd* | netbsdelf*-gnu)
7957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7959 wlarc=
7960 else
7961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7963 fi
7964 ;;
7965
7966 solaris*)
7967 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7968 ld_shlibs=no
7969 cat <<EOF 1>&2
7970
7971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7972 *** create shared libraries on Solaris systems. Therefore, libtool
7973 *** is disabling shared libraries support. We urge you to upgrade GNU
7974 *** binutils to release 2.9.1 or newer. Another option is to modify
7975 *** your PATH or compiler configuration so that the native linker is
7976 *** used, and then restart.
7977
7978 EOF
7979 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7982 else
7983 ld_shlibs=no
7984 fi
7985 ;;
7986
7987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7988 case `$LD -v 2>&1` in
7989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7990 ld_shlibs=no
7991 cat <<_LT_EOF 1>&2
7992
7993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7994 *** reliably create shared libraries on SCO systems. Therefore, libtool
7995 *** is disabling shared libraries support. We urge you to upgrade GNU
7996 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7997 *** your PATH or compiler configuration so that the native linker is
7998 *** used, and then restart.
7999
8000 _LT_EOF
8001 ;;
8002 *)
8003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8004 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8007 else
8008 ld_shlibs=no
8009 fi
8010 ;;
8011 esac
8012 ;;
8013
8014 sunos4*)
8015 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8016 wlarc=
8017 hardcode_direct=yes
8018 hardcode_shlibpath_var=no
8019 ;;
8020
8021 *)
8022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8025 else
8026 ld_shlibs=no
8027 fi
8028 ;;
8029 esac
8030
8031 if test "$ld_shlibs" = no; then
8032 runpath_var=
8033 hardcode_libdir_flag_spec=
8034 export_dynamic_flag_spec=
8035 whole_archive_flag_spec=
8036 fi
8037 else
8038 # PORTME fill in a description of your system's linker (not GNU ld)
8039 case $host_os in
8040 aix3*)
8041 allow_undefined_flag=unsupported
8042 always_export_symbols=yes
8043 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'
8044 # Note: this linker hardcodes the directories in LIBPATH if there
8045 # are no directories specified by -L.
8046 hardcode_minus_L=yes
8047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8048 # Neither direct hardcoding nor static linking is supported with a
8049 # broken collect2.
8050 hardcode_direct=unsupported
8051 fi
8052 ;;
8053
8054 aix4* | aix5*)
8055 if test "$host_cpu" = ia64; then
8056 # On IA64, the linker does run time linking by default, so we don't
8057 # have to do anything special.
8058 aix_use_runtimelinking=no
8059 exp_sym_flag='-Bexport'
8060 no_entry_flag=""
8061 else
8062 # If we're using GNU nm, then we don't want the "-C" option.
8063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8064 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8065 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'
8066 else
8067 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'
8068 fi
8069 aix_use_runtimelinking=no
8070
8071 # Test if we are trying to use run time linking or normal
8072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8073 # need to do runtime linking.
8074 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8075 for ld_flag in $LDFLAGS; do
8076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8077 aix_use_runtimelinking=yes
8078 break
8079 fi
8080 done
8081 ;;
8082 esac
8083
8084 exp_sym_flag='-bexport'
8085 no_entry_flag='-bnoentry'
8086 fi
8087
8088 # When large executables or shared objects are built, AIX ld can
8089 # have problems creating the table of contents. If linking a library
8090 # or program results in "error TOC overflow" add -mminimal-toc to
8091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8093
8094 archive_cmds=''
8095 hardcode_direct=yes
8096 hardcode_libdir_separator=':'
8097 link_all_deplibs=yes
8098
8099 if test "$GCC" = yes; then
8100 case $host_os in aix4.[012]|aix4.[012].*)
8101 # We only want to do this on AIX 4.2 and lower, the check
8102 # below for broken collect2 doesn't work under 4.3+
8103 collect2name=`${CC} -print-prog-name=collect2`
8104 if test -f "$collect2name" && \
8105 strings "$collect2name" | grep resolve_lib_name >/dev/null
8106 then
8107 # We have reworked collect2
8108 hardcode_direct=yes
8109 else
8110 # We have old collect2
8111 hardcode_direct=unsupported
8112 # It fails to find uninstalled libraries when the uninstalled
8113 # path is not listed in the libpath. Setting hardcode_minus_L
8114 # to unsupported forces relinking
8115 hardcode_minus_L=yes
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_libdir_separator=
8118 fi
8119 ;;
8120 esac
8121 shared_flag='-shared'
8122 if test "$aix_use_runtimelinking" = yes; then
8123 shared_flag="$shared_flag "'${wl}-G'
8124 fi
8125 else
8126 # not using gcc
8127 if test "$host_cpu" = ia64; then
8128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8129 # chokes on -Wl,-G. The following line is correct:
8130 shared_flag='-G'
8131 else
8132 if test "$aix_use_runtimelinking" = yes; then
8133 shared_flag='${wl}-G'
8134 else
8135 shared_flag='${wl}-bM:SRE'
8136 fi
8137 fi
8138 fi
8139
8140 # It seems that -bexpall does not export symbols beginning with
8141 # underscore (_), so it is better to generate a list of symbols to export.
8142 always_export_symbols=yes
8143 if test "$aix_use_runtimelinking" = yes; then
8144 # Warning - without using the other runtime loading flags (-brtl),
8145 # -berok will link without error, but may produce a broken library.
8146 allow_undefined_flag='-berok'
8147 # Determine the default libpath from the value encoded in an empty executable.
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154
8155 int
8156 main ()
8157 {
8158
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (ac_try="$ac_link"
8165 case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_link") 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178 { (case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_try") 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197
8198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8199 }'`
8200 # Check for a 64-bit object if we didn't find anything.
8201 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8202 }'`; fi
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8211 conftest$ac_exeext conftest.$ac_ext
8212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8213
8214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8215 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"
8216 else
8217 if test "$host_cpu" = ia64; then
8218 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8219 allow_undefined_flag="-z nodefs"
8220 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"
8221 else
8222 # Determine the default libpath from the value encoded in an empty executable.
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229
8230 int
8231 main ()
8232 {
8233
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (ac_try="$ac_link"
8240 case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_link") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253 { (case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_try") 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272
8273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8274 }'`
8275 # Check for a 64-bit object if we didn't find anything.
8276 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8277 }'`; fi
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282
8283 fi
8284
8285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8286 conftest$ac_exeext conftest.$ac_ext
8287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8288
8289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8290 # Warning - without using the other run time loading flags,
8291 # -berok will link without error, but may produce a broken library.
8292 no_undefined_flag=' ${wl}-bernotok'
8293 allow_undefined_flag=' ${wl}-berok'
8294 # Exported symbols can be pulled into shared objects from archives
8295 whole_archive_flag_spec='$convenience'
8296 archive_cmds_need_lc=yes
8297 # This is similar to how AIX traditionally builds its shared libraries.
8298 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'
8299 fi
8300 fi
8301 ;;
8302
8303 amigaos*)
8304 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)'
8305 hardcode_libdir_flag_spec='-L$libdir'
8306 hardcode_minus_L=yes
8307 # see comment about different semantics on the GNU ld section
8308 ld_shlibs=no
8309 ;;
8310
8311 bsdi[45]*)
8312 export_dynamic_flag_spec=-rdynamic
8313 ;;
8314
8315 cygwin* | mingw* | pw32*)
8316 # When not using gcc, we currently assume that we are using
8317 # Microsoft Visual C++.
8318 # hardcode_libdir_flag_spec is actually meaningless, as there is
8319 # no search path for DLLs.
8320 hardcode_libdir_flag_spec=' '
8321 allow_undefined_flag=unsupported
8322 # Tell ltmain to make .lib files, not .a files.
8323 libext=lib
8324 # Tell ltmain to make .dll files, not .so files.
8325 shrext_cmds=".dll"
8326 # FIXME: Setting linknames here is a bad hack.
8327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8328 # The linker will automatically build a .lib file if we build a DLL.
8329 old_archive_From_new_cmds='true'
8330 # FIXME: Should let the user specify the lib program.
8331 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8332 fix_srcfile_path='`cygpath -w "$srcfile"`'
8333 enable_shared_with_static_runtimes=yes
8334 ;;
8335
8336 darwin* | rhapsody*)
8337 case $host_os in
8338 rhapsody* | darwin1.[012])
8339 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8340 ;;
8341 *) # Darwin 1.3 on
8342 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8343 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8344 else
8345 case ${MACOSX_DEPLOYMENT_TARGET} in
8346 10.[012])
8347 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8348 ;;
8349 10.*)
8350 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8351 ;;
8352 esac
8353 fi
8354 ;;
8355 esac
8356 archive_cmds_need_lc=no
8357 hardcode_direct=no
8358 hardcode_automatic=yes
8359 hardcode_shlibpath_var=unsupported
8360 whole_archive_flag_spec=''
8361 link_all_deplibs=yes
8362 if test "$GCC" = yes ; then
8363 output_verbose_link_cmd='echo'
8364 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8365 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8367 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8368 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}'
8369 else
8370 case $cc_basename in
8371 xlc*)
8372 output_verbose_link_cmd='echo'
8373 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8374 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8376 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8377 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}'
8378 ;;
8379 *)
8380 ld_shlibs=no
8381 ;;
8382 esac
8383 fi
8384 ;;
8385
8386 dgux*)
8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 hardcode_libdir_flag_spec='-L$libdir'
8389 hardcode_shlibpath_var=no
8390 ;;
8391
8392 freebsd1*)
8393 ld_shlibs=no
8394 ;;
8395
8396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8397 # support. Future versions do this automatically, but an explicit c++rt0.o
8398 # does not break anything, and helps significantly (at the cost of a little
8399 # extra space).
8400 freebsd2.2*)
8401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8402 hardcode_libdir_flag_spec='-R$libdir'
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 ;;
8406
8407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8408 freebsd2*)
8409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_direct=yes
8411 hardcode_minus_L=yes
8412 hardcode_shlibpath_var=no
8413 ;;
8414
8415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8416 freebsd* | dragonfly*)
8417 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8418 hardcode_libdir_flag_spec='-R$libdir'
8419 hardcode_direct=yes
8420 hardcode_shlibpath_var=no
8421 ;;
8422
8423 hpux9*)
8424 if test "$GCC" = yes; then
8425 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'
8426 else
8427 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'
8428 fi
8429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8430 hardcode_libdir_separator=:
8431 hardcode_direct=yes
8432
8433 # hardcode_minus_L: Not really in the search PATH,
8434 # but as the default location of the library.
8435 hardcode_minus_L=yes
8436 export_dynamic_flag_spec='${wl}-E'
8437 ;;
8438
8439 hpux10*)
8440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8442 else
8443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8444 fi
8445 if test "$with_gnu_ld" = no; then
8446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8447 hardcode_libdir_separator=:
8448
8449 hardcode_direct=yes
8450 export_dynamic_flag_spec='${wl}-E'
8451
8452 # hardcode_minus_L: Not really in the search PATH,
8453 # but as the default location of the library.
8454 hardcode_minus_L=yes
8455 fi
8456 ;;
8457
8458 hpux11*)
8459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8460 case $host_cpu in
8461 hppa*64*)
8462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463 ;;
8464 ia64*)
8465 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8466 ;;
8467 *)
8468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8469 ;;
8470 esac
8471 else
8472 case $host_cpu in
8473 hppa*64*)
8474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 ;;
8476 ia64*)
8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8478 ;;
8479 *)
8480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8481 ;;
8482 esac
8483 fi
8484 if test "$with_gnu_ld" = no; then
8485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486 hardcode_libdir_separator=:
8487
8488 case $host_cpu in
8489 hppa*64*|ia64*)
8490 hardcode_libdir_flag_spec_ld='+b $libdir'
8491 hardcode_direct=no
8492 hardcode_shlibpath_var=no
8493 ;;
8494 *)
8495 hardcode_direct=yes
8496 export_dynamic_flag_spec='${wl}-E'
8497
8498 # hardcode_minus_L: Not really in the search PATH,
8499 # but as the default location of the library.
8500 hardcode_minus_L=yes
8501 ;;
8502 esac
8503 fi
8504 ;;
8505
8506 irix5* | irix6* | nonstopux*)
8507 if test "$GCC" = yes; then
8508 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'
8509 else
8510 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'
8511 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8512 fi
8513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514 hardcode_libdir_separator=:
8515 link_all_deplibs=yes
8516 ;;
8517
8518 netbsd* | netbsdelf*-gnu)
8519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8521 else
8522 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8523 fi
8524 hardcode_libdir_flag_spec='-R$libdir'
8525 hardcode_direct=yes
8526 hardcode_shlibpath_var=no
8527 ;;
8528
8529 newsos6)
8530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8531 hardcode_direct=yes
8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533 hardcode_libdir_separator=:
8534 hardcode_shlibpath_var=no
8535 ;;
8536
8537 openbsd*)
8538 hardcode_direct=yes
8539 hardcode_shlibpath_var=no
8540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8544 export_dynamic_flag_spec='${wl}-E'
8545 else
8546 case $host_os in
8547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_libdir_flag_spec='-R$libdir'
8550 ;;
8551 *)
8552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8554 ;;
8555 esac
8556 fi
8557 ;;
8558
8559 os2*)
8560 hardcode_libdir_flag_spec='-L$libdir'
8561 hardcode_minus_L=yes
8562 allow_undefined_flag=unsupported
8563 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'
8564 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8565 ;;
8566
8567 osf3*)
8568 if test "$GCC" = yes; then
8569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8570 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'
8571 else
8572 allow_undefined_flag=' -expect_unresolved \*'
8573 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'
8574 fi
8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576 hardcode_libdir_separator=:
8577 ;;
8578
8579 osf4* | osf5*) # as osf3* with the addition of -msym flag
8580 if test "$GCC" = yes; then
8581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8582 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'
8583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8584 else
8585 allow_undefined_flag=' -expect_unresolved \*'
8586 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'
8587 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8588 $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'
8589
8590 # Both c and cxx compiler support -rpath directly
8591 hardcode_libdir_flag_spec='-rpath $libdir'
8592 fi
8593 hardcode_libdir_separator=:
8594 ;;
8595
8596 solaris*)
8597 no_undefined_flag=' -z text'
8598 if test "$GCC" = yes; then
8599 wlarc='${wl}'
8600 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8603 else
8604 wlarc=''
8605 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8606 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8608 fi
8609 hardcode_libdir_flag_spec='-R$libdir'
8610 hardcode_shlibpath_var=no
8611 case $host_os in
8612 solaris2.[0-5] | solaris2.[0-5].*) ;;
8613 *)
8614 # The compiler driver will combine linker options so we
8615 # cannot just pass the convience library names through
8616 # without $wl, iff we do not link with $LD.
8617 # Luckily, gcc supports the same syntax we need for Sun Studio.
8618 # Supported since Solaris 2.6 (maybe 2.5.1?)
8619 case $wlarc in
8620 '')
8621 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8622 *)
8623 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8624 esac ;;
8625 esac
8626 link_all_deplibs=yes
8627 ;;
8628
8629 sunos4*)
8630 if test "x$host_vendor" = xsequent; then
8631 # Use $CC to link under sequent, because it throws in some extra .o
8632 # files that make .init and .fini sections work.
8633 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8634 else
8635 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8636 fi
8637 hardcode_libdir_flag_spec='-L$libdir'
8638 hardcode_direct=yes
8639 hardcode_minus_L=yes
8640 hardcode_shlibpath_var=no
8641 ;;
8642
8643 sysv4)
8644 case $host_vendor in
8645 sni)
8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_direct=yes # is this really true???
8648 ;;
8649 siemens)
8650 ## LD is ld it makes a PLAMLIB
8651 ## CC just makes a GrossModule.
8652 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8653 reload_cmds='$CC -r -o $output$reload_objs'
8654 hardcode_direct=no
8655 ;;
8656 motorola)
8657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8658 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8659 ;;
8660 esac
8661 runpath_var='LD_RUN_PATH'
8662 hardcode_shlibpath_var=no
8663 ;;
8664
8665 sysv4.3*)
8666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_shlibpath_var=no
8668 export_dynamic_flag_spec='-Bexport'
8669 ;;
8670
8671 sysv4*MP*)
8672 if test -d /usr/nec; then
8673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674 hardcode_shlibpath_var=no
8675 runpath_var=LD_RUN_PATH
8676 hardcode_runpath_var=yes
8677 ld_shlibs=yes
8678 fi
8679 ;;
8680
8681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8682 no_undefined_flag='${wl}-z,text'
8683 archive_cmds_need_lc=no
8684 hardcode_shlibpath_var=no
8685 runpath_var='LD_RUN_PATH'
8686
8687 if test "$GCC" = yes; then
8688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8690 else
8691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8693 fi
8694 ;;
8695
8696 sysv5* | sco3.2v5* | sco5v6*)
8697 # Note: We can NOT use -z defs as we might desire, because we do not
8698 # link with -lc, and that would cause any symbols used from libc to
8699 # always be unresolved, which means just about no library would
8700 # ever link correctly. If we're not using GNU ld we use -z text
8701 # though, which does catch some bad symbols but isn't as heavy-handed
8702 # as -z defs.
8703 no_undefined_flag='${wl}-z,text'
8704 allow_undefined_flag='${wl}-z,nodefs'
8705 archive_cmds_need_lc=no
8706 hardcode_shlibpath_var=no
8707 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8708 hardcode_libdir_separator=':'
8709 link_all_deplibs=yes
8710 export_dynamic_flag_spec='${wl}-Bexport'
8711 runpath_var='LD_RUN_PATH'
8712
8713 if test "$GCC" = yes; then
8714 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 else
8717 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 fi
8720 ;;
8721
8722 uts4*)
8723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_libdir_flag_spec='-L$libdir'
8725 hardcode_shlibpath_var=no
8726 ;;
8727
8728 *)
8729 ld_shlibs=no
8730 ;;
8731 esac
8732 fi
8733
8734 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8735 echo "${ECHO_T}$ld_shlibs" >&6; }
8736 test "$ld_shlibs" = no && can_build_shared=no
8737
8738 #
8739 # Do we need to explicitly link libc?
8740 #
8741 case "x$archive_cmds_need_lc" in
8742 x|xyes)
8743 # Assume -lc should be added
8744 archive_cmds_need_lc=yes
8745
8746 if test "$enable_shared" = yes && test "$GCC" = yes; then
8747 case $archive_cmds in
8748 *'~'*)
8749 # FIXME: we may have to deal with multi-command sequences.
8750 ;;
8751 '$CC '*)
8752 # Test whether the compiler implicitly links with -lc since on some
8753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8754 # to ld, don't add -lc before -lgcc.
8755 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8757 $rm conftest*
8758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8759
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761 (eval $ac_compile) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } 2>conftest.err; then
8765 soname=conftest
8766 lib=conftest
8767 libobjs=conftest.$ac_objext
8768 deplibs=
8769 wl=$lt_prog_compiler_wl
8770 pic_flag=$lt_prog_compiler_pic
8771 compiler_flags=-v
8772 linker_flags=-v
8773 verstring=
8774 output_objdir=.
8775 libname=conftest
8776 lt_save_allow_undefined_flag=$allow_undefined_flag
8777 allow_undefined_flag=
8778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8779 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }
8783 then
8784 archive_cmds_need_lc=no
8785 else
8786 archive_cmds_need_lc=yes
8787 fi
8788 allow_undefined_flag=$lt_save_allow_undefined_flag
8789 else
8790 cat conftest.err 1>&5
8791 fi
8792 $rm conftest*
8793 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8794 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8795 ;;
8796 esac
8797 fi
8798 ;;
8799 esac
8800
8801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8803 library_names_spec=
8804 libname_spec='lib$name'
8805 soname_spec=
8806 shrext_cmds=".so"
8807 postinstall_cmds=
8808 postuninstall_cmds=
8809 finish_cmds=
8810 finish_eval=
8811 shlibpath_var=
8812 shlibpath_overrides_runpath=unknown
8813 version_type=none
8814 dynamic_linker="$host_os ld.so"
8815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8816 if test "$GCC" = yes; then
8817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8818 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8819 # if the path contains ";" then we assume it to be the separator
8820 # otherwise default to the standard path separator (i.e. ":") - it is
8821 # assumed that no part of a normal pathname contains ";" but that should
8822 # okay in the real world where ";" in dirpaths is itself problematic.
8823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8824 else
8825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8826 fi
8827 else
8828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8829 fi
8830 need_lib_prefix=unknown
8831 hardcode_into_libs=no
8832
8833 # when you set need_version to no, make sure it does not cause -set_version
8834 # flags to be left without arguments
8835 need_version=unknown
8836
8837 case $host_os in
8838 aix3*)
8839 version_type=linux
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8841 shlibpath_var=LIBPATH
8842
8843 # AIX 3 has no versioning support, so we append a major version to the name.
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 ;;
8846
8847 aix4* | aix5*)
8848 version_type=linux
8849 need_lib_prefix=no
8850 need_version=no
8851 hardcode_into_libs=yes
8852 if test "$host_cpu" = ia64; then
8853 # AIX 5 supports IA64
8854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8855 shlibpath_var=LD_LIBRARY_PATH
8856 else
8857 # With GCC up to 2.95.x, collect2 would create an import file
8858 # for dependence libraries. The import file would start with
8859 # the line `#! .'. This would cause the generated library to
8860 # depend on `.', always an invalid library. This was fixed in
8861 # development snapshots of GCC prior to 3.0.
8862 case $host_os in
8863 aix4 | aix4.[01] | aix4.[01].*)
8864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8865 echo ' yes '
8866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8867 :
8868 else
8869 can_build_shared=no
8870 fi
8871 ;;
8872 esac
8873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8874 # soname into executable. Probably we can add versioning support to
8875 # collect2, so additional links can be useful in future.
8876 if test "$aix_use_runtimelinking" = yes; then
8877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8878 # instead of lib<name>.a to let people know that these are not
8879 # typical AIX shared libraries.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 else
8882 # We preserve .a as extension for shared libraries through AIX4.2
8883 # and later when we are not doing run time linking.
8884 library_names_spec='${libname}${release}.a $libname.a'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 fi
8887 shlibpath_var=LIBPATH
8888 fi
8889 ;;
8890
8891 amigaos*)
8892 library_names_spec='$libname.ixlibrary $libname.a'
8893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8894 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'
8895 ;;
8896
8897 beos*)
8898 library_names_spec='${libname}${shared_ext}'
8899 dynamic_linker="$host_os ld.so"
8900 shlibpath_var=LIBRARY_PATH
8901 ;;
8902
8903 bsdi[45]*)
8904 version_type=linux
8905 need_version=no
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8912 # the default ld.so.conf also contains /usr/contrib/lib and
8913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8914 # libtool to hard-code these into programs
8915 ;;
8916
8917 cygwin* | mingw* | pw32*)
8918 version_type=windows
8919 shrext_cmds=".dll"
8920 need_version=no
8921 need_lib_prefix=no
8922
8923 case $GCC,$host_os in
8924 yes,cygwin* | yes,mingw* | yes,pw32*)
8925 library_names_spec='$libname.dll.a'
8926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8927 postinstall_cmds='base_file=`basename \${file}`~
8928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8929 dldir=$destdir/`dirname \$dlpath`~
8930 test -d \$dldir || mkdir -p \$dldir~
8931 $install_prog $dir/$dlname \$dldir/$dlname~
8932 chmod a+x \$dldir/$dlname'
8933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8934 dlpath=$dir/\$dldll~
8935 $rm \$dlpath'
8936 shlibpath_overrides_runpath=yes
8937
8938 case $host_os in
8939 cygwin*)
8940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8943 ;;
8944 mingw*)
8945 # MinGW DLLs use traditional 'lib' prefix
8946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8949 # It is most probably a Windows format PATH printed by
8950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8951 # path with ; separators, and with drive letters. We can handle the
8952 # drive letters (cygwin fileutils understands them), so leave them,
8953 # especially as we might pass files found there to a mingw objdump,
8954 # which wouldn't understand a cygwinified path. Ahh.
8955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8956 else
8957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8958 fi
8959 ;;
8960 pw32*)
8961 # pw32 DLLs use 'pw' prefix rather than 'lib'
8962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8963 ;;
8964 esac
8965 ;;
8966
8967 *)
8968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8969 ;;
8970 esac
8971 dynamic_linker='Win32 ld.exe'
8972 # FIXME: first we should search . and the directory the executable is in
8973 shlibpath_var=PATH
8974 ;;
8975
8976 darwin* | rhapsody*)
8977 dynamic_linker="$host_os dyld"
8978 version_type=darwin
8979 need_lib_prefix=no
8980 need_version=no
8981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8982 soname_spec='${libname}${release}${major}$shared_ext'
8983 shlibpath_overrides_runpath=yes
8984 shlibpath_var=DYLD_LIBRARY_PATH
8985 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8987 if test "$GCC" = yes; then
8988 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8989 else
8990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8991 fi
8992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8993 ;;
8994
8995 dgux*)
8996 version_type=linux
8997 need_lib_prefix=no
8998 need_version=no
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 ;;
9003
9004 freebsd1*)
9005 dynamic_linker=no
9006 ;;
9007
9008 freebsd* | dragonfly*)
9009 # DragonFly does not have aout. When/if they implement a new
9010 # versioning mechanism, adjust this.
9011 if test -x /usr/bin/objformat; then
9012 objformat=`/usr/bin/objformat`
9013 else
9014 case $host_os in
9015 freebsd[123]*) objformat=aout ;;
9016 *) objformat=elf ;;
9017 esac
9018 fi
9019 version_type=freebsd-$objformat
9020 case $version_type in
9021 freebsd-elf*)
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9023 need_version=no
9024 need_lib_prefix=no
9025 ;;
9026 freebsd-*)
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9028 need_version=yes
9029 ;;
9030 esac
9031 shlibpath_var=LD_LIBRARY_PATH
9032 case $host_os in
9033 freebsd2*)
9034 shlibpath_overrides_runpath=yes
9035 ;;
9036 freebsd3.[01]* | freebsdelf3.[01]*)
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9039 ;;
9040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 ;;
9045 freebsd*) # from 4.6 on
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9048 ;;
9049 esac
9050 ;;
9051
9052 gnu*)
9053 version_type=linux
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 hardcode_into_libs=yes
9060 ;;
9061
9062 hpux9* | hpux10* | hpux11*)
9063 # Give a soname corresponding to the major version so that dld.sl refuses to
9064 # link against other versions.
9065 version_type=sunos
9066 need_lib_prefix=no
9067 need_version=no
9068 case $host_cpu in
9069 ia64*)
9070 shrext_cmds='.so'
9071 hardcode_into_libs=yes
9072 dynamic_linker="$host_os dld.so"
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 if test "X$HPUX_IA64_MODE" = X32; then
9078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9079 else
9080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9081 fi
9082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9083 ;;
9084 hppa*64*)
9085 shrext_cmds='.sl'
9086 hardcode_into_libs=yes
9087 dynamic_linker="$host_os dld.sl"
9088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9094 ;;
9095 *)
9096 shrext_cmds='.sl'
9097 dynamic_linker="$host_os dld.sl"
9098 shlibpath_var=SHLIB_PATH
9099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 ;;
9103 esac
9104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9105 postinstall_cmds='chmod 555 $lib'
9106 ;;
9107
9108 interix3*)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 hardcode_into_libs=yes
9118 ;;
9119
9120 irix5* | irix6* | nonstopux*)
9121 case $host_os in
9122 nonstopux*) version_type=nonstopux ;;
9123 *)
9124 if test "$lt_cv_prog_gnu_ld" = yes; then
9125 version_type=linux
9126 else
9127 version_type=irix
9128 fi ;;
9129 esac
9130 need_lib_prefix=no
9131 need_version=no
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9134 case $host_os in
9135 irix5* | nonstopux*)
9136 libsuff= shlibsuff=
9137 ;;
9138 *)
9139 case $LD in # libtool.m4 will add one of these switches to LD
9140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9141 libsuff= shlibsuff= libmagic=32-bit;;
9142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9143 libsuff=32 shlibsuff=N32 libmagic=N32;;
9144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9146 *) libsuff= shlibsuff= libmagic=never-match;;
9147 esac
9148 ;;
9149 esac
9150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9151 shlibpath_overrides_runpath=no
9152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9154 hardcode_into_libs=yes
9155 ;;
9156
9157 # No shared lib support for Linux oldld, aout, or coff.
9158 linux*oldld* | linux*aout* | linux*coff*)
9159 dynamic_linker=no
9160 ;;
9161
9162 # This must be Linux ELF.
9163 linux* | k*bsd*-gnu)
9164 version_type=linux
9165 need_lib_prefix=no
9166 need_version=no
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=no
9172 # This implies no fast_install, which is unacceptable.
9173 # Some rework will be needed to allow for fast_install
9174 # before this can be enabled.
9175 hardcode_into_libs=yes
9176
9177 # Append ld.so.conf contents to the search path
9178 if test -f /etc/ld.so.conf; then
9179 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9181 fi
9182
9183 # We used to test for /lib/ld.so.1 and disable shared libraries on
9184 # powerpc, because MkLinux only supported shared libraries with the
9185 # GNU dynamic linker. Since this was broken with cross compilers,
9186 # most powerpc-linux boxes support dynamic linking these days and
9187 # people can always --disable-shared, the test was removed, and we
9188 # assume the GNU/Linux dynamic linker is in use.
9189 dynamic_linker='GNU/Linux ld.so'
9190 ;;
9191
9192 netbsdelf*-gnu)
9193 version_type=linux
9194 need_lib_prefix=no
9195 need_version=no
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=no
9200 hardcode_into_libs=yes
9201 dynamic_linker='NetBSD ld.elf_so'
9202 ;;
9203
9204 netbsd*)
9205 version_type=sunos
9206 need_lib_prefix=no
9207 need_version=no
9208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9211 dynamic_linker='NetBSD (a.out) ld.so'
9212 else
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 dynamic_linker='NetBSD ld.elf_so'
9216 fi
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 hardcode_into_libs=yes
9220 ;;
9221
9222 newsos6)
9223 version_type=linux
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9227 ;;
9228
9229 nto-qnx*)
9230 version_type=linux
9231 need_lib_prefix=no
9232 need_version=no
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=yes
9237 ;;
9238
9239 openbsd*)
9240 version_type=sunos
9241 sys_lib_dlsearch_path_spec="/usr/lib"
9242 need_lib_prefix=no
9243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9244 case $host_os in
9245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9246 *) need_version=no ;;
9247 esac
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252 case $host_os in
9253 openbsd2.[89] | openbsd2.[89].*)
9254 shlibpath_overrides_runpath=no
9255 ;;
9256 *)
9257 shlibpath_overrides_runpath=yes
9258 ;;
9259 esac
9260 else
9261 shlibpath_overrides_runpath=yes
9262 fi
9263 ;;
9264
9265 os2*)
9266 libname_spec='$name'
9267 shrext_cmds=".dll"
9268 need_lib_prefix=no
9269 library_names_spec='$libname${shared_ext} $libname.a'
9270 dynamic_linker='OS/2 ld.exe'
9271 shlibpath_var=LIBPATH
9272 ;;
9273
9274 osf3* | osf4* | osf5*)
9275 version_type=osf
9276 need_lib_prefix=no
9277 need_version=no
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9283 ;;
9284
9285 solaris*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes
9293 hardcode_into_libs=yes
9294 # ldd complains unless libraries are executable
9295 postinstall_cmds='chmod +x $lib'
9296 ;;
9297
9298 sunos4*)
9299 version_type=sunos
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 if test "$with_gnu_ld" = yes; then
9305 need_lib_prefix=no
9306 fi
9307 need_version=yes
9308 ;;
9309
9310 sysv4 | sysv4.3*)
9311 version_type=linux
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_vendor in
9316 sni)
9317 shlibpath_overrides_runpath=no
9318 need_lib_prefix=no
9319 export_dynamic_flag_spec='${wl}-Blargedynsym'
9320 runpath_var=LD_RUN_PATH
9321 ;;
9322 siemens)
9323 need_lib_prefix=no
9324 ;;
9325 motorola)
9326 need_lib_prefix=no
9327 need_version=no
9328 shlibpath_overrides_runpath=no
9329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9330 ;;
9331 esac
9332 ;;
9333
9334 sysv4*MP*)
9335 if test -d /usr/nec ;then
9336 version_type=linux
9337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338 soname_spec='$libname${shared_ext}.$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 fi
9341 ;;
9342
9343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344 version_type=freebsd-elf
9345 need_lib_prefix=no
9346 need_version=no
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 hardcode_into_libs=yes
9351 if test "$with_gnu_ld" = yes; then
9352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353 shlibpath_overrides_runpath=no
9354 else
9355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356 shlibpath_overrides_runpath=yes
9357 case $host_os in
9358 sco3.2v5*)
9359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9360 ;;
9361 esac
9362 fi
9363 sys_lib_dlsearch_path_spec='/usr/lib'
9364 ;;
9365
9366 uts4*)
9367 version_type=linux
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 ;;
9372
9373 *)
9374 dynamic_linker=no
9375 ;;
9376 esac
9377 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9378 echo "${ECHO_T}$dynamic_linker" >&6; }
9379 test "$dynamic_linker" = no && can_build_shared=no
9380
9381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9382 if test "$GCC" = yes; then
9383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9384 fi
9385
9386 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9387 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9388 hardcode_action=
9389 if test -n "$hardcode_libdir_flag_spec" || \
9390 test -n "$runpath_var" || \
9391 test "X$hardcode_automatic" = "Xyes" ; then
9392
9393 # We can hardcode non-existant directories.
9394 if test "$hardcode_direct" != no &&
9395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9396 # have to relink, otherwise we might link with an installed library
9397 # when we should be linking with a yet-to-be-installed one
9398 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9399 test "$hardcode_minus_L" != no; then
9400 # Linking always hardcodes the temporary library directory.
9401 hardcode_action=relink
9402 else
9403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9404 hardcode_action=immediate
9405 fi
9406 else
9407 # We cannot hardcode anything, or else we can only hardcode existing
9408 # directories.
9409 hardcode_action=unsupported
9410 fi
9411 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9412 echo "${ECHO_T}$hardcode_action" >&6; }
9413
9414 if test "$hardcode_action" = relink; then
9415 # Fast installation is not supported
9416 enable_fast_install=no
9417 elif test "$shlibpath_overrides_runpath" = yes ||
9418 test "$enable_shared" = no; then
9419 # Fast installation is not necessary
9420 enable_fast_install=needless
9421 fi
9422
9423 striplib=
9424 old_striplib=
9425 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9426 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9427 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9430 { echo "$as_me:$LINENO: result: yes" >&5
9431 echo "${ECHO_T}yes" >&6; }
9432 else
9433 # FIXME - insert some real tests, host_os isn't really good enough
9434 case $host_os in
9435 darwin*)
9436 if test -n "$STRIP" ; then
9437 striplib="$STRIP -x"
9438 { echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6; }
9440 else
9441 { echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6; }
9443 fi
9444 ;;
9445 *)
9446 { echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6; }
9448 ;;
9449 esac
9450 fi
9451
9452 if test "x$enable_dlopen" != xyes; then
9453 enable_dlopen=unknown
9454 enable_dlopen_self=unknown
9455 enable_dlopen_self_static=unknown
9456 else
9457 lt_cv_dlopen=no
9458 lt_cv_dlopen_libs=
9459
9460 case $host_os in
9461 beos*)
9462 lt_cv_dlopen="load_add_on"
9463 lt_cv_dlopen_libs=
9464 lt_cv_dlopen_self=yes
9465 ;;
9466
9467 mingw* | pw32*)
9468 lt_cv_dlopen="LoadLibrary"
9469 lt_cv_dlopen_libs=
9470 ;;
9471
9472 cygwin*)
9473 lt_cv_dlopen="dlopen"
9474 lt_cv_dlopen_libs=
9475 ;;
9476
9477 darwin*)
9478 # if libdl is installed we need to link against it
9479 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9480 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-ldl $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char dlopen ();
9500 int
9501 main ()
9502 {
9503 return dlopen ();
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_link") 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9523 { (case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_try") 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; } &&
9532 { ac_try='test -s conftest$ac_exeext'
9533 { (case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_try") 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_lib_dl_dlopen=yes
9543 else
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_cv_lib_dl_dlopen=no
9548 fi
9549
9550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9551 conftest$ac_exeext conftest.$ac_ext
9552 LIBS=$ac_check_lib_save_LIBS
9553 fi
9554 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9556 if test $ac_cv_lib_dl_dlopen = yes; then
9557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9558 else
9559
9560 lt_cv_dlopen="dyld"
9561 lt_cv_dlopen_libs=
9562 lt_cv_dlopen_self=yes
9563
9564 fi
9565
9566 ;;
9567
9568 *)
9569 { echo "$as_me:$LINENO: checking for shl_load" >&5
9570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9571 if test "${ac_cv_func_shl_load+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9582 #define shl_load innocuous_shl_load
9583
9584 /* System header to define __stub macros and hopefully few prototypes,
9585 which can conflict with char shl_load (); below.
9586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9587 <limits.h> exists even on freestanding compilers. */
9588
9589 #ifdef __STDC__
9590 # include <limits.h>
9591 #else
9592 # include <assert.h>
9593 #endif
9594
9595 #undef shl_load
9596
9597 /* Override any GCC internal prototype to avoid an error.
9598 Use char because int might match the return type of a GCC
9599 builtin and then its argument prototype would still apply. */
9600 #ifdef __cplusplus
9601 extern "C"
9602 #endif
9603 char shl_load ();
9604 /* The GNU C library defines this for functions which it implements
9605 to always fail with ENOSYS. Some functions are actually named
9606 something starting with __ and the normal name is an alias. */
9607 #if defined __stub_shl_load || defined __stub___shl_load
9608 choke me
9609 #endif
9610
9611 int
9612 main ()
9613 {
9614 return shl_load ();
9615 ;
9616 return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_link") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9634 { (case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_try") 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try='test -s conftest$ac_exeext'
9644 { (case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_try") 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_cv_func_shl_load=yes
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 ac_cv_func_shl_load=no
9659 fi
9660
9661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9662 conftest$ac_exeext conftest.$ac_ext
9663 fi
9664 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9665 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9666 if test $ac_cv_func_shl_load = yes; then
9667 lt_cv_dlopen="shl_load"
9668 else
9669 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9670 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9671 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 ac_check_lib_save_LIBS=$LIBS
9675 LIBS="-ldld $LIBS"
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686 #ifdef __cplusplus
9687 extern "C"
9688 #endif
9689 char shl_load ();
9690 int
9691 main ()
9692 {
9693 return shl_load ();
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9700 case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_link") 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_lib_dld_shl_load=yes
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_cv_lib_dld_shl_load=no
9738 fi
9739
9740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9741 conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9743 fi
9744 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9745 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9746 if test $ac_cv_lib_dld_shl_load = yes; then
9747 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9748 else
9749 { echo "$as_me:$LINENO: checking for dlopen" >&5
9750 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9751 if test "${ac_cv_func_dlopen+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9762 #define dlopen innocuous_dlopen
9763
9764 /* System header to define __stub macros and hopefully few prototypes,
9765 which can conflict with char dlopen (); below.
9766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9767 <limits.h> exists even on freestanding compilers. */
9768
9769 #ifdef __STDC__
9770 # include <limits.h>
9771 #else
9772 # include <assert.h>
9773 #endif
9774
9775 #undef dlopen
9776
9777 /* Override any GCC internal prototype to avoid an error.
9778 Use char because int might match the return type of a GCC
9779 builtin and then its argument prototype would still apply. */
9780 #ifdef __cplusplus
9781 extern "C"
9782 #endif
9783 char dlopen ();
9784 /* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787 #if defined __stub_dlopen || defined __stub___dlopen
9788 choke me
9789 #endif
9790
9791 int
9792 main ()
9793 {
9794 return dlopen ();
9795 ;
9796 return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext conftest$ac_exeext
9800 if { (ac_try="$ac_link"
9801 case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_link") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest$ac_exeext'
9824 { (case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_try") 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_func_dlopen=yes
9834 else
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838 ac_cv_func_dlopen=no
9839 fi
9840
9841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842 conftest$ac_exeext conftest.$ac_ext
9843 fi
9844 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9845 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9846 if test $ac_cv_func_dlopen = yes; then
9847 lt_cv_dlopen="dlopen"
9848 else
9849 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9850 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854 ac_check_lib_save_LIBS=$LIBS
9855 LIBS="-ldl $LIBS"
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862
9863 /* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 char dlopen ();
9870 int
9871 main ()
9872 {
9873 return dlopen ();
9874 ;
9875 return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9880 case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
9886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest$ac_exeext'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_lib_dl_dlopen=yes
9913 else
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 ac_cv_lib_dl_dlopen=no
9918 fi
9919
9920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9923 fi
9924 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9925 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9926 if test $ac_cv_lib_dl_dlopen = yes; then
9927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9928 else
9929 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9930 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9931 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934 ac_check_lib_save_LIBS=$LIBS
9935 LIBS="-lsvld $LIBS"
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h. */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 char dlopen ();
9950 int
9951 main ()
9952 {
9953 return dlopen ();
9954 ;
9955 return 0;
9956 }
9957 _ACEOF
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (ac_try="$ac_link"
9960 case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_link") 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_lib_svld_dlopen=yes
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_lib_svld_dlopen=no
9998 fi
9999
10000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10003 fi
10004 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10006 if test $ac_cv_lib_svld_dlopen = yes; then
10007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10008 else
10009 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10010 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-ldld $LIBS"
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char dld_link ();
10030 int
10031 main ()
10032 {
10033 return dld_link ();
10034 ;
10035 return 0;
10036 }
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_lib_dld_dld_link=yes
10073 else
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 ac_cv_lib_dld_dld_link=no
10078 fi
10079
10080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10081 conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10083 fi
10084 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10085 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10086 if test $ac_cv_lib_dld_dld_link = yes; then
10087 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10088 fi
10089
10090
10091 fi
10092
10093
10094 fi
10095
10096
10097 fi
10098
10099
10100 fi
10101
10102
10103 fi
10104
10105 ;;
10106 esac
10107
10108 if test "x$lt_cv_dlopen" != xno; then
10109 enable_dlopen=yes
10110 else
10111 enable_dlopen=no
10112 fi
10113
10114 case $lt_cv_dlopen in
10115 dlopen)
10116 save_CPPFLAGS="$CPPFLAGS"
10117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10118
10119 save_LDFLAGS="$LDFLAGS"
10120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10121
10122 save_LIBS="$LIBS"
10123 LIBS="$lt_cv_dlopen_libs $LIBS"
10124
10125 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10126 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10127 if test "${lt_cv_dlopen_self+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130 if test "$cross_compiling" = yes; then :
10131 lt_cv_dlopen_self=cross
10132 else
10133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10134 lt_status=$lt_dlunknown
10135 cat > conftest.$ac_ext <<EOF
10136 #line 10136 "configure"
10137 #include "confdefs.h"
10138
10139 #if HAVE_DLFCN_H
10140 #include <dlfcn.h>
10141 #endif
10142
10143 #include <stdio.h>
10144
10145 #ifdef RTLD_GLOBAL
10146 # define LT_DLGLOBAL RTLD_GLOBAL
10147 #else
10148 # ifdef DL_GLOBAL
10149 # define LT_DLGLOBAL DL_GLOBAL
10150 # else
10151 # define LT_DLGLOBAL 0
10152 # endif
10153 #endif
10154
10155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10156 find out it does not work in some platform. */
10157 #ifndef LT_DLLAZY_OR_NOW
10158 # ifdef RTLD_LAZY
10159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10160 # else
10161 # ifdef DL_LAZY
10162 # define LT_DLLAZY_OR_NOW DL_LAZY
10163 # else
10164 # ifdef RTLD_NOW
10165 # define LT_DLLAZY_OR_NOW RTLD_NOW
10166 # else
10167 # ifdef DL_NOW
10168 # define LT_DLLAZY_OR_NOW DL_NOW
10169 # else
10170 # define LT_DLLAZY_OR_NOW 0
10171 # endif
10172 # endif
10173 # endif
10174 # endif
10175 #endif
10176
10177 #ifdef __cplusplus
10178 extern "C" void exit (int);
10179 #endif
10180
10181 void fnord() { int i=42;}
10182 int main ()
10183 {
10184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10185 int status = $lt_dlunknown;
10186
10187 if (self)
10188 {
10189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10191 /* dlclose (self); */
10192 }
10193 else
10194 puts (dlerror ());
10195
10196 exit (status);
10197 }
10198 EOF
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10204 (./conftest; exit; ) >&5 2>/dev/null
10205 lt_status=$?
10206 case x$lt_status in
10207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10209 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10210 esac
10211 else :
10212 # compilation failed
10213 lt_cv_dlopen_self=no
10214 fi
10215 fi
10216 rm -fr conftest*
10217
10218
10219 fi
10220 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10221 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10222
10223 if test "x$lt_cv_dlopen_self" = xyes; then
10224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10225 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10226 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10227 if test "${lt_cv_dlopen_self_static+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 if test "$cross_compiling" = yes; then :
10231 lt_cv_dlopen_self_static=cross
10232 else
10233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10234 lt_status=$lt_dlunknown
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10236 "configure"
10237 #include "confdefs.h"
10238
10239 #if HAVE_DLFCN_H
10240 #include <dlfcn.h>
10241 #endif
10242
10243 #include <stdio.h>
10244
10245 #ifdef RTLD_GLOBAL
10246 # define LT_DLGLOBAL RTLD_GLOBAL
10247 #else
10248 # ifdef DL_GLOBAL
10249 # define LT_DLGLOBAL DL_GLOBAL
10250 # else
10251 # define LT_DLGLOBAL 0
10252 # endif
10253 #endif
10254
10255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10256 find out it does not work in some platform. */
10257 #ifndef LT_DLLAZY_OR_NOW
10258 # ifdef RTLD_LAZY
10259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10260 # else
10261 # ifdef DL_LAZY
10262 # define LT_DLLAZY_OR_NOW DL_LAZY
10263 # else
10264 # ifdef RTLD_NOW
10265 # define LT_DLLAZY_OR_NOW RTLD_NOW
10266 # else
10267 # ifdef DL_NOW
10268 # define LT_DLLAZY_OR_NOW DL_NOW
10269 # else
10270 # define LT_DLLAZY_OR_NOW 0
10271 # endif
10272 # endif
10273 # endif
10274 # endif
10275 #endif
10276
10277 #ifdef __cplusplus
10278 extern "C" void exit (int);
10279 #endif
10280
10281 void fnord() { int i=42;}
10282 int main ()
10283 {
10284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10285 int status = $lt_dlunknown;
10286
10287 if (self)
10288 {
10289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10291 /* dlclose (self); */
10292 }
10293 else
10294 puts (dlerror ());
10295
10296 exit (status);
10297 }
10298 EOF
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10304 (./conftest; exit; ) >&5 2>/dev/null
10305 lt_status=$?
10306 case x$lt_status in
10307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10310 esac
10311 else :
10312 # compilation failed
10313 lt_cv_dlopen_self_static=no
10314 fi
10315 fi
10316 rm -fr conftest*
10317
10318
10319 fi
10320 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10321 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10322 fi
10323
10324 CPPFLAGS="$save_CPPFLAGS"
10325 LDFLAGS="$save_LDFLAGS"
10326 LIBS="$save_LIBS"
10327 ;;
10328 esac
10329
10330 case $lt_cv_dlopen_self in
10331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10332 *) enable_dlopen_self=unknown ;;
10333 esac
10334
10335 case $lt_cv_dlopen_self_static in
10336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10337 *) enable_dlopen_self_static=unknown ;;
10338 esac
10339 fi
10340
10341
10342 # Report which library types will actually be built
10343 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10344 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10345 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10346 echo "${ECHO_T}$can_build_shared" >&6; }
10347
10348 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10349 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10350 test "$can_build_shared" = "no" && enable_shared=no
10351
10352 # On AIX, shared libraries and static libraries use the same namespace, and
10353 # are all built from PIC.
10354 case $host_os in
10355 aix3*)
10356 test "$enable_shared" = yes && enable_static=no
10357 if test -n "$RANLIB"; then
10358 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10359 postinstall_cmds='$RANLIB $lib'
10360 fi
10361 ;;
10362
10363 aix4* | aix5*)
10364 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10365 test "$enable_shared" = yes && enable_static=no
10366 fi
10367 ;;
10368 esac
10369 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10370 echo "${ECHO_T}$enable_shared" >&6; }
10371
10372 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10373 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10374 # Make sure either enable_shared or enable_static is yes.
10375 test "$enable_shared" = yes || enable_static=yes
10376 { echo "$as_me:$LINENO: result: $enable_static" >&5
10377 echo "${ECHO_T}$enable_static" >&6; }
10378
10379 # The else clause should only fire when bootstrapping the
10380 # libtool distribution, otherwise you forgot to ship ltmain.sh
10381 # with your package, and you will get complaints that there are
10382 # no rules to generate ltmain.sh.
10383 if test -f "$ltmain"; then
10384 # See if we are running on zsh, and set the options which allow our commands through
10385 # without removal of \ escapes.
10386 if test -n "${ZSH_VERSION+set}" ; then
10387 setopt NO_GLOB_SUBST
10388 fi
10389 # Now quote all the things that may contain metacharacters while being
10390 # careful not to overquote the AC_SUBSTed values. We take copies of the
10391 # variables and quote the copies for generation of the libtool script.
10392 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10393 SED SHELL STRIP \
10394 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10395 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10396 deplibs_check_method reload_flag reload_cmds need_locks \
10397 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10398 lt_cv_sys_global_symbol_to_c_name_address \
10399 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10400 old_postinstall_cmds old_postuninstall_cmds \
10401 compiler \
10402 CC \
10403 LD \
10404 lt_prog_compiler_wl \
10405 lt_prog_compiler_pic \
10406 lt_prog_compiler_static \
10407 lt_prog_compiler_no_builtin_flag \
10408 export_dynamic_flag_spec \
10409 thread_safe_flag_spec \
10410 whole_archive_flag_spec \
10411 enable_shared_with_static_runtimes \
10412 old_archive_cmds \
10413 old_archive_from_new_cmds \
10414 predep_objects \
10415 postdep_objects \
10416 predeps \
10417 postdeps \
10418 compiler_lib_search_path \
10419 archive_cmds \
10420 archive_expsym_cmds \
10421 postinstall_cmds \
10422 postuninstall_cmds \
10423 old_archive_from_expsyms_cmds \
10424 allow_undefined_flag \
10425 no_undefined_flag \
10426 export_symbols_cmds \
10427 hardcode_libdir_flag_spec \
10428 hardcode_libdir_flag_spec_ld \
10429 hardcode_libdir_separator \
10430 hardcode_automatic \
10431 module_cmds \
10432 module_expsym_cmds \
10433 lt_cv_prog_compiler_c_o \
10434 exclude_expsyms \
10435 include_expsyms; do
10436
10437 case $var in
10438 old_archive_cmds | \
10439 old_archive_from_new_cmds | \
10440 archive_cmds | \
10441 archive_expsym_cmds | \
10442 module_cmds | \
10443 module_expsym_cmds | \
10444 old_archive_from_expsyms_cmds | \
10445 export_symbols_cmds | \
10446 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10447 postinstall_cmds | postuninstall_cmds | \
10448 old_postinstall_cmds | old_postuninstall_cmds | \
10449 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10450 # Double-quote double-evaled strings.
10451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10452 ;;
10453 *)
10454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10455 ;;
10456 esac
10457 done
10458
10459 case $lt_echo in
10460 *'\$0 --fallback-echo"')
10461 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10462 ;;
10463 esac
10464
10465 cfgfile="${ofile}T"
10466 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10467 $rm -f "$cfgfile"
10468 { echo "$as_me:$LINENO: creating $ofile" >&5
10469 echo "$as_me: creating $ofile" >&6;}
10470
10471 cat <<__EOF__ >> "$cfgfile"
10472 #! $SHELL
10473
10474 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10475 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10476 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10477 #
10478 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10479 # Free Software Foundation, Inc.
10480 #
10481 # This file is part of GNU Libtool:
10482 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10483 #
10484 # This program is free software; you can redistribute it and/or modify
10485 # it under the terms of the GNU General Public License as published by
10486 # the Free Software Foundation; either version 2 of the License, or
10487 # (at your option) any later version.
10488 #
10489 # This program is distributed in the hope that it will be useful, but
10490 # WITHOUT ANY WARRANTY; without even the implied warranty of
10491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10492 # General Public License for more details.
10493 #
10494 # You should have received a copy of the GNU General Public License
10495 # along with this program; if not, write to the Free Software
10496 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10497 #
10498 # As a special exception to the GNU General Public License, if you
10499 # distribute this file as part of a program that contains a
10500 # configuration script generated by Autoconf, you may include it under
10501 # the same distribution terms that you use for the rest of that program.
10502
10503 # A sed program that does not truncate output.
10504 SED=$lt_SED
10505
10506 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10507 Xsed="$SED -e 1s/^X//"
10508
10509 # The HP-UX ksh and POSIX shell print the target directory to stdout
10510 # if CDPATH is set.
10511 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10512
10513 # The names of the tagged configurations supported by this script.
10514 available_tags=
10515
10516 # ### BEGIN LIBTOOL CONFIG
10517
10518 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10519
10520 # Shell to use when invoking shell scripts.
10521 SHELL=$lt_SHELL
10522
10523 # Whether or not to build shared libraries.
10524 build_libtool_libs=$enable_shared
10525
10526 # Whether or not to build static libraries.
10527 build_old_libs=$enable_static
10528
10529 # Whether or not to add -lc for building shared libraries.
10530 build_libtool_need_lc=$archive_cmds_need_lc
10531
10532 # Whether or not to disallow shared libs when runtime libs are static
10533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10534
10535 # Whether or not to optimize for fast installation.
10536 fast_install=$enable_fast_install
10537
10538 # The host system.
10539 host_alias=$host_alias
10540 host=$host
10541 host_os=$host_os
10542
10543 # The build system.
10544 build_alias=$build_alias
10545 build=$build
10546 build_os=$build_os
10547
10548 # An echo program that does not interpret backslashes.
10549 echo=$lt_echo
10550
10551 # The archiver.
10552 AR=$lt_AR
10553 AR_FLAGS=$lt_AR_FLAGS
10554
10555 # A C compiler.
10556 LTCC=$lt_LTCC
10557
10558 # LTCC compiler flags.
10559 LTCFLAGS=$lt_LTCFLAGS
10560
10561 # A language-specific compiler.
10562 CC=$lt_compiler
10563
10564 # Is the compiler the GNU C compiler?
10565 with_gcc=$GCC
10566
10567 # An ERE matcher.
10568 EGREP=$lt_EGREP
10569
10570 # The linker used to build libraries.
10571 LD=$lt_LD
10572
10573 # Whether we need hard or soft links.
10574 LN_S=$lt_LN_S
10575
10576 # A BSD-compatible nm program.
10577 NM=$lt_NM
10578
10579 # A symbol stripping program
10580 STRIP=$lt_STRIP
10581
10582 # Used to examine libraries when file_magic_cmd begins "file"
10583 MAGIC_CMD=$MAGIC_CMD
10584
10585 # Used on cygwin: DLL creation program.
10586 DLLTOOL="$DLLTOOL"
10587
10588 # Used on cygwin: object dumper.
10589 OBJDUMP="$OBJDUMP"
10590
10591 # Used on cygwin: assembler.
10592 AS="$AS"
10593
10594 # The name of the directory that contains temporary libtool files.
10595 objdir=$objdir
10596
10597 # How to create reloadable object files.
10598 reload_flag=$lt_reload_flag
10599 reload_cmds=$lt_reload_cmds
10600
10601 # How to pass a linker flag through the compiler.
10602 wl=$lt_lt_prog_compiler_wl
10603
10604 # Object file suffix (normally "o").
10605 objext="$ac_objext"
10606
10607 # Old archive suffix (normally "a").
10608 libext="$libext"
10609
10610 # Shared library suffix (normally ".so").
10611 shrext_cmds='$shrext_cmds'
10612
10613 # Executable file suffix (normally "").
10614 exeext="$exeext"
10615
10616 # Additional compiler flags for building library objects.
10617 pic_flag=$lt_lt_prog_compiler_pic
10618 pic_mode=$pic_mode
10619
10620 # What is the maximum length of a command?
10621 max_cmd_len=$lt_cv_sys_max_cmd_len
10622
10623 # Does compiler simultaneously support -c and -o options?
10624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10625
10626 # Must we lock files when doing compilation?
10627 need_locks=$lt_need_locks
10628
10629 # Do we need the lib prefix for modules?
10630 need_lib_prefix=$need_lib_prefix
10631
10632 # Do we need a version for libraries?
10633 need_version=$need_version
10634
10635 # Whether dlopen is supported.
10636 dlopen_support=$enable_dlopen
10637
10638 # Whether dlopen of programs is supported.
10639 dlopen_self=$enable_dlopen_self
10640
10641 # Whether dlopen of statically linked programs is supported.
10642 dlopen_self_static=$enable_dlopen_self_static
10643
10644 # Compiler flag to prevent dynamic linking.
10645 link_static_flag=$lt_lt_prog_compiler_static
10646
10647 # Compiler flag to turn off builtin functions.
10648 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10649
10650 # Compiler flag to allow reflexive dlopens.
10651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10652
10653 # Compiler flag to generate shared objects directly from archives.
10654 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10655
10656 # Compiler flag to generate thread-safe objects.
10657 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10658
10659 # Library versioning type.
10660 version_type=$version_type
10661
10662 # Format of library name prefix.
10663 libname_spec=$lt_libname_spec
10664
10665 # List of archive names. First name is the real one, the rest are links.
10666 # The last name is the one that the linker finds with -lNAME.
10667 library_names_spec=$lt_library_names_spec
10668
10669 # The coded name of the library, if different from the real name.
10670 soname_spec=$lt_soname_spec
10671
10672 # Commands used to build and install an old-style archive.
10673 RANLIB=$lt_RANLIB
10674 old_archive_cmds=$lt_old_archive_cmds
10675 old_postinstall_cmds=$lt_old_postinstall_cmds
10676 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10677
10678 # Create an old-style archive from a shared archive.
10679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10680
10681 # Create a temporary old-style archive to link instead of a shared archive.
10682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10683
10684 # Commands used to build and install a shared archive.
10685 archive_cmds=$lt_archive_cmds
10686 archive_expsym_cmds=$lt_archive_expsym_cmds
10687 postinstall_cmds=$lt_postinstall_cmds
10688 postuninstall_cmds=$lt_postuninstall_cmds
10689
10690 # Commands used to build a loadable module (assumed same as above if empty)
10691 module_cmds=$lt_module_cmds
10692 module_expsym_cmds=$lt_module_expsym_cmds
10693
10694 # Commands to strip libraries.
10695 old_striplib=$lt_old_striplib
10696 striplib=$lt_striplib
10697
10698 # Dependencies to place before the objects being linked to create a
10699 # shared library.
10700 predep_objects=$lt_predep_objects
10701
10702 # Dependencies to place after the objects being linked to create a
10703 # shared library.
10704 postdep_objects=$lt_postdep_objects
10705
10706 # Dependencies to place before the objects being linked to create a
10707 # shared library.
10708 predeps=$lt_predeps
10709
10710 # Dependencies to place after the objects being linked to create a
10711 # shared library.
10712 postdeps=$lt_postdeps
10713
10714 # The library search path used internally by the compiler when linking
10715 # a shared library.
10716 compiler_lib_search_path=$lt_compiler_lib_search_path
10717
10718 # Method to check whether dependent libraries are shared objects.
10719 deplibs_check_method=$lt_deplibs_check_method
10720
10721 # Command to use when deplibs_check_method == file_magic.
10722 file_magic_cmd=$lt_file_magic_cmd
10723
10724 # Flag that allows shared libraries with undefined symbols to be built.
10725 allow_undefined_flag=$lt_allow_undefined_flag
10726
10727 # Flag that forces no undefined symbols.
10728 no_undefined_flag=$lt_no_undefined_flag
10729
10730 # Commands used to finish a libtool library installation in a directory.
10731 finish_cmds=$lt_finish_cmds
10732
10733 # Same as above, but a single script fragment to be evaled but not shown.
10734 finish_eval=$lt_finish_eval
10735
10736 # Take the output of nm and produce a listing of raw symbols and C names.
10737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10738
10739 # Transform the output of nm in a proper C declaration
10740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10741
10742 # Transform the output of nm in a C name address pair
10743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10744
10745 # This is the shared library runtime path variable.
10746 runpath_var=$runpath_var
10747
10748 # This is the shared library path variable.
10749 shlibpath_var=$shlibpath_var
10750
10751 # Is shlibpath searched before the hard-coded library search path?
10752 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10753
10754 # How to hardcode a shared library path into an executable.
10755 hardcode_action=$hardcode_action
10756
10757 # Whether we should hardcode library paths into libraries.
10758 hardcode_into_libs=$hardcode_into_libs
10759
10760 # Flag to hardcode \$libdir into a binary during linking.
10761 # This must work even if \$libdir does not exist.
10762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10763
10764 # If ld is used when linking, flag to hardcode \$libdir into
10765 # a binary during linking. This must work even if \$libdir does
10766 # not exist.
10767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10768
10769 # Whether we need a single -rpath flag with a separated argument.
10770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10771
10772 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10773 # resulting binary.
10774 hardcode_direct=$hardcode_direct
10775
10776 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10777 # resulting binary.
10778 hardcode_minus_L=$hardcode_minus_L
10779
10780 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10781 # the resulting binary.
10782 hardcode_shlibpath_var=$hardcode_shlibpath_var
10783
10784 # Set to yes if building a shared library automatically hardcodes DIR into the library
10785 # and all subsequent libraries and executables linked against it.
10786 hardcode_automatic=$hardcode_automatic
10787
10788 # Variables whose values should be saved in libtool wrapper scripts and
10789 # restored at relink time.
10790 variables_saved_for_relink="$variables_saved_for_relink"
10791
10792 # Whether libtool must link a program against all its dependency libraries.
10793 link_all_deplibs=$link_all_deplibs
10794
10795 # Compile-time system search path for libraries
10796 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10797
10798 # Run-time system search path for libraries
10799 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10800
10801 # Fix the shell variable \$srcfile for the compiler.
10802 fix_srcfile_path="$fix_srcfile_path"
10803
10804 # Set to yes if exported symbols are required.
10805 always_export_symbols=$always_export_symbols
10806
10807 # The commands to list exported symbols.
10808 export_symbols_cmds=$lt_export_symbols_cmds
10809
10810 # The commands to extract the exported symbol list from a shared archive.
10811 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10812
10813 # Symbols that should not be listed in the preloaded symbols.
10814 exclude_expsyms=$lt_exclude_expsyms
10815
10816 # Symbols that must always be exported.
10817 include_expsyms=$lt_include_expsyms
10818
10819 # ### END LIBTOOL CONFIG
10820
10821 __EOF__
10822
10823
10824 case $host_os in
10825 aix3*)
10826 cat <<\EOF >> "$cfgfile"
10827
10828 # AIX sometimes has problems with the GCC collect2 program. For some
10829 # reason, if we set the COLLECT_NAMES environment variable, the problems
10830 # vanish in a puff of smoke.
10831 if test "X${COLLECT_NAMES+set}" != Xset; then
10832 COLLECT_NAMES=
10833 export COLLECT_NAMES
10834 fi
10835 EOF
10836 ;;
10837 esac
10838
10839 # We use sed instead of cat because bash on DJGPP gets confused if
10840 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10841 # text mode, it properly converts lines to CR/LF. This bash problem
10842 # is reportedly fixed, but why not run on old versions too?
10843 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10844
10845 mv -f "$cfgfile" "$ofile" || \
10846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10847 chmod +x "$ofile"
10848
10849 else
10850 # If there is no Makefile yet, we rely on a make rule to execute
10851 # `config.status --recheck' to rerun these tests and create the
10852 # libtool script then.
10853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10854 if test -f "$ltmain_in"; then
10855 test -f Makefile && make "$ltmain"
10856 fi
10857 fi
10858
10859
10860 ac_ext=c
10861 ac_cpp='$CPP $CPPFLAGS'
10862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10865
10866 CC="$lt_save_CC"
10867
10868
10869 # Check whether --with-tags was given.
10870 if test "${with_tags+set}" = set; then
10871 withval=$with_tags; tagnames="$withval"
10872 fi
10873
10874
10875 if test -f "$ltmain" && test -n "$tagnames"; then
10876 if test ! -f "${ofile}"; then
10877 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10878 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10879 fi
10880
10881 if test -z "$LTCC"; then
10882 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10883 if test -z "$LTCC"; then
10884 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10885 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10886 else
10887 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10888 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10889 fi
10890 fi
10891 if test -z "$LTCFLAGS"; then
10892 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10893 fi
10894
10895 # Extract list of available tagged configurations in $ofile.
10896 # Note that this assumes the entire list is on one line.
10897 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10898
10899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10900 for tagname in $tagnames; do
10901 IFS="$lt_save_ifs"
10902 # Check whether tagname contains only valid characters
10903 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10904 "") ;;
10905 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10906 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10907 { (exit 1); exit 1; }; }
10908 ;;
10909 esac
10910
10911 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10912 then
10913 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10914 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10915 { (exit 1); exit 1; }; }
10916 fi
10917
10918 # Update the list of available tags.
10919 if test -n "$tagname"; then
10920 echo appending configuration tag \"$tagname\" to $ofile
10921
10922 case $tagname in
10923 CXX)
10924 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10925 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10926 (test "X$CXX" != "Xg++"))) ; then
10927 ac_ext=cpp
10928 ac_cpp='$CXXCPP $CPPFLAGS'
10929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10932
10933
10934
10935
10936 archive_cmds_need_lc_CXX=no
10937 allow_undefined_flag_CXX=
10938 always_export_symbols_CXX=no
10939 archive_expsym_cmds_CXX=
10940 export_dynamic_flag_spec_CXX=
10941 hardcode_direct_CXX=no
10942 hardcode_libdir_flag_spec_CXX=
10943 hardcode_libdir_flag_spec_ld_CXX=
10944 hardcode_libdir_separator_CXX=
10945 hardcode_minus_L_CXX=no
10946 hardcode_shlibpath_var_CXX=unsupported
10947 hardcode_automatic_CXX=no
10948 module_cmds_CXX=
10949 module_expsym_cmds_CXX=
10950 link_all_deplibs_CXX=unknown
10951 old_archive_cmds_CXX=$old_archive_cmds
10952 no_undefined_flag_CXX=
10953 whole_archive_flag_spec_CXX=
10954 enable_shared_with_static_runtimes_CXX=no
10955
10956 # Dependencies to place before and after the object being linked:
10957 predep_objects_CXX=
10958 postdep_objects_CXX=
10959 predeps_CXX=
10960 postdeps_CXX=
10961 compiler_lib_search_path_CXX=
10962
10963 # Source file extension for C++ test sources.
10964 ac_ext=cpp
10965
10966 # Object file extension for compiled C++ test sources.
10967 objext=o
10968 objext_CXX=$objext
10969
10970 # Code to be used in simple compile tests
10971 lt_simple_compile_test_code="int some_variable = 0;\n"
10972
10973 # Code to be used in simple link tests
10974 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10975
10976 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10977
10978 # If no C compiler was specified, use CC.
10979 LTCC=${LTCC-"$CC"}
10980
10981 # If no C compiler flags were specified, use CFLAGS.
10982 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10983
10984 # Allow CC to be a program name with arguments.
10985 compiler=$CC
10986
10987
10988 # save warnings/boilerplate of simple test code
10989 ac_outfile=conftest.$ac_objext
10990 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10991 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10992 _lt_compiler_boilerplate=`cat conftest.err`
10993 $rm conftest*
10994
10995 ac_outfile=conftest.$ac_objext
10996 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10997 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10998 _lt_linker_boilerplate=`cat conftest.err`
10999 $rm conftest*
11000
11001
11002 # Allow CC to be a program name with arguments.
11003 lt_save_CC=$CC
11004 lt_save_LD=$LD
11005 lt_save_GCC=$GCC
11006 GCC=$GXX
11007 lt_save_with_gnu_ld=$with_gnu_ld
11008 lt_save_path_LD=$lt_cv_path_LD
11009 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11010 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11011 else
11012 $as_unset lt_cv_prog_gnu_ld
11013 fi
11014 if test -n "${lt_cv_path_LDCXX+set}"; then
11015 lt_cv_path_LD=$lt_cv_path_LDCXX
11016 else
11017 $as_unset lt_cv_path_LD
11018 fi
11019 test -z "${LDCXX+set}" || LD=$LDCXX
11020 CC=${CXX-"c++"}
11021 compiler=$CC
11022 compiler_CXX=$CC
11023 for cc_temp in $compiler""; do
11024 case $cc_temp in
11025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11027 \-*) ;;
11028 *) break;;
11029 esac
11030 done
11031 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11032
11033
11034 # We don't want -fno-exception wen compiling C++ code, so set the
11035 # no_builtin_flag separately
11036 if test "$GXX" = yes; then
11037 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11038 else
11039 lt_prog_compiler_no_builtin_flag_CXX=
11040 fi
11041
11042 if test "$GXX" = yes; then
11043 # Set up default GNU C++ configuration
11044
11045
11046 # Check whether --with-gnu-ld was given.
11047 if test "${with_gnu_ld+set}" = set; then
11048 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11049 else
11050 with_gnu_ld=no
11051 fi
11052
11053 ac_prog=ld
11054 if test "$GCC" = yes; then
11055 # Check if gcc -print-prog-name=ld gives a path.
11056 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11057 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11058 case $host in
11059 *-*-mingw*)
11060 # gcc leaves a trailing carriage return which upsets mingw
11061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11062 *)
11063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11064 esac
11065 case $ac_prog in
11066 # Accept absolute paths.
11067 [\\/]* | ?:[\\/]*)
11068 re_direlt='/[^/][^/]*/\.\./'
11069 # Canonicalize the pathname of ld
11070 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11071 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11072 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11073 done
11074 test -z "$LD" && LD="$ac_prog"
11075 ;;
11076 "")
11077 # If it fails, then pretend we aren't using GCC.
11078 ac_prog=ld
11079 ;;
11080 *)
11081 # If it is relative, then search for the first ld in PATH.
11082 with_gnu_ld=unknown
11083 ;;
11084 esac
11085 elif test "$with_gnu_ld" = yes; then
11086 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11087 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11088 else
11089 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11090 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11091 fi
11092 if test "${lt_cv_path_LD+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095 if test -z "$LD"; then
11096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11097 for ac_dir in $PATH; do
11098 IFS="$lt_save_ifs"
11099 test -z "$ac_dir" && ac_dir=.
11100 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11101 lt_cv_path_LD="$ac_dir/$ac_prog"
11102 # Check to see if the program is GNU ld. I'd rather use --version,
11103 # but apparently some variants of GNU ld only accept -v.
11104 # Break only if it was the GNU/non-GNU ld that we prefer.
11105 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11106 *GNU* | *'with BFD'*)
11107 test "$with_gnu_ld" != no && break
11108 ;;
11109 *)
11110 test "$with_gnu_ld" != yes && break
11111 ;;
11112 esac
11113 fi
11114 done
11115 IFS="$lt_save_ifs"
11116 else
11117 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11118 fi
11119 fi
11120
11121 LD="$lt_cv_path_LD"
11122 if test -n "$LD"; then
11123 { echo "$as_me:$LINENO: result: $LD" >&5
11124 echo "${ECHO_T}$LD" >&6; }
11125 else
11126 { echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6; }
11128 fi
11129 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11130 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11131 { (exit 1); exit 1; }; }
11132 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11133 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11134 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11138 case `$LD -v 2>&1 </dev/null` in
11139 *GNU* | *'with BFD'*)
11140 lt_cv_prog_gnu_ld=yes
11141 ;;
11142 *)
11143 lt_cv_prog_gnu_ld=no
11144 ;;
11145 esac
11146 fi
11147 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11148 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11149 with_gnu_ld=$lt_cv_prog_gnu_ld
11150
11151
11152
11153 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11154 # archiving commands below assume that GNU ld is being used.
11155 if test "$with_gnu_ld" = yes; then
11156 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11157 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'
11158
11159 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11161
11162 # If archive_cmds runs LD, not CC, wlarc should be empty
11163 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11164 # investigate it a little bit more. (MM)
11165 wlarc='${wl}'
11166
11167 # ancient GNU ld didn't support --whole-archive et. al.
11168 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11169 grep 'no-whole-archive' > /dev/null; then
11170 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11171 else
11172 whole_archive_flag_spec_CXX=
11173 fi
11174 else
11175 with_gnu_ld=no
11176 wlarc=
11177
11178 # A generic and very simple default shared library creation
11179 # command for GNU C++ for the case where it uses the native
11180 # linker, instead of GNU ld. If possible, this setting should
11181 # overridden to take advantage of the native linker features on
11182 # the platform it is being used on.
11183 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11184 fi
11185
11186 # Commands to make compiler produce verbose output that lists
11187 # what "hidden" libraries, object files and flags are used when
11188 # linking a shared library.
11189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11190
11191 else
11192 GXX=no
11193 with_gnu_ld=no
11194 wlarc=
11195 fi
11196
11197 # PORTME: fill in a description of your system's C++ link characteristics
11198 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11199 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11200 ld_shlibs_CXX=yes
11201 case $host_os in
11202 aix3*)
11203 # FIXME: insert proper C++ library support
11204 ld_shlibs_CXX=no
11205 ;;
11206 aix4* | aix5*)
11207 if test "$host_cpu" = ia64; then
11208 # On IA64, the linker does run time linking by default, so we don't
11209 # have to do anything special.
11210 aix_use_runtimelinking=no
11211 exp_sym_flag='-Bexport'
11212 no_entry_flag=""
11213 else
11214 aix_use_runtimelinking=no
11215
11216 # Test if we are trying to use run time linking or normal
11217 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11218 # need to do runtime linking.
11219 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11220 for ld_flag in $LDFLAGS; do
11221 case $ld_flag in
11222 *-brtl*)
11223 aix_use_runtimelinking=yes
11224 break
11225 ;;
11226 esac
11227 done
11228 ;;
11229 esac
11230
11231 exp_sym_flag='-bexport'
11232 no_entry_flag='-bnoentry'
11233 fi
11234
11235 # When large executables or shared objects are built, AIX ld can
11236 # have problems creating the table of contents. If linking a library
11237 # or program results in "error TOC overflow" add -mminimal-toc to
11238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11240
11241 archive_cmds_CXX=''
11242 hardcode_direct_CXX=yes
11243 hardcode_libdir_separator_CXX=':'
11244 link_all_deplibs_CXX=yes
11245
11246 if test "$GXX" = yes; then
11247 case $host_os in aix4.[012]|aix4.[012].*)
11248 # We only want to do this on AIX 4.2 and lower, the check
11249 # below for broken collect2 doesn't work under 4.3+
11250 collect2name=`${CC} -print-prog-name=collect2`
11251 if test -f "$collect2name" && \
11252 strings "$collect2name" | grep resolve_lib_name >/dev/null
11253 then
11254 # We have reworked collect2
11255 hardcode_direct_CXX=yes
11256 else
11257 # We have old collect2
11258 hardcode_direct_CXX=unsupported
11259 # It fails to find uninstalled libraries when the uninstalled
11260 # path is not listed in the libpath. Setting hardcode_minus_L
11261 # to unsupported forces relinking
11262 hardcode_minus_L_CXX=yes
11263 hardcode_libdir_flag_spec_CXX='-L$libdir'
11264 hardcode_libdir_separator_CXX=
11265 fi
11266 ;;
11267 esac
11268 shared_flag='-shared'
11269 if test "$aix_use_runtimelinking" = yes; then
11270 shared_flag="$shared_flag "'${wl}-G'
11271 fi
11272 else
11273 # not using gcc
11274 if test "$host_cpu" = ia64; then
11275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11276 # chokes on -Wl,-G. The following line is correct:
11277 shared_flag='-G'
11278 else
11279 if test "$aix_use_runtimelinking" = yes; then
11280 shared_flag='${wl}-G'
11281 else
11282 shared_flag='${wl}-bM:SRE'
11283 fi
11284 fi
11285 fi
11286
11287 # It seems that -bexpall does not export symbols beginning with
11288 # underscore (_), so it is better to generate a list of symbols to export.
11289 always_export_symbols_CXX=yes
11290 if test "$aix_use_runtimelinking" = yes; then
11291 # Warning - without using the other runtime loading flags (-brtl),
11292 # -berok will link without error, but may produce a broken library.
11293 allow_undefined_flag_CXX='-berok'
11294 # Determine the default libpath from the value encoded in an empty executable.
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h. */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301
11302 int
11303 main ()
11304 {
11305
11306 ;
11307 return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext conftest$ac_exeext
11311 if { (ac_try="$ac_link"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_link") 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11325 { (case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_try") 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest$ac_exeext'
11335 { (case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338 esac
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_try") 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344
11345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11346 }'`
11347 # Check for a 64-bit object if we didn't find anything.
11348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11349 }'`; fi
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11358 conftest$ac_exeext conftest.$ac_ext
11359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11360
11361 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11362
11363 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"
11364 else
11365 if test "$host_cpu" = ia64; then
11366 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11367 allow_undefined_flag_CXX="-z nodefs"
11368 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"
11369 else
11370 # Determine the default libpath from the value encoded in an empty executable.
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377
11378 int
11379 main ()
11380 {
11381
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_link") 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11401 { (case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_try") 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest$ac_exeext'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420
11421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11422 }'`
11423 # Check for a 64-bit object if we didn't find anything.
11424 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11425 }'`; fi
11426 else
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430
11431 fi
11432
11433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11434 conftest$ac_exeext conftest.$ac_ext
11435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11436
11437 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11438 # Warning - without using the other run time loading flags,
11439 # -berok will link without error, but may produce a broken library.
11440 no_undefined_flag_CXX=' ${wl}-bernotok'
11441 allow_undefined_flag_CXX=' ${wl}-berok'
11442 # Exported symbols can be pulled into shared objects from archives
11443 whole_archive_flag_spec_CXX='$convenience'
11444 archive_cmds_need_lc_CXX=yes
11445 # This is similar to how AIX traditionally builds its shared libraries.
11446 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'
11447 fi
11448 fi
11449 ;;
11450
11451 beos*)
11452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11453 allow_undefined_flag_CXX=unsupported
11454 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11455 # support --undefined. This deserves some investigation. FIXME
11456 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11457 else
11458 ld_shlibs_CXX=no
11459 fi
11460 ;;
11461
11462 chorus*)
11463 case $cc_basename in
11464 *)
11465 # FIXME: insert proper C++ library support
11466 ld_shlibs_CXX=no
11467 ;;
11468 esac
11469 ;;
11470
11471 cygwin* | mingw* | pw32*)
11472 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11473 # as there is no search path for DLLs.
11474 hardcode_libdir_flag_spec_CXX='-L$libdir'
11475 allow_undefined_flag_CXX=unsupported
11476 always_export_symbols_CXX=no
11477 enable_shared_with_static_runtimes_CXX=yes
11478
11479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11480 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'
11481 # If the export-symbols file already is a .def file (1st line
11482 # is EXPORTS), use it as is; otherwise, prepend...
11483 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11484 cp $export_symbols $output_objdir/$soname.def;
11485 else
11486 echo EXPORTS > $output_objdir/$soname.def;
11487 cat $export_symbols >> $output_objdir/$soname.def;
11488 fi~
11489 $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'
11490 else
11491 ld_shlibs_CXX=no
11492 fi
11493 ;;
11494 darwin* | rhapsody*)
11495 case $host_os in
11496 rhapsody* | darwin1.[012])
11497 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11498 ;;
11499 *) # Darwin 1.3 on
11500 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11501 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11502 else
11503 case ${MACOSX_DEPLOYMENT_TARGET} in
11504 10.[012])
11505 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11506 ;;
11507 10.*)
11508 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11509 ;;
11510 esac
11511 fi
11512 ;;
11513 esac
11514 archive_cmds_need_lc_CXX=no
11515 hardcode_direct_CXX=no
11516 hardcode_automatic_CXX=yes
11517 hardcode_shlibpath_var_CXX=unsupported
11518 whole_archive_flag_spec_CXX=''
11519 link_all_deplibs_CXX=yes
11520
11521 if test "$GXX" = yes ; then
11522 lt_int_apple_cc_single_mod=no
11523 output_verbose_link_cmd='echo'
11524 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11525 lt_int_apple_cc_single_mod=yes
11526 fi
11527 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11528 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11529 else
11530 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'
11531 fi
11532 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11533 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11534 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11535 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11536 else
11537 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11538 fi
11539 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}'
11540 else
11541 case $cc_basename in
11542 xlc*)
11543 output_verbose_link_cmd='echo'
11544 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11545 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11547 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11548 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}'
11549 ;;
11550 *)
11551 ld_shlibs_CXX=no
11552 ;;
11553 esac
11554 fi
11555 ;;
11556
11557 dgux*)
11558 case $cc_basename in
11559 ec++*)
11560 # FIXME: insert proper C++ library support
11561 ld_shlibs_CXX=no
11562 ;;
11563 ghcx*)
11564 # Green Hills C++ Compiler
11565 # FIXME: insert proper C++ library support
11566 ld_shlibs_CXX=no
11567 ;;
11568 *)
11569 # FIXME: insert proper C++ library support
11570 ld_shlibs_CXX=no
11571 ;;
11572 esac
11573 ;;
11574 freebsd[12]*)
11575 # C++ shared libraries reported to be fairly broken before switch to ELF
11576 ld_shlibs_CXX=no
11577 ;;
11578 freebsd-elf*)
11579 archive_cmds_need_lc_CXX=no
11580 ;;
11581 freebsd* | dragonfly*)
11582 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11583 # conventions
11584 ld_shlibs_CXX=yes
11585 ;;
11586 gnu*)
11587 ;;
11588 hpux9*)
11589 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11590 hardcode_libdir_separator_CXX=:
11591 export_dynamic_flag_spec_CXX='${wl}-E'
11592 hardcode_direct_CXX=yes
11593 hardcode_minus_L_CXX=yes # Not in the search PATH,
11594 # but as the default
11595 # location of the library.
11596
11597 case $cc_basename in
11598 CC*)
11599 # FIXME: insert proper C++ library support
11600 ld_shlibs_CXX=no
11601 ;;
11602 aCC*)
11603 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'
11604 # Commands to make compiler produce verbose output that lists
11605 # what "hidden" libraries, object files and flags are used when
11606 # linking a shared library.
11607 #
11608 # There doesn't appear to be a way to prevent this compiler from
11609 # explicitly linking system object files so we need to strip them
11610 # from the output so that they don't get included in the library
11611 # dependencies.
11612 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'
11613 ;;
11614 *)
11615 if test "$GXX" = yes; then
11616 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'
11617 else
11618 # FIXME: insert proper C++ library support
11619 ld_shlibs_CXX=no
11620 fi
11621 ;;
11622 esac
11623 ;;
11624 hpux10*|hpux11*)
11625 if test $with_gnu_ld = no; then
11626 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11627 hardcode_libdir_separator_CXX=:
11628
11629 case $host_cpu in
11630 hppa*64*|ia64*)
11631 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11632 ;;
11633 *)
11634 export_dynamic_flag_spec_CXX='${wl}-E'
11635 ;;
11636 esac
11637 fi
11638 case $host_cpu in
11639 hppa*64*|ia64*)
11640 hardcode_direct_CXX=no
11641 hardcode_shlibpath_var_CXX=no
11642 ;;
11643 *)
11644 hardcode_direct_CXX=yes
11645 hardcode_minus_L_CXX=yes # Not in the search PATH,
11646 # but as the default
11647 # location of the library.
11648 ;;
11649 esac
11650
11651 case $cc_basename in
11652 CC*)
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 aCC*)
11657 case $host_cpu in
11658 hppa*64*)
11659 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11660 ;;
11661 ia64*)
11662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11663 ;;
11664 *)
11665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11666 ;;
11667 esac
11668 # Commands to make compiler produce verbose output that lists
11669 # what "hidden" libraries, object files and flags are used when
11670 # linking a shared library.
11671 #
11672 # There doesn't appear to be a way to prevent this compiler from
11673 # explicitly linking system object files so we need to strip them
11674 # from the output so that they don't get included in the library
11675 # dependencies.
11676 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'
11677 ;;
11678 *)
11679 if test "$GXX" = yes; then
11680 if test $with_gnu_ld = no; then
11681 case $host_cpu in
11682 hppa*64*)
11683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11684 ;;
11685 ia64*)
11686 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11687 ;;
11688 *)
11689 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'
11690 ;;
11691 esac
11692 fi
11693 else
11694 # FIXME: insert proper C++ library support
11695 ld_shlibs_CXX=no
11696 fi
11697 ;;
11698 esac
11699 ;;
11700 interix3*)
11701 hardcode_direct_CXX=no
11702 hardcode_shlibpath_var_CXX=no
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 export_dynamic_flag_spec_CXX='${wl}-E'
11705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11706 # Instead, shared libraries are loaded at an image base (0x10000000 by
11707 # default) and relocated if they conflict, which is a slow very memory
11708 # consuming and fragmenting process. To avoid this, we pick a random,
11709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11711 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'
11712 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'
11713 ;;
11714 irix5* | irix6*)
11715 case $cc_basename in
11716 CC*)
11717 # SGI C++
11718 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'
11719
11720 # Archives containing C++ object files must be created using
11721 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11722 # necessary to make sure instantiated templates are included
11723 # in the archive.
11724 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11725 ;;
11726 *)
11727 if test "$GXX" = yes; then
11728 if test "$with_gnu_ld" = no; then
11729 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'
11730 else
11731 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'
11732 fi
11733 fi
11734 link_all_deplibs_CXX=yes
11735 ;;
11736 esac
11737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11738 hardcode_libdir_separator_CXX=:
11739 ;;
11740 linux* | k*bsd*-gnu)
11741 case $cc_basename in
11742 KCC*)
11743 # Kuck and Associates, Inc. (KAI) C++ Compiler
11744
11745 # KCC will only create a shared library if the output file
11746 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11747 # to its proper name (with version) after linking.
11748 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'
11749 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'
11750 # Commands to make compiler produce verbose output that lists
11751 # what "hidden" libraries, object files and flags are used when
11752 # linking a shared library.
11753 #
11754 # There doesn't appear to be a way to prevent this compiler from
11755 # explicitly linking system object files so we need to strip them
11756 # from the output so that they don't get included in the library
11757 # dependencies.
11758 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'
11759
11760 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11762
11763 # Archives containing C++ object files must be created using
11764 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11765 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11766 ;;
11767 icpc*)
11768 # Intel C++
11769 with_gnu_ld=yes
11770 # version 8.0 and above of icpc choke on multiply defined symbols
11771 # if we add $predep_objects and $postdep_objects, however 7.1 and
11772 # earlier do not add the objects themselves.
11773 case `$CC -V 2>&1` in
11774 *"Version 7."*)
11775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11776 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'
11777 ;;
11778 *) # Version 8.0 or newer
11779 tmp_idyn=
11780 case $host_cpu in
11781 ia64*) tmp_idyn=' -i_dynamic';;
11782 esac
11783 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11784 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'
11785 ;;
11786 esac
11787 archive_cmds_need_lc_CXX=no
11788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11790 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11791 ;;
11792 pgCC*)
11793 # Portland Group C++ compiler
11794 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11795 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'
11796
11797 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11798 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11799 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'
11800 ;;
11801 cxx*)
11802 # Compaq C++
11803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11804 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'
11805
11806 runpath_var=LD_RUN_PATH
11807 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11808 hardcode_libdir_separator_CXX=:
11809
11810 # Commands to make compiler produce verbose output that lists
11811 # what "hidden" libraries, object files and flags are used when
11812 # linking a shared library.
11813 #
11814 # There doesn't appear to be a way to prevent this compiler from
11815 # explicitly linking system object files so we need to strip them
11816 # from the output so that they don't get included in the library
11817 # dependencies.
11818 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'
11819 ;;
11820 esac
11821 ;;
11822 lynxos*)
11823 # FIXME: insert proper C++ library support
11824 ld_shlibs_CXX=no
11825 ;;
11826 m88k*)
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11829 ;;
11830 mvs*)
11831 case $cc_basename in
11832 cxx*)
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 ;;
11836 *)
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11839 ;;
11840 esac
11841 ;;
11842 netbsd* | netbsdelf*-gnu)
11843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11844 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11845 wlarc=
11846 hardcode_libdir_flag_spec_CXX='-R$libdir'
11847 hardcode_direct_CXX=yes
11848 hardcode_shlibpath_var_CXX=no
11849 fi
11850 # Workaround some broken pre-1.5 toolchains
11851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11852 ;;
11853 openbsd2*)
11854 # C++ shared libraries are fairly broken
11855 ld_shlibs_CXX=no
11856 ;;
11857 openbsd*)
11858 hardcode_direct_CXX=yes
11859 hardcode_shlibpath_var_CXX=no
11860 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11863 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11864 export_dynamic_flag_spec_CXX='${wl}-E'
11865 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11866 fi
11867 output_verbose_link_cmd='echo'
11868 ;;
11869 osf3*)
11870 case $cc_basename in
11871 KCC*)
11872 # Kuck and Associates, Inc. (KAI) C++ Compiler
11873
11874 # KCC will only create a shared library if the output file
11875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11876 # to its proper name (with version) after linking.
11877 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'
11878
11879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11880 hardcode_libdir_separator_CXX=:
11881
11882 # Archives containing C++ object files must be created using
11883 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11884 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11885
11886 ;;
11887 RCC*)
11888 # Rational C++ 2.4.1
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11891 ;;
11892 cxx*)
11893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11894 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'
11895
11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11897 hardcode_libdir_separator_CXX=:
11898
11899 # Commands to make compiler produce verbose output that lists
11900 # what "hidden" libraries, object files and flags are used when
11901 # linking a shared library.
11902 #
11903 # There doesn't appear to be a way to prevent this compiler from
11904 # explicitly linking system object files so we need to strip them
11905 # from the output so that they don't get included in the library
11906 # dependencies.
11907 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'
11908 ;;
11909 *)
11910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11912 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'
11913
11914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11915 hardcode_libdir_separator_CXX=:
11916
11917 # Commands to make compiler produce verbose output that lists
11918 # what "hidden" libraries, object files and flags are used when
11919 # linking a shared library.
11920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11921
11922 else
11923 # FIXME: insert proper C++ library support
11924 ld_shlibs_CXX=no
11925 fi
11926 ;;
11927 esac
11928 ;;
11929 osf4* | osf5*)
11930 case $cc_basename in
11931 KCC*)
11932 # Kuck and Associates, Inc. (KAI) C++ Compiler
11933
11934 # KCC will only create a shared library if the output file
11935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11936 # to its proper name (with version) after linking.
11937 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'
11938
11939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11940 hardcode_libdir_separator_CXX=:
11941
11942 # Archives containing C++ object files must be created using
11943 # the KAI C++ compiler.
11944 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11945 ;;
11946 RCC*)
11947 # Rational C++ 2.4.1
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11950 ;;
11951 cxx*)
11952 allow_undefined_flag_CXX=' -expect_unresolved \*'
11953 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'
11954 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11955 echo "-hidden">> $lib.exp~
11956 $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~
11957 $rm $lib.exp'
11958
11959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11960 hardcode_libdir_separator_CXX=:
11961
11962 # Commands to make compiler produce verbose output that lists
11963 # what "hidden" libraries, object files and flags are used when
11964 # linking a shared library.
11965 #
11966 # There doesn't appear to be a way to prevent this compiler from
11967 # explicitly linking system object files so we need to strip them
11968 # from the output so that they don't get included in the library
11969 # dependencies.
11970 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'
11971 ;;
11972 *)
11973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11975 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'
11976
11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11978 hardcode_libdir_separator_CXX=:
11979
11980 # Commands to make compiler produce verbose output that lists
11981 # what "hidden" libraries, object files and flags are used when
11982 # linking a shared library.
11983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11984
11985 else
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11988 fi
11989 ;;
11990 esac
11991 ;;
11992 psos*)
11993 # FIXME: insert proper C++ library support
11994 ld_shlibs_CXX=no
11995 ;;
11996 sunos4*)
11997 case $cc_basename in
11998 CC*)
11999 # Sun C++ 4.x
12000 # FIXME: insert proper C++ library support
12001 ld_shlibs_CXX=no
12002 ;;
12003 lcc*)
12004 # Lucid
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12007 ;;
12008 *)
12009 # FIXME: insert proper C++ library support
12010 ld_shlibs_CXX=no
12011 ;;
12012 esac
12013 ;;
12014 solaris*)
12015 case $cc_basename in
12016 CC*)
12017 # Sun C++ 4.2, 5.x and Centerline C++
12018 archive_cmds_need_lc_CXX=yes
12019 no_undefined_flag_CXX=' -zdefs'
12020 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12021 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12022 $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'
12023
12024 hardcode_libdir_flag_spec_CXX='-R$libdir'
12025 hardcode_shlibpath_var_CXX=no
12026 case $host_os in
12027 solaris2.[0-5] | solaris2.[0-5].*) ;;
12028 *)
12029 # The C++ compiler is used as linker so we must use $wl
12030 # flag to pass the commands to the underlying system
12031 # linker. We must also pass each convience library through
12032 # to the system linker between allextract/defaultextract.
12033 # The C++ compiler will combine linker options so we
12034 # cannot just pass the convience library names through
12035 # without $wl.
12036 # Supported since Solaris 2.6 (maybe 2.5.1?)
12037 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12038 ;;
12039 esac
12040 link_all_deplibs_CXX=yes
12041
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 gcx*)
12051 # Green Hills C++ Compiler
12052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12053
12054 # The C++ compiler must be used to create the archive.
12055 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12056 ;;
12057 *)
12058 # GNU C++ compiler with Solaris linker
12059 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12060 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12061 if $CC --version | grep -v '^2\.7' > /dev/null; then
12062 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12063 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12064 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12065
12066 # Commands to make compiler produce verbose output that lists
12067 # what "hidden" libraries, object files and flags are used when
12068 # linking a shared library.
12069 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12070 else
12071 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12072 # platform.
12073 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12076
12077 # Commands to make compiler produce verbose output that lists
12078 # what "hidden" libraries, object files and flags are used when
12079 # linking a shared library.
12080 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12081 fi
12082
12083 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12084 fi
12085 ;;
12086 esac
12087 ;;
12088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12089 no_undefined_flag_CXX='${wl}-z,text'
12090 archive_cmds_need_lc_CXX=no
12091 hardcode_shlibpath_var_CXX=no
12092 runpath_var='LD_RUN_PATH'
12093
12094 case $cc_basename in
12095 CC*)
12096 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12097 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12098 ;;
12099 *)
12100 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12101 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12102 ;;
12103 esac
12104 ;;
12105 sysv5* | sco3.2v5* | sco5v6*)
12106 # Note: We can NOT use -z defs as we might desire, because we do not
12107 # link with -lc, and that would cause any symbols used from libc to
12108 # always be unresolved, which means just about no library would
12109 # ever link correctly. If we're not using GNU ld we use -z text
12110 # though, which does catch some bad symbols but isn't as heavy-handed
12111 # as -z defs.
12112 # For security reasons, it is highly recommended that you always
12113 # use absolute paths for naming shared libraries, and exclude the
12114 # DT_RUNPATH tag from executables and libraries. But doing so
12115 # requires that you compile everything twice, which is a pain.
12116 # So that behaviour is only enabled if SCOABSPATH is set to a
12117 # non-empty value in the environment. Most likely only useful for
12118 # creating official distributions of packages.
12119 # This is a hack until libtool officially supports absolute path
12120 # names for shared libraries.
12121 no_undefined_flag_CXX='${wl}-z,text'
12122 allow_undefined_flag_CXX='${wl}-z,nodefs'
12123 archive_cmds_need_lc_CXX=no
12124 hardcode_shlibpath_var_CXX=no
12125 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12126 hardcode_libdir_separator_CXX=':'
12127 link_all_deplibs_CXX=yes
12128 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12129 runpath_var='LD_RUN_PATH'
12130
12131 case $cc_basename in
12132 CC*)
12133 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12134 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12135 ;;
12136 *)
12137 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12138 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12139 ;;
12140 esac
12141 ;;
12142 tandem*)
12143 case $cc_basename in
12144 NCC*)
12145 # NonStop-UX NCC 3.20
12146 # FIXME: insert proper C++ library support
12147 ld_shlibs_CXX=no
12148 ;;
12149 *)
12150 # FIXME: insert proper C++ library support
12151 ld_shlibs_CXX=no
12152 ;;
12153 esac
12154 ;;
12155 vxworks*)
12156 # FIXME: insert proper C++ library support
12157 ld_shlibs_CXX=no
12158 ;;
12159 *)
12160 # FIXME: insert proper C++ library support
12161 ld_shlibs_CXX=no
12162 ;;
12163 esac
12164 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12165 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12166 test "$ld_shlibs_CXX" = no && can_build_shared=no
12167
12168 GCC_CXX="$GXX"
12169 LD_CXX="$LD"
12170
12171
12172 cat > conftest.$ac_ext <<EOF
12173 class Foo
12174 {
12175 public:
12176 Foo (void) { a = 0; }
12177 private:
12178 int a;
12179 };
12180 EOF
12181
12182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; then
12187 # Parse the compiler output and extract the necessary
12188 # objects, libraries and library flags.
12189
12190 # Sentinel used to keep track of whether or not we are before
12191 # the conftest object file.
12192 pre_test_object_deps_done=no
12193
12194 # The `*' in the case matches for architectures that use `case' in
12195 # $output_verbose_cmd can trigger glob expansion during the loop
12196 # eval without this substitution.
12197 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12198
12199 for p in `eval $output_verbose_link_cmd`; do
12200 case $p in
12201
12202 -L* | -R* | -l*)
12203 # Some compilers place space between "-{L,R}" and the path.
12204 # Remove the space.
12205 if test $p = "-L" \
12206 || test $p = "-R"; then
12207 prev=$p
12208 continue
12209 else
12210 prev=
12211 fi
12212
12213 if test "$pre_test_object_deps_done" = no; then
12214 case $p in
12215 -L* | -R*)
12216 # Internal compiler library paths should come after those
12217 # provided the user. The postdeps already come after the
12218 # user supplied libs so there is no need to process them.
12219 if test -z "$compiler_lib_search_path_CXX"; then
12220 compiler_lib_search_path_CXX="${prev}${p}"
12221 else
12222 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12223 fi
12224 ;;
12225 # The "-l" case would never come before the object being
12226 # linked, so don't bother handling this case.
12227 esac
12228 else
12229 if test -z "$postdeps_CXX"; then
12230 postdeps_CXX="${prev}${p}"
12231 else
12232 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12233 fi
12234 fi
12235 ;;
12236
12237 *.$objext)
12238 # This assumes that the test object file only shows up
12239 # once in the compiler output.
12240 if test "$p" = "conftest.$objext"; then
12241 pre_test_object_deps_done=yes
12242 continue
12243 fi
12244
12245 if test "$pre_test_object_deps_done" = no; then
12246 if test -z "$predep_objects_CXX"; then
12247 predep_objects_CXX="$p"
12248 else
12249 predep_objects_CXX="$predep_objects_CXX $p"
12250 fi
12251 else
12252 if test -z "$postdep_objects_CXX"; then
12253 postdep_objects_CXX="$p"
12254 else
12255 postdep_objects_CXX="$postdep_objects_CXX $p"
12256 fi
12257 fi
12258 ;;
12259
12260 *) ;; # Ignore the rest.
12261
12262 esac
12263 done
12264
12265 # Clean up.
12266 rm -f a.out a.exe
12267 else
12268 echo "libtool.m4: error: problem compiling CXX test program"
12269 fi
12270
12271 $rm -f confest.$objext
12272
12273 # PORTME: override above test on systems where it is broken
12274 case $host_os in
12275 interix3*)
12276 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12277 # hack all around it, let's just trust "g++" to DTRT.
12278 predep_objects_CXX=
12279 postdep_objects_CXX=
12280 postdeps_CXX=
12281 ;;
12282
12283 solaris*)
12284 case $cc_basename in
12285 CC*)
12286 # Adding this requires a known-good setup of shared libraries for
12287 # Sun compiler versions before 5.6, else PIC objects from an old
12288 # archive will be linked into the output, leading to subtle bugs.
12289 postdeps_CXX='-lCstd -lCrun'
12290 ;;
12291 esac
12292 ;;
12293 esac
12294
12295
12296 case " $postdeps_CXX " in
12297 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12298 esac
12299
12300 lt_prog_compiler_wl_CXX=
12301 lt_prog_compiler_pic_CXX=
12302 lt_prog_compiler_static_CXX=
12303
12304 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12305 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12306
12307 # C++ specific cases for pic, static, wl, etc.
12308 if test "$GXX" = yes; then
12309 lt_prog_compiler_wl_CXX='-Wl,'
12310 lt_prog_compiler_static_CXX='-static'
12311
12312 case $host_os in
12313 aix*)
12314 # All AIX code is PIC.
12315 if test "$host_cpu" = ia64; then
12316 # AIX 5 now supports IA64 processor
12317 lt_prog_compiler_static_CXX='-Bstatic'
12318 fi
12319 ;;
12320 amigaos*)
12321 # FIXME: we need at least 68020 code to build shared libraries, but
12322 # adding the `-m68020' flag to GCC prevents building anything better,
12323 # like `-m68040'.
12324 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12325 ;;
12326 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12327 # PIC is the default for these OSes.
12328 ;;
12329 mingw* | os2* | pw32*)
12330 # This hack is so that the source file can tell whether it is being
12331 # built for inclusion in a dll (and should export symbols for example).
12332 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12333 ;;
12334 darwin* | rhapsody*)
12335 # PIC is the default on this platform
12336 # Common symbols not allowed in MH_DYLIB files
12337 lt_prog_compiler_pic_CXX='-fno-common'
12338 ;;
12339 *djgpp*)
12340 # DJGPP does not support shared libraries at all
12341 lt_prog_compiler_pic_CXX=
12342 ;;
12343 interix3*)
12344 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12345 # Instead, we relocate shared libraries at runtime.
12346 ;;
12347 sysv4*MP*)
12348 if test -d /usr/nec; then
12349 lt_prog_compiler_pic_CXX=-Kconform_pic
12350 fi
12351 ;;
12352 hpux*)
12353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12354 # not for PA HP-UX.
12355 case $host_cpu in
12356 hppa*64*|ia64*)
12357 ;;
12358 *)
12359 lt_prog_compiler_pic_CXX='-fPIC'
12360 ;;
12361 esac
12362 ;;
12363 *)
12364 lt_prog_compiler_pic_CXX='-fPIC'
12365 ;;
12366 esac
12367 else
12368 case $host_os in
12369 aix4* | aix5*)
12370 # All AIX code is PIC.
12371 if test "$host_cpu" = ia64; then
12372 # AIX 5 now supports IA64 processor
12373 lt_prog_compiler_static_CXX='-Bstatic'
12374 else
12375 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12376 fi
12377 ;;
12378 chorus*)
12379 case $cc_basename in
12380 cxch68*)
12381 # Green Hills C++ Compiler
12382 # _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"
12383 ;;
12384 esac
12385 ;;
12386 darwin*)
12387 # PIC is the default on this platform
12388 # Common symbols not allowed in MH_DYLIB files
12389 case $cc_basename in
12390 xlc*)
12391 lt_prog_compiler_pic_CXX='-qnocommon'
12392 lt_prog_compiler_wl_CXX='-Wl,'
12393 ;;
12394 esac
12395 ;;
12396 dgux*)
12397 case $cc_basename in
12398 ec++*)
12399 lt_prog_compiler_pic_CXX='-KPIC'
12400 ;;
12401 ghcx*)
12402 # Green Hills C++ Compiler
12403 lt_prog_compiler_pic_CXX='-pic'
12404 ;;
12405 *)
12406 ;;
12407 esac
12408 ;;
12409 freebsd* | dragonfly*)
12410 # FreeBSD uses GNU C++
12411 ;;
12412 hpux9* | hpux10* | hpux11*)
12413 case $cc_basename in
12414 CC*)
12415 lt_prog_compiler_wl_CXX='-Wl,'
12416 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12417 if test "$host_cpu" != ia64; then
12418 lt_prog_compiler_pic_CXX='+Z'
12419 fi
12420 ;;
12421 aCC*)
12422 lt_prog_compiler_wl_CXX='-Wl,'
12423 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12424 case $host_cpu in
12425 hppa*64*|ia64*)
12426 # +Z the default
12427 ;;
12428 *)
12429 lt_prog_compiler_pic_CXX='+Z'
12430 ;;
12431 esac
12432 ;;
12433 *)
12434 ;;
12435 esac
12436 ;;
12437 interix*)
12438 # This is c89, which is MS Visual C++ (no shared libs)
12439 # Anyone wants to do a port?
12440 ;;
12441 irix5* | irix6* | nonstopux*)
12442 case $cc_basename in
12443 CC*)
12444 lt_prog_compiler_wl_CXX='-Wl,'
12445 lt_prog_compiler_static_CXX='-non_shared'
12446 # CC pic flag -KPIC is the default.
12447 ;;
12448 *)
12449 ;;
12450 esac
12451 ;;
12452 linux* | k*bsd*-gnu)
12453 case $cc_basename in
12454 KCC*)
12455 # KAI C++ Compiler
12456 lt_prog_compiler_wl_CXX='--backend -Wl,'
12457 lt_prog_compiler_pic_CXX='-fPIC'
12458 ;;
12459 icpc* | ecpc*)
12460 # Intel C++
12461 lt_prog_compiler_wl_CXX='-Wl,'
12462 lt_prog_compiler_pic_CXX='-KPIC'
12463 lt_prog_compiler_static_CXX='-static'
12464 ;;
12465 pgCC*)
12466 # Portland Group C++ compiler.
12467 lt_prog_compiler_wl_CXX='-Wl,'
12468 lt_prog_compiler_pic_CXX='-fpic'
12469 lt_prog_compiler_static_CXX='-Bstatic'
12470 ;;
12471 cxx*)
12472 # Compaq C++
12473 # Make sure the PIC flag is empty. It appears that all Alpha
12474 # Linux and Compaq Tru64 Unix objects are PIC.
12475 lt_prog_compiler_pic_CXX=
12476 lt_prog_compiler_static_CXX='-non_shared'
12477 ;;
12478 *)
12479 ;;
12480 esac
12481 ;;
12482 lynxos*)
12483 ;;
12484 m88k*)
12485 ;;
12486 mvs*)
12487 case $cc_basename in
12488 cxx*)
12489 lt_prog_compiler_pic_CXX='-W c,exportall'
12490 ;;
12491 *)
12492 ;;
12493 esac
12494 ;;
12495 netbsd* | netbsdelf*-gnu)
12496 ;;
12497 osf3* | osf4* | osf5*)
12498 case $cc_basename in
12499 KCC*)
12500 lt_prog_compiler_wl_CXX='--backend -Wl,'
12501 ;;
12502 RCC*)
12503 # Rational C++ 2.4.1
12504 lt_prog_compiler_pic_CXX='-pic'
12505 ;;
12506 cxx*)
12507 # Digital/Compaq C++
12508 lt_prog_compiler_wl_CXX='-Wl,'
12509 # Make sure the PIC flag is empty. It appears that all Alpha
12510 # Linux and Compaq Tru64 Unix objects are PIC.
12511 lt_prog_compiler_pic_CXX=
12512 lt_prog_compiler_static_CXX='-non_shared'
12513 ;;
12514 *)
12515 ;;
12516 esac
12517 ;;
12518 psos*)
12519 ;;
12520 solaris*)
12521 case $cc_basename in
12522 CC*)
12523 # Sun C++ 4.2, 5.x and Centerline C++
12524 lt_prog_compiler_pic_CXX='-KPIC'
12525 lt_prog_compiler_static_CXX='-Bstatic'
12526 lt_prog_compiler_wl_CXX='-Qoption ld '
12527 ;;
12528 gcx*)
12529 # Green Hills C++ Compiler
12530 lt_prog_compiler_pic_CXX='-PIC'
12531 ;;
12532 *)
12533 ;;
12534 esac
12535 ;;
12536 sunos4*)
12537 case $cc_basename in
12538 CC*)
12539 # Sun C++ 4.x
12540 lt_prog_compiler_pic_CXX='-pic'
12541 lt_prog_compiler_static_CXX='-Bstatic'
12542 ;;
12543 lcc*)
12544 # Lucid
12545 lt_prog_compiler_pic_CXX='-pic'
12546 ;;
12547 *)
12548 ;;
12549 esac
12550 ;;
12551 tandem*)
12552 case $cc_basename in
12553 NCC*)
12554 # NonStop-UX NCC 3.20
12555 lt_prog_compiler_pic_CXX='-KPIC'
12556 ;;
12557 *)
12558 ;;
12559 esac
12560 ;;
12561 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12562 case $cc_basename in
12563 CC*)
12564 lt_prog_compiler_wl_CXX='-Wl,'
12565 lt_prog_compiler_pic_CXX='-KPIC'
12566 lt_prog_compiler_static_CXX='-Bstatic'
12567 ;;
12568 esac
12569 ;;
12570 vxworks*)
12571 ;;
12572 *)
12573 lt_prog_compiler_can_build_shared_CXX=no
12574 ;;
12575 esac
12576 fi
12577
12578 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12579 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12580
12581 #
12582 # Check to make sure the PIC flag actually works.
12583 #
12584 if test -n "$lt_prog_compiler_pic_CXX"; then
12585
12586 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12587 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12588 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 lt_prog_compiler_pic_works_CXX=no
12592 ac_outfile=conftest.$ac_objext
12593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12594 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12595 # Insert the option either (1) after the last *FLAGS variable, or
12596 # (2) before a word containing "conftest.", or (3) at the end.
12597 # Note that $ac_compile itself does not contain backslashes and begins
12598 # with a dollar sign (not a hyphen), so the echo should work correctly.
12599 # The option is referenced via a variable to avoid confusing sed.
12600 lt_compile=`echo "$ac_compile" | $SED \
12601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12603 -e 's:$: $lt_compiler_flag:'`
12604 (eval echo "\"\$as_me:12604: $lt_compile\"" >&5)
12605 (eval "$lt_compile" 2>conftest.err)
12606 ac_status=$?
12607 cat conftest.err >&5
12608 echo "$as_me:12608: \$? = $ac_status" >&5
12609 if (exit $ac_status) && test -s "$ac_outfile"; then
12610 # The compiler can only warn and ignore the option if not recognized
12611 # So say no if there are warnings other than the usual output.
12612 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12615 lt_prog_compiler_pic_works_CXX=yes
12616 fi
12617 fi
12618 $rm conftest*
12619
12620 fi
12621 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12622 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12623
12624 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12625 case $lt_prog_compiler_pic_CXX in
12626 "" | " "*) ;;
12627 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12628 esac
12629 else
12630 lt_prog_compiler_pic_CXX=
12631 lt_prog_compiler_can_build_shared_CXX=no
12632 fi
12633
12634 fi
12635 case $host_os in
12636 # For platforms which do not support PIC, -DPIC is meaningless:
12637 *djgpp*)
12638 lt_prog_compiler_pic_CXX=
12639 ;;
12640 *)
12641 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12642 ;;
12643 esac
12644
12645 #
12646 # Check to make sure the static flag actually works.
12647 #
12648 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12649 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12650 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12651 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 lt_prog_compiler_static_works_CXX=no
12655 save_LDFLAGS="$LDFLAGS"
12656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12657 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12659 # The linker can only warn and ignore the option if not recognized
12660 # So say no if there are warnings
12661 if test -s conftest.err; then
12662 # Append any errors to the config.log.
12663 cat conftest.err 1>&5
12664 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12666 if diff conftest.exp conftest.er2 >/dev/null; then
12667 lt_prog_compiler_static_works_CXX=yes
12668 fi
12669 else
12670 lt_prog_compiler_static_works_CXX=yes
12671 fi
12672 fi
12673 $rm conftest*
12674 LDFLAGS="$save_LDFLAGS"
12675
12676 fi
12677 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12678 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12679
12680 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12681 :
12682 else
12683 lt_prog_compiler_static_CXX=
12684 fi
12685
12686
12687 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12688 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12689 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692 lt_cv_prog_compiler_c_o_CXX=no
12693 $rm -r conftest 2>/dev/null
12694 mkdir conftest
12695 cd conftest
12696 mkdir out
12697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12698
12699 lt_compiler_flag="-o out/conftest2.$ac_objext"
12700 # Insert the option either (1) after the last *FLAGS variable, or
12701 # (2) before a word containing "conftest.", or (3) at the end.
12702 # Note that $ac_compile itself does not contain backslashes and begins
12703 # with a dollar sign (not a hyphen), so the echo should work correctly.
12704 lt_compile=`echo "$ac_compile" | $SED \
12705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12707 -e 's:$: $lt_compiler_flag:'`
12708 (eval echo "\"\$as_me:12708: $lt_compile\"" >&5)
12709 (eval "$lt_compile" 2>out/conftest.err)
12710 ac_status=$?
12711 cat out/conftest.err >&5
12712 echo "$as_me:12712: \$? = $ac_status" >&5
12713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12714 then
12715 # The compiler can only warn and ignore the option if not recognized
12716 # So say no if there are warnings
12717 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12720 lt_cv_prog_compiler_c_o_CXX=yes
12721 fi
12722 fi
12723 chmod u+w . 2>&5
12724 $rm conftest*
12725 # SGI C++ compiler will create directory out/ii_files/ for
12726 # template instantiation
12727 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12728 $rm out/* && rmdir out
12729 cd ..
12730 rmdir conftest
12731 $rm conftest*
12732
12733 fi
12734 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12735 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12736
12737
12738 hard_links="nottested"
12739 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12740 # do not overwrite the value of need_locks provided by the user
12741 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12742 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12743 hard_links=yes
12744 $rm conftest*
12745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12746 touch conftest.a
12747 ln conftest.a conftest.b 2>&5 || hard_links=no
12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749 { echo "$as_me:$LINENO: result: $hard_links" >&5
12750 echo "${ECHO_T}$hard_links" >&6; }
12751 if test "$hard_links" = no; then
12752 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12753 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12754 need_locks=warn
12755 fi
12756 else
12757 need_locks=no
12758 fi
12759
12760 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12761 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12762
12763 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12764 case $host_os in
12765 aix4* | aix5*)
12766 # If we're using GNU nm, then we don't want the "-C" option.
12767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12768 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12769 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'
12770 else
12771 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'
12772 fi
12773 ;;
12774 pw32*)
12775 export_symbols_cmds_CXX="$ltdll_cmds"
12776 ;;
12777 cygwin* | mingw*)
12778 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'
12779 ;;
12780 linux* | k*bsd*-gnu)
12781 link_all_deplibs_CXX=no
12782 ;;
12783 *)
12784 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12785 ;;
12786 esac
12787
12788 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12789 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12790 test "$ld_shlibs_CXX" = no && can_build_shared=no
12791
12792 #
12793 # Do we need to explicitly link libc?
12794 #
12795 case "x$archive_cmds_need_lc_CXX" in
12796 x|xyes)
12797 # Assume -lc should be added
12798 archive_cmds_need_lc_CXX=yes
12799
12800 if test "$enable_shared" = yes && test "$GCC" = yes; then
12801 case $archive_cmds_CXX in
12802 *'~'*)
12803 # FIXME: we may have to deal with multi-command sequences.
12804 ;;
12805 '$CC '*)
12806 # Test whether the compiler implicitly links with -lc since on some
12807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12808 # to ld, don't add -lc before -lgcc.
12809 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12811 $rm conftest*
12812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12813
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } 2>conftest.err; then
12819 soname=conftest
12820 lib=conftest
12821 libobjs=conftest.$ac_objext
12822 deplibs=
12823 wl=$lt_prog_compiler_wl_CXX
12824 pic_flag=$lt_prog_compiler_pic_CXX
12825 compiler_flags=-v
12826 linker_flags=-v
12827 verstring=
12828 output_objdir=.
12829 libname=conftest
12830 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12831 allow_undefined_flag_CXX=
12832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12833 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }
12837 then
12838 archive_cmds_need_lc_CXX=no
12839 else
12840 archive_cmds_need_lc_CXX=yes
12841 fi
12842 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12843 else
12844 cat conftest.err 1>&5
12845 fi
12846 $rm conftest*
12847 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12848 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12849 ;;
12850 esac
12851 fi
12852 ;;
12853 esac
12854
12855 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12857 library_names_spec=
12858 libname_spec='lib$name'
12859 soname_spec=
12860 shrext_cmds=".so"
12861 postinstall_cmds=
12862 postuninstall_cmds=
12863 finish_cmds=
12864 finish_eval=
12865 shlibpath_var=
12866 shlibpath_overrides_runpath=unknown
12867 version_type=none
12868 dynamic_linker="$host_os ld.so"
12869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12870 if test "$GCC" = yes; then
12871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12872 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12873 # if the path contains ";" then we assume it to be the separator
12874 # otherwise default to the standard path separator (i.e. ":") - it is
12875 # assumed that no part of a normal pathname contains ";" but that should
12876 # okay in the real world where ";" in dirpaths is itself problematic.
12877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12878 else
12879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12880 fi
12881 else
12882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12883 fi
12884 need_lib_prefix=unknown
12885 hardcode_into_libs=no
12886
12887 # when you set need_version to no, make sure it does not cause -set_version
12888 # flags to be left without arguments
12889 need_version=unknown
12890
12891 case $host_os in
12892 aix3*)
12893 version_type=linux
12894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12895 shlibpath_var=LIBPATH
12896
12897 # AIX 3 has no versioning support, so we append a major version to the name.
12898 soname_spec='${libname}${release}${shared_ext}$major'
12899 ;;
12900
12901 aix4* | aix5*)
12902 version_type=linux
12903 need_lib_prefix=no
12904 need_version=no
12905 hardcode_into_libs=yes
12906 if test "$host_cpu" = ia64; then
12907 # AIX 5 supports IA64
12908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 else
12911 # With GCC up to 2.95.x, collect2 would create an import file
12912 # for dependence libraries. The import file would start with
12913 # the line `#! .'. This would cause the generated library to
12914 # depend on `.', always an invalid library. This was fixed in
12915 # development snapshots of GCC prior to 3.0.
12916 case $host_os in
12917 aix4 | aix4.[01] | aix4.[01].*)
12918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12919 echo ' yes '
12920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12921 :
12922 else
12923 can_build_shared=no
12924 fi
12925 ;;
12926 esac
12927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12928 # soname into executable. Probably we can add versioning support to
12929 # collect2, so additional links can be useful in future.
12930 if test "$aix_use_runtimelinking" = yes; then
12931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12932 # instead of lib<name>.a to let people know that these are not
12933 # typical AIX shared libraries.
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935 else
12936 # We preserve .a as extension for shared libraries through AIX4.2
12937 # and later when we are not doing run time linking.
12938 library_names_spec='${libname}${release}.a $libname.a'
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 fi
12941 shlibpath_var=LIBPATH
12942 fi
12943 ;;
12944
12945 amigaos*)
12946 library_names_spec='$libname.ixlibrary $libname.a'
12947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12948 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'
12949 ;;
12950
12951 beos*)
12952 library_names_spec='${libname}${shared_ext}'
12953 dynamic_linker="$host_os ld.so"
12954 shlibpath_var=LIBRARY_PATH
12955 ;;
12956
12957 bsdi[45]*)
12958 version_type=linux
12959 need_version=no
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12966 # the default ld.so.conf also contains /usr/contrib/lib and
12967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12968 # libtool to hard-code these into programs
12969 ;;
12970
12971 cygwin* | mingw* | pw32*)
12972 version_type=windows
12973 shrext_cmds=".dll"
12974 need_version=no
12975 need_lib_prefix=no
12976
12977 case $GCC,$host_os in
12978 yes,cygwin* | yes,mingw* | yes,pw32*)
12979 library_names_spec='$libname.dll.a'
12980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12981 postinstall_cmds='base_file=`basename \${file}`~
12982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12983 dldir=$destdir/`dirname \$dlpath`~
12984 test -d \$dldir || mkdir -p \$dldir~
12985 $install_prog $dir/$dlname \$dldir/$dlname~
12986 chmod a+x \$dldir/$dlname'
12987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12988 dlpath=$dir/\$dldll~
12989 $rm \$dlpath'
12990 shlibpath_overrides_runpath=yes
12991
12992 case $host_os in
12993 cygwin*)
12994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12997 ;;
12998 mingw*)
12999 # MinGW DLLs use traditional 'lib' prefix
13000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13003 # It is most probably a Windows format PATH printed by
13004 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13005 # path with ; separators, and with drive letters. We can handle the
13006 # drive letters (cygwin fileutils understands them), so leave them,
13007 # especially as we might pass files found there to a mingw objdump,
13008 # which wouldn't understand a cygwinified path. Ahh.
13009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13010 else
13011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13012 fi
13013 ;;
13014 pw32*)
13015 # pw32 DLLs use 'pw' prefix rather than 'lib'
13016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13017 ;;
13018 esac
13019 ;;
13020
13021 *)
13022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13023 ;;
13024 esac
13025 dynamic_linker='Win32 ld.exe'
13026 # FIXME: first we should search . and the directory the executable is in
13027 shlibpath_var=PATH
13028 ;;
13029
13030 darwin* | rhapsody*)
13031 dynamic_linker="$host_os dyld"
13032 version_type=darwin
13033 need_lib_prefix=no
13034 need_version=no
13035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13036 soname_spec='${libname}${release}${major}$shared_ext'
13037 shlibpath_overrides_runpath=yes
13038 shlibpath_var=DYLD_LIBRARY_PATH
13039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13041 if test "$GCC" = yes; then
13042 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13043 else
13044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13045 fi
13046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13047 ;;
13048
13049 dgux*)
13050 version_type=linux
13051 need_lib_prefix=no
13052 need_version=no
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13054 soname_spec='${libname}${release}${shared_ext}$major'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 ;;
13057
13058 freebsd1*)
13059 dynamic_linker=no
13060 ;;
13061
13062 freebsd* | dragonfly*)
13063 # DragonFly does not have aout. When/if they implement a new
13064 # versioning mechanism, adjust this.
13065 if test -x /usr/bin/objformat; then
13066 objformat=`/usr/bin/objformat`
13067 else
13068 case $host_os in
13069 freebsd[123]*) objformat=aout ;;
13070 *) objformat=elf ;;
13071 esac
13072 fi
13073 version_type=freebsd-$objformat
13074 case $version_type in
13075 freebsd-elf*)
13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13077 need_version=no
13078 need_lib_prefix=no
13079 ;;
13080 freebsd-*)
13081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13082 need_version=yes
13083 ;;
13084 esac
13085 shlibpath_var=LD_LIBRARY_PATH
13086 case $host_os in
13087 freebsd2*)
13088 shlibpath_overrides_runpath=yes
13089 ;;
13090 freebsd3.[01]* | freebsdelf3.[01]*)
13091 shlibpath_overrides_runpath=yes
13092 hardcode_into_libs=yes
13093 ;;
13094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13096 shlibpath_overrides_runpath=no
13097 hardcode_into_libs=yes
13098 ;;
13099 freebsd*) # from 4.6 on
13100 shlibpath_overrides_runpath=yes
13101 hardcode_into_libs=yes
13102 ;;
13103 esac
13104 ;;
13105
13106 gnu*)
13107 version_type=linux
13108 need_lib_prefix=no
13109 need_version=no
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13111 soname_spec='${libname}${release}${shared_ext}$major'
13112 shlibpath_var=LD_LIBRARY_PATH
13113 hardcode_into_libs=yes
13114 ;;
13115
13116 hpux9* | hpux10* | hpux11*)
13117 # Give a soname corresponding to the major version so that dld.sl refuses to
13118 # link against other versions.
13119 version_type=sunos
13120 need_lib_prefix=no
13121 need_version=no
13122 case $host_cpu in
13123 ia64*)
13124 shrext_cmds='.so'
13125 hardcode_into_libs=yes
13126 dynamic_linker="$host_os dld.so"
13127 shlibpath_var=LD_LIBRARY_PATH
13128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130 soname_spec='${libname}${release}${shared_ext}$major'
13131 if test "X$HPUX_IA64_MODE" = X32; then
13132 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13133 else
13134 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13135 fi
13136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13137 ;;
13138 hppa*64*)
13139 shrext_cmds='.sl'
13140 hardcode_into_libs=yes
13141 dynamic_linker="$host_os dld.sl"
13142 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13145 soname_spec='${libname}${release}${shared_ext}$major'
13146 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13148 ;;
13149 *)
13150 shrext_cmds='.sl'
13151 dynamic_linker="$host_os dld.sl"
13152 shlibpath_var=SHLIB_PATH
13153 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13155 soname_spec='${libname}${release}${shared_ext}$major'
13156 ;;
13157 esac
13158 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13159 postinstall_cmds='chmod 555 $lib'
13160 ;;
13161
13162 interix3*)
13163 version_type=linux
13164 need_lib_prefix=no
13165 need_version=no
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13169 shlibpath_var=LD_LIBRARY_PATH
13170 shlibpath_overrides_runpath=no
13171 hardcode_into_libs=yes
13172 ;;
13173
13174 irix5* | irix6* | nonstopux*)
13175 case $host_os in
13176 nonstopux*) version_type=nonstopux ;;
13177 *)
13178 if test "$lt_cv_prog_gnu_ld" = yes; then
13179 version_type=linux
13180 else
13181 version_type=irix
13182 fi ;;
13183 esac
13184 need_lib_prefix=no
13185 need_version=no
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13188 case $host_os in
13189 irix5* | nonstopux*)
13190 libsuff= shlibsuff=
13191 ;;
13192 *)
13193 case $LD in # libtool.m4 will add one of these switches to LD
13194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13195 libsuff= shlibsuff= libmagic=32-bit;;
13196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13197 libsuff=32 shlibsuff=N32 libmagic=N32;;
13198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13200 *) libsuff= shlibsuff= libmagic=never-match;;
13201 esac
13202 ;;
13203 esac
13204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13205 shlibpath_overrides_runpath=no
13206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13208 hardcode_into_libs=yes
13209 ;;
13210
13211 # No shared lib support for Linux oldld, aout, or coff.
13212 linux*oldld* | linux*aout* | linux*coff*)
13213 dynamic_linker=no
13214 ;;
13215
13216 # This must be Linux ELF.
13217 linux* | k*bsd*-gnu)
13218 version_type=linux
13219 need_lib_prefix=no
13220 need_version=no
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13222 soname_spec='${libname}${release}${shared_ext}$major'
13223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=no
13226 # This implies no fast_install, which is unacceptable.
13227 # Some rework will be needed to allow for fast_install
13228 # before this can be enabled.
13229 hardcode_into_libs=yes
13230
13231 # Append ld.so.conf contents to the search path
13232 if test -f /etc/ld.so.conf; then
13233 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13235 fi
13236
13237 # We used to test for /lib/ld.so.1 and disable shared libraries on
13238 # powerpc, because MkLinux only supported shared libraries with the
13239 # GNU dynamic linker. Since this was broken with cross compilers,
13240 # most powerpc-linux boxes support dynamic linking these days and
13241 # people can always --disable-shared, the test was removed, and we
13242 # assume the GNU/Linux dynamic linker is in use.
13243 dynamic_linker='GNU/Linux ld.so'
13244 ;;
13245
13246 netbsdelf*-gnu)
13247 version_type=linux
13248 need_lib_prefix=no
13249 need_version=no
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=no
13254 hardcode_into_libs=yes
13255 dynamic_linker='NetBSD ld.elf_so'
13256 ;;
13257
13258 netbsd*)
13259 version_type=sunos
13260 need_lib_prefix=no
13261 need_version=no
13262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13265 dynamic_linker='NetBSD (a.out) ld.so'
13266 else
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13268 soname_spec='${libname}${release}${shared_ext}$major'
13269 dynamic_linker='NetBSD ld.elf_so'
13270 fi
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13274 ;;
13275
13276 newsos6)
13277 version_type=linux
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=yes
13281 ;;
13282
13283 nto-qnx*)
13284 version_type=linux
13285 need_lib_prefix=no
13286 need_version=no
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 shlibpath_overrides_runpath=yes
13291 ;;
13292
13293 openbsd*)
13294 version_type=sunos
13295 sys_lib_dlsearch_path_spec="/usr/lib"
13296 need_lib_prefix=no
13297 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13298 case $host_os in
13299 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13300 *) need_version=no ;;
13301 esac
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13306 case $host_os in
13307 openbsd2.[89] | openbsd2.[89].*)
13308 shlibpath_overrides_runpath=no
13309 ;;
13310 *)
13311 shlibpath_overrides_runpath=yes
13312 ;;
13313 esac
13314 else
13315 shlibpath_overrides_runpath=yes
13316 fi
13317 ;;
13318
13319 os2*)
13320 libname_spec='$name'
13321 shrext_cmds=".dll"
13322 need_lib_prefix=no
13323 library_names_spec='$libname${shared_ext} $libname.a'
13324 dynamic_linker='OS/2 ld.exe'
13325 shlibpath_var=LIBPATH
13326 ;;
13327
13328 osf3* | osf4* | osf5*)
13329 version_type=osf
13330 need_lib_prefix=no
13331 need_version=no
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13337 ;;
13338
13339 solaris*)
13340 version_type=linux
13341 need_lib_prefix=no
13342 need_version=no
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=yes
13347 hardcode_into_libs=yes
13348 # ldd complains unless libraries are executable
13349 postinstall_cmds='chmod +x $lib'
13350 ;;
13351
13352 sunos4*)
13353 version_type=sunos
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 shlibpath_overrides_runpath=yes
13358 if test "$with_gnu_ld" = yes; then
13359 need_lib_prefix=no
13360 fi
13361 need_version=yes
13362 ;;
13363
13364 sysv4 | sysv4.3*)
13365 version_type=linux
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 case $host_vendor in
13370 sni)
13371 shlibpath_overrides_runpath=no
13372 need_lib_prefix=no
13373 export_dynamic_flag_spec='${wl}-Blargedynsym'
13374 runpath_var=LD_RUN_PATH
13375 ;;
13376 siemens)
13377 need_lib_prefix=no
13378 ;;
13379 motorola)
13380 need_lib_prefix=no
13381 need_version=no
13382 shlibpath_overrides_runpath=no
13383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13384 ;;
13385 esac
13386 ;;
13387
13388 sysv4*MP*)
13389 if test -d /usr/nec ;then
13390 version_type=linux
13391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13392 soname_spec='$libname${shared_ext}.$major'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 fi
13395 ;;
13396
13397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13398 version_type=freebsd-elf
13399 need_lib_prefix=no
13400 need_version=no
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 hardcode_into_libs=yes
13405 if test "$with_gnu_ld" = yes; then
13406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13407 shlibpath_overrides_runpath=no
13408 else
13409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13410 shlibpath_overrides_runpath=yes
13411 case $host_os in
13412 sco3.2v5*)
13413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13414 ;;
13415 esac
13416 fi
13417 sys_lib_dlsearch_path_spec='/usr/lib'
13418 ;;
13419
13420 uts4*)
13421 version_type=linux
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 ;;
13426
13427 *)
13428 dynamic_linker=no
13429 ;;
13430 esac
13431 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13432 echo "${ECHO_T}$dynamic_linker" >&6; }
13433 test "$dynamic_linker" = no && can_build_shared=no
13434
13435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13436 if test "$GCC" = yes; then
13437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13438 fi
13439
13440 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13441 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13442 hardcode_action_CXX=
13443 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13444 test -n "$runpath_var_CXX" || \
13445 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13446
13447 # We can hardcode non-existant directories.
13448 if test "$hardcode_direct_CXX" != no &&
13449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13450 # have to relink, otherwise we might link with an installed library
13451 # when we should be linking with a yet-to-be-installed one
13452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13453 test "$hardcode_minus_L_CXX" != no; then
13454 # Linking always hardcodes the temporary library directory.
13455 hardcode_action_CXX=relink
13456 else
13457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13458 hardcode_action_CXX=immediate
13459 fi
13460 else
13461 # We cannot hardcode anything, or else we can only hardcode existing
13462 # directories.
13463 hardcode_action_CXX=unsupported
13464 fi
13465 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13466 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13467
13468 if test "$hardcode_action_CXX" = relink; then
13469 # Fast installation is not supported
13470 enable_fast_install=no
13471 elif test "$shlibpath_overrides_runpath" = yes ||
13472 test "$enable_shared" = no; then
13473 # Fast installation is not necessary
13474 enable_fast_install=needless
13475 fi
13476
13477
13478 # The else clause should only fire when bootstrapping the
13479 # libtool distribution, otherwise you forgot to ship ltmain.sh
13480 # with your package, and you will get complaints that there are
13481 # no rules to generate ltmain.sh.
13482 if test -f "$ltmain"; then
13483 # See if we are running on zsh, and set the options which allow our commands through
13484 # without removal of \ escapes.
13485 if test -n "${ZSH_VERSION+set}" ; then
13486 setopt NO_GLOB_SUBST
13487 fi
13488 # Now quote all the things that may contain metacharacters while being
13489 # careful not to overquote the AC_SUBSTed values. We take copies of the
13490 # variables and quote the copies for generation of the libtool script.
13491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13492 SED SHELL STRIP \
13493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13495 deplibs_check_method reload_flag reload_cmds need_locks \
13496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13497 lt_cv_sys_global_symbol_to_c_name_address \
13498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13499 old_postinstall_cmds old_postuninstall_cmds \
13500 compiler_CXX \
13501 CC_CXX \
13502 LD_CXX \
13503 lt_prog_compiler_wl_CXX \
13504 lt_prog_compiler_pic_CXX \
13505 lt_prog_compiler_static_CXX \
13506 lt_prog_compiler_no_builtin_flag_CXX \
13507 export_dynamic_flag_spec_CXX \
13508 thread_safe_flag_spec_CXX \
13509 whole_archive_flag_spec_CXX \
13510 enable_shared_with_static_runtimes_CXX \
13511 old_archive_cmds_CXX \
13512 old_archive_from_new_cmds_CXX \
13513 predep_objects_CXX \
13514 postdep_objects_CXX \
13515 predeps_CXX \
13516 postdeps_CXX \
13517 compiler_lib_search_path_CXX \
13518 archive_cmds_CXX \
13519 archive_expsym_cmds_CXX \
13520 postinstall_cmds_CXX \
13521 postuninstall_cmds_CXX \
13522 old_archive_from_expsyms_cmds_CXX \
13523 allow_undefined_flag_CXX \
13524 no_undefined_flag_CXX \
13525 export_symbols_cmds_CXX \
13526 hardcode_libdir_flag_spec_CXX \
13527 hardcode_libdir_flag_spec_ld_CXX \
13528 hardcode_libdir_separator_CXX \
13529 hardcode_automatic_CXX \
13530 module_cmds_CXX \
13531 module_expsym_cmds_CXX \
13532 lt_cv_prog_compiler_c_o_CXX \
13533 exclude_expsyms_CXX \
13534 include_expsyms_CXX; do
13535
13536 case $var in
13537 old_archive_cmds_CXX | \
13538 old_archive_from_new_cmds_CXX | \
13539 archive_cmds_CXX | \
13540 archive_expsym_cmds_CXX | \
13541 module_cmds_CXX | \
13542 module_expsym_cmds_CXX | \
13543 old_archive_from_expsyms_cmds_CXX | \
13544 export_symbols_cmds_CXX | \
13545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13546 postinstall_cmds | postuninstall_cmds | \
13547 old_postinstall_cmds | old_postuninstall_cmds | \
13548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13549 # Double-quote double-evaled strings.
13550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13551 ;;
13552 *)
13553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13554 ;;
13555 esac
13556 done
13557
13558 case $lt_echo in
13559 *'\$0 --fallback-echo"')
13560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13561 ;;
13562 esac
13563
13564 cfgfile="$ofile"
13565
13566 cat <<__EOF__ >> "$cfgfile"
13567 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13568
13569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13570
13571 # Shell to use when invoking shell scripts.
13572 SHELL=$lt_SHELL
13573
13574 # Whether or not to build shared libraries.
13575 build_libtool_libs=$enable_shared
13576
13577 # Whether or not to build static libraries.
13578 build_old_libs=$enable_static
13579
13580 # Whether or not to add -lc for building shared libraries.
13581 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13582
13583 # Whether or not to disallow shared libs when runtime libs are static
13584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13585
13586 # Whether or not to optimize for fast installation.
13587 fast_install=$enable_fast_install
13588
13589 # The host system.
13590 host_alias=$host_alias
13591 host=$host
13592 host_os=$host_os
13593
13594 # The build system.
13595 build_alias=$build_alias
13596 build=$build
13597 build_os=$build_os
13598
13599 # An echo program that does not interpret backslashes.
13600 echo=$lt_echo
13601
13602 # The archiver.
13603 AR=$lt_AR
13604 AR_FLAGS=$lt_AR_FLAGS
13605
13606 # A C compiler.
13607 LTCC=$lt_LTCC
13608
13609 # LTCC compiler flags.
13610 LTCFLAGS=$lt_LTCFLAGS
13611
13612 # A language-specific compiler.
13613 CC=$lt_compiler_CXX
13614
13615 # Is the compiler the GNU C compiler?
13616 with_gcc=$GCC_CXX
13617
13618 # An ERE matcher.
13619 EGREP=$lt_EGREP
13620
13621 # The linker used to build libraries.
13622 LD=$lt_LD_CXX
13623
13624 # Whether we need hard or soft links.
13625 LN_S=$lt_LN_S
13626
13627 # A BSD-compatible nm program.
13628 NM=$lt_NM
13629
13630 # A symbol stripping program
13631 STRIP=$lt_STRIP
13632
13633 # Used to examine libraries when file_magic_cmd begins "file"
13634 MAGIC_CMD=$MAGIC_CMD
13635
13636 # Used on cygwin: DLL creation program.
13637 DLLTOOL="$DLLTOOL"
13638
13639 # Used on cygwin: object dumper.
13640 OBJDUMP="$OBJDUMP"
13641
13642 # Used on cygwin: assembler.
13643 AS="$AS"
13644
13645 # The name of the directory that contains temporary libtool files.
13646 objdir=$objdir
13647
13648 # How to create reloadable object files.
13649 reload_flag=$lt_reload_flag
13650 reload_cmds=$lt_reload_cmds
13651
13652 # How to pass a linker flag through the compiler.
13653 wl=$lt_lt_prog_compiler_wl_CXX
13654
13655 # Object file suffix (normally "o").
13656 objext="$ac_objext"
13657
13658 # Old archive suffix (normally "a").
13659 libext="$libext"
13660
13661 # Shared library suffix (normally ".so").
13662 shrext_cmds='$shrext_cmds'
13663
13664 # Executable file suffix (normally "").
13665 exeext="$exeext"
13666
13667 # Additional compiler flags for building library objects.
13668 pic_flag=$lt_lt_prog_compiler_pic_CXX
13669 pic_mode=$pic_mode
13670
13671 # What is the maximum length of a command?
13672 max_cmd_len=$lt_cv_sys_max_cmd_len
13673
13674 # Does compiler simultaneously support -c and -o options?
13675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13676
13677 # Must we lock files when doing compilation?
13678 need_locks=$lt_need_locks
13679
13680 # Do we need the lib prefix for modules?
13681 need_lib_prefix=$need_lib_prefix
13682
13683 # Do we need a version for libraries?
13684 need_version=$need_version
13685
13686 # Whether dlopen is supported.
13687 dlopen_support=$enable_dlopen
13688
13689 # Whether dlopen of programs is supported.
13690 dlopen_self=$enable_dlopen_self
13691
13692 # Whether dlopen of statically linked programs is supported.
13693 dlopen_self_static=$enable_dlopen_self_static
13694
13695 # Compiler flag to prevent dynamic linking.
13696 link_static_flag=$lt_lt_prog_compiler_static_CXX
13697
13698 # Compiler flag to turn off builtin functions.
13699 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13700
13701 # Compiler flag to allow reflexive dlopens.
13702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13703
13704 # Compiler flag to generate shared objects directly from archives.
13705 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13706
13707 # Compiler flag to generate thread-safe objects.
13708 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13709
13710 # Library versioning type.
13711 version_type=$version_type
13712
13713 # Format of library name prefix.
13714 libname_spec=$lt_libname_spec
13715
13716 # List of archive names. First name is the real one, the rest are links.
13717 # The last name is the one that the linker finds with -lNAME.
13718 library_names_spec=$lt_library_names_spec
13719
13720 # The coded name of the library, if different from the real name.
13721 soname_spec=$lt_soname_spec
13722
13723 # Commands used to build and install an old-style archive.
13724 RANLIB=$lt_RANLIB
13725 old_archive_cmds=$lt_old_archive_cmds_CXX
13726 old_postinstall_cmds=$lt_old_postinstall_cmds
13727 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13728
13729 # Create an old-style archive from a shared archive.
13730 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13731
13732 # Create a temporary old-style archive to link instead of a shared archive.
13733 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13734
13735 # Commands used to build and install a shared archive.
13736 archive_cmds=$lt_archive_cmds_CXX
13737 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13738 postinstall_cmds=$lt_postinstall_cmds
13739 postuninstall_cmds=$lt_postuninstall_cmds
13740
13741 # Commands used to build a loadable module (assumed same as above if empty)
13742 module_cmds=$lt_module_cmds_CXX
13743 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13744
13745 # Commands to strip libraries.
13746 old_striplib=$lt_old_striplib
13747 striplib=$lt_striplib
13748
13749 # Dependencies to place before the objects being linked to create a
13750 # shared library.
13751 predep_objects=$lt_predep_objects_CXX
13752
13753 # Dependencies to place after the objects being linked to create a
13754 # shared library.
13755 postdep_objects=$lt_postdep_objects_CXX
13756
13757 # Dependencies to place before the objects being linked to create a
13758 # shared library.
13759 predeps=$lt_predeps_CXX
13760
13761 # Dependencies to place after the objects being linked to create a
13762 # shared library.
13763 postdeps=$lt_postdeps_CXX
13764
13765 # The library search path used internally by the compiler when linking
13766 # a shared library.
13767 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13768
13769 # Method to check whether dependent libraries are shared objects.
13770 deplibs_check_method=$lt_deplibs_check_method
13771
13772 # Command to use when deplibs_check_method == file_magic.
13773 file_magic_cmd=$lt_file_magic_cmd
13774
13775 # Flag that allows shared libraries with undefined symbols to be built.
13776 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13777
13778 # Flag that forces no undefined symbols.
13779 no_undefined_flag=$lt_no_undefined_flag_CXX
13780
13781 # Commands used to finish a libtool library installation in a directory.
13782 finish_cmds=$lt_finish_cmds
13783
13784 # Same as above, but a single script fragment to be evaled but not shown.
13785 finish_eval=$lt_finish_eval
13786
13787 # Take the output of nm and produce a listing of raw symbols and C names.
13788 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13789
13790 # Transform the output of nm in a proper C declaration
13791 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13792
13793 # Transform the output of nm in a C name address pair
13794 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13795
13796 # This is the shared library runtime path variable.
13797 runpath_var=$runpath_var
13798
13799 # This is the shared library path variable.
13800 shlibpath_var=$shlibpath_var
13801
13802 # Is shlibpath searched before the hard-coded library search path?
13803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13804
13805 # How to hardcode a shared library path into an executable.
13806 hardcode_action=$hardcode_action_CXX
13807
13808 # Whether we should hardcode library paths into libraries.
13809 hardcode_into_libs=$hardcode_into_libs
13810
13811 # Flag to hardcode \$libdir into a binary during linking.
13812 # This must work even if \$libdir does not exist.
13813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13814
13815 # If ld is used when linking, flag to hardcode \$libdir into
13816 # a binary during linking. This must work even if \$libdir does
13817 # not exist.
13818 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13819
13820 # Whether we need a single -rpath flag with a separated argument.
13821 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13822
13823 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13824 # resulting binary.
13825 hardcode_direct=$hardcode_direct_CXX
13826
13827 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13828 # resulting binary.
13829 hardcode_minus_L=$hardcode_minus_L_CXX
13830
13831 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13832 # the resulting binary.
13833 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13834
13835 # Set to yes if building a shared library automatically hardcodes DIR into the library
13836 # and all subsequent libraries and executables linked against it.
13837 hardcode_automatic=$hardcode_automatic_CXX
13838
13839 # Variables whose values should be saved in libtool wrapper scripts and
13840 # restored at relink time.
13841 variables_saved_for_relink="$variables_saved_for_relink"
13842
13843 # Whether libtool must link a program against all its dependency libraries.
13844 link_all_deplibs=$link_all_deplibs_CXX
13845
13846 # Compile-time system search path for libraries
13847 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13848
13849 # Run-time system search path for libraries
13850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13851
13852 # Fix the shell variable \$srcfile for the compiler.
13853 fix_srcfile_path="$fix_srcfile_path_CXX"
13854
13855 # Set to yes if exported symbols are required.
13856 always_export_symbols=$always_export_symbols_CXX
13857
13858 # The commands to list exported symbols.
13859 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13860
13861 # The commands to extract the exported symbol list from a shared archive.
13862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13863
13864 # Symbols that should not be listed in the preloaded symbols.
13865 exclude_expsyms=$lt_exclude_expsyms_CXX
13866
13867 # Symbols that must always be exported.
13868 include_expsyms=$lt_include_expsyms_CXX
13869
13870 # ### END LIBTOOL TAG CONFIG: $tagname
13871
13872 __EOF__
13873
13874
13875 else
13876 # If there is no Makefile yet, we rely on a make rule to execute
13877 # `config.status --recheck' to rerun these tests and create the
13878 # libtool script then.
13879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13880 if test -f "$ltmain_in"; then
13881 test -f Makefile && make "$ltmain"
13882 fi
13883 fi
13884
13885
13886 ac_ext=c
13887 ac_cpp='$CPP $CPPFLAGS'
13888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892 CC=$lt_save_CC
13893 LDCXX=$LD
13894 LD=$lt_save_LD
13895 GCC=$lt_save_GCC
13896 with_gnu_ldcxx=$with_gnu_ld
13897 with_gnu_ld=$lt_save_with_gnu_ld
13898 lt_cv_path_LDCXX=$lt_cv_path_LD
13899 lt_cv_path_LD=$lt_save_path_LD
13900 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13901 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13902
13903 else
13904 tagname=""
13905 fi
13906 ;;
13907
13908 F77)
13909 if test -n "$F77" && test "X$F77" != "Xno"; then
13910
13911 ac_ext=f
13912 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13913 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13914 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13915
13916
13917 archive_cmds_need_lc_F77=no
13918 allow_undefined_flag_F77=
13919 always_export_symbols_F77=no
13920 archive_expsym_cmds_F77=
13921 export_dynamic_flag_spec_F77=
13922 hardcode_direct_F77=no
13923 hardcode_libdir_flag_spec_F77=
13924 hardcode_libdir_flag_spec_ld_F77=
13925 hardcode_libdir_separator_F77=
13926 hardcode_minus_L_F77=no
13927 hardcode_automatic_F77=no
13928 module_cmds_F77=
13929 module_expsym_cmds_F77=
13930 link_all_deplibs_F77=unknown
13931 old_archive_cmds_F77=$old_archive_cmds
13932 no_undefined_flag_F77=
13933 whole_archive_flag_spec_F77=
13934 enable_shared_with_static_runtimes_F77=no
13935
13936 # Source file extension for f77 test sources.
13937 ac_ext=f
13938
13939 # Object file extension for compiled f77 test sources.
13940 objext=o
13941 objext_F77=$objext
13942
13943 # Code to be used in simple compile tests
13944 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13945
13946 # Code to be used in simple link tests
13947 lt_simple_link_test_code=" program t\n end\n"
13948
13949 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13950
13951 # If no C compiler was specified, use CC.
13952 LTCC=${LTCC-"$CC"}
13953
13954 # If no C compiler flags were specified, use CFLAGS.
13955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13956
13957 # Allow CC to be a program name with arguments.
13958 compiler=$CC
13959
13960
13961 # save warnings/boilerplate of simple test code
13962 ac_outfile=conftest.$ac_objext
13963 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13964 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13965 _lt_compiler_boilerplate=`cat conftest.err`
13966 $rm conftest*
13967
13968 ac_outfile=conftest.$ac_objext
13969 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13971 _lt_linker_boilerplate=`cat conftest.err`
13972 $rm conftest*
13973
13974
13975 # Allow CC to be a program name with arguments.
13976 lt_save_CC="$CC"
13977 CC=${F77-"f77"}
13978 compiler=$CC
13979 compiler_F77=$CC
13980 for cc_temp in $compiler""; do
13981 case $cc_temp in
13982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13984 \-*) ;;
13985 *) break;;
13986 esac
13987 done
13988 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13989
13990
13991 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13992 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13993 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13994 echo "${ECHO_T}$can_build_shared" >&6; }
13995
13996 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13997 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13998 test "$can_build_shared" = "no" && enable_shared=no
13999
14000 # On AIX, shared libraries and static libraries use the same namespace, and
14001 # are all built from PIC.
14002 case $host_os in
14003 aix3*)
14004 test "$enable_shared" = yes && enable_static=no
14005 if test -n "$RANLIB"; then
14006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14007 postinstall_cmds='$RANLIB $lib'
14008 fi
14009 ;;
14010 aix4* | aix5*)
14011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14012 test "$enable_shared" = yes && enable_static=no
14013 fi
14014 ;;
14015 esac
14016 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14017 echo "${ECHO_T}$enable_shared" >&6; }
14018
14019 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14020 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14021 # Make sure either enable_shared or enable_static is yes.
14022 test "$enable_shared" = yes || enable_static=yes
14023 { echo "$as_me:$LINENO: result: $enable_static" >&5
14024 echo "${ECHO_T}$enable_static" >&6; }
14025
14026 GCC_F77="$G77"
14027 LD_F77="$LD"
14028
14029 lt_prog_compiler_wl_F77=
14030 lt_prog_compiler_pic_F77=
14031 lt_prog_compiler_static_F77=
14032
14033 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14034 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14035
14036 if test "$GCC" = yes; then
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 lt_prog_compiler_static_F77='-static'
14039
14040 case $host_os in
14041 aix*)
14042 # All AIX code is PIC.
14043 if test "$host_cpu" = ia64; then
14044 # AIX 5 now supports IA64 processor
14045 lt_prog_compiler_static_F77='-Bstatic'
14046 fi
14047 ;;
14048
14049 amigaos*)
14050 # FIXME: we need at least 68020 code to build shared libraries, but
14051 # adding the `-m68020' flag to GCC prevents building anything better,
14052 # like `-m68040'.
14053 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14054 ;;
14055
14056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14057 # PIC is the default for these OSes.
14058 ;;
14059
14060 mingw* | pw32* | os2*)
14061 # This hack is so that the source file can tell whether it is being
14062 # built for inclusion in a dll (and should export symbols for example).
14063 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14064 ;;
14065
14066 darwin* | rhapsody*)
14067 # PIC is the default on this platform
14068 # Common symbols not allowed in MH_DYLIB files
14069 lt_prog_compiler_pic_F77='-fno-common'
14070 ;;
14071
14072 interix3*)
14073 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14074 # Instead, we relocate shared libraries at runtime.
14075 ;;
14076
14077 msdosdjgpp*)
14078 # Just because we use GCC doesn't mean we suddenly get shared libraries
14079 # on systems that don't support them.
14080 lt_prog_compiler_can_build_shared_F77=no
14081 enable_shared=no
14082 ;;
14083
14084 sysv4*MP*)
14085 if test -d /usr/nec; then
14086 lt_prog_compiler_pic_F77=-Kconform_pic
14087 fi
14088 ;;
14089
14090 hpux*)
14091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14092 # not for PA HP-UX.
14093 case $host_cpu in
14094 hppa*64*|ia64*)
14095 # +Z the default
14096 ;;
14097 *)
14098 lt_prog_compiler_pic_F77='-fPIC'
14099 ;;
14100 esac
14101 ;;
14102
14103 *)
14104 lt_prog_compiler_pic_F77='-fPIC'
14105 ;;
14106 esac
14107 else
14108 # PORTME Check for flag to pass linker flags through the system compiler.
14109 case $host_os in
14110 aix*)
14111 lt_prog_compiler_wl_F77='-Wl,'
14112 if test "$host_cpu" = ia64; then
14113 # AIX 5 now supports IA64 processor
14114 lt_prog_compiler_static_F77='-Bstatic'
14115 else
14116 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14117 fi
14118 ;;
14119 darwin*)
14120 # PIC is the default on this platform
14121 # Common symbols not allowed in MH_DYLIB files
14122 case $cc_basename in
14123 xlc*)
14124 lt_prog_compiler_pic_F77='-qnocommon'
14125 lt_prog_compiler_wl_F77='-Wl,'
14126 ;;
14127 esac
14128 ;;
14129
14130 mingw* | pw32* | os2*)
14131 # This hack is so that the source file can tell whether it is being
14132 # built for inclusion in a dll (and should export symbols for example).
14133 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14134 ;;
14135
14136 hpux9* | hpux10* | hpux11*)
14137 lt_prog_compiler_wl_F77='-Wl,'
14138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14139 # not for PA HP-UX.
14140 case $host_cpu in
14141 hppa*64*|ia64*)
14142 # +Z the default
14143 ;;
14144 *)
14145 lt_prog_compiler_pic_F77='+Z'
14146 ;;
14147 esac
14148 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14149 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14150 ;;
14151
14152 irix5* | irix6* | nonstopux*)
14153 lt_prog_compiler_wl_F77='-Wl,'
14154 # PIC (with -KPIC) is the default.
14155 lt_prog_compiler_static_F77='-non_shared'
14156 ;;
14157
14158 newsos6)
14159 lt_prog_compiler_pic_F77='-KPIC'
14160 lt_prog_compiler_static_F77='-Bstatic'
14161 ;;
14162
14163 linux* | k*bsd*-gnu)
14164 case $cc_basename in
14165 icc* | ecc*)
14166 lt_prog_compiler_wl_F77='-Wl,'
14167 lt_prog_compiler_pic_F77='-KPIC'
14168 lt_prog_compiler_static_F77='-static'
14169 ;;
14170 pgcc* | pgf77* | pgf90* | pgf95*)
14171 # Portland Group compilers (*not* the Pentium gcc compiler,
14172 # which looks to be a dead project)
14173 lt_prog_compiler_wl_F77='-Wl,'
14174 lt_prog_compiler_pic_F77='-fpic'
14175 lt_prog_compiler_static_F77='-Bstatic'
14176 ;;
14177 ccc*)
14178 lt_prog_compiler_wl_F77='-Wl,'
14179 # All Alpha code is PIC.
14180 lt_prog_compiler_static_F77='-non_shared'
14181 ;;
14182 esac
14183 ;;
14184
14185 osf3* | osf4* | osf5*)
14186 lt_prog_compiler_wl_F77='-Wl,'
14187 # All OSF/1 code is PIC.
14188 lt_prog_compiler_static_F77='-non_shared'
14189 ;;
14190
14191 solaris*)
14192 lt_prog_compiler_pic_F77='-KPIC'
14193 lt_prog_compiler_static_F77='-Bstatic'
14194 case $cc_basename in
14195 f77* | f90* | f95*)
14196 lt_prog_compiler_wl_F77='-Qoption ld ';;
14197 *)
14198 lt_prog_compiler_wl_F77='-Wl,';;
14199 esac
14200 ;;
14201
14202 sunos4*)
14203 lt_prog_compiler_wl_F77='-Qoption ld '
14204 lt_prog_compiler_pic_F77='-PIC'
14205 lt_prog_compiler_static_F77='-Bstatic'
14206 ;;
14207
14208 sysv4 | sysv4.2uw2* | sysv4.3*)
14209 lt_prog_compiler_wl_F77='-Wl,'
14210 lt_prog_compiler_pic_F77='-KPIC'
14211 lt_prog_compiler_static_F77='-Bstatic'
14212 ;;
14213
14214 sysv4*MP*)
14215 if test -d /usr/nec ;then
14216 lt_prog_compiler_pic_F77='-Kconform_pic'
14217 lt_prog_compiler_static_F77='-Bstatic'
14218 fi
14219 ;;
14220
14221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14222 lt_prog_compiler_wl_F77='-Wl,'
14223 lt_prog_compiler_pic_F77='-KPIC'
14224 lt_prog_compiler_static_F77='-Bstatic'
14225 ;;
14226
14227 unicos*)
14228 lt_prog_compiler_wl_F77='-Wl,'
14229 lt_prog_compiler_can_build_shared_F77=no
14230 ;;
14231
14232 uts4*)
14233 lt_prog_compiler_pic_F77='-pic'
14234 lt_prog_compiler_static_F77='-Bstatic'
14235 ;;
14236
14237 *)
14238 lt_prog_compiler_can_build_shared_F77=no
14239 ;;
14240 esac
14241 fi
14242
14243 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14244 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14245
14246 #
14247 # Check to make sure the PIC flag actually works.
14248 #
14249 if test -n "$lt_prog_compiler_pic_F77"; then
14250
14251 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14252 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14253 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 lt_prog_compiler_pic_works_F77=no
14257 ac_outfile=conftest.$ac_objext
14258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14259 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14260 # Insert the option either (1) after the last *FLAGS variable, or
14261 # (2) before a word containing "conftest.", or (3) at the end.
14262 # Note that $ac_compile itself does not contain backslashes and begins
14263 # with a dollar sign (not a hyphen), so the echo should work correctly.
14264 # The option is referenced via a variable to avoid confusing sed.
14265 lt_compile=`echo "$ac_compile" | $SED \
14266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14268 -e 's:$: $lt_compiler_flag:'`
14269 (eval echo "\"\$as_me:14269: $lt_compile\"" >&5)
14270 (eval "$lt_compile" 2>conftest.err)
14271 ac_status=$?
14272 cat conftest.err >&5
14273 echo "$as_me:14273: \$? = $ac_status" >&5
14274 if (exit $ac_status) && test -s "$ac_outfile"; then
14275 # The compiler can only warn and ignore the option if not recognized
14276 # So say no if there are warnings other than the usual output.
14277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14280 lt_prog_compiler_pic_works_F77=yes
14281 fi
14282 fi
14283 $rm conftest*
14284
14285 fi
14286 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14287 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14288
14289 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14290 case $lt_prog_compiler_pic_F77 in
14291 "" | " "*) ;;
14292 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14293 esac
14294 else
14295 lt_prog_compiler_pic_F77=
14296 lt_prog_compiler_can_build_shared_F77=no
14297 fi
14298
14299 fi
14300 case $host_os in
14301 # For platforms which do not support PIC, -DPIC is meaningless:
14302 *djgpp*)
14303 lt_prog_compiler_pic_F77=
14304 ;;
14305 *)
14306 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14307 ;;
14308 esac
14309
14310 #
14311 # Check to make sure the static flag actually works.
14312 #
14313 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14314 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14315 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14316 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319 lt_prog_compiler_static_works_F77=no
14320 save_LDFLAGS="$LDFLAGS"
14321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14322 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14324 # The linker can only warn and ignore the option if not recognized
14325 # So say no if there are warnings
14326 if test -s conftest.err; then
14327 # Append any errors to the config.log.
14328 cat conftest.err 1>&5
14329 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14331 if diff conftest.exp conftest.er2 >/dev/null; then
14332 lt_prog_compiler_static_works_F77=yes
14333 fi
14334 else
14335 lt_prog_compiler_static_works_F77=yes
14336 fi
14337 fi
14338 $rm conftest*
14339 LDFLAGS="$save_LDFLAGS"
14340
14341 fi
14342 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14343 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14344
14345 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14346 :
14347 else
14348 lt_prog_compiler_static_F77=
14349 fi
14350
14351
14352 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14354 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 lt_cv_prog_compiler_c_o_F77=no
14358 $rm -r conftest 2>/dev/null
14359 mkdir conftest
14360 cd conftest
14361 mkdir out
14362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14363
14364 lt_compiler_flag="-o out/conftest2.$ac_objext"
14365 # Insert the option either (1) after the last *FLAGS variable, or
14366 # (2) before a word containing "conftest.", or (3) at the end.
14367 # Note that $ac_compile itself does not contain backslashes and begins
14368 # with a dollar sign (not a hyphen), so the echo should work correctly.
14369 lt_compile=`echo "$ac_compile" | $SED \
14370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14372 -e 's:$: $lt_compiler_flag:'`
14373 (eval echo "\"\$as_me:14373: $lt_compile\"" >&5)
14374 (eval "$lt_compile" 2>out/conftest.err)
14375 ac_status=$?
14376 cat out/conftest.err >&5
14377 echo "$as_me:14377: \$? = $ac_status" >&5
14378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14379 then
14380 # The compiler can only warn and ignore the option if not recognized
14381 # So say no if there are warnings
14382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14385 lt_cv_prog_compiler_c_o_F77=yes
14386 fi
14387 fi
14388 chmod u+w . 2>&5
14389 $rm conftest*
14390 # SGI C++ compiler will create directory out/ii_files/ for
14391 # template instantiation
14392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14393 $rm out/* && rmdir out
14394 cd ..
14395 rmdir conftest
14396 $rm conftest*
14397
14398 fi
14399 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14401
14402
14403 hard_links="nottested"
14404 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14405 # do not overwrite the value of need_locks provided by the user
14406 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14407 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14408 hard_links=yes
14409 $rm conftest*
14410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14411 touch conftest.a
14412 ln conftest.a conftest.b 2>&5 || hard_links=no
14413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14414 { echo "$as_me:$LINENO: result: $hard_links" >&5
14415 echo "${ECHO_T}$hard_links" >&6; }
14416 if test "$hard_links" = no; then
14417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14418 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14419 need_locks=warn
14420 fi
14421 else
14422 need_locks=no
14423 fi
14424
14425 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14426 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14427
14428 runpath_var=
14429 allow_undefined_flag_F77=
14430 enable_shared_with_static_runtimes_F77=no
14431 archive_cmds_F77=
14432 archive_expsym_cmds_F77=
14433 old_archive_From_new_cmds_F77=
14434 old_archive_from_expsyms_cmds_F77=
14435 export_dynamic_flag_spec_F77=
14436 whole_archive_flag_spec_F77=
14437 thread_safe_flag_spec_F77=
14438 hardcode_libdir_flag_spec_F77=
14439 hardcode_libdir_flag_spec_ld_F77=
14440 hardcode_libdir_separator_F77=
14441 hardcode_direct_F77=no
14442 hardcode_minus_L_F77=no
14443 hardcode_shlibpath_var_F77=unsupported
14444 link_all_deplibs_F77=unknown
14445 hardcode_automatic_F77=no
14446 module_cmds_F77=
14447 module_expsym_cmds_F77=
14448 always_export_symbols_F77=no
14449 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14450 # include_expsyms should be a list of space-separated symbols to be *always*
14451 # included in the symbol list
14452 include_expsyms_F77=
14453 # exclude_expsyms can be an extended regexp of symbols to exclude
14454 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14456 # as well as any symbol that contains `d'.
14457 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14459 # platforms (ab)use it in PIC code, but their linkers get confused if
14460 # the symbol is explicitly referenced. Since portable code cannot
14461 # rely on this symbol name, it's probably fine to never include it in
14462 # preloaded symbol tables.
14463 extract_expsyms_cmds=
14464 # Just being paranoid about ensuring that cc_basename is set.
14465 for cc_temp in $compiler""; do
14466 case $cc_temp in
14467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14469 \-*) ;;
14470 *) break;;
14471 esac
14472 done
14473 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14474
14475 case $host_os in
14476 cygwin* | mingw* | pw32*)
14477 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14478 # When not using gcc, we currently assume that we are using
14479 # Microsoft Visual C++.
14480 if test "$GCC" != yes; then
14481 with_gnu_ld=no
14482 fi
14483 ;;
14484 interix*)
14485 # we just hope/assume this is gcc and not c89 (= MSVC++)
14486 with_gnu_ld=yes
14487 ;;
14488 openbsd*)
14489 with_gnu_ld=no
14490 ;;
14491 esac
14492
14493 ld_shlibs_F77=yes
14494 if test "$with_gnu_ld" = yes; then
14495 # If archive_cmds runs LD, not CC, wlarc should be empty
14496 wlarc='${wl}'
14497
14498 # Set some defaults for GNU ld with shared library support. These
14499 # are reset later if shared libraries are not supported. Putting them
14500 # here allows them to be overridden if necessary.
14501 runpath_var=LD_RUN_PATH
14502 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14503 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14504 # ancient GNU ld didn't support --whole-archive et. al.
14505 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14506 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14507 else
14508 whole_archive_flag_spec_F77=
14509 fi
14510 supports_anon_versioning=no
14511 case `$LD -v 2>/dev/null` in
14512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14515 *\ 2.11.*) ;; # other 2.11 versions
14516 *) supports_anon_versioning=yes ;;
14517 esac
14518
14519 # See if GNU ld supports shared libraries.
14520 case $host_os in
14521 aix3* | aix4* | aix5*)
14522 # On AIX/PPC, the GNU linker is very broken
14523 if test "$host_cpu" != ia64; then
14524 ld_shlibs_F77=no
14525 cat <<EOF 1>&2
14526
14527 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14528 *** to be unable to reliably create shared libraries on AIX.
14529 *** Therefore, libtool is disabling shared libraries support. If you
14530 *** really care for shared libraries, you may want to modify your PATH
14531 *** so that a non-GNU linker is found, and then restart.
14532
14533 EOF
14534 fi
14535 ;;
14536
14537 amigaos*)
14538 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)'
14539 hardcode_libdir_flag_spec_F77='-L$libdir'
14540 hardcode_minus_L_F77=yes
14541
14542 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14543 # that the semantics of dynamic libraries on AmigaOS, at least up
14544 # to version 4, is to share data among multiple programs linked
14545 # with the same dynamic library. Since this doesn't match the
14546 # behavior of shared libraries on other platforms, we can't use
14547 # them.
14548 ld_shlibs_F77=no
14549 ;;
14550
14551 beos*)
14552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553 allow_undefined_flag_F77=unsupported
14554 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14555 # support --undefined. This deserves some investigation. FIXME
14556 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14557 else
14558 ld_shlibs_F77=no
14559 fi
14560 ;;
14561
14562 cygwin* | mingw* | pw32*)
14563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14564 # as there is no search path for DLLs.
14565 hardcode_libdir_flag_spec_F77='-L$libdir'
14566 allow_undefined_flag_F77=unsupported
14567 always_export_symbols_F77=no
14568 enable_shared_with_static_runtimes_F77=yes
14569 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14570
14571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14572 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14573 # If the export-symbols file already is a .def file (1st line
14574 # is EXPORTS), use it as is; otherwise, prepend...
14575 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14576 cp $export_symbols $output_objdir/$soname.def;
14577 else
14578 echo EXPORTS > $output_objdir/$soname.def;
14579 cat $export_symbols >> $output_objdir/$soname.def;
14580 fi~
14581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14582 else
14583 ld_shlibs_F77=no
14584 fi
14585 ;;
14586
14587 interix3*)
14588 hardcode_direct_F77=no
14589 hardcode_shlibpath_var_F77=no
14590 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14591 export_dynamic_flag_spec_F77='${wl}-E'
14592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14593 # Instead, shared libraries are loaded at an image base (0x10000000 by
14594 # default) and relocated if they conflict, which is a slow very memory
14595 # consuming and fragmenting process. To avoid this, we pick a random,
14596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14598 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'
14599 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'
14600 ;;
14601
14602 linux* | k*bsd*-gnu)
14603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14604 tmp_addflag=
14605 case $cc_basename,$host_cpu in
14606 pgcc*) # Portland Group C compiler
14607 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'
14608 tmp_addflag=' $pic_flag'
14609 ;;
14610 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14611 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'
14612 tmp_addflag=' $pic_flag -Mnomain' ;;
14613 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14614 tmp_addflag=' -i_dynamic' ;;
14615 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14616 tmp_addflag=' -i_dynamic -nofor_main' ;;
14617 ifc* | ifort*) # Intel Fortran compiler
14618 tmp_addflag=' -nofor_main' ;;
14619 esac
14620 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14621
14622 if test $supports_anon_versioning = yes; then
14623 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14625 $echo "local: *; };" >> $output_objdir/$libname.ver~
14626 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14627 fi
14628 link_all_deplibs_F77=no
14629 else
14630 ld_shlibs_F77=no
14631 fi
14632 ;;
14633
14634 netbsd* | netbsdelf*-gnu)
14635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14636 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14637 wlarc=
14638 else
14639 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14640 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14641 fi
14642 ;;
14643
14644 solaris*)
14645 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14646 ld_shlibs_F77=no
14647 cat <<EOF 1>&2
14648
14649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14650 *** create shared libraries on Solaris systems. Therefore, libtool
14651 *** is disabling shared libraries support. We urge you to upgrade GNU
14652 *** binutils to release 2.9.1 or newer. Another option is to modify
14653 *** your PATH or compiler configuration so that the native linker is
14654 *** used, and then restart.
14655
14656 EOF
14657 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14659 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14660 else
14661 ld_shlibs_F77=no
14662 fi
14663 ;;
14664
14665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14666 case `$LD -v 2>&1` in
14667 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14668 ld_shlibs_F77=no
14669 cat <<_LT_EOF 1>&2
14670
14671 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14672 *** reliably create shared libraries on SCO systems. Therefore, libtool
14673 *** is disabling shared libraries support. We urge you to upgrade GNU
14674 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14675 *** your PATH or compiler configuration so that the native linker is
14676 *** used, and then restart.
14677
14678 _LT_EOF
14679 ;;
14680 *)
14681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14682 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14683 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14684 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14685 else
14686 ld_shlibs_F77=no
14687 fi
14688 ;;
14689 esac
14690 ;;
14691
14692 sunos4*)
14693 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14694 wlarc=
14695 hardcode_direct_F77=yes
14696 hardcode_shlibpath_var_F77=no
14697 ;;
14698
14699 *)
14700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14701 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14703 else
14704 ld_shlibs_F77=no
14705 fi
14706 ;;
14707 esac
14708
14709 if test "$ld_shlibs_F77" = no; then
14710 runpath_var=
14711 hardcode_libdir_flag_spec_F77=
14712 export_dynamic_flag_spec_F77=
14713 whole_archive_flag_spec_F77=
14714 fi
14715 else
14716 # PORTME fill in a description of your system's linker (not GNU ld)
14717 case $host_os in
14718 aix3*)
14719 allow_undefined_flag_F77=unsupported
14720 always_export_symbols_F77=yes
14721 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'
14722 # Note: this linker hardcodes the directories in LIBPATH if there
14723 # are no directories specified by -L.
14724 hardcode_minus_L_F77=yes
14725 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14726 # Neither direct hardcoding nor static linking is supported with a
14727 # broken collect2.
14728 hardcode_direct_F77=unsupported
14729 fi
14730 ;;
14731
14732 aix4* | aix5*)
14733 if test "$host_cpu" = ia64; then
14734 # On IA64, the linker does run time linking by default, so we don't
14735 # have to do anything special.
14736 aix_use_runtimelinking=no
14737 exp_sym_flag='-Bexport'
14738 no_entry_flag=""
14739 else
14740 # If we're using GNU nm, then we don't want the "-C" option.
14741 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14742 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14743 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'
14744 else
14745 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'
14746 fi
14747 aix_use_runtimelinking=no
14748
14749 # Test if we are trying to use run time linking or normal
14750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14751 # need to do runtime linking.
14752 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14753 for ld_flag in $LDFLAGS; do
14754 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14755 aix_use_runtimelinking=yes
14756 break
14757 fi
14758 done
14759 ;;
14760 esac
14761
14762 exp_sym_flag='-bexport'
14763 no_entry_flag='-bnoentry'
14764 fi
14765
14766 # When large executables or shared objects are built, AIX ld can
14767 # have problems creating the table of contents. If linking a library
14768 # or program results in "error TOC overflow" add -mminimal-toc to
14769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14771
14772 archive_cmds_F77=''
14773 hardcode_direct_F77=yes
14774 hardcode_libdir_separator_F77=':'
14775 link_all_deplibs_F77=yes
14776
14777 if test "$GCC" = yes; then
14778 case $host_os in aix4.[012]|aix4.[012].*)
14779 # We only want to do this on AIX 4.2 and lower, the check
14780 # below for broken collect2 doesn't work under 4.3+
14781 collect2name=`${CC} -print-prog-name=collect2`
14782 if test -f "$collect2name" && \
14783 strings "$collect2name" | grep resolve_lib_name >/dev/null
14784 then
14785 # We have reworked collect2
14786 hardcode_direct_F77=yes
14787 else
14788 # We have old collect2
14789 hardcode_direct_F77=unsupported
14790 # It fails to find uninstalled libraries when the uninstalled
14791 # path is not listed in the libpath. Setting hardcode_minus_L
14792 # to unsupported forces relinking
14793 hardcode_minus_L_F77=yes
14794 hardcode_libdir_flag_spec_F77='-L$libdir'
14795 hardcode_libdir_separator_F77=
14796 fi
14797 ;;
14798 esac
14799 shared_flag='-shared'
14800 if test "$aix_use_runtimelinking" = yes; then
14801 shared_flag="$shared_flag "'${wl}-G'
14802 fi
14803 else
14804 # not using gcc
14805 if test "$host_cpu" = ia64; then
14806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14807 # chokes on -Wl,-G. The following line is correct:
14808 shared_flag='-G'
14809 else
14810 if test "$aix_use_runtimelinking" = yes; then
14811 shared_flag='${wl}-G'
14812 else
14813 shared_flag='${wl}-bM:SRE'
14814 fi
14815 fi
14816 fi
14817
14818 # It seems that -bexpall does not export symbols beginning with
14819 # underscore (_), so it is better to generate a list of symbols to export.
14820 always_export_symbols_F77=yes
14821 if test "$aix_use_runtimelinking" = yes; then
14822 # Warning - without using the other runtime loading flags (-brtl),
14823 # -berok will link without error, but may produce a broken library.
14824 allow_undefined_flag_F77='-berok'
14825 # Determine the default libpath from the value encoded in an empty executable.
14826 cat >conftest.$ac_ext <<_ACEOF
14827 program main
14828
14829 end
14830 _ACEOF
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (ac_try="$ac_link"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_link") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14846 { (case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_try") 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest$ac_exeext'
14856 { (case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_try") 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865
14866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14867 }'`
14868 # Check for a 64-bit object if we didn't find anything.
14869 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14870 }'`; fi
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875
14876 fi
14877
14878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14879 conftest$ac_exeext conftest.$ac_ext
14880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14881
14882 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14883 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"
14884 else
14885 if test "$host_cpu" = ia64; then
14886 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14887 allow_undefined_flag_F77="-z nodefs"
14888 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"
14889 else
14890 # Determine the default libpath from the value encoded in an empty executable.
14891 cat >conftest.$ac_ext <<_ACEOF
14892 program main
14893
14894 end
14895 _ACEOF
14896 rm -f conftest.$ac_objext conftest$ac_exeext
14897 if { (ac_try="$ac_link"
14898 case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_link") 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14911 { (case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest$ac_exeext'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930
14931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14932 }'`
14933 # Check for a 64-bit object if we didn't find anything.
14934 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14935 }'`; fi
14936 else
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940
14941 fi
14942
14943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14944 conftest$ac_exeext conftest.$ac_ext
14945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14946
14947 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14948 # Warning - without using the other run time loading flags,
14949 # -berok will link without error, but may produce a broken library.
14950 no_undefined_flag_F77=' ${wl}-bernotok'
14951 allow_undefined_flag_F77=' ${wl}-berok'
14952 # Exported symbols can be pulled into shared objects from archives
14953 whole_archive_flag_spec_F77='$convenience'
14954 archive_cmds_need_lc_F77=yes
14955 # This is similar to how AIX traditionally builds its shared libraries.
14956 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'
14957 fi
14958 fi
14959 ;;
14960
14961 amigaos*)
14962 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)'
14963 hardcode_libdir_flag_spec_F77='-L$libdir'
14964 hardcode_minus_L_F77=yes
14965 # see comment about different semantics on the GNU ld section
14966 ld_shlibs_F77=no
14967 ;;
14968
14969 bsdi[45]*)
14970 export_dynamic_flag_spec_F77=-rdynamic
14971 ;;
14972
14973 cygwin* | mingw* | pw32*)
14974 # When not using gcc, we currently assume that we are using
14975 # Microsoft Visual C++.
14976 # hardcode_libdir_flag_spec is actually meaningless, as there is
14977 # no search path for DLLs.
14978 hardcode_libdir_flag_spec_F77=' '
14979 allow_undefined_flag_F77=unsupported
14980 # Tell ltmain to make .lib files, not .a files.
14981 libext=lib
14982 # Tell ltmain to make .dll files, not .so files.
14983 shrext_cmds=".dll"
14984 # FIXME: Setting linknames here is a bad hack.
14985 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14986 # The linker will automatically build a .lib file if we build a DLL.
14987 old_archive_From_new_cmds_F77='true'
14988 # FIXME: Should let the user specify the lib program.
14989 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14990 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14991 enable_shared_with_static_runtimes_F77=yes
14992 ;;
14993
14994 darwin* | rhapsody*)
14995 case $host_os in
14996 rhapsody* | darwin1.[012])
14997 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14998 ;;
14999 *) # Darwin 1.3 on
15000 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15001 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15002 else
15003 case ${MACOSX_DEPLOYMENT_TARGET} in
15004 10.[012])
15005 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15006 ;;
15007 10.*)
15008 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15009 ;;
15010 esac
15011 fi
15012 ;;
15013 esac
15014 archive_cmds_need_lc_F77=no
15015 hardcode_direct_F77=no
15016 hardcode_automatic_F77=yes
15017 hardcode_shlibpath_var_F77=unsupported
15018 whole_archive_flag_spec_F77=''
15019 link_all_deplibs_F77=yes
15020 if test "$GCC" = yes ; then
15021 output_verbose_link_cmd='echo'
15022 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15023 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15024 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15025 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15026 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}'
15027 else
15028 case $cc_basename in
15029 xlc*)
15030 output_verbose_link_cmd='echo'
15031 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15032 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15034 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15035 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}'
15036 ;;
15037 *)
15038 ld_shlibs_F77=no
15039 ;;
15040 esac
15041 fi
15042 ;;
15043
15044 dgux*)
15045 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046 hardcode_libdir_flag_spec_F77='-L$libdir'
15047 hardcode_shlibpath_var_F77=no
15048 ;;
15049
15050 freebsd1*)
15051 ld_shlibs_F77=no
15052 ;;
15053
15054 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15055 # support. Future versions do this automatically, but an explicit c++rt0.o
15056 # does not break anything, and helps significantly (at the cost of a little
15057 # extra space).
15058 freebsd2.2*)
15059 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15060 hardcode_libdir_flag_spec_F77='-R$libdir'
15061 hardcode_direct_F77=yes
15062 hardcode_shlibpath_var_F77=no
15063 ;;
15064
15065 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15066 freebsd2*)
15067 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15068 hardcode_direct_F77=yes
15069 hardcode_minus_L_F77=yes
15070 hardcode_shlibpath_var_F77=no
15071 ;;
15072
15073 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15074 freebsd* | dragonfly*)
15075 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15076 hardcode_libdir_flag_spec_F77='-R$libdir'
15077 hardcode_direct_F77=yes
15078 hardcode_shlibpath_var_F77=no
15079 ;;
15080
15081 hpux9*)
15082 if test "$GCC" = yes; then
15083 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'
15084 else
15085 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'
15086 fi
15087 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15088 hardcode_libdir_separator_F77=:
15089 hardcode_direct_F77=yes
15090
15091 # hardcode_minus_L: Not really in the search PATH,
15092 # but as the default location of the library.
15093 hardcode_minus_L_F77=yes
15094 export_dynamic_flag_spec_F77='${wl}-E'
15095 ;;
15096
15097 hpux10*)
15098 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15099 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15100 else
15101 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15102 fi
15103 if test "$with_gnu_ld" = no; then
15104 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15105 hardcode_libdir_separator_F77=:
15106
15107 hardcode_direct_F77=yes
15108 export_dynamic_flag_spec_F77='${wl}-E'
15109
15110 # hardcode_minus_L: Not really in the search PATH,
15111 # but as the default location of the library.
15112 hardcode_minus_L_F77=yes
15113 fi
15114 ;;
15115
15116 hpux11*)
15117 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15118 case $host_cpu in
15119 hppa*64*)
15120 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15121 ;;
15122 ia64*)
15123 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15124 ;;
15125 *)
15126 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15127 ;;
15128 esac
15129 else
15130 case $host_cpu in
15131 hppa*64*)
15132 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 ;;
15134 ia64*)
15135 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15136 ;;
15137 *)
15138 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15139 ;;
15140 esac
15141 fi
15142 if test "$with_gnu_ld" = no; then
15143 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15144 hardcode_libdir_separator_F77=:
15145
15146 case $host_cpu in
15147 hppa*64*|ia64*)
15148 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15149 hardcode_direct_F77=no
15150 hardcode_shlibpath_var_F77=no
15151 ;;
15152 *)
15153 hardcode_direct_F77=yes
15154 export_dynamic_flag_spec_F77='${wl}-E'
15155
15156 # hardcode_minus_L: Not really in the search PATH,
15157 # but as the default location of the library.
15158 hardcode_minus_L_F77=yes
15159 ;;
15160 esac
15161 fi
15162 ;;
15163
15164 irix5* | irix6* | nonstopux*)
15165 if test "$GCC" = yes; then
15166 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'
15167 else
15168 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'
15169 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15170 fi
15171 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15172 hardcode_libdir_separator_F77=:
15173 link_all_deplibs_F77=yes
15174 ;;
15175
15176 netbsd* | netbsdelf*-gnu)
15177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15178 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15179 else
15180 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15181 fi
15182 hardcode_libdir_flag_spec_F77='-R$libdir'
15183 hardcode_direct_F77=yes
15184 hardcode_shlibpath_var_F77=no
15185 ;;
15186
15187 newsos6)
15188 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15189 hardcode_direct_F77=yes
15190 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15191 hardcode_libdir_separator_F77=:
15192 hardcode_shlibpath_var_F77=no
15193 ;;
15194
15195 openbsd*)
15196 hardcode_direct_F77=yes
15197 hardcode_shlibpath_var_F77=no
15198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15199 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15200 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15201 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15202 export_dynamic_flag_spec_F77='${wl}-E'
15203 else
15204 case $host_os in
15205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15206 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15207 hardcode_libdir_flag_spec_F77='-R$libdir'
15208 ;;
15209 *)
15210 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15211 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15212 ;;
15213 esac
15214 fi
15215 ;;
15216
15217 os2*)
15218 hardcode_libdir_flag_spec_F77='-L$libdir'
15219 hardcode_minus_L_F77=yes
15220 allow_undefined_flag_F77=unsupported
15221 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'
15222 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15223 ;;
15224
15225 osf3*)
15226 if test "$GCC" = yes; then
15227 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15228 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'
15229 else
15230 allow_undefined_flag_F77=' -expect_unresolved \*'
15231 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'
15232 fi
15233 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15234 hardcode_libdir_separator_F77=:
15235 ;;
15236
15237 osf4* | osf5*) # as osf3* with the addition of -msym flag
15238 if test "$GCC" = yes; then
15239 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15240 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'
15241 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15242 else
15243 allow_undefined_flag_F77=' -expect_unresolved \*'
15244 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'
15245 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~
15246 $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'
15247
15248 # Both c and cxx compiler support -rpath directly
15249 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15250 fi
15251 hardcode_libdir_separator_F77=:
15252 ;;
15253
15254 solaris*)
15255 no_undefined_flag_F77=' -z text'
15256 if test "$GCC" = yes; then
15257 wlarc='${wl}'
15258 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15259 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15260 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15261 else
15262 wlarc=''
15263 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15264 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15265 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15266 fi
15267 hardcode_libdir_flag_spec_F77='-R$libdir'
15268 hardcode_shlibpath_var_F77=no
15269 case $host_os in
15270 solaris2.[0-5] | solaris2.[0-5].*) ;;
15271 *)
15272 # The compiler driver will combine linker options so we
15273 # cannot just pass the convience library names through
15274 # without $wl, iff we do not link with $LD.
15275 # Luckily, gcc supports the same syntax we need for Sun Studio.
15276 # Supported since Solaris 2.6 (maybe 2.5.1?)
15277 case $wlarc in
15278 '')
15279 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15280 *)
15281 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15282 esac ;;
15283 esac
15284 link_all_deplibs_F77=yes
15285 ;;
15286
15287 sunos4*)
15288 if test "x$host_vendor" = xsequent; then
15289 # Use $CC to link under sequent, because it throws in some extra .o
15290 # files that make .init and .fini sections work.
15291 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15292 else
15293 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15294 fi
15295 hardcode_libdir_flag_spec_F77='-L$libdir'
15296 hardcode_direct_F77=yes
15297 hardcode_minus_L_F77=yes
15298 hardcode_shlibpath_var_F77=no
15299 ;;
15300
15301 sysv4)
15302 case $host_vendor in
15303 sni)
15304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305 hardcode_direct_F77=yes # is this really true???
15306 ;;
15307 siemens)
15308 ## LD is ld it makes a PLAMLIB
15309 ## CC just makes a GrossModule.
15310 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15311 reload_cmds_F77='$CC -r -o $output$reload_objs'
15312 hardcode_direct_F77=no
15313 ;;
15314 motorola)
15315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15316 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15317 ;;
15318 esac
15319 runpath_var='LD_RUN_PATH'
15320 hardcode_shlibpath_var_F77=no
15321 ;;
15322
15323 sysv4.3*)
15324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_shlibpath_var_F77=no
15326 export_dynamic_flag_spec_F77='-Bexport'
15327 ;;
15328
15329 sysv4*MP*)
15330 if test -d /usr/nec; then
15331 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15332 hardcode_shlibpath_var_F77=no
15333 runpath_var=LD_RUN_PATH
15334 hardcode_runpath_var=yes
15335 ld_shlibs_F77=yes
15336 fi
15337 ;;
15338
15339 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15340 no_undefined_flag_F77='${wl}-z,text'
15341 archive_cmds_need_lc_F77=no
15342 hardcode_shlibpath_var_F77=no
15343 runpath_var='LD_RUN_PATH'
15344
15345 if test "$GCC" = yes; then
15346 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15347 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15348 else
15349 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15350 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15351 fi
15352 ;;
15353
15354 sysv5* | sco3.2v5* | sco5v6*)
15355 # Note: We can NOT use -z defs as we might desire, because we do not
15356 # link with -lc, and that would cause any symbols used from libc to
15357 # always be unresolved, which means just about no library would
15358 # ever link correctly. If we're not using GNU ld we use -z text
15359 # though, which does catch some bad symbols but isn't as heavy-handed
15360 # as -z defs.
15361 no_undefined_flag_F77='${wl}-z,text'
15362 allow_undefined_flag_F77='${wl}-z,nodefs'
15363 archive_cmds_need_lc_F77=no
15364 hardcode_shlibpath_var_F77=no
15365 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15366 hardcode_libdir_separator_F77=':'
15367 link_all_deplibs_F77=yes
15368 export_dynamic_flag_spec_F77='${wl}-Bexport'
15369 runpath_var='LD_RUN_PATH'
15370
15371 if test "$GCC" = yes; then
15372 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15374 else
15375 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15376 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15377 fi
15378 ;;
15379
15380 uts4*)
15381 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15382 hardcode_libdir_flag_spec_F77='-L$libdir'
15383 hardcode_shlibpath_var_F77=no
15384 ;;
15385
15386 *)
15387 ld_shlibs_F77=no
15388 ;;
15389 esac
15390 fi
15391
15392 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15393 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15394 test "$ld_shlibs_F77" = no && can_build_shared=no
15395
15396 #
15397 # Do we need to explicitly link libc?
15398 #
15399 case "x$archive_cmds_need_lc_F77" in
15400 x|xyes)
15401 # Assume -lc should be added
15402 archive_cmds_need_lc_F77=yes
15403
15404 if test "$enable_shared" = yes && test "$GCC" = yes; then
15405 case $archive_cmds_F77 in
15406 *'~'*)
15407 # FIXME: we may have to deal with multi-command sequences.
15408 ;;
15409 '$CC '*)
15410 # Test whether the compiler implicitly links with -lc since on some
15411 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15412 # to ld, don't add -lc before -lgcc.
15413 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15414 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15415 $rm conftest*
15416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15417
15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } 2>conftest.err; then
15423 soname=conftest
15424 lib=conftest
15425 libobjs=conftest.$ac_objext
15426 deplibs=
15427 wl=$lt_prog_compiler_wl_F77
15428 pic_flag=$lt_prog_compiler_pic_F77
15429 compiler_flags=-v
15430 linker_flags=-v
15431 verstring=
15432 output_objdir=.
15433 libname=conftest
15434 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15435 allow_undefined_flag_F77=
15436 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15437 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }
15441 then
15442 archive_cmds_need_lc_F77=no
15443 else
15444 archive_cmds_need_lc_F77=yes
15445 fi
15446 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15447 else
15448 cat conftest.err 1>&5
15449 fi
15450 $rm conftest*
15451 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15452 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15453 ;;
15454 esac
15455 fi
15456 ;;
15457 esac
15458
15459 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15460 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15461 library_names_spec=
15462 libname_spec='lib$name'
15463 soname_spec=
15464 shrext_cmds=".so"
15465 postinstall_cmds=
15466 postuninstall_cmds=
15467 finish_cmds=
15468 finish_eval=
15469 shlibpath_var=
15470 shlibpath_overrides_runpath=unknown
15471 version_type=none
15472 dynamic_linker="$host_os ld.so"
15473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15474 if test "$GCC" = yes; then
15475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15476 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15477 # if the path contains ";" then we assume it to be the separator
15478 # otherwise default to the standard path separator (i.e. ":") - it is
15479 # assumed that no part of a normal pathname contains ";" but that should
15480 # okay in the real world where ";" in dirpaths is itself problematic.
15481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15482 else
15483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15484 fi
15485 else
15486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15487 fi
15488 need_lib_prefix=unknown
15489 hardcode_into_libs=no
15490
15491 # when you set need_version to no, make sure it does not cause -set_version
15492 # flags to be left without arguments
15493 need_version=unknown
15494
15495 case $host_os in
15496 aix3*)
15497 version_type=linux
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15499 shlibpath_var=LIBPATH
15500
15501 # AIX 3 has no versioning support, so we append a major version to the name.
15502 soname_spec='${libname}${release}${shared_ext}$major'
15503 ;;
15504
15505 aix4* | aix5*)
15506 version_type=linux
15507 need_lib_prefix=no
15508 need_version=no
15509 hardcode_into_libs=yes
15510 if test "$host_cpu" = ia64; then
15511 # AIX 5 supports IA64
15512 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 else
15515 # With GCC up to 2.95.x, collect2 would create an import file
15516 # for dependence libraries. The import file would start with
15517 # the line `#! .'. This would cause the generated library to
15518 # depend on `.', always an invalid library. This was fixed in
15519 # development snapshots of GCC prior to 3.0.
15520 case $host_os in
15521 aix4 | aix4.[01] | aix4.[01].*)
15522 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15523 echo ' yes '
15524 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15525 :
15526 else
15527 can_build_shared=no
15528 fi
15529 ;;
15530 esac
15531 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15532 # soname into executable. Probably we can add versioning support to
15533 # collect2, so additional links can be useful in future.
15534 if test "$aix_use_runtimelinking" = yes; then
15535 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15536 # instead of lib<name>.a to let people know that these are not
15537 # typical AIX shared libraries.
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 else
15540 # We preserve .a as extension for shared libraries through AIX4.2
15541 # and later when we are not doing run time linking.
15542 library_names_spec='${libname}${release}.a $libname.a'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 fi
15545 shlibpath_var=LIBPATH
15546 fi
15547 ;;
15548
15549 amigaos*)
15550 library_names_spec='$libname.ixlibrary $libname.a'
15551 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15552 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'
15553 ;;
15554
15555 beos*)
15556 library_names_spec='${libname}${shared_ext}'
15557 dynamic_linker="$host_os ld.so"
15558 shlibpath_var=LIBRARY_PATH
15559 ;;
15560
15561 bsdi[45]*)
15562 version_type=linux
15563 need_version=no
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15570 # the default ld.so.conf also contains /usr/contrib/lib and
15571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15572 # libtool to hard-code these into programs
15573 ;;
15574
15575 cygwin* | mingw* | pw32*)
15576 version_type=windows
15577 shrext_cmds=".dll"
15578 need_version=no
15579 need_lib_prefix=no
15580
15581 case $GCC,$host_os in
15582 yes,cygwin* | yes,mingw* | yes,pw32*)
15583 library_names_spec='$libname.dll.a'
15584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15585 postinstall_cmds='base_file=`basename \${file}`~
15586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15587 dldir=$destdir/`dirname \$dlpath`~
15588 test -d \$dldir || mkdir -p \$dldir~
15589 $install_prog $dir/$dlname \$dldir/$dlname~
15590 chmod a+x \$dldir/$dlname'
15591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15592 dlpath=$dir/\$dldll~
15593 $rm \$dlpath'
15594 shlibpath_overrides_runpath=yes
15595
15596 case $host_os in
15597 cygwin*)
15598 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15600 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15601 ;;
15602 mingw*)
15603 # MinGW DLLs use traditional 'lib' prefix
15604 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15606 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15607 # It is most probably a Windows format PATH printed by
15608 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15609 # path with ; separators, and with drive letters. We can handle the
15610 # drive letters (cygwin fileutils understands them), so leave them,
15611 # especially as we might pass files found there to a mingw objdump,
15612 # which wouldn't understand a cygwinified path. Ahh.
15613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15614 else
15615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15616 fi
15617 ;;
15618 pw32*)
15619 # pw32 DLLs use 'pw' prefix rather than 'lib'
15620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15621 ;;
15622 esac
15623 ;;
15624
15625 *)
15626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15627 ;;
15628 esac
15629 dynamic_linker='Win32 ld.exe'
15630 # FIXME: first we should search . and the directory the executable is in
15631 shlibpath_var=PATH
15632 ;;
15633
15634 darwin* | rhapsody*)
15635 dynamic_linker="$host_os dyld"
15636 version_type=darwin
15637 need_lib_prefix=no
15638 need_version=no
15639 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15640 soname_spec='${libname}${release}${major}$shared_ext'
15641 shlibpath_overrides_runpath=yes
15642 shlibpath_var=DYLD_LIBRARY_PATH
15643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15644 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15645 if test "$GCC" = yes; then
15646 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15647 else
15648 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15649 fi
15650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15651 ;;
15652
15653 dgux*)
15654 version_type=linux
15655 need_lib_prefix=no
15656 need_version=no
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 ;;
15661
15662 freebsd1*)
15663 dynamic_linker=no
15664 ;;
15665
15666 freebsd* | dragonfly*)
15667 # DragonFly does not have aout. When/if they implement a new
15668 # versioning mechanism, adjust this.
15669 if test -x /usr/bin/objformat; then
15670 objformat=`/usr/bin/objformat`
15671 else
15672 case $host_os in
15673 freebsd[123]*) objformat=aout ;;
15674 *) objformat=elf ;;
15675 esac
15676 fi
15677 version_type=freebsd-$objformat
15678 case $version_type in
15679 freebsd-elf*)
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15681 need_version=no
15682 need_lib_prefix=no
15683 ;;
15684 freebsd-*)
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15686 need_version=yes
15687 ;;
15688 esac
15689 shlibpath_var=LD_LIBRARY_PATH
15690 case $host_os in
15691 freebsd2*)
15692 shlibpath_overrides_runpath=yes
15693 ;;
15694 freebsd3.[01]* | freebsdelf3.[01]*)
15695 shlibpath_overrides_runpath=yes
15696 hardcode_into_libs=yes
15697 ;;
15698 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15699 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15700 shlibpath_overrides_runpath=no
15701 hardcode_into_libs=yes
15702 ;;
15703 freebsd*) # from 4.6 on
15704 shlibpath_overrides_runpath=yes
15705 hardcode_into_libs=yes
15706 ;;
15707 esac
15708 ;;
15709
15710 gnu*)
15711 version_type=linux
15712 need_lib_prefix=no
15713 need_version=no
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 hardcode_into_libs=yes
15718 ;;
15719
15720 hpux9* | hpux10* | hpux11*)
15721 # Give a soname corresponding to the major version so that dld.sl refuses to
15722 # link against other versions.
15723 version_type=sunos
15724 need_lib_prefix=no
15725 need_version=no
15726 case $host_cpu in
15727 ia64*)
15728 shrext_cmds='.so'
15729 hardcode_into_libs=yes
15730 dynamic_linker="$host_os dld.so"
15731 shlibpath_var=LD_LIBRARY_PATH
15732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15734 soname_spec='${libname}${release}${shared_ext}$major'
15735 if test "X$HPUX_IA64_MODE" = X32; then
15736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15737 else
15738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15739 fi
15740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15741 ;;
15742 hppa*64*)
15743 shrext_cmds='.sl'
15744 hardcode_into_libs=yes
15745 dynamic_linker="$host_os dld.sl"
15746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15752 ;;
15753 *)
15754 shrext_cmds='.sl'
15755 dynamic_linker="$host_os dld.sl"
15756 shlibpath_var=SHLIB_PATH
15757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 ;;
15761 esac
15762 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15763 postinstall_cmds='chmod 555 $lib'
15764 ;;
15765
15766 interix3*)
15767 version_type=linux
15768 need_lib_prefix=no
15769 need_version=no
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=no
15775 hardcode_into_libs=yes
15776 ;;
15777
15778 irix5* | irix6* | nonstopux*)
15779 case $host_os in
15780 nonstopux*) version_type=nonstopux ;;
15781 *)
15782 if test "$lt_cv_prog_gnu_ld" = yes; then
15783 version_type=linux
15784 else
15785 version_type=irix
15786 fi ;;
15787 esac
15788 need_lib_prefix=no
15789 need_version=no
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15792 case $host_os in
15793 irix5* | nonstopux*)
15794 libsuff= shlibsuff=
15795 ;;
15796 *)
15797 case $LD in # libtool.m4 will add one of these switches to LD
15798 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15799 libsuff= shlibsuff= libmagic=32-bit;;
15800 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15801 libsuff=32 shlibsuff=N32 libmagic=N32;;
15802 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15803 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15804 *) libsuff= shlibsuff= libmagic=never-match;;
15805 esac
15806 ;;
15807 esac
15808 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15809 shlibpath_overrides_runpath=no
15810 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15811 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15812 hardcode_into_libs=yes
15813 ;;
15814
15815 # No shared lib support for Linux oldld, aout, or coff.
15816 linux*oldld* | linux*aout* | linux*coff*)
15817 dynamic_linker=no
15818 ;;
15819
15820 # This must be Linux ELF.
15821 linux* | k*bsd*-gnu)
15822 version_type=linux
15823 need_lib_prefix=no
15824 need_version=no
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=no
15830 # This implies no fast_install, which is unacceptable.
15831 # Some rework will be needed to allow for fast_install
15832 # before this can be enabled.
15833 hardcode_into_libs=yes
15834
15835 # Append ld.so.conf contents to the search path
15836 if test -f /etc/ld.so.conf; then
15837 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15838 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15839 fi
15840
15841 # We used to test for /lib/ld.so.1 and disable shared libraries on
15842 # powerpc, because MkLinux only supported shared libraries with the
15843 # GNU dynamic linker. Since this was broken with cross compilers,
15844 # most powerpc-linux boxes support dynamic linking these days and
15845 # people can always --disable-shared, the test was removed, and we
15846 # assume the GNU/Linux dynamic linker is in use.
15847 dynamic_linker='GNU/Linux ld.so'
15848 ;;
15849
15850 netbsdelf*-gnu)
15851 version_type=linux
15852 need_lib_prefix=no
15853 need_version=no
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=no
15858 hardcode_into_libs=yes
15859 dynamic_linker='NetBSD ld.elf_so'
15860 ;;
15861
15862 netbsd*)
15863 version_type=sunos
15864 need_lib_prefix=no
15865 need_version=no
15866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15869 dynamic_linker='NetBSD (a.out) ld.so'
15870 else
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 dynamic_linker='NetBSD ld.elf_so'
15874 fi
15875 shlibpath_var=LD_LIBRARY_PATH
15876 shlibpath_overrides_runpath=yes
15877 hardcode_into_libs=yes
15878 ;;
15879
15880 newsos6)
15881 version_type=linux
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 shlibpath_overrides_runpath=yes
15885 ;;
15886
15887 nto-qnx*)
15888 version_type=linux
15889 need_lib_prefix=no
15890 need_version=no
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=yes
15895 ;;
15896
15897 openbsd*)
15898 version_type=sunos
15899 sys_lib_dlsearch_path_spec="/usr/lib"
15900 need_lib_prefix=no
15901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15902 case $host_os in
15903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15904 *) need_version=no ;;
15905 esac
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15910 case $host_os in
15911 openbsd2.[89] | openbsd2.[89].*)
15912 shlibpath_overrides_runpath=no
15913 ;;
15914 *)
15915 shlibpath_overrides_runpath=yes
15916 ;;
15917 esac
15918 else
15919 shlibpath_overrides_runpath=yes
15920 fi
15921 ;;
15922
15923 os2*)
15924 libname_spec='$name'
15925 shrext_cmds=".dll"
15926 need_lib_prefix=no
15927 library_names_spec='$libname${shared_ext} $libname.a'
15928 dynamic_linker='OS/2 ld.exe'
15929 shlibpath_var=LIBPATH
15930 ;;
15931
15932 osf3* | osf4* | osf5*)
15933 version_type=osf
15934 need_lib_prefix=no
15935 need_version=no
15936 soname_spec='${libname}${release}${shared_ext}$major'
15937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15941 ;;
15942
15943 solaris*)
15944 version_type=linux
15945 need_lib_prefix=no
15946 need_version=no
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=yes
15951 hardcode_into_libs=yes
15952 # ldd complains unless libraries are executable
15953 postinstall_cmds='chmod +x $lib'
15954 ;;
15955
15956 sunos4*)
15957 version_type=sunos
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15960 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=yes
15962 if test "$with_gnu_ld" = yes; then
15963 need_lib_prefix=no
15964 fi
15965 need_version=yes
15966 ;;
15967
15968 sysv4 | sysv4.3*)
15969 version_type=linux
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 case $host_vendor in
15974 sni)
15975 shlibpath_overrides_runpath=no
15976 need_lib_prefix=no
15977 export_dynamic_flag_spec='${wl}-Blargedynsym'
15978 runpath_var=LD_RUN_PATH
15979 ;;
15980 siemens)
15981 need_lib_prefix=no
15982 ;;
15983 motorola)
15984 need_lib_prefix=no
15985 need_version=no
15986 shlibpath_overrides_runpath=no
15987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15988 ;;
15989 esac
15990 ;;
15991
15992 sysv4*MP*)
15993 if test -d /usr/nec ;then
15994 version_type=linux
15995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15996 soname_spec='$libname${shared_ext}.$major'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 fi
15999 ;;
16000
16001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16002 version_type=freebsd-elf
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 hardcode_into_libs=yes
16009 if test "$with_gnu_ld" = yes; then
16010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16011 shlibpath_overrides_runpath=no
16012 else
16013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16014 shlibpath_overrides_runpath=yes
16015 case $host_os in
16016 sco3.2v5*)
16017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16018 ;;
16019 esac
16020 fi
16021 sys_lib_dlsearch_path_spec='/usr/lib'
16022 ;;
16023
16024 uts4*)
16025 version_type=linux
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 ;;
16030
16031 *)
16032 dynamic_linker=no
16033 ;;
16034 esac
16035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16036 echo "${ECHO_T}$dynamic_linker" >&6; }
16037 test "$dynamic_linker" = no && can_build_shared=no
16038
16039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16040 if test "$GCC" = yes; then
16041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16042 fi
16043
16044 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16045 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16046 hardcode_action_F77=
16047 if test -n "$hardcode_libdir_flag_spec_F77" || \
16048 test -n "$runpath_var_F77" || \
16049 test "X$hardcode_automatic_F77" = "Xyes" ; then
16050
16051 # We can hardcode non-existant directories.
16052 if test "$hardcode_direct_F77" != no &&
16053 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16054 # have to relink, otherwise we might link with an installed library
16055 # when we should be linking with a yet-to-be-installed one
16056 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16057 test "$hardcode_minus_L_F77" != no; then
16058 # Linking always hardcodes the temporary library directory.
16059 hardcode_action_F77=relink
16060 else
16061 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16062 hardcode_action_F77=immediate
16063 fi
16064 else
16065 # We cannot hardcode anything, or else we can only hardcode existing
16066 # directories.
16067 hardcode_action_F77=unsupported
16068 fi
16069 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16070 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16071
16072 if test "$hardcode_action_F77" = relink; then
16073 # Fast installation is not supported
16074 enable_fast_install=no
16075 elif test "$shlibpath_overrides_runpath" = yes ||
16076 test "$enable_shared" = no; then
16077 # Fast installation is not necessary
16078 enable_fast_install=needless
16079 fi
16080
16081
16082 # The else clause should only fire when bootstrapping the
16083 # libtool distribution, otherwise you forgot to ship ltmain.sh
16084 # with your package, and you will get complaints that there are
16085 # no rules to generate ltmain.sh.
16086 if test -f "$ltmain"; then
16087 # See if we are running on zsh, and set the options which allow our commands through
16088 # without removal of \ escapes.
16089 if test -n "${ZSH_VERSION+set}" ; then
16090 setopt NO_GLOB_SUBST
16091 fi
16092 # Now quote all the things that may contain metacharacters while being
16093 # careful not to overquote the AC_SUBSTed values. We take copies of the
16094 # variables and quote the copies for generation of the libtool script.
16095 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16096 SED SHELL STRIP \
16097 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16098 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16099 deplibs_check_method reload_flag reload_cmds need_locks \
16100 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16101 lt_cv_sys_global_symbol_to_c_name_address \
16102 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16103 old_postinstall_cmds old_postuninstall_cmds \
16104 compiler_F77 \
16105 CC_F77 \
16106 LD_F77 \
16107 lt_prog_compiler_wl_F77 \
16108 lt_prog_compiler_pic_F77 \
16109 lt_prog_compiler_static_F77 \
16110 lt_prog_compiler_no_builtin_flag_F77 \
16111 export_dynamic_flag_spec_F77 \
16112 thread_safe_flag_spec_F77 \
16113 whole_archive_flag_spec_F77 \
16114 enable_shared_with_static_runtimes_F77 \
16115 old_archive_cmds_F77 \
16116 old_archive_from_new_cmds_F77 \
16117 predep_objects_F77 \
16118 postdep_objects_F77 \
16119 predeps_F77 \
16120 postdeps_F77 \
16121 compiler_lib_search_path_F77 \
16122 archive_cmds_F77 \
16123 archive_expsym_cmds_F77 \
16124 postinstall_cmds_F77 \
16125 postuninstall_cmds_F77 \
16126 old_archive_from_expsyms_cmds_F77 \
16127 allow_undefined_flag_F77 \
16128 no_undefined_flag_F77 \
16129 export_symbols_cmds_F77 \
16130 hardcode_libdir_flag_spec_F77 \
16131 hardcode_libdir_flag_spec_ld_F77 \
16132 hardcode_libdir_separator_F77 \
16133 hardcode_automatic_F77 \
16134 module_cmds_F77 \
16135 module_expsym_cmds_F77 \
16136 lt_cv_prog_compiler_c_o_F77 \
16137 exclude_expsyms_F77 \
16138 include_expsyms_F77; do
16139
16140 case $var in
16141 old_archive_cmds_F77 | \
16142 old_archive_from_new_cmds_F77 | \
16143 archive_cmds_F77 | \
16144 archive_expsym_cmds_F77 | \
16145 module_cmds_F77 | \
16146 module_expsym_cmds_F77 | \
16147 old_archive_from_expsyms_cmds_F77 | \
16148 export_symbols_cmds_F77 | \
16149 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16150 postinstall_cmds | postuninstall_cmds | \
16151 old_postinstall_cmds | old_postuninstall_cmds | \
16152 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16153 # Double-quote double-evaled strings.
16154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16155 ;;
16156 *)
16157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16158 ;;
16159 esac
16160 done
16161
16162 case $lt_echo in
16163 *'\$0 --fallback-echo"')
16164 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16165 ;;
16166 esac
16167
16168 cfgfile="$ofile"
16169
16170 cat <<__EOF__ >> "$cfgfile"
16171 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16172
16173 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16174
16175 # Shell to use when invoking shell scripts.
16176 SHELL=$lt_SHELL
16177
16178 # Whether or not to build shared libraries.
16179 build_libtool_libs=$enable_shared
16180
16181 # Whether or not to build static libraries.
16182 build_old_libs=$enable_static
16183
16184 # Whether or not to add -lc for building shared libraries.
16185 build_libtool_need_lc=$archive_cmds_need_lc_F77
16186
16187 # Whether or not to disallow shared libs when runtime libs are static
16188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16189
16190 # Whether or not to optimize for fast installation.
16191 fast_install=$enable_fast_install
16192
16193 # The host system.
16194 host_alias=$host_alias
16195 host=$host
16196 host_os=$host_os
16197
16198 # The build system.
16199 build_alias=$build_alias
16200 build=$build
16201 build_os=$build_os
16202
16203 # An echo program that does not interpret backslashes.
16204 echo=$lt_echo
16205
16206 # The archiver.
16207 AR=$lt_AR
16208 AR_FLAGS=$lt_AR_FLAGS
16209
16210 # A C compiler.
16211 LTCC=$lt_LTCC
16212
16213 # LTCC compiler flags.
16214 LTCFLAGS=$lt_LTCFLAGS
16215
16216 # A language-specific compiler.
16217 CC=$lt_compiler_F77
16218
16219 # Is the compiler the GNU C compiler?
16220 with_gcc=$GCC_F77
16221
16222 # An ERE matcher.
16223 EGREP=$lt_EGREP
16224
16225 # The linker used to build libraries.
16226 LD=$lt_LD_F77
16227
16228 # Whether we need hard or soft links.
16229 LN_S=$lt_LN_S
16230
16231 # A BSD-compatible nm program.
16232 NM=$lt_NM
16233
16234 # A symbol stripping program
16235 STRIP=$lt_STRIP
16236
16237 # Used to examine libraries when file_magic_cmd begins "file"
16238 MAGIC_CMD=$MAGIC_CMD
16239
16240 # Used on cygwin: DLL creation program.
16241 DLLTOOL="$DLLTOOL"
16242
16243 # Used on cygwin: object dumper.
16244 OBJDUMP="$OBJDUMP"
16245
16246 # Used on cygwin: assembler.
16247 AS="$AS"
16248
16249 # The name of the directory that contains temporary libtool files.
16250 objdir=$objdir
16251
16252 # How to create reloadable object files.
16253 reload_flag=$lt_reload_flag
16254 reload_cmds=$lt_reload_cmds
16255
16256 # How to pass a linker flag through the compiler.
16257 wl=$lt_lt_prog_compiler_wl_F77
16258
16259 # Object file suffix (normally "o").
16260 objext="$ac_objext"
16261
16262 # Old archive suffix (normally "a").
16263 libext="$libext"
16264
16265 # Shared library suffix (normally ".so").
16266 shrext_cmds='$shrext_cmds'
16267
16268 # Executable file suffix (normally "").
16269 exeext="$exeext"
16270
16271 # Additional compiler flags for building library objects.
16272 pic_flag=$lt_lt_prog_compiler_pic_F77
16273 pic_mode=$pic_mode
16274
16275 # What is the maximum length of a command?
16276 max_cmd_len=$lt_cv_sys_max_cmd_len
16277
16278 # Does compiler simultaneously support -c and -o options?
16279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16280
16281 # Must we lock files when doing compilation?
16282 need_locks=$lt_need_locks
16283
16284 # Do we need the lib prefix for modules?
16285 need_lib_prefix=$need_lib_prefix
16286
16287 # Do we need a version for libraries?
16288 need_version=$need_version
16289
16290 # Whether dlopen is supported.
16291 dlopen_support=$enable_dlopen
16292
16293 # Whether dlopen of programs is supported.
16294 dlopen_self=$enable_dlopen_self
16295
16296 # Whether dlopen of statically linked programs is supported.
16297 dlopen_self_static=$enable_dlopen_self_static
16298
16299 # Compiler flag to prevent dynamic linking.
16300 link_static_flag=$lt_lt_prog_compiler_static_F77
16301
16302 # Compiler flag to turn off builtin functions.
16303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16304
16305 # Compiler flag to allow reflexive dlopens.
16306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16307
16308 # Compiler flag to generate shared objects directly from archives.
16309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16310
16311 # Compiler flag to generate thread-safe objects.
16312 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16313
16314 # Library versioning type.
16315 version_type=$version_type
16316
16317 # Format of library name prefix.
16318 libname_spec=$lt_libname_spec
16319
16320 # List of archive names. First name is the real one, the rest are links.
16321 # The last name is the one that the linker finds with -lNAME.
16322 library_names_spec=$lt_library_names_spec
16323
16324 # The coded name of the library, if different from the real name.
16325 soname_spec=$lt_soname_spec
16326
16327 # Commands used to build and install an old-style archive.
16328 RANLIB=$lt_RANLIB
16329 old_archive_cmds=$lt_old_archive_cmds_F77
16330 old_postinstall_cmds=$lt_old_postinstall_cmds
16331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16332
16333 # Create an old-style archive from a shared archive.
16334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16335
16336 # Create a temporary old-style archive to link instead of a shared archive.
16337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16338
16339 # Commands used to build and install a shared archive.
16340 archive_cmds=$lt_archive_cmds_F77
16341 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16342 postinstall_cmds=$lt_postinstall_cmds
16343 postuninstall_cmds=$lt_postuninstall_cmds
16344
16345 # Commands used to build a loadable module (assumed same as above if empty)
16346 module_cmds=$lt_module_cmds_F77
16347 module_expsym_cmds=$lt_module_expsym_cmds_F77
16348
16349 # Commands to strip libraries.
16350 old_striplib=$lt_old_striplib
16351 striplib=$lt_striplib
16352
16353 # Dependencies to place before the objects being linked to create a
16354 # shared library.
16355 predep_objects=$lt_predep_objects_F77
16356
16357 # Dependencies to place after the objects being linked to create a
16358 # shared library.
16359 postdep_objects=$lt_postdep_objects_F77
16360
16361 # Dependencies to place before the objects being linked to create a
16362 # shared library.
16363 predeps=$lt_predeps_F77
16364
16365 # Dependencies to place after the objects being linked to create a
16366 # shared library.
16367 postdeps=$lt_postdeps_F77
16368
16369 # The library search path used internally by the compiler when linking
16370 # a shared library.
16371 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16372
16373 # Method to check whether dependent libraries are shared objects.
16374 deplibs_check_method=$lt_deplibs_check_method
16375
16376 # Command to use when deplibs_check_method == file_magic.
16377 file_magic_cmd=$lt_file_magic_cmd
16378
16379 # Flag that allows shared libraries with undefined symbols to be built.
16380 allow_undefined_flag=$lt_allow_undefined_flag_F77
16381
16382 # Flag that forces no undefined symbols.
16383 no_undefined_flag=$lt_no_undefined_flag_F77
16384
16385 # Commands used to finish a libtool library installation in a directory.
16386 finish_cmds=$lt_finish_cmds
16387
16388 # Same as above, but a single script fragment to be evaled but not shown.
16389 finish_eval=$lt_finish_eval
16390
16391 # Take the output of nm and produce a listing of raw symbols and C names.
16392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16393
16394 # Transform the output of nm in a proper C declaration
16395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16396
16397 # Transform the output of nm in a C name address pair
16398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16399
16400 # This is the shared library runtime path variable.
16401 runpath_var=$runpath_var
16402
16403 # This is the shared library path variable.
16404 shlibpath_var=$shlibpath_var
16405
16406 # Is shlibpath searched before the hard-coded library search path?
16407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16408
16409 # How to hardcode a shared library path into an executable.
16410 hardcode_action=$hardcode_action_F77
16411
16412 # Whether we should hardcode library paths into libraries.
16413 hardcode_into_libs=$hardcode_into_libs
16414
16415 # Flag to hardcode \$libdir into a binary during linking.
16416 # This must work even if \$libdir does not exist.
16417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16418
16419 # If ld is used when linking, flag to hardcode \$libdir into
16420 # a binary during linking. This must work even if \$libdir does
16421 # not exist.
16422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16423
16424 # Whether we need a single -rpath flag with a separated argument.
16425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16426
16427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16428 # resulting binary.
16429 hardcode_direct=$hardcode_direct_F77
16430
16431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16432 # resulting binary.
16433 hardcode_minus_L=$hardcode_minus_L_F77
16434
16435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16436 # the resulting binary.
16437 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16438
16439 # Set to yes if building a shared library automatically hardcodes DIR into the library
16440 # and all subsequent libraries and executables linked against it.
16441 hardcode_automatic=$hardcode_automatic_F77
16442
16443 # Variables whose values should be saved in libtool wrapper scripts and
16444 # restored at relink time.
16445 variables_saved_for_relink="$variables_saved_for_relink"
16446
16447 # Whether libtool must link a program against all its dependency libraries.
16448 link_all_deplibs=$link_all_deplibs_F77
16449
16450 # Compile-time system search path for libraries
16451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16452
16453 # Run-time system search path for libraries
16454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16455
16456 # Fix the shell variable \$srcfile for the compiler.
16457 fix_srcfile_path="$fix_srcfile_path_F77"
16458
16459 # Set to yes if exported symbols are required.
16460 always_export_symbols=$always_export_symbols_F77
16461
16462 # The commands to list exported symbols.
16463 export_symbols_cmds=$lt_export_symbols_cmds_F77
16464
16465 # The commands to extract the exported symbol list from a shared archive.
16466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16467
16468 # Symbols that should not be listed in the preloaded symbols.
16469 exclude_expsyms=$lt_exclude_expsyms_F77
16470
16471 # Symbols that must always be exported.
16472 include_expsyms=$lt_include_expsyms_F77
16473
16474 # ### END LIBTOOL TAG CONFIG: $tagname
16475
16476 __EOF__
16477
16478
16479 else
16480 # If there is no Makefile yet, we rely on a make rule to execute
16481 # `config.status --recheck' to rerun these tests and create the
16482 # libtool script then.
16483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16484 if test -f "$ltmain_in"; then
16485 test -f Makefile && make "$ltmain"
16486 fi
16487 fi
16488
16489
16490 ac_ext=c
16491 ac_cpp='$CPP $CPPFLAGS'
16492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496 CC="$lt_save_CC"
16497
16498 else
16499 tagname=""
16500 fi
16501 ;;
16502
16503 GCJ)
16504 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16505
16506
16507 # Source file extension for Java test sources.
16508 ac_ext=java
16509
16510 # Object file extension for compiled Java test sources.
16511 objext=o
16512 objext_GCJ=$objext
16513
16514 # Code to be used in simple compile tests
16515 lt_simple_compile_test_code="class foo {}\n"
16516
16517 # Code to be used in simple link tests
16518 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16519
16520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16521
16522 # If no C compiler was specified, use CC.
16523 LTCC=${LTCC-"$CC"}
16524
16525 # If no C compiler flags were specified, use CFLAGS.
16526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16527
16528 # Allow CC to be a program name with arguments.
16529 compiler=$CC
16530
16531
16532 # save warnings/boilerplate of simple test code
16533 ac_outfile=conftest.$ac_objext
16534 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16536 _lt_compiler_boilerplate=`cat conftest.err`
16537 $rm conftest*
16538
16539 ac_outfile=conftest.$ac_objext
16540 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16542 _lt_linker_boilerplate=`cat conftest.err`
16543 $rm conftest*
16544
16545
16546 # Allow CC to be a program name with arguments.
16547 lt_save_CC="$CC"
16548 CC=${GCJ-"gcj"}
16549 compiler=$CC
16550 compiler_GCJ=$CC
16551 for cc_temp in $compiler""; do
16552 case $cc_temp in
16553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16555 \-*) ;;
16556 *) break;;
16557 esac
16558 done
16559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16560
16561
16562 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16563 archive_cmds_need_lc_GCJ=no
16564
16565 old_archive_cmds_GCJ=$old_archive_cmds
16566
16567
16568 lt_prog_compiler_no_builtin_flag_GCJ=
16569
16570 if test "$GCC" = yes; then
16571 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16572
16573
16574 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16575 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16576 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579 lt_cv_prog_compiler_rtti_exceptions=no
16580 ac_outfile=conftest.$ac_objext
16581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16582 lt_compiler_flag="-fno-rtti -fno-exceptions"
16583 # Insert the option either (1) after the last *FLAGS variable, or
16584 # (2) before a word containing "conftest.", or (3) at the end.
16585 # Note that $ac_compile itself does not contain backslashes and begins
16586 # with a dollar sign (not a hyphen), so the echo should work correctly.
16587 # The option is referenced via a variable to avoid confusing sed.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16593 (eval "$lt_compile" 2>conftest.err)
16594 ac_status=$?
16595 cat conftest.err >&5
16596 echo "$as_me:16596: \$? = $ac_status" >&5
16597 if (exit $ac_status) && test -s "$ac_outfile"; then
16598 # The compiler can only warn and ignore the option if not recognized
16599 # So say no if there are warnings other than the usual output.
16600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16603 lt_cv_prog_compiler_rtti_exceptions=yes
16604 fi
16605 fi
16606 $rm conftest*
16607
16608 fi
16609 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16610 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16611
16612 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16613 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16614 else
16615 :
16616 fi
16617
16618 fi
16619
16620 lt_prog_compiler_wl_GCJ=
16621 lt_prog_compiler_pic_GCJ=
16622 lt_prog_compiler_static_GCJ=
16623
16624 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16626
16627 if test "$GCC" = yes; then
16628 lt_prog_compiler_wl_GCJ='-Wl,'
16629 lt_prog_compiler_static_GCJ='-static'
16630
16631 case $host_os in
16632 aix*)
16633 # All AIX code is PIC.
16634 if test "$host_cpu" = ia64; then
16635 # AIX 5 now supports IA64 processor
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16637 fi
16638 ;;
16639
16640 amigaos*)
16641 # FIXME: we need at least 68020 code to build shared libraries, but
16642 # adding the `-m68020' flag to GCC prevents building anything better,
16643 # like `-m68040'.
16644 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16645 ;;
16646
16647 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16648 # PIC is the default for these OSes.
16649 ;;
16650
16651 mingw* | pw32* | os2*)
16652 # This hack is so that the source file can tell whether it is being
16653 # built for inclusion in a dll (and should export symbols for example).
16654 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16655 ;;
16656
16657 darwin* | rhapsody*)
16658 # PIC is the default on this platform
16659 # Common symbols not allowed in MH_DYLIB files
16660 lt_prog_compiler_pic_GCJ='-fno-common'
16661 ;;
16662
16663 interix3*)
16664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16665 # Instead, we relocate shared libraries at runtime.
16666 ;;
16667
16668 msdosdjgpp*)
16669 # Just because we use GCC doesn't mean we suddenly get shared libraries
16670 # on systems that don't support them.
16671 lt_prog_compiler_can_build_shared_GCJ=no
16672 enable_shared=no
16673 ;;
16674
16675 sysv4*MP*)
16676 if test -d /usr/nec; then
16677 lt_prog_compiler_pic_GCJ=-Kconform_pic
16678 fi
16679 ;;
16680
16681 hpux*)
16682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16683 # not for PA HP-UX.
16684 case $host_cpu in
16685 hppa*64*|ia64*)
16686 # +Z the default
16687 ;;
16688 *)
16689 lt_prog_compiler_pic_GCJ='-fPIC'
16690 ;;
16691 esac
16692 ;;
16693
16694 *)
16695 lt_prog_compiler_pic_GCJ='-fPIC'
16696 ;;
16697 esac
16698 else
16699 # PORTME Check for flag to pass linker flags through the system compiler.
16700 case $host_os in
16701 aix*)
16702 lt_prog_compiler_wl_GCJ='-Wl,'
16703 if test "$host_cpu" = ia64; then
16704 # AIX 5 now supports IA64 processor
16705 lt_prog_compiler_static_GCJ='-Bstatic'
16706 else
16707 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16708 fi
16709 ;;
16710 darwin*)
16711 # PIC is the default on this platform
16712 # Common symbols not allowed in MH_DYLIB files
16713 case $cc_basename in
16714 xlc*)
16715 lt_prog_compiler_pic_GCJ='-qnocommon'
16716 lt_prog_compiler_wl_GCJ='-Wl,'
16717 ;;
16718 esac
16719 ;;
16720
16721 mingw* | pw32* | os2*)
16722 # This hack is so that the source file can tell whether it is being
16723 # built for inclusion in a dll (and should export symbols for example).
16724 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16725 ;;
16726
16727 hpux9* | hpux10* | hpux11*)
16728 lt_prog_compiler_wl_GCJ='-Wl,'
16729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16730 # not for PA HP-UX.
16731 case $host_cpu in
16732 hppa*64*|ia64*)
16733 # +Z the default
16734 ;;
16735 *)
16736 lt_prog_compiler_pic_GCJ='+Z'
16737 ;;
16738 esac
16739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16740 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16741 ;;
16742
16743 irix5* | irix6* | nonstopux*)
16744 lt_prog_compiler_wl_GCJ='-Wl,'
16745 # PIC (with -KPIC) is the default.
16746 lt_prog_compiler_static_GCJ='-non_shared'
16747 ;;
16748
16749 newsos6)
16750 lt_prog_compiler_pic_GCJ='-KPIC'
16751 lt_prog_compiler_static_GCJ='-Bstatic'
16752 ;;
16753
16754 linux* | k*bsd*-gnu)
16755 case $cc_basename in
16756 icc* | ecc*)
16757 lt_prog_compiler_wl_GCJ='-Wl,'
16758 lt_prog_compiler_pic_GCJ='-KPIC'
16759 lt_prog_compiler_static_GCJ='-static'
16760 ;;
16761 pgcc* | pgf77* | pgf90* | pgf95*)
16762 # Portland Group compilers (*not* the Pentium gcc compiler,
16763 # which looks to be a dead project)
16764 lt_prog_compiler_wl_GCJ='-Wl,'
16765 lt_prog_compiler_pic_GCJ='-fpic'
16766 lt_prog_compiler_static_GCJ='-Bstatic'
16767 ;;
16768 ccc*)
16769 lt_prog_compiler_wl_GCJ='-Wl,'
16770 # All Alpha code is PIC.
16771 lt_prog_compiler_static_GCJ='-non_shared'
16772 ;;
16773 esac
16774 ;;
16775
16776 osf3* | osf4* | osf5*)
16777 lt_prog_compiler_wl_GCJ='-Wl,'
16778 # All OSF/1 code is PIC.
16779 lt_prog_compiler_static_GCJ='-non_shared'
16780 ;;
16781
16782 solaris*)
16783 lt_prog_compiler_pic_GCJ='-KPIC'
16784 lt_prog_compiler_static_GCJ='-Bstatic'
16785 case $cc_basename in
16786 f77* | f90* | f95*)
16787 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16788 *)
16789 lt_prog_compiler_wl_GCJ='-Wl,';;
16790 esac
16791 ;;
16792
16793 sunos4*)
16794 lt_prog_compiler_wl_GCJ='-Qoption ld '
16795 lt_prog_compiler_pic_GCJ='-PIC'
16796 lt_prog_compiler_static_GCJ='-Bstatic'
16797 ;;
16798
16799 sysv4 | sysv4.2uw2* | sysv4.3*)
16800 lt_prog_compiler_wl_GCJ='-Wl,'
16801 lt_prog_compiler_pic_GCJ='-KPIC'
16802 lt_prog_compiler_static_GCJ='-Bstatic'
16803 ;;
16804
16805 sysv4*MP*)
16806 if test -d /usr/nec ;then
16807 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16808 lt_prog_compiler_static_GCJ='-Bstatic'
16809 fi
16810 ;;
16811
16812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16813 lt_prog_compiler_wl_GCJ='-Wl,'
16814 lt_prog_compiler_pic_GCJ='-KPIC'
16815 lt_prog_compiler_static_GCJ='-Bstatic'
16816 ;;
16817
16818 unicos*)
16819 lt_prog_compiler_wl_GCJ='-Wl,'
16820 lt_prog_compiler_can_build_shared_GCJ=no
16821 ;;
16822
16823 uts4*)
16824 lt_prog_compiler_pic_GCJ='-pic'
16825 lt_prog_compiler_static_GCJ='-Bstatic'
16826 ;;
16827
16828 *)
16829 lt_prog_compiler_can_build_shared_GCJ=no
16830 ;;
16831 esac
16832 fi
16833
16834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16835 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16836
16837 #
16838 # Check to make sure the PIC flag actually works.
16839 #
16840 if test -n "$lt_prog_compiler_pic_GCJ"; then
16841
16842 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16844 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847 lt_prog_compiler_pic_works_GCJ=no
16848 ac_outfile=conftest.$ac_objext
16849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16850 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16851 # Insert the option either (1) after the last *FLAGS variable, or
16852 # (2) before a word containing "conftest.", or (3) at the end.
16853 # Note that $ac_compile itself does not contain backslashes and begins
16854 # with a dollar sign (not a hyphen), so the echo should work correctly.
16855 # The option is referenced via a variable to avoid confusing sed.
16856 lt_compile=`echo "$ac_compile" | $SED \
16857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16859 -e 's:$: $lt_compiler_flag:'`
16860 (eval echo "\"\$as_me:16860: $lt_compile\"" >&5)
16861 (eval "$lt_compile" 2>conftest.err)
16862 ac_status=$?
16863 cat conftest.err >&5
16864 echo "$as_me:16864: \$? = $ac_status" >&5
16865 if (exit $ac_status) && test -s "$ac_outfile"; then
16866 # The compiler can only warn and ignore the option if not recognized
16867 # So say no if there are warnings other than the usual output.
16868 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16871 lt_prog_compiler_pic_works_GCJ=yes
16872 fi
16873 fi
16874 $rm conftest*
16875
16876 fi
16877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16878 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16879
16880 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16881 case $lt_prog_compiler_pic_GCJ in
16882 "" | " "*) ;;
16883 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16884 esac
16885 else
16886 lt_prog_compiler_pic_GCJ=
16887 lt_prog_compiler_can_build_shared_GCJ=no
16888 fi
16889
16890 fi
16891 case $host_os in
16892 # For platforms which do not support PIC, -DPIC is meaningless:
16893 *djgpp*)
16894 lt_prog_compiler_pic_GCJ=
16895 ;;
16896 *)
16897 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16898 ;;
16899 esac
16900
16901 #
16902 # Check to make sure the static flag actually works.
16903 #
16904 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16905 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16906 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16907 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910 lt_prog_compiler_static_works_GCJ=no
16911 save_LDFLAGS="$LDFLAGS"
16912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16913 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16915 # The linker can only warn and ignore the option if not recognized
16916 # So say no if there are warnings
16917 if test -s conftest.err; then
16918 # Append any errors to the config.log.
16919 cat conftest.err 1>&5
16920 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16922 if diff conftest.exp conftest.er2 >/dev/null; then
16923 lt_prog_compiler_static_works_GCJ=yes
16924 fi
16925 else
16926 lt_prog_compiler_static_works_GCJ=yes
16927 fi
16928 fi
16929 $rm conftest*
16930 LDFLAGS="$save_LDFLAGS"
16931
16932 fi
16933 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16934 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16935
16936 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16937 :
16938 else
16939 lt_prog_compiler_static_GCJ=
16940 fi
16941
16942
16943 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16944 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16945 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 lt_cv_prog_compiler_c_o_GCJ=no
16949 $rm -r conftest 2>/dev/null
16950 mkdir conftest
16951 cd conftest
16952 mkdir out
16953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16954
16955 lt_compiler_flag="-o out/conftest2.$ac_objext"
16956 # Insert the option either (1) after the last *FLAGS variable, or
16957 # (2) before a word containing "conftest.", or (3) at the end.
16958 # Note that $ac_compile itself does not contain backslashes and begins
16959 # with a dollar sign (not a hyphen), so the echo should work correctly.
16960 lt_compile=`echo "$ac_compile" | $SED \
16961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16963 -e 's:$: $lt_compiler_flag:'`
16964 (eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
16965 (eval "$lt_compile" 2>out/conftest.err)
16966 ac_status=$?
16967 cat out/conftest.err >&5
16968 echo "$as_me:16968: \$? = $ac_status" >&5
16969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16970 then
16971 # The compiler can only warn and ignore the option if not recognized
16972 # So say no if there are warnings
16973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16976 lt_cv_prog_compiler_c_o_GCJ=yes
16977 fi
16978 fi
16979 chmod u+w . 2>&5
16980 $rm conftest*
16981 # SGI C++ compiler will create directory out/ii_files/ for
16982 # template instantiation
16983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16984 $rm out/* && rmdir out
16985 cd ..
16986 rmdir conftest
16987 $rm conftest*
16988
16989 fi
16990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16992
16993
16994 hard_links="nottested"
16995 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16996 # do not overwrite the value of need_locks provided by the user
16997 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16999 hard_links=yes
17000 $rm conftest*
17001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17002 touch conftest.a
17003 ln conftest.a conftest.b 2>&5 || hard_links=no
17004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17005 { echo "$as_me:$LINENO: result: $hard_links" >&5
17006 echo "${ECHO_T}$hard_links" >&6; }
17007 if test "$hard_links" = no; then
17008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17010 need_locks=warn
17011 fi
17012 else
17013 need_locks=no
17014 fi
17015
17016 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17018
17019 runpath_var=
17020 allow_undefined_flag_GCJ=
17021 enable_shared_with_static_runtimes_GCJ=no
17022 archive_cmds_GCJ=
17023 archive_expsym_cmds_GCJ=
17024 old_archive_From_new_cmds_GCJ=
17025 old_archive_from_expsyms_cmds_GCJ=
17026 export_dynamic_flag_spec_GCJ=
17027 whole_archive_flag_spec_GCJ=
17028 thread_safe_flag_spec_GCJ=
17029 hardcode_libdir_flag_spec_GCJ=
17030 hardcode_libdir_flag_spec_ld_GCJ=
17031 hardcode_libdir_separator_GCJ=
17032 hardcode_direct_GCJ=no
17033 hardcode_minus_L_GCJ=no
17034 hardcode_shlibpath_var_GCJ=unsupported
17035 link_all_deplibs_GCJ=unknown
17036 hardcode_automatic_GCJ=no
17037 module_cmds_GCJ=
17038 module_expsym_cmds_GCJ=
17039 always_export_symbols_GCJ=no
17040 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17041 # include_expsyms should be a list of space-separated symbols to be *always*
17042 # included in the symbol list
17043 include_expsyms_GCJ=
17044 # exclude_expsyms can be an extended regexp of symbols to exclude
17045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17047 # as well as any symbol that contains `d'.
17048 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17050 # platforms (ab)use it in PIC code, but their linkers get confused if
17051 # the symbol is explicitly referenced. Since portable code cannot
17052 # rely on this symbol name, it's probably fine to never include it in
17053 # preloaded symbol tables.
17054 extract_expsyms_cmds=
17055 # Just being paranoid about ensuring that cc_basename is set.
17056 for cc_temp in $compiler""; do
17057 case $cc_temp in
17058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17060 \-*) ;;
17061 *) break;;
17062 esac
17063 done
17064 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17065
17066 case $host_os in
17067 cygwin* | mingw* | pw32*)
17068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17069 # When not using gcc, we currently assume that we are using
17070 # Microsoft Visual C++.
17071 if test "$GCC" != yes; then
17072 with_gnu_ld=no
17073 fi
17074 ;;
17075 interix*)
17076 # we just hope/assume this is gcc and not c89 (= MSVC++)
17077 with_gnu_ld=yes
17078 ;;
17079 openbsd*)
17080 with_gnu_ld=no
17081 ;;
17082 esac
17083
17084 ld_shlibs_GCJ=yes
17085 if test "$with_gnu_ld" = yes; then
17086 # If archive_cmds runs LD, not CC, wlarc should be empty
17087 wlarc='${wl}'
17088
17089 # Set some defaults for GNU ld with shared library support. These
17090 # are reset later if shared libraries are not supported. Putting them
17091 # here allows them to be overridden if necessary.
17092 runpath_var=LD_RUN_PATH
17093 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17094 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17095 # ancient GNU ld didn't support --whole-archive et. al.
17096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17097 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17098 else
17099 whole_archive_flag_spec_GCJ=
17100 fi
17101 supports_anon_versioning=no
17102 case `$LD -v 2>/dev/null` in
17103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17106 *\ 2.11.*) ;; # other 2.11 versions
17107 *) supports_anon_versioning=yes ;;
17108 esac
17109
17110 # See if GNU ld supports shared libraries.
17111 case $host_os in
17112 aix3* | aix4* | aix5*)
17113 # On AIX/PPC, the GNU linker is very broken
17114 if test "$host_cpu" != ia64; then
17115 ld_shlibs_GCJ=no
17116 cat <<EOF 1>&2
17117
17118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17119 *** to be unable to reliably create shared libraries on AIX.
17120 *** Therefore, libtool is disabling shared libraries support. If you
17121 *** really care for shared libraries, you may want to modify your PATH
17122 *** so that a non-GNU linker is found, and then restart.
17123
17124 EOF
17125 fi
17126 ;;
17127
17128 amigaos*)
17129 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)'
17130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17131 hardcode_minus_L_GCJ=yes
17132
17133 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17134 # that the semantics of dynamic libraries on AmigaOS, at least up
17135 # to version 4, is to share data among multiple programs linked
17136 # with the same dynamic library. Since this doesn't match the
17137 # behavior of shared libraries on other platforms, we can't use
17138 # them.
17139 ld_shlibs_GCJ=no
17140 ;;
17141
17142 beos*)
17143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17144 allow_undefined_flag_GCJ=unsupported
17145 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17146 # support --undefined. This deserves some investigation. FIXME
17147 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17148 else
17149 ld_shlibs_GCJ=no
17150 fi
17151 ;;
17152
17153 cygwin* | mingw* | pw32*)
17154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17155 # as there is no search path for DLLs.
17156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157 allow_undefined_flag_GCJ=unsupported
17158 always_export_symbols_GCJ=no
17159 enable_shared_with_static_runtimes_GCJ=yes
17160 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17161
17162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17164 # If the export-symbols file already is a .def file (1st line
17165 # is EXPORTS), use it as is; otherwise, prepend...
17166 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17167 cp $export_symbols $output_objdir/$soname.def;
17168 else
17169 echo EXPORTS > $output_objdir/$soname.def;
17170 cat $export_symbols >> $output_objdir/$soname.def;
17171 fi~
17172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17173 else
17174 ld_shlibs_GCJ=no
17175 fi
17176 ;;
17177
17178 interix3*)
17179 hardcode_direct_GCJ=no
17180 hardcode_shlibpath_var_GCJ=no
17181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17182 export_dynamic_flag_spec_GCJ='${wl}-E'
17183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17184 # Instead, shared libraries are loaded at an image base (0x10000000 by
17185 # default) and relocated if they conflict, which is a slow very memory
17186 # consuming and fragmenting process. To avoid this, we pick a random,
17187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17189 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'
17190 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'
17191 ;;
17192
17193 linux* | k*bsd*-gnu)
17194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17195 tmp_addflag=
17196 case $cc_basename,$host_cpu in
17197 pgcc*) # Portland Group C compiler
17198 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'
17199 tmp_addflag=' $pic_flag'
17200 ;;
17201 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17202 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'
17203 tmp_addflag=' $pic_flag -Mnomain' ;;
17204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17205 tmp_addflag=' -i_dynamic' ;;
17206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17207 tmp_addflag=' -i_dynamic -nofor_main' ;;
17208 ifc* | ifort*) # Intel Fortran compiler
17209 tmp_addflag=' -nofor_main' ;;
17210 esac
17211 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17212
17213 if test $supports_anon_versioning = yes; then
17214 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17216 $echo "local: *; };" >> $output_objdir/$libname.ver~
17217 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17218 fi
17219 link_all_deplibs_GCJ=no
17220 else
17221 ld_shlibs_GCJ=no
17222 fi
17223 ;;
17224
17225 netbsd* | netbsdelf*-gnu)
17226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17227 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17228 wlarc=
17229 else
17230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17231 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17232 fi
17233 ;;
17234
17235 solaris*)
17236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17237 ld_shlibs_GCJ=no
17238 cat <<EOF 1>&2
17239
17240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17241 *** create shared libraries on Solaris systems. Therefore, libtool
17242 *** is disabling shared libraries support. We urge you to upgrade GNU
17243 *** binutils to release 2.9.1 or newer. Another option is to modify
17244 *** your PATH or compiler configuration so that the native linker is
17245 *** used, and then restart.
17246
17247 EOF
17248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17251 else
17252 ld_shlibs_GCJ=no
17253 fi
17254 ;;
17255
17256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17257 case `$LD -v 2>&1` in
17258 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17259 ld_shlibs_GCJ=no
17260 cat <<_LT_EOF 1>&2
17261
17262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17263 *** reliably create shared libraries on SCO systems. Therefore, libtool
17264 *** is disabling shared libraries support. We urge you to upgrade GNU
17265 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17266 *** your PATH or compiler configuration so that the native linker is
17267 *** used, and then restart.
17268
17269 _LT_EOF
17270 ;;
17271 *)
17272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17273 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17276 else
17277 ld_shlibs_GCJ=no
17278 fi
17279 ;;
17280 esac
17281 ;;
17282
17283 sunos4*)
17284 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17285 wlarc=
17286 hardcode_direct_GCJ=yes
17287 hardcode_shlibpath_var_GCJ=no
17288 ;;
17289
17290 *)
17291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17292 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17293 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17294 else
17295 ld_shlibs_GCJ=no
17296 fi
17297 ;;
17298 esac
17299
17300 if test "$ld_shlibs_GCJ" = no; then
17301 runpath_var=
17302 hardcode_libdir_flag_spec_GCJ=
17303 export_dynamic_flag_spec_GCJ=
17304 whole_archive_flag_spec_GCJ=
17305 fi
17306 else
17307 # PORTME fill in a description of your system's linker (not GNU ld)
17308 case $host_os in
17309 aix3*)
17310 allow_undefined_flag_GCJ=unsupported
17311 always_export_symbols_GCJ=yes
17312 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'
17313 # Note: this linker hardcodes the directories in LIBPATH if there
17314 # are no directories specified by -L.
17315 hardcode_minus_L_GCJ=yes
17316 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17317 # Neither direct hardcoding nor static linking is supported with a
17318 # broken collect2.
17319 hardcode_direct_GCJ=unsupported
17320 fi
17321 ;;
17322
17323 aix4* | aix5*)
17324 if test "$host_cpu" = ia64; then
17325 # On IA64, the linker does run time linking by default, so we don't
17326 # have to do anything special.
17327 aix_use_runtimelinking=no
17328 exp_sym_flag='-Bexport'
17329 no_entry_flag=""
17330 else
17331 # If we're using GNU nm, then we don't want the "-C" option.
17332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17333 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17334 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'
17335 else
17336 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'
17337 fi
17338 aix_use_runtimelinking=no
17339
17340 # Test if we are trying to use run time linking or normal
17341 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17342 # need to do runtime linking.
17343 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17344 for ld_flag in $LDFLAGS; do
17345 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17346 aix_use_runtimelinking=yes
17347 break
17348 fi
17349 done
17350 ;;
17351 esac
17352
17353 exp_sym_flag='-bexport'
17354 no_entry_flag='-bnoentry'
17355 fi
17356
17357 # When large executables or shared objects are built, AIX ld can
17358 # have problems creating the table of contents. If linking a library
17359 # or program results in "error TOC overflow" add -mminimal-toc to
17360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17362
17363 archive_cmds_GCJ=''
17364 hardcode_direct_GCJ=yes
17365 hardcode_libdir_separator_GCJ=':'
17366 link_all_deplibs_GCJ=yes
17367
17368 if test "$GCC" = yes; then
17369 case $host_os in aix4.[012]|aix4.[012].*)
17370 # We only want to do this on AIX 4.2 and lower, the check
17371 # below for broken collect2 doesn't work under 4.3+
17372 collect2name=`${CC} -print-prog-name=collect2`
17373 if test -f "$collect2name" && \
17374 strings "$collect2name" | grep resolve_lib_name >/dev/null
17375 then
17376 # We have reworked collect2
17377 hardcode_direct_GCJ=yes
17378 else
17379 # We have old collect2
17380 hardcode_direct_GCJ=unsupported
17381 # It fails to find uninstalled libraries when the uninstalled
17382 # path is not listed in the libpath. Setting hardcode_minus_L
17383 # to unsupported forces relinking
17384 hardcode_minus_L_GCJ=yes
17385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17386 hardcode_libdir_separator_GCJ=
17387 fi
17388 ;;
17389 esac
17390 shared_flag='-shared'
17391 if test "$aix_use_runtimelinking" = yes; then
17392 shared_flag="$shared_flag "'${wl}-G'
17393 fi
17394 else
17395 # not using gcc
17396 if test "$host_cpu" = ia64; then
17397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17398 # chokes on -Wl,-G. The following line is correct:
17399 shared_flag='-G'
17400 else
17401 if test "$aix_use_runtimelinking" = yes; then
17402 shared_flag='${wl}-G'
17403 else
17404 shared_flag='${wl}-bM:SRE'
17405 fi
17406 fi
17407 fi
17408
17409 # It seems that -bexpall does not export symbols beginning with
17410 # underscore (_), so it is better to generate a list of symbols to export.
17411 always_export_symbols_GCJ=yes
17412 if test "$aix_use_runtimelinking" = yes; then
17413 # Warning - without using the other runtime loading flags (-brtl),
17414 # -berok will link without error, but may produce a broken library.
17415 allow_undefined_flag_GCJ='-berok'
17416 # Determine the default libpath from the value encoded in an empty executable.
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h. */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423
17424 int
17425 main ()
17426 {
17427
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 rm -f conftest.$ac_objext conftest$ac_exeext
17433 if { (ac_try="$ac_link"
17434 case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_link") 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest$ac_exeext'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466
17467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17468 }'`
17469 # Check for a 64-bit object if we didn't find anything.
17470 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17471 }'`; fi
17472 else
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476
17477 fi
17478
17479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17480 conftest$ac_exeext conftest.$ac_ext
17481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17482
17483 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17484 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"
17485 else
17486 if test "$host_cpu" = ia64; then
17487 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17488 allow_undefined_flag_GCJ="-z nodefs"
17489 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"
17490 else
17491 # Determine the default libpath from the value encoded in an empty executable.
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498
17499 int
17500 main ()
17501 {
17502
17503 ;
17504 return 0;
17505 }
17506 _ACEOF
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (ac_try="$ac_link"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17512 esac
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_link") 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; } &&
17531 { ac_try='test -s conftest$ac_exeext'
17532 { (case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_try") 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541
17542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17543 }'`
17544 # Check for a 64-bit object if we didn't find anything.
17545 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17546 }'`; fi
17547 else
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551
17552 fi
17553
17554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17555 conftest$ac_exeext conftest.$ac_ext
17556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17557
17558 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17559 # Warning - without using the other run time loading flags,
17560 # -berok will link without error, but may produce a broken library.
17561 no_undefined_flag_GCJ=' ${wl}-bernotok'
17562 allow_undefined_flag_GCJ=' ${wl}-berok'
17563 # Exported symbols can be pulled into shared objects from archives
17564 whole_archive_flag_spec_GCJ='$convenience'
17565 archive_cmds_need_lc_GCJ=yes
17566 # This is similar to how AIX traditionally builds its shared libraries.
17567 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'
17568 fi
17569 fi
17570 ;;
17571
17572 amigaos*)
17573 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)'
17574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17575 hardcode_minus_L_GCJ=yes
17576 # see comment about different semantics on the GNU ld section
17577 ld_shlibs_GCJ=no
17578 ;;
17579
17580 bsdi[45]*)
17581 export_dynamic_flag_spec_GCJ=-rdynamic
17582 ;;
17583
17584 cygwin* | mingw* | pw32*)
17585 # When not using gcc, we currently assume that we are using
17586 # Microsoft Visual C++.
17587 # hardcode_libdir_flag_spec is actually meaningless, as there is
17588 # no search path for DLLs.
17589 hardcode_libdir_flag_spec_GCJ=' '
17590 allow_undefined_flag_GCJ=unsupported
17591 # Tell ltmain to make .lib files, not .a files.
17592 libext=lib
17593 # Tell ltmain to make .dll files, not .so files.
17594 shrext_cmds=".dll"
17595 # FIXME: Setting linknames here is a bad hack.
17596 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17597 # The linker will automatically build a .lib file if we build a DLL.
17598 old_archive_From_new_cmds_GCJ='true'
17599 # FIXME: Should let the user specify the lib program.
17600 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17601 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17602 enable_shared_with_static_runtimes_GCJ=yes
17603 ;;
17604
17605 darwin* | rhapsody*)
17606 case $host_os in
17607 rhapsody* | darwin1.[012])
17608 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17609 ;;
17610 *) # Darwin 1.3 on
17611 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17612 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17613 else
17614 case ${MACOSX_DEPLOYMENT_TARGET} in
17615 10.[012])
17616 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17617 ;;
17618 10.*)
17619 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17620 ;;
17621 esac
17622 fi
17623 ;;
17624 esac
17625 archive_cmds_need_lc_GCJ=no
17626 hardcode_direct_GCJ=no
17627 hardcode_automatic_GCJ=yes
17628 hardcode_shlibpath_var_GCJ=unsupported
17629 whole_archive_flag_spec_GCJ=''
17630 link_all_deplibs_GCJ=yes
17631 if test "$GCC" = yes ; then
17632 output_verbose_link_cmd='echo'
17633 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17634 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17636 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17637 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}'
17638 else
17639 case $cc_basename in
17640 xlc*)
17641 output_verbose_link_cmd='echo'
17642 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17643 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17644 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17645 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17646 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}'
17647 ;;
17648 *)
17649 ld_shlibs_GCJ=no
17650 ;;
17651 esac
17652 fi
17653 ;;
17654
17655 dgux*)
17656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17658 hardcode_shlibpath_var_GCJ=no
17659 ;;
17660
17661 freebsd1*)
17662 ld_shlibs_GCJ=no
17663 ;;
17664
17665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17666 # support. Future versions do this automatically, but an explicit c++rt0.o
17667 # does not break anything, and helps significantly (at the cost of a little
17668 # extra space).
17669 freebsd2.2*)
17670 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17671 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17672 hardcode_direct_GCJ=yes
17673 hardcode_shlibpath_var_GCJ=no
17674 ;;
17675
17676 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17677 freebsd2*)
17678 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17679 hardcode_direct_GCJ=yes
17680 hardcode_minus_L_GCJ=yes
17681 hardcode_shlibpath_var_GCJ=no
17682 ;;
17683
17684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17685 freebsd* | dragonfly*)
17686 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17688 hardcode_direct_GCJ=yes
17689 hardcode_shlibpath_var_GCJ=no
17690 ;;
17691
17692 hpux9*)
17693 if test "$GCC" = yes; then
17694 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'
17695 else
17696 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'
17697 fi
17698 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17699 hardcode_libdir_separator_GCJ=:
17700 hardcode_direct_GCJ=yes
17701
17702 # hardcode_minus_L: Not really in the search PATH,
17703 # but as the default location of the library.
17704 hardcode_minus_L_GCJ=yes
17705 export_dynamic_flag_spec_GCJ='${wl}-E'
17706 ;;
17707
17708 hpux10*)
17709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17710 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17711 else
17712 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17713 fi
17714 if test "$with_gnu_ld" = no; then
17715 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17716 hardcode_libdir_separator_GCJ=:
17717
17718 hardcode_direct_GCJ=yes
17719 export_dynamic_flag_spec_GCJ='${wl}-E'
17720
17721 # hardcode_minus_L: Not really in the search PATH,
17722 # but as the default location of the library.
17723 hardcode_minus_L_GCJ=yes
17724 fi
17725 ;;
17726
17727 hpux11*)
17728 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17729 case $host_cpu in
17730 hppa*64*)
17731 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732 ;;
17733 ia64*)
17734 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17735 ;;
17736 *)
17737 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17738 ;;
17739 esac
17740 else
17741 case $host_cpu in
17742 hppa*64*)
17743 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17744 ;;
17745 ia64*)
17746 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17747 ;;
17748 *)
17749 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17750 ;;
17751 esac
17752 fi
17753 if test "$with_gnu_ld" = no; then
17754 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17755 hardcode_libdir_separator_GCJ=:
17756
17757 case $host_cpu in
17758 hppa*64*|ia64*)
17759 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17760 hardcode_direct_GCJ=no
17761 hardcode_shlibpath_var_GCJ=no
17762 ;;
17763 *)
17764 hardcode_direct_GCJ=yes
17765 export_dynamic_flag_spec_GCJ='${wl}-E'
17766
17767 # hardcode_minus_L: Not really in the search PATH,
17768 # but as the default location of the library.
17769 hardcode_minus_L_GCJ=yes
17770 ;;
17771 esac
17772 fi
17773 ;;
17774
17775 irix5* | irix6* | nonstopux*)
17776 if test "$GCC" = yes; then
17777 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'
17778 else
17779 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'
17780 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17781 fi
17782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17783 hardcode_libdir_separator_GCJ=:
17784 link_all_deplibs_GCJ=yes
17785 ;;
17786
17787 netbsd* | netbsdelf*-gnu)
17788 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17789 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17790 else
17791 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17792 fi
17793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17794 hardcode_direct_GCJ=yes
17795 hardcode_shlibpath_var_GCJ=no
17796 ;;
17797
17798 newsos6)
17799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17800 hardcode_direct_GCJ=yes
17801 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17802 hardcode_libdir_separator_GCJ=:
17803 hardcode_shlibpath_var_GCJ=no
17804 ;;
17805
17806 openbsd*)
17807 hardcode_direct_GCJ=yes
17808 hardcode_shlibpath_var_GCJ=no
17809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17810 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17811 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17813 export_dynamic_flag_spec_GCJ='${wl}-E'
17814 else
17815 case $host_os in
17816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17819 ;;
17820 *)
17821 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17822 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17823 ;;
17824 esac
17825 fi
17826 ;;
17827
17828 os2*)
17829 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17830 hardcode_minus_L_GCJ=yes
17831 allow_undefined_flag_GCJ=unsupported
17832 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'
17833 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17834 ;;
17835
17836 osf3*)
17837 if test "$GCC" = yes; then
17838 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17839 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'
17840 else
17841 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17842 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'
17843 fi
17844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17845 hardcode_libdir_separator_GCJ=:
17846 ;;
17847
17848 osf4* | osf5*) # as osf3* with the addition of -msym flag
17849 if test "$GCC" = yes; then
17850 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17851 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'
17852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17853 else
17854 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17855 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'
17856 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~
17857 $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'
17858
17859 # Both c and cxx compiler support -rpath directly
17860 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17861 fi
17862 hardcode_libdir_separator_GCJ=:
17863 ;;
17864
17865 solaris*)
17866 no_undefined_flag_GCJ=' -z text'
17867 if test "$GCC" = yes; then
17868 wlarc='${wl}'
17869 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17870 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17871 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17872 else
17873 wlarc=''
17874 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17875 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17877 fi
17878 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17879 hardcode_shlibpath_var_GCJ=no
17880 case $host_os in
17881 solaris2.[0-5] | solaris2.[0-5].*) ;;
17882 *)
17883 # The compiler driver will combine linker options so we
17884 # cannot just pass the convience library names through
17885 # without $wl, iff we do not link with $LD.
17886 # Luckily, gcc supports the same syntax we need for Sun Studio.
17887 # Supported since Solaris 2.6 (maybe 2.5.1?)
17888 case $wlarc in
17889 '')
17890 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17891 *)
17892 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17893 esac ;;
17894 esac
17895 link_all_deplibs_GCJ=yes
17896 ;;
17897
17898 sunos4*)
17899 if test "x$host_vendor" = xsequent; then
17900 # Use $CC to link under sequent, because it throws in some extra .o
17901 # files that make .init and .fini sections work.
17902 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17903 else
17904 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17905 fi
17906 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17907 hardcode_direct_GCJ=yes
17908 hardcode_minus_L_GCJ=yes
17909 hardcode_shlibpath_var_GCJ=no
17910 ;;
17911
17912 sysv4)
17913 case $host_vendor in
17914 sni)
17915 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916 hardcode_direct_GCJ=yes # is this really true???
17917 ;;
17918 siemens)
17919 ## LD is ld it makes a PLAMLIB
17920 ## CC just makes a GrossModule.
17921 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17922 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17923 hardcode_direct_GCJ=no
17924 ;;
17925 motorola)
17926 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17927 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17928 ;;
17929 esac
17930 runpath_var='LD_RUN_PATH'
17931 hardcode_shlibpath_var_GCJ=no
17932 ;;
17933
17934 sysv4.3*)
17935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17936 hardcode_shlibpath_var_GCJ=no
17937 export_dynamic_flag_spec_GCJ='-Bexport'
17938 ;;
17939
17940 sysv4*MP*)
17941 if test -d /usr/nec; then
17942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17943 hardcode_shlibpath_var_GCJ=no
17944 runpath_var=LD_RUN_PATH
17945 hardcode_runpath_var=yes
17946 ld_shlibs_GCJ=yes
17947 fi
17948 ;;
17949
17950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17951 no_undefined_flag_GCJ='${wl}-z,text'
17952 archive_cmds_need_lc_GCJ=no
17953 hardcode_shlibpath_var_GCJ=no
17954 runpath_var='LD_RUN_PATH'
17955
17956 if test "$GCC" = yes; then
17957 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17958 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17959 else
17960 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17961 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17962 fi
17963 ;;
17964
17965 sysv5* | sco3.2v5* | sco5v6*)
17966 # Note: We can NOT use -z defs as we might desire, because we do not
17967 # link with -lc, and that would cause any symbols used from libc to
17968 # always be unresolved, which means just about no library would
17969 # ever link correctly. If we're not using GNU ld we use -z text
17970 # though, which does catch some bad symbols but isn't as heavy-handed
17971 # as -z defs.
17972 no_undefined_flag_GCJ='${wl}-z,text'
17973 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17974 archive_cmds_need_lc_GCJ=no
17975 hardcode_shlibpath_var_GCJ=no
17976 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17977 hardcode_libdir_separator_GCJ=':'
17978 link_all_deplibs_GCJ=yes
17979 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17980 runpath_var='LD_RUN_PATH'
17981
17982 if test "$GCC" = yes; then
17983 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17984 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17985 else
17986 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17987 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17988 fi
17989 ;;
17990
17991 uts4*)
17992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17994 hardcode_shlibpath_var_GCJ=no
17995 ;;
17996
17997 *)
17998 ld_shlibs_GCJ=no
17999 ;;
18000 esac
18001 fi
18002
18003 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18004 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18005 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18006
18007 #
18008 # Do we need to explicitly link libc?
18009 #
18010 case "x$archive_cmds_need_lc_GCJ" in
18011 x|xyes)
18012 # Assume -lc should be added
18013 archive_cmds_need_lc_GCJ=yes
18014
18015 if test "$enable_shared" = yes && test "$GCC" = yes; then
18016 case $archive_cmds_GCJ in
18017 *'~'*)
18018 # FIXME: we may have to deal with multi-command sequences.
18019 ;;
18020 '$CC '*)
18021 # Test whether the compiler implicitly links with -lc since on some
18022 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18023 # to ld, don't add -lc before -lgcc.
18024 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18025 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18026 $rm conftest*
18027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18028
18029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18030 (eval $ac_compile) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } 2>conftest.err; then
18034 soname=conftest
18035 lib=conftest
18036 libobjs=conftest.$ac_objext
18037 deplibs=
18038 wl=$lt_prog_compiler_wl_GCJ
18039 pic_flag=$lt_prog_compiler_pic_GCJ
18040 compiler_flags=-v
18041 linker_flags=-v
18042 verstring=
18043 output_objdir=.
18044 libname=conftest
18045 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18046 allow_undefined_flag_GCJ=
18047 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18048 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }
18052 then
18053 archive_cmds_need_lc_GCJ=no
18054 else
18055 archive_cmds_need_lc_GCJ=yes
18056 fi
18057 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18058 else
18059 cat conftest.err 1>&5
18060 fi
18061 $rm conftest*
18062 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18063 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18064 ;;
18065 esac
18066 fi
18067 ;;
18068 esac
18069
18070 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18071 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18072 library_names_spec=
18073 libname_spec='lib$name'
18074 soname_spec=
18075 shrext_cmds=".so"
18076 postinstall_cmds=
18077 postuninstall_cmds=
18078 finish_cmds=
18079 finish_eval=
18080 shlibpath_var=
18081 shlibpath_overrides_runpath=unknown
18082 version_type=none
18083 dynamic_linker="$host_os ld.so"
18084 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18085 if test "$GCC" = yes; then
18086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18087 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18088 # if the path contains ";" then we assume it to be the separator
18089 # otherwise default to the standard path separator (i.e. ":") - it is
18090 # assumed that no part of a normal pathname contains ";" but that should
18091 # okay in the real world where ";" in dirpaths is itself problematic.
18092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18093 else
18094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18095 fi
18096 else
18097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18098 fi
18099 need_lib_prefix=unknown
18100 hardcode_into_libs=no
18101
18102 # when you set need_version to no, make sure it does not cause -set_version
18103 # flags to be left without arguments
18104 need_version=unknown
18105
18106 case $host_os in
18107 aix3*)
18108 version_type=linux
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18110 shlibpath_var=LIBPATH
18111
18112 # AIX 3 has no versioning support, so we append a major version to the name.
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 ;;
18115
18116 aix4* | aix5*)
18117 version_type=linux
18118 need_lib_prefix=no
18119 need_version=no
18120 hardcode_into_libs=yes
18121 if test "$host_cpu" = ia64; then
18122 # AIX 5 supports IA64
18123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 else
18126 # With GCC up to 2.95.x, collect2 would create an import file
18127 # for dependence libraries. The import file would start with
18128 # the line `#! .'. This would cause the generated library to
18129 # depend on `.', always an invalid library. This was fixed in
18130 # development snapshots of GCC prior to 3.0.
18131 case $host_os in
18132 aix4 | aix4.[01] | aix4.[01].*)
18133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18134 echo ' yes '
18135 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18136 :
18137 else
18138 can_build_shared=no
18139 fi
18140 ;;
18141 esac
18142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18143 # soname into executable. Probably we can add versioning support to
18144 # collect2, so additional links can be useful in future.
18145 if test "$aix_use_runtimelinking" = yes; then
18146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18147 # instead of lib<name>.a to let people know that these are not
18148 # typical AIX shared libraries.
18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150 else
18151 # We preserve .a as extension for shared libraries through AIX4.2
18152 # and later when we are not doing run time linking.
18153 library_names_spec='${libname}${release}.a $libname.a'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 fi
18156 shlibpath_var=LIBPATH
18157 fi
18158 ;;
18159
18160 amigaos*)
18161 library_names_spec='$libname.ixlibrary $libname.a'
18162 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18163 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'
18164 ;;
18165
18166 beos*)
18167 library_names_spec='${libname}${shared_ext}'
18168 dynamic_linker="$host_os ld.so"
18169 shlibpath_var=LIBRARY_PATH
18170 ;;
18171
18172 bsdi[45]*)
18173 version_type=linux
18174 need_version=no
18175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18176 soname_spec='${libname}${release}${shared_ext}$major'
18177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18178 shlibpath_var=LD_LIBRARY_PATH
18179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18181 # the default ld.so.conf also contains /usr/contrib/lib and
18182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18183 # libtool to hard-code these into programs
18184 ;;
18185
18186 cygwin* | mingw* | pw32*)
18187 version_type=windows
18188 shrext_cmds=".dll"
18189 need_version=no
18190 need_lib_prefix=no
18191
18192 case $GCC,$host_os in
18193 yes,cygwin* | yes,mingw* | yes,pw32*)
18194 library_names_spec='$libname.dll.a'
18195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18196 postinstall_cmds='base_file=`basename \${file}`~
18197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18198 dldir=$destdir/`dirname \$dlpath`~
18199 test -d \$dldir || mkdir -p \$dldir~
18200 $install_prog $dir/$dlname \$dldir/$dlname~
18201 chmod a+x \$dldir/$dlname'
18202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18203 dlpath=$dir/\$dldll~
18204 $rm \$dlpath'
18205 shlibpath_overrides_runpath=yes
18206
18207 case $host_os in
18208 cygwin*)
18209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18212 ;;
18213 mingw*)
18214 # MinGW DLLs use traditional 'lib' prefix
18215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18218 # It is most probably a Windows format PATH printed by
18219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18220 # path with ; separators, and with drive letters. We can handle the
18221 # drive letters (cygwin fileutils understands them), so leave them,
18222 # especially as we might pass files found there to a mingw objdump,
18223 # which wouldn't understand a cygwinified path. Ahh.
18224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18225 else
18226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18227 fi
18228 ;;
18229 pw32*)
18230 # pw32 DLLs use 'pw' prefix rather than 'lib'
18231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18232 ;;
18233 esac
18234 ;;
18235
18236 *)
18237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18238 ;;
18239 esac
18240 dynamic_linker='Win32 ld.exe'
18241 # FIXME: first we should search . and the directory the executable is in
18242 shlibpath_var=PATH
18243 ;;
18244
18245 darwin* | rhapsody*)
18246 dynamic_linker="$host_os dyld"
18247 version_type=darwin
18248 need_lib_prefix=no
18249 need_version=no
18250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18251 soname_spec='${libname}${release}${major}$shared_ext'
18252 shlibpath_overrides_runpath=yes
18253 shlibpath_var=DYLD_LIBRARY_PATH
18254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18256 if test "$GCC" = yes; then
18257 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18258 else
18259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18260 fi
18261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18262 ;;
18263
18264 dgux*)
18265 version_type=linux
18266 need_lib_prefix=no
18267 need_version=no
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 ;;
18272
18273 freebsd1*)
18274 dynamic_linker=no
18275 ;;
18276
18277 freebsd* | dragonfly*)
18278 # DragonFly does not have aout. When/if they implement a new
18279 # versioning mechanism, adjust this.
18280 if test -x /usr/bin/objformat; then
18281 objformat=`/usr/bin/objformat`
18282 else
18283 case $host_os in
18284 freebsd[123]*) objformat=aout ;;
18285 *) objformat=elf ;;
18286 esac
18287 fi
18288 version_type=freebsd-$objformat
18289 case $version_type in
18290 freebsd-elf*)
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18292 need_version=no
18293 need_lib_prefix=no
18294 ;;
18295 freebsd-*)
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18297 need_version=yes
18298 ;;
18299 esac
18300 shlibpath_var=LD_LIBRARY_PATH
18301 case $host_os in
18302 freebsd2*)
18303 shlibpath_overrides_runpath=yes
18304 ;;
18305 freebsd3.[01]* | freebsdelf3.[01]*)
18306 shlibpath_overrides_runpath=yes
18307 hardcode_into_libs=yes
18308 ;;
18309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18311 shlibpath_overrides_runpath=no
18312 hardcode_into_libs=yes
18313 ;;
18314 freebsd*) # from 4.6 on
18315 shlibpath_overrides_runpath=yes
18316 hardcode_into_libs=yes
18317 ;;
18318 esac
18319 ;;
18320
18321 gnu*)
18322 version_type=linux
18323 need_lib_prefix=no
18324 need_version=no
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18326 soname_spec='${libname}${release}${shared_ext}$major'
18327 shlibpath_var=LD_LIBRARY_PATH
18328 hardcode_into_libs=yes
18329 ;;
18330
18331 hpux9* | hpux10* | hpux11*)
18332 # Give a soname corresponding to the major version so that dld.sl refuses to
18333 # link against other versions.
18334 version_type=sunos
18335 need_lib_prefix=no
18336 need_version=no
18337 case $host_cpu in
18338 ia64*)
18339 shrext_cmds='.so'
18340 hardcode_into_libs=yes
18341 dynamic_linker="$host_os dld.so"
18342 shlibpath_var=LD_LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 if test "X$HPUX_IA64_MODE" = X32; then
18347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18348 else
18349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18350 fi
18351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18352 ;;
18353 hppa*64*)
18354 shrext_cmds='.sl'
18355 hardcode_into_libs=yes
18356 dynamic_linker="$host_os dld.sl"
18357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18363 ;;
18364 *)
18365 shrext_cmds='.sl'
18366 dynamic_linker="$host_os dld.sl"
18367 shlibpath_var=SHLIB_PATH
18368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 ;;
18372 esac
18373 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18374 postinstall_cmds='chmod 555 $lib'
18375 ;;
18376
18377 interix3*)
18378 version_type=linux
18379 need_lib_prefix=no
18380 need_version=no
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18382 soname_spec='${libname}${release}${shared_ext}$major'
18383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 shlibpath_overrides_runpath=no
18386 hardcode_into_libs=yes
18387 ;;
18388
18389 irix5* | irix6* | nonstopux*)
18390 case $host_os in
18391 nonstopux*) version_type=nonstopux ;;
18392 *)
18393 if test "$lt_cv_prog_gnu_ld" = yes; then
18394 version_type=linux
18395 else
18396 version_type=irix
18397 fi ;;
18398 esac
18399 need_lib_prefix=no
18400 need_version=no
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18403 case $host_os in
18404 irix5* | nonstopux*)
18405 libsuff= shlibsuff=
18406 ;;
18407 *)
18408 case $LD in # libtool.m4 will add one of these switches to LD
18409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18410 libsuff= shlibsuff= libmagic=32-bit;;
18411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18412 libsuff=32 shlibsuff=N32 libmagic=N32;;
18413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18415 *) libsuff= shlibsuff= libmagic=never-match;;
18416 esac
18417 ;;
18418 esac
18419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18420 shlibpath_overrides_runpath=no
18421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18423 hardcode_into_libs=yes
18424 ;;
18425
18426 # No shared lib support for Linux oldld, aout, or coff.
18427 linux*oldld* | linux*aout* | linux*coff*)
18428 dynamic_linker=no
18429 ;;
18430
18431 # This must be Linux ELF.
18432 linux* | k*bsd*-gnu)
18433 version_type=linux
18434 need_lib_prefix=no
18435 need_version=no
18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437 soname_spec='${libname}${release}${shared_ext}$major'
18438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=no
18441 # This implies no fast_install, which is unacceptable.
18442 # Some rework will be needed to allow for fast_install
18443 # before this can be enabled.
18444 hardcode_into_libs=yes
18445
18446 # Append ld.so.conf contents to the search path
18447 if test -f /etc/ld.so.conf; then
18448 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18450 fi
18451
18452 # We used to test for /lib/ld.so.1 and disable shared libraries on
18453 # powerpc, because MkLinux only supported shared libraries with the
18454 # GNU dynamic linker. Since this was broken with cross compilers,
18455 # most powerpc-linux boxes support dynamic linking these days and
18456 # people can always --disable-shared, the test was removed, and we
18457 # assume the GNU/Linux dynamic linker is in use.
18458 dynamic_linker='GNU/Linux ld.so'
18459 ;;
18460
18461 netbsdelf*-gnu)
18462 version_type=linux
18463 need_lib_prefix=no
18464 need_version=no
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 shlibpath_var=LD_LIBRARY_PATH
18468 shlibpath_overrides_runpath=no
18469 hardcode_into_libs=yes
18470 dynamic_linker='NetBSD ld.elf_so'
18471 ;;
18472
18473 netbsd*)
18474 version_type=sunos
18475 need_lib_prefix=no
18476 need_version=no
18477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18480 dynamic_linker='NetBSD (a.out) ld.so'
18481 else
18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 dynamic_linker='NetBSD ld.elf_so'
18485 fi
18486 shlibpath_var=LD_LIBRARY_PATH
18487 shlibpath_overrides_runpath=yes
18488 hardcode_into_libs=yes
18489 ;;
18490
18491 newsos6)
18492 version_type=linux
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 shlibpath_overrides_runpath=yes
18496 ;;
18497
18498 nto-qnx*)
18499 version_type=linux
18500 need_lib_prefix=no
18501 need_version=no
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=yes
18506 ;;
18507
18508 openbsd*)
18509 version_type=sunos
18510 sys_lib_dlsearch_path_spec="/usr/lib"
18511 need_lib_prefix=no
18512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18513 case $host_os in
18514 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18515 *) need_version=no ;;
18516 esac
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18519 shlibpath_var=LD_LIBRARY_PATH
18520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18521 case $host_os in
18522 openbsd2.[89] | openbsd2.[89].*)
18523 shlibpath_overrides_runpath=no
18524 ;;
18525 *)
18526 shlibpath_overrides_runpath=yes
18527 ;;
18528 esac
18529 else
18530 shlibpath_overrides_runpath=yes
18531 fi
18532 ;;
18533
18534 os2*)
18535 libname_spec='$name'
18536 shrext_cmds=".dll"
18537 need_lib_prefix=no
18538 library_names_spec='$libname${shared_ext} $libname.a'
18539 dynamic_linker='OS/2 ld.exe'
18540 shlibpath_var=LIBPATH
18541 ;;
18542
18543 osf3* | osf4* | osf5*)
18544 version_type=osf
18545 need_lib_prefix=no
18546 need_version=no
18547 soname_spec='${libname}${release}${shared_ext}$major'
18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549 shlibpath_var=LD_LIBRARY_PATH
18550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18552 ;;
18553
18554 solaris*)
18555 version_type=linux
18556 need_lib_prefix=no
18557 need_version=no
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559 soname_spec='${libname}${release}${shared_ext}$major'
18560 shlibpath_var=LD_LIBRARY_PATH
18561 shlibpath_overrides_runpath=yes
18562 hardcode_into_libs=yes
18563 # ldd complains unless libraries are executable
18564 postinstall_cmds='chmod +x $lib'
18565 ;;
18566
18567 sunos4*)
18568 version_type=sunos
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18571 shlibpath_var=LD_LIBRARY_PATH
18572 shlibpath_overrides_runpath=yes
18573 if test "$with_gnu_ld" = yes; then
18574 need_lib_prefix=no
18575 fi
18576 need_version=yes
18577 ;;
18578
18579 sysv4 | sysv4.3*)
18580 version_type=linux
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 case $host_vendor in
18585 sni)
18586 shlibpath_overrides_runpath=no
18587 need_lib_prefix=no
18588 export_dynamic_flag_spec='${wl}-Blargedynsym'
18589 runpath_var=LD_RUN_PATH
18590 ;;
18591 siemens)
18592 need_lib_prefix=no
18593 ;;
18594 motorola)
18595 need_lib_prefix=no
18596 need_version=no
18597 shlibpath_overrides_runpath=no
18598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18599 ;;
18600 esac
18601 ;;
18602
18603 sysv4*MP*)
18604 if test -d /usr/nec ;then
18605 version_type=linux
18606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18607 soname_spec='$libname${shared_ext}.$major'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 fi
18610 ;;
18611
18612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18613 version_type=freebsd-elf
18614 need_lib_prefix=no
18615 need_version=no
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18617 soname_spec='${libname}${release}${shared_ext}$major'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 hardcode_into_libs=yes
18620 if test "$with_gnu_ld" = yes; then
18621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18622 shlibpath_overrides_runpath=no
18623 else
18624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18625 shlibpath_overrides_runpath=yes
18626 case $host_os in
18627 sco3.2v5*)
18628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18629 ;;
18630 esac
18631 fi
18632 sys_lib_dlsearch_path_spec='/usr/lib'
18633 ;;
18634
18635 uts4*)
18636 version_type=linux
18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 shlibpath_var=LD_LIBRARY_PATH
18640 ;;
18641
18642 *)
18643 dynamic_linker=no
18644 ;;
18645 esac
18646 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18647 echo "${ECHO_T}$dynamic_linker" >&6; }
18648 test "$dynamic_linker" = no && can_build_shared=no
18649
18650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18651 if test "$GCC" = yes; then
18652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18653 fi
18654
18655 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18656 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18657 hardcode_action_GCJ=
18658 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18659 test -n "$runpath_var_GCJ" || \
18660 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18661
18662 # We can hardcode non-existant directories.
18663 if test "$hardcode_direct_GCJ" != no &&
18664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18665 # have to relink, otherwise we might link with an installed library
18666 # when we should be linking with a yet-to-be-installed one
18667 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18668 test "$hardcode_minus_L_GCJ" != no; then
18669 # Linking always hardcodes the temporary library directory.
18670 hardcode_action_GCJ=relink
18671 else
18672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18673 hardcode_action_GCJ=immediate
18674 fi
18675 else
18676 # We cannot hardcode anything, or else we can only hardcode existing
18677 # directories.
18678 hardcode_action_GCJ=unsupported
18679 fi
18680 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18681 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18682
18683 if test "$hardcode_action_GCJ" = relink; then
18684 # Fast installation is not supported
18685 enable_fast_install=no
18686 elif test "$shlibpath_overrides_runpath" = yes ||
18687 test "$enable_shared" = no; then
18688 # Fast installation is not necessary
18689 enable_fast_install=needless
18690 fi
18691
18692
18693 # The else clause should only fire when bootstrapping the
18694 # libtool distribution, otherwise you forgot to ship ltmain.sh
18695 # with your package, and you will get complaints that there are
18696 # no rules to generate ltmain.sh.
18697 if test -f "$ltmain"; then
18698 # See if we are running on zsh, and set the options which allow our commands through
18699 # without removal of \ escapes.
18700 if test -n "${ZSH_VERSION+set}" ; then
18701 setopt NO_GLOB_SUBST
18702 fi
18703 # Now quote all the things that may contain metacharacters while being
18704 # careful not to overquote the AC_SUBSTed values. We take copies of the
18705 # variables and quote the copies for generation of the libtool script.
18706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18707 SED SHELL STRIP \
18708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18710 deplibs_check_method reload_flag reload_cmds need_locks \
18711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18712 lt_cv_sys_global_symbol_to_c_name_address \
18713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18714 old_postinstall_cmds old_postuninstall_cmds \
18715 compiler_GCJ \
18716 CC_GCJ \
18717 LD_GCJ \
18718 lt_prog_compiler_wl_GCJ \
18719 lt_prog_compiler_pic_GCJ \
18720 lt_prog_compiler_static_GCJ \
18721 lt_prog_compiler_no_builtin_flag_GCJ \
18722 export_dynamic_flag_spec_GCJ \
18723 thread_safe_flag_spec_GCJ \
18724 whole_archive_flag_spec_GCJ \
18725 enable_shared_with_static_runtimes_GCJ \
18726 old_archive_cmds_GCJ \
18727 old_archive_from_new_cmds_GCJ \
18728 predep_objects_GCJ \
18729 postdep_objects_GCJ \
18730 predeps_GCJ \
18731 postdeps_GCJ \
18732 compiler_lib_search_path_GCJ \
18733 archive_cmds_GCJ \
18734 archive_expsym_cmds_GCJ \
18735 postinstall_cmds_GCJ \
18736 postuninstall_cmds_GCJ \
18737 old_archive_from_expsyms_cmds_GCJ \
18738 allow_undefined_flag_GCJ \
18739 no_undefined_flag_GCJ \
18740 export_symbols_cmds_GCJ \
18741 hardcode_libdir_flag_spec_GCJ \
18742 hardcode_libdir_flag_spec_ld_GCJ \
18743 hardcode_libdir_separator_GCJ \
18744 hardcode_automatic_GCJ \
18745 module_cmds_GCJ \
18746 module_expsym_cmds_GCJ \
18747 lt_cv_prog_compiler_c_o_GCJ \
18748 exclude_expsyms_GCJ \
18749 include_expsyms_GCJ; do
18750
18751 case $var in
18752 old_archive_cmds_GCJ | \
18753 old_archive_from_new_cmds_GCJ | \
18754 archive_cmds_GCJ | \
18755 archive_expsym_cmds_GCJ | \
18756 module_cmds_GCJ | \
18757 module_expsym_cmds_GCJ | \
18758 old_archive_from_expsyms_cmds_GCJ | \
18759 export_symbols_cmds_GCJ | \
18760 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18761 postinstall_cmds | postuninstall_cmds | \
18762 old_postinstall_cmds | old_postuninstall_cmds | \
18763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18764 # Double-quote double-evaled strings.
18765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18766 ;;
18767 *)
18768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18769 ;;
18770 esac
18771 done
18772
18773 case $lt_echo in
18774 *'\$0 --fallback-echo"')
18775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18776 ;;
18777 esac
18778
18779 cfgfile="$ofile"
18780
18781 cat <<__EOF__ >> "$cfgfile"
18782 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18783
18784 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18785
18786 # Shell to use when invoking shell scripts.
18787 SHELL=$lt_SHELL
18788
18789 # Whether or not to build shared libraries.
18790 build_libtool_libs=$enable_shared
18791
18792 # Whether or not to build static libraries.
18793 build_old_libs=$enable_static
18794
18795 # Whether or not to add -lc for building shared libraries.
18796 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18797
18798 # Whether or not to disallow shared libs when runtime libs are static
18799 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18800
18801 # Whether or not to optimize for fast installation.
18802 fast_install=$enable_fast_install
18803
18804 # The host system.
18805 host_alias=$host_alias
18806 host=$host
18807 host_os=$host_os
18808
18809 # The build system.
18810 build_alias=$build_alias
18811 build=$build
18812 build_os=$build_os
18813
18814 # An echo program that does not interpret backslashes.
18815 echo=$lt_echo
18816
18817 # The archiver.
18818 AR=$lt_AR
18819 AR_FLAGS=$lt_AR_FLAGS
18820
18821 # A C compiler.
18822 LTCC=$lt_LTCC
18823
18824 # LTCC compiler flags.
18825 LTCFLAGS=$lt_LTCFLAGS
18826
18827 # A language-specific compiler.
18828 CC=$lt_compiler_GCJ
18829
18830 # Is the compiler the GNU C compiler?
18831 with_gcc=$GCC_GCJ
18832
18833 # An ERE matcher.
18834 EGREP=$lt_EGREP
18835
18836 # The linker used to build libraries.
18837 LD=$lt_LD_GCJ
18838
18839 # Whether we need hard or soft links.
18840 LN_S=$lt_LN_S
18841
18842 # A BSD-compatible nm program.
18843 NM=$lt_NM
18844
18845 # A symbol stripping program
18846 STRIP=$lt_STRIP
18847
18848 # Used to examine libraries when file_magic_cmd begins "file"
18849 MAGIC_CMD=$MAGIC_CMD
18850
18851 # Used on cygwin: DLL creation program.
18852 DLLTOOL="$DLLTOOL"
18853
18854 # Used on cygwin: object dumper.
18855 OBJDUMP="$OBJDUMP"
18856
18857 # Used on cygwin: assembler.
18858 AS="$AS"
18859
18860 # The name of the directory that contains temporary libtool files.
18861 objdir=$objdir
18862
18863 # How to create reloadable object files.
18864 reload_flag=$lt_reload_flag
18865 reload_cmds=$lt_reload_cmds
18866
18867 # How to pass a linker flag through the compiler.
18868 wl=$lt_lt_prog_compiler_wl_GCJ
18869
18870 # Object file suffix (normally "o").
18871 objext="$ac_objext"
18872
18873 # Old archive suffix (normally "a").
18874 libext="$libext"
18875
18876 # Shared library suffix (normally ".so").
18877 shrext_cmds='$shrext_cmds'
18878
18879 # Executable file suffix (normally "").
18880 exeext="$exeext"
18881
18882 # Additional compiler flags for building library objects.
18883 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18884 pic_mode=$pic_mode
18885
18886 # What is the maximum length of a command?
18887 max_cmd_len=$lt_cv_sys_max_cmd_len
18888
18889 # Does compiler simultaneously support -c and -o options?
18890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18891
18892 # Must we lock files when doing compilation?
18893 need_locks=$lt_need_locks
18894
18895 # Do we need the lib prefix for modules?
18896 need_lib_prefix=$need_lib_prefix
18897
18898 # Do we need a version for libraries?
18899 need_version=$need_version
18900
18901 # Whether dlopen is supported.
18902 dlopen_support=$enable_dlopen
18903
18904 # Whether dlopen of programs is supported.
18905 dlopen_self=$enable_dlopen_self
18906
18907 # Whether dlopen of statically linked programs is supported.
18908 dlopen_self_static=$enable_dlopen_self_static
18909
18910 # Compiler flag to prevent dynamic linking.
18911 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18912
18913 # Compiler flag to turn off builtin functions.
18914 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18915
18916 # Compiler flag to allow reflexive dlopens.
18917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18918
18919 # Compiler flag to generate shared objects directly from archives.
18920 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18921
18922 # Compiler flag to generate thread-safe objects.
18923 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18924
18925 # Library versioning type.
18926 version_type=$version_type
18927
18928 # Format of library name prefix.
18929 libname_spec=$lt_libname_spec
18930
18931 # List of archive names. First name is the real one, the rest are links.
18932 # The last name is the one that the linker finds with -lNAME.
18933 library_names_spec=$lt_library_names_spec
18934
18935 # The coded name of the library, if different from the real name.
18936 soname_spec=$lt_soname_spec
18937
18938 # Commands used to build and install an old-style archive.
18939 RANLIB=$lt_RANLIB
18940 old_archive_cmds=$lt_old_archive_cmds_GCJ
18941 old_postinstall_cmds=$lt_old_postinstall_cmds
18942 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18943
18944 # Create an old-style archive from a shared archive.
18945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18946
18947 # Create a temporary old-style archive to link instead of a shared archive.
18948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18949
18950 # Commands used to build and install a shared archive.
18951 archive_cmds=$lt_archive_cmds_GCJ
18952 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18953 postinstall_cmds=$lt_postinstall_cmds
18954 postuninstall_cmds=$lt_postuninstall_cmds
18955
18956 # Commands used to build a loadable module (assumed same as above if empty)
18957 module_cmds=$lt_module_cmds_GCJ
18958 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18959
18960 # Commands to strip libraries.
18961 old_striplib=$lt_old_striplib
18962 striplib=$lt_striplib
18963
18964 # Dependencies to place before the objects being linked to create a
18965 # shared library.
18966 predep_objects=$lt_predep_objects_GCJ
18967
18968 # Dependencies to place after the objects being linked to create a
18969 # shared library.
18970 postdep_objects=$lt_postdep_objects_GCJ
18971
18972 # Dependencies to place before the objects being linked to create a
18973 # shared library.
18974 predeps=$lt_predeps_GCJ
18975
18976 # Dependencies to place after the objects being linked to create a
18977 # shared library.
18978 postdeps=$lt_postdeps_GCJ
18979
18980 # The library search path used internally by the compiler when linking
18981 # a shared library.
18982 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18983
18984 # Method to check whether dependent libraries are shared objects.
18985 deplibs_check_method=$lt_deplibs_check_method
18986
18987 # Command to use when deplibs_check_method == file_magic.
18988 file_magic_cmd=$lt_file_magic_cmd
18989
18990 # Flag that allows shared libraries with undefined symbols to be built.
18991 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18992
18993 # Flag that forces no undefined symbols.
18994 no_undefined_flag=$lt_no_undefined_flag_GCJ
18995
18996 # Commands used to finish a libtool library installation in a directory.
18997 finish_cmds=$lt_finish_cmds
18998
18999 # Same as above, but a single script fragment to be evaled but not shown.
19000 finish_eval=$lt_finish_eval
19001
19002 # Take the output of nm and produce a listing of raw symbols and C names.
19003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19004
19005 # Transform the output of nm in a proper C declaration
19006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19007
19008 # Transform the output of nm in a C name address pair
19009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19010
19011 # This is the shared library runtime path variable.
19012 runpath_var=$runpath_var
19013
19014 # This is the shared library path variable.
19015 shlibpath_var=$shlibpath_var
19016
19017 # Is shlibpath searched before the hard-coded library search path?
19018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19019
19020 # How to hardcode a shared library path into an executable.
19021 hardcode_action=$hardcode_action_GCJ
19022
19023 # Whether we should hardcode library paths into libraries.
19024 hardcode_into_libs=$hardcode_into_libs
19025
19026 # Flag to hardcode \$libdir into a binary during linking.
19027 # This must work even if \$libdir does not exist.
19028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19029
19030 # If ld is used when linking, flag to hardcode \$libdir into
19031 # a binary during linking. This must work even if \$libdir does
19032 # not exist.
19033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19034
19035 # Whether we need a single -rpath flag with a separated argument.
19036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19037
19038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19039 # resulting binary.
19040 hardcode_direct=$hardcode_direct_GCJ
19041
19042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19043 # resulting binary.
19044 hardcode_minus_L=$hardcode_minus_L_GCJ
19045
19046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19047 # the resulting binary.
19048 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19049
19050 # Set to yes if building a shared library automatically hardcodes DIR into the library
19051 # and all subsequent libraries and executables linked against it.
19052 hardcode_automatic=$hardcode_automatic_GCJ
19053
19054 # Variables whose values should be saved in libtool wrapper scripts and
19055 # restored at relink time.
19056 variables_saved_for_relink="$variables_saved_for_relink"
19057
19058 # Whether libtool must link a program against all its dependency libraries.
19059 link_all_deplibs=$link_all_deplibs_GCJ
19060
19061 # Compile-time system search path for libraries
19062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19063
19064 # Run-time system search path for libraries
19065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19066
19067 # Fix the shell variable \$srcfile for the compiler.
19068 fix_srcfile_path="$fix_srcfile_path_GCJ"
19069
19070 # Set to yes if exported symbols are required.
19071 always_export_symbols=$always_export_symbols_GCJ
19072
19073 # The commands to list exported symbols.
19074 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19075
19076 # The commands to extract the exported symbol list from a shared archive.
19077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19078
19079 # Symbols that should not be listed in the preloaded symbols.
19080 exclude_expsyms=$lt_exclude_expsyms_GCJ
19081
19082 # Symbols that must always be exported.
19083 include_expsyms=$lt_include_expsyms_GCJ
19084
19085 # ### END LIBTOOL TAG CONFIG: $tagname
19086
19087 __EOF__
19088
19089
19090 else
19091 # If there is no Makefile yet, we rely on a make rule to execute
19092 # `config.status --recheck' to rerun these tests and create the
19093 # libtool script then.
19094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19095 if test -f "$ltmain_in"; then
19096 test -f Makefile && make "$ltmain"
19097 fi
19098 fi
19099
19100
19101 ac_ext=c
19102 ac_cpp='$CPP $CPPFLAGS'
19103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19106
19107 CC="$lt_save_CC"
19108
19109 else
19110 tagname=""
19111 fi
19112 ;;
19113
19114 RC)
19115
19116
19117 # Source file extension for RC test sources.
19118 ac_ext=rc
19119
19120 # Object file extension for compiled RC test sources.
19121 objext=o
19122 objext_RC=$objext
19123
19124 # Code to be used in simple compile tests
19125 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19126
19127 # Code to be used in simple link tests
19128 lt_simple_link_test_code="$lt_simple_compile_test_code"
19129
19130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19131
19132 # If no C compiler was specified, use CC.
19133 LTCC=${LTCC-"$CC"}
19134
19135 # If no C compiler flags were specified, use CFLAGS.
19136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19137
19138 # Allow CC to be a program name with arguments.
19139 compiler=$CC
19140
19141
19142 # save warnings/boilerplate of simple test code
19143 ac_outfile=conftest.$ac_objext
19144 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19145 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19146 _lt_compiler_boilerplate=`cat conftest.err`
19147 $rm conftest*
19148
19149 ac_outfile=conftest.$ac_objext
19150 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19151 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19152 _lt_linker_boilerplate=`cat conftest.err`
19153 $rm conftest*
19154
19155
19156 # Allow CC to be a program name with arguments.
19157 lt_save_CC="$CC"
19158 CC=${RC-"windres"}
19159 compiler=$CC
19160 compiler_RC=$CC
19161 for cc_temp in $compiler""; do
19162 case $cc_temp in
19163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19165 \-*) ;;
19166 *) break;;
19167 esac
19168 done
19169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19170
19171 lt_cv_prog_compiler_c_o_RC=yes
19172
19173 # The else clause should only fire when bootstrapping the
19174 # libtool distribution, otherwise you forgot to ship ltmain.sh
19175 # with your package, and you will get complaints that there are
19176 # no rules to generate ltmain.sh.
19177 if test -f "$ltmain"; then
19178 # See if we are running on zsh, and set the options which allow our commands through
19179 # without removal of \ escapes.
19180 if test -n "${ZSH_VERSION+set}" ; then
19181 setopt NO_GLOB_SUBST
19182 fi
19183 # Now quote all the things that may contain metacharacters while being
19184 # careful not to overquote the AC_SUBSTed values. We take copies of the
19185 # variables and quote the copies for generation of the libtool script.
19186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19187 SED SHELL STRIP \
19188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19190 deplibs_check_method reload_flag reload_cmds need_locks \
19191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19192 lt_cv_sys_global_symbol_to_c_name_address \
19193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19194 old_postinstall_cmds old_postuninstall_cmds \
19195 compiler_RC \
19196 CC_RC \
19197 LD_RC \
19198 lt_prog_compiler_wl_RC \
19199 lt_prog_compiler_pic_RC \
19200 lt_prog_compiler_static_RC \
19201 lt_prog_compiler_no_builtin_flag_RC \
19202 export_dynamic_flag_spec_RC \
19203 thread_safe_flag_spec_RC \
19204 whole_archive_flag_spec_RC \
19205 enable_shared_with_static_runtimes_RC \
19206 old_archive_cmds_RC \
19207 old_archive_from_new_cmds_RC \
19208 predep_objects_RC \
19209 postdep_objects_RC \
19210 predeps_RC \
19211 postdeps_RC \
19212 compiler_lib_search_path_RC \
19213 archive_cmds_RC \
19214 archive_expsym_cmds_RC \
19215 postinstall_cmds_RC \
19216 postuninstall_cmds_RC \
19217 old_archive_from_expsyms_cmds_RC \
19218 allow_undefined_flag_RC \
19219 no_undefined_flag_RC \
19220 export_symbols_cmds_RC \
19221 hardcode_libdir_flag_spec_RC \
19222 hardcode_libdir_flag_spec_ld_RC \
19223 hardcode_libdir_separator_RC \
19224 hardcode_automatic_RC \
19225 module_cmds_RC \
19226 module_expsym_cmds_RC \
19227 lt_cv_prog_compiler_c_o_RC \
19228 exclude_expsyms_RC \
19229 include_expsyms_RC; do
19230
19231 case $var in
19232 old_archive_cmds_RC | \
19233 old_archive_from_new_cmds_RC | \
19234 archive_cmds_RC | \
19235 archive_expsym_cmds_RC | \
19236 module_cmds_RC | \
19237 module_expsym_cmds_RC | \
19238 old_archive_from_expsyms_cmds_RC | \
19239 export_symbols_cmds_RC | \
19240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19241 postinstall_cmds | postuninstall_cmds | \
19242 old_postinstall_cmds | old_postuninstall_cmds | \
19243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19244 # Double-quote double-evaled strings.
19245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19246 ;;
19247 *)
19248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19249 ;;
19250 esac
19251 done
19252
19253 case $lt_echo in
19254 *'\$0 --fallback-echo"')
19255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19256 ;;
19257 esac
19258
19259 cfgfile="$ofile"
19260
19261 cat <<__EOF__ >> "$cfgfile"
19262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19263
19264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19265
19266 # Shell to use when invoking shell scripts.
19267 SHELL=$lt_SHELL
19268
19269 # Whether or not to build shared libraries.
19270 build_libtool_libs=$enable_shared
19271
19272 # Whether or not to build static libraries.
19273 build_old_libs=$enable_static
19274
19275 # Whether or not to add -lc for building shared libraries.
19276 build_libtool_need_lc=$archive_cmds_need_lc_RC
19277
19278 # Whether or not to disallow shared libs when runtime libs are static
19279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19280
19281 # Whether or not to optimize for fast installation.
19282 fast_install=$enable_fast_install
19283
19284 # The host system.
19285 host_alias=$host_alias
19286 host=$host
19287 host_os=$host_os
19288
19289 # The build system.
19290 build_alias=$build_alias
19291 build=$build
19292 build_os=$build_os
19293
19294 # An echo program that does not interpret backslashes.
19295 echo=$lt_echo
19296
19297 # The archiver.
19298 AR=$lt_AR
19299 AR_FLAGS=$lt_AR_FLAGS
19300
19301 # A C compiler.
19302 LTCC=$lt_LTCC
19303
19304 # LTCC compiler flags.
19305 LTCFLAGS=$lt_LTCFLAGS
19306
19307 # A language-specific compiler.
19308 CC=$lt_compiler_RC
19309
19310 # Is the compiler the GNU C compiler?
19311 with_gcc=$GCC_RC
19312
19313 # An ERE matcher.
19314 EGREP=$lt_EGREP
19315
19316 # The linker used to build libraries.
19317 LD=$lt_LD_RC
19318
19319 # Whether we need hard or soft links.
19320 LN_S=$lt_LN_S
19321
19322 # A BSD-compatible nm program.
19323 NM=$lt_NM
19324
19325 # A symbol stripping program
19326 STRIP=$lt_STRIP
19327
19328 # Used to examine libraries when file_magic_cmd begins "file"
19329 MAGIC_CMD=$MAGIC_CMD
19330
19331 # Used on cygwin: DLL creation program.
19332 DLLTOOL="$DLLTOOL"
19333
19334 # Used on cygwin: object dumper.
19335 OBJDUMP="$OBJDUMP"
19336
19337 # Used on cygwin: assembler.
19338 AS="$AS"
19339
19340 # The name of the directory that contains temporary libtool files.
19341 objdir=$objdir
19342
19343 # How to create reloadable object files.
19344 reload_flag=$lt_reload_flag
19345 reload_cmds=$lt_reload_cmds
19346
19347 # How to pass a linker flag through the compiler.
19348 wl=$lt_lt_prog_compiler_wl_RC
19349
19350 # Object file suffix (normally "o").
19351 objext="$ac_objext"
19352
19353 # Old archive suffix (normally "a").
19354 libext="$libext"
19355
19356 # Shared library suffix (normally ".so").
19357 shrext_cmds='$shrext_cmds'
19358
19359 # Executable file suffix (normally "").
19360 exeext="$exeext"
19361
19362 # Additional compiler flags for building library objects.
19363 pic_flag=$lt_lt_prog_compiler_pic_RC
19364 pic_mode=$pic_mode
19365
19366 # What is the maximum length of a command?
19367 max_cmd_len=$lt_cv_sys_max_cmd_len
19368
19369 # Does compiler simultaneously support -c and -o options?
19370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19371
19372 # Must we lock files when doing compilation?
19373 need_locks=$lt_need_locks
19374
19375 # Do we need the lib prefix for modules?
19376 need_lib_prefix=$need_lib_prefix
19377
19378 # Do we need a version for libraries?
19379 need_version=$need_version
19380
19381 # Whether dlopen is supported.
19382 dlopen_support=$enable_dlopen
19383
19384 # Whether dlopen of programs is supported.
19385 dlopen_self=$enable_dlopen_self
19386
19387 # Whether dlopen of statically linked programs is supported.
19388 dlopen_self_static=$enable_dlopen_self_static
19389
19390 # Compiler flag to prevent dynamic linking.
19391 link_static_flag=$lt_lt_prog_compiler_static_RC
19392
19393 # Compiler flag to turn off builtin functions.
19394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19395
19396 # Compiler flag to allow reflexive dlopens.
19397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19398
19399 # Compiler flag to generate shared objects directly from archives.
19400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19401
19402 # Compiler flag to generate thread-safe objects.
19403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19404
19405 # Library versioning type.
19406 version_type=$version_type
19407
19408 # Format of library name prefix.
19409 libname_spec=$lt_libname_spec
19410
19411 # List of archive names. First name is the real one, the rest are links.
19412 # The last name is the one that the linker finds with -lNAME.
19413 library_names_spec=$lt_library_names_spec
19414
19415 # The coded name of the library, if different from the real name.
19416 soname_spec=$lt_soname_spec
19417
19418 # Commands used to build and install an old-style archive.
19419 RANLIB=$lt_RANLIB
19420 old_archive_cmds=$lt_old_archive_cmds_RC
19421 old_postinstall_cmds=$lt_old_postinstall_cmds
19422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19423
19424 # Create an old-style archive from a shared archive.
19425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19426
19427 # Create a temporary old-style archive to link instead of a shared archive.
19428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19429
19430 # Commands used to build and install a shared archive.
19431 archive_cmds=$lt_archive_cmds_RC
19432 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19433 postinstall_cmds=$lt_postinstall_cmds
19434 postuninstall_cmds=$lt_postuninstall_cmds
19435
19436 # Commands used to build a loadable module (assumed same as above if empty)
19437 module_cmds=$lt_module_cmds_RC
19438 module_expsym_cmds=$lt_module_expsym_cmds_RC
19439
19440 # Commands to strip libraries.
19441 old_striplib=$lt_old_striplib
19442 striplib=$lt_striplib
19443
19444 # Dependencies to place before the objects being linked to create a
19445 # shared library.
19446 predep_objects=$lt_predep_objects_RC
19447
19448 # Dependencies to place after the objects being linked to create a
19449 # shared library.
19450 postdep_objects=$lt_postdep_objects_RC
19451
19452 # Dependencies to place before the objects being linked to create a
19453 # shared library.
19454 predeps=$lt_predeps_RC
19455
19456 # Dependencies to place after the objects being linked to create a
19457 # shared library.
19458 postdeps=$lt_postdeps_RC
19459
19460 # The library search path used internally by the compiler when linking
19461 # a shared library.
19462 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19463
19464 # Method to check whether dependent libraries are shared objects.
19465 deplibs_check_method=$lt_deplibs_check_method
19466
19467 # Command to use when deplibs_check_method == file_magic.
19468 file_magic_cmd=$lt_file_magic_cmd
19469
19470 # Flag that allows shared libraries with undefined symbols to be built.
19471 allow_undefined_flag=$lt_allow_undefined_flag_RC
19472
19473 # Flag that forces no undefined symbols.
19474 no_undefined_flag=$lt_no_undefined_flag_RC
19475
19476 # Commands used to finish a libtool library installation in a directory.
19477 finish_cmds=$lt_finish_cmds
19478
19479 # Same as above, but a single script fragment to be evaled but not shown.
19480 finish_eval=$lt_finish_eval
19481
19482 # Take the output of nm and produce a listing of raw symbols and C names.
19483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19484
19485 # Transform the output of nm in a proper C declaration
19486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19487
19488 # Transform the output of nm in a C name address pair
19489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19490
19491 # This is the shared library runtime path variable.
19492 runpath_var=$runpath_var
19493
19494 # This is the shared library path variable.
19495 shlibpath_var=$shlibpath_var
19496
19497 # Is shlibpath searched before the hard-coded library search path?
19498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19499
19500 # How to hardcode a shared library path into an executable.
19501 hardcode_action=$hardcode_action_RC
19502
19503 # Whether we should hardcode library paths into libraries.
19504 hardcode_into_libs=$hardcode_into_libs
19505
19506 # Flag to hardcode \$libdir into a binary during linking.
19507 # This must work even if \$libdir does not exist.
19508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19509
19510 # If ld is used when linking, flag to hardcode \$libdir into
19511 # a binary during linking. This must work even if \$libdir does
19512 # not exist.
19513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19514
19515 # Whether we need a single -rpath flag with a separated argument.
19516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19517
19518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19519 # resulting binary.
19520 hardcode_direct=$hardcode_direct_RC
19521
19522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19523 # resulting binary.
19524 hardcode_minus_L=$hardcode_minus_L_RC
19525
19526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19527 # the resulting binary.
19528 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19529
19530 # Set to yes if building a shared library automatically hardcodes DIR into the library
19531 # and all subsequent libraries and executables linked against it.
19532 hardcode_automatic=$hardcode_automatic_RC
19533
19534 # Variables whose values should be saved in libtool wrapper scripts and
19535 # restored at relink time.
19536 variables_saved_for_relink="$variables_saved_for_relink"
19537
19538 # Whether libtool must link a program against all its dependency libraries.
19539 link_all_deplibs=$link_all_deplibs_RC
19540
19541 # Compile-time system search path for libraries
19542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19543
19544 # Run-time system search path for libraries
19545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19546
19547 # Fix the shell variable \$srcfile for the compiler.
19548 fix_srcfile_path="$fix_srcfile_path_RC"
19549
19550 # Set to yes if exported symbols are required.
19551 always_export_symbols=$always_export_symbols_RC
19552
19553 # The commands to list exported symbols.
19554 export_symbols_cmds=$lt_export_symbols_cmds_RC
19555
19556 # The commands to extract the exported symbol list from a shared archive.
19557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19558
19559 # Symbols that should not be listed in the preloaded symbols.
19560 exclude_expsyms=$lt_exclude_expsyms_RC
19561
19562 # Symbols that must always be exported.
19563 include_expsyms=$lt_include_expsyms_RC
19564
19565 # ### END LIBTOOL TAG CONFIG: $tagname
19566
19567 __EOF__
19568
19569
19570 else
19571 # If there is no Makefile yet, we rely on a make rule to execute
19572 # `config.status --recheck' to rerun these tests and create the
19573 # libtool script then.
19574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19575 if test -f "$ltmain_in"; then
19576 test -f Makefile && make "$ltmain"
19577 fi
19578 fi
19579
19580
19581 ac_ext=c
19582 ac_cpp='$CPP $CPPFLAGS'
19583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19586
19587 CC="$lt_save_CC"
19588
19589 ;;
19590
19591 *)
19592 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19593 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19594 { (exit 1); exit 1; }; }
19595 ;;
19596 esac
19597
19598 # Append the new tag name to the list of available tags.
19599 if test -n "$tagname" ; then
19600 available_tags="$available_tags $tagname"
19601 fi
19602 fi
19603 done
19604 IFS="$lt_save_ifs"
19605
19606 # Now substitute the updated list of available tags.
19607 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19608 mv "${ofile}T" "$ofile"
19609 chmod +x "$ofile"
19610 else
19611 rm -f "${ofile}T"
19612 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19613 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19614 { (exit 1); exit 1; }; }
19615 fi
19616 fi
19617
19618
19619
19620 # This can be used to rebuild libtool when needed
19621 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19622
19623 # Always use our own libtool.
19624 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19625
19626 # Prevent multiple expansion
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647 ac_ext=c
19648 ac_cpp='$CPP $CPPFLAGS'
19649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19652 if test -n "$ac_tool_prefix"; then
19653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19657 if test "${ac_cv_prog_CC+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660 if test -n "$CC"; then
19661 ac_cv_prog_CC="$CC" # Let the user override the test.
19662 else
19663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19664 for as_dir in $PATH
19665 do
19666 IFS=$as_save_IFS
19667 test -z "$as_dir" && as_dir=.
19668 for ac_exec_ext in '' $ac_executable_extensions; do
19669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19670 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19672 break 2
19673 fi
19674 done
19675 done
19676 IFS=$as_save_IFS
19677
19678 fi
19679 fi
19680 CC=$ac_cv_prog_CC
19681 if test -n "$CC"; then
19682 { echo "$as_me:$LINENO: result: $CC" >&5
19683 echo "${ECHO_T}$CC" >&6; }
19684 else
19685 { echo "$as_me:$LINENO: result: no" >&5
19686 echo "${ECHO_T}no" >&6; }
19687 fi
19688
19689
19690 fi
19691 if test -z "$ac_cv_prog_CC"; then
19692 ac_ct_CC=$CC
19693 # Extract the first word of "gcc", so it can be a program name with args.
19694 set dummy gcc; ac_word=$2
19695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700 if test -n "$ac_ct_CC"; then
19701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19702 else
19703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19704 for as_dir in $PATH
19705 do
19706 IFS=$as_save_IFS
19707 test -z "$as_dir" && as_dir=.
19708 for ac_exec_ext in '' $ac_executable_extensions; do
19709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19710 ac_cv_prog_ac_ct_CC="gcc"
19711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19712 break 2
19713 fi
19714 done
19715 done
19716 IFS=$as_save_IFS
19717
19718 fi
19719 fi
19720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19721 if test -n "$ac_ct_CC"; then
19722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19723 echo "${ECHO_T}$ac_ct_CC" >&6; }
19724 else
19725 { echo "$as_me:$LINENO: result: no" >&5
19726 echo "${ECHO_T}no" >&6; }
19727 fi
19728
19729 if test "x$ac_ct_CC" = x; then
19730 CC=""
19731 else
19732 case $cross_compiling:$ac_tool_warned in
19733 yes:)
19734 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19735 whose name does not start with the host triplet. If you think this
19736 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19737 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19738 whose name does not start with the host triplet. If you think this
19739 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19740 ac_tool_warned=yes ;;
19741 esac
19742 CC=$ac_ct_CC
19743 fi
19744 else
19745 CC="$ac_cv_prog_CC"
19746 fi
19747
19748 if test -z "$CC"; then
19749 if test -n "$ac_tool_prefix"; then
19750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19751 set dummy ${ac_tool_prefix}cc; ac_word=$2
19752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19754 if test "${ac_cv_prog_CC+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 if test -n "$CC"; then
19758 ac_cv_prog_CC="$CC" # Let the user override the test.
19759 else
19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19762 do
19763 IFS=$as_save_IFS
19764 test -z "$as_dir" && as_dir=.
19765 for ac_exec_ext in '' $ac_executable_extensions; do
19766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19767 ac_cv_prog_CC="${ac_tool_prefix}cc"
19768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19769 break 2
19770 fi
19771 done
19772 done
19773 IFS=$as_save_IFS
19774
19775 fi
19776 fi
19777 CC=$ac_cv_prog_CC
19778 if test -n "$CC"; then
19779 { echo "$as_me:$LINENO: result: $CC" >&5
19780 echo "${ECHO_T}$CC" >&6; }
19781 else
19782 { echo "$as_me:$LINENO: result: no" >&5
19783 echo "${ECHO_T}no" >&6; }
19784 fi
19785
19786
19787 fi
19788 fi
19789 if test -z "$CC"; then
19790 # Extract the first word of "cc", so it can be a program name with args.
19791 set dummy cc; ac_word=$2
19792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19794 if test "${ac_cv_prog_CC+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797 if test -n "$CC"; then
19798 ac_cv_prog_CC="$CC" # Let the user override the test.
19799 else
19800 ac_prog_rejected=no
19801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19802 for as_dir in $PATH
19803 do
19804 IFS=$as_save_IFS
19805 test -z "$as_dir" && as_dir=.
19806 for ac_exec_ext in '' $ac_executable_extensions; do
19807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19809 ac_prog_rejected=yes
19810 continue
19811 fi
19812 ac_cv_prog_CC="cc"
19813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19814 break 2
19815 fi
19816 done
19817 done
19818 IFS=$as_save_IFS
19819
19820 if test $ac_prog_rejected = yes; then
19821 # We found a bogon in the path, so make sure we never use it.
19822 set dummy $ac_cv_prog_CC
19823 shift
19824 if test $# != 0; then
19825 # We chose a different compiler from the bogus one.
19826 # However, it has the same basename, so the bogon will be chosen
19827 # first if we set CC to just the basename; use the full file name.
19828 shift
19829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19830 fi
19831 fi
19832 fi
19833 fi
19834 CC=$ac_cv_prog_CC
19835 if test -n "$CC"; then
19836 { echo "$as_me:$LINENO: result: $CC" >&5
19837 echo "${ECHO_T}$CC" >&6; }
19838 else
19839 { echo "$as_me:$LINENO: result: no" >&5
19840 echo "${ECHO_T}no" >&6; }
19841 fi
19842
19843
19844 fi
19845 if test -z "$CC"; then
19846 if test -n "$ac_tool_prefix"; then
19847 for ac_prog in cl.exe
19848 do
19849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19853 if test "${ac_cv_prog_CC+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856 if test -n "$CC"; then
19857 ac_cv_prog_CC="$CC" # Let the user override the test.
19858 else
19859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19860 for as_dir in $PATH
19861 do
19862 IFS=$as_save_IFS
19863 test -z "$as_dir" && as_dir=.
19864 for ac_exec_ext in '' $ac_executable_extensions; do
19865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19868 break 2
19869 fi
19870 done
19871 done
19872 IFS=$as_save_IFS
19873
19874 fi
19875 fi
19876 CC=$ac_cv_prog_CC
19877 if test -n "$CC"; then
19878 { echo "$as_me:$LINENO: result: $CC" >&5
19879 echo "${ECHO_T}$CC" >&6; }
19880 else
19881 { echo "$as_me:$LINENO: result: no" >&5
19882 echo "${ECHO_T}no" >&6; }
19883 fi
19884
19885
19886 test -n "$CC" && break
19887 done
19888 fi
19889 if test -z "$CC"; then
19890 ac_ct_CC=$CC
19891 for ac_prog in cl.exe
19892 do
19893 # Extract the first word of "$ac_prog", so it can be a program name with args.
19894 set dummy $ac_prog; ac_word=$2
19895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900 if test -n "$ac_ct_CC"; then
19901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19902 else
19903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in $PATH
19905 do
19906 IFS=$as_save_IFS
19907 test -z "$as_dir" && as_dir=.
19908 for ac_exec_ext in '' $ac_executable_extensions; do
19909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19910 ac_cv_prog_ac_ct_CC="$ac_prog"
19911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19912 break 2
19913 fi
19914 done
19915 done
19916 IFS=$as_save_IFS
19917
19918 fi
19919 fi
19920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19921 if test -n "$ac_ct_CC"; then
19922 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19923 echo "${ECHO_T}$ac_ct_CC" >&6; }
19924 else
19925 { echo "$as_me:$LINENO: result: no" >&5
19926 echo "${ECHO_T}no" >&6; }
19927 fi
19928
19929
19930 test -n "$ac_ct_CC" && break
19931 done
19932
19933 if test "x$ac_ct_CC" = x; then
19934 CC=""
19935 else
19936 case $cross_compiling:$ac_tool_warned in
19937 yes:)
19938 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19939 whose name does not start with the host triplet. If you think this
19940 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19941 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19942 whose name does not start with the host triplet. If you think this
19943 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19944 ac_tool_warned=yes ;;
19945 esac
19946 CC=$ac_ct_CC
19947 fi
19948 fi
19949
19950 fi
19951
19952
19953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19954 See \`config.log' for more details." >&5
19955 echo "$as_me: error: no acceptable C compiler found in \$PATH
19956 See \`config.log' for more details." >&2;}
19957 { (exit 1); exit 1; }; }
19958
19959 # Provide some information about the compiler.
19960 echo "$as_me:$LINENO: checking for C compiler version" >&5
19961 ac_compiler=`set X $ac_compile; echo $2`
19962 { (ac_try="$ac_compiler --version >&5"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_compiler --version >&5") 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }
19972 { (ac_try="$ac_compiler -v >&5"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compiler -v >&5") 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }
19982 { (ac_try="$ac_compiler -V >&5"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_compiler -V >&5") 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }
19992
19993 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19994 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19995 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998 cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h. */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004
20005 int
20006 main ()
20007 {
20008 #ifndef __GNUC__
20009 choke me
20010 #endif
20011
20012 ;
20013 return 0;
20014 }
20015 _ACEOF
20016 rm -f conftest.$ac_objext
20017 if { (ac_try="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_compile") 2>conftest.er1
20024 ac_status=$?
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20031 { (case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_try") 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try='test -s conftest.$ac_objext'
20041 { (case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_try") 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_compiler_gnu=yes
20051 else
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20054
20055 ac_compiler_gnu=no
20056 fi
20057
20058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20060
20061 fi
20062 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20063 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20064 GCC=`test $ac_compiler_gnu = yes && echo yes`
20065 ac_test_CFLAGS=${CFLAGS+set}
20066 ac_save_CFLAGS=$CFLAGS
20067 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20068 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20069 if test "${ac_cv_prog_cc_g+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072 ac_save_c_werror_flag=$ac_c_werror_flag
20073 ac_c_werror_flag=yes
20074 ac_cv_prog_cc_g=no
20075 CFLAGS="-g"
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082
20083 int
20084 main ()
20085 {
20086
20087 ;
20088 return 0;
20089 }
20090 _ACEOF
20091 rm -f conftest.$ac_objext
20092 if { (ac_try="$ac_compile"
20093 case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20096 esac
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_compile") 2>conftest.er1
20099 ac_status=$?
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20106 { (case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_try") 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } &&
20115 { ac_try='test -s conftest.$ac_objext'
20116 { (case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_try") 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_cv_prog_cc_g=yes
20126 else
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 CFLAGS=""
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h. */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20137
20138 int
20139 main ()
20140 {
20141
20142 ;
20143 return 0;
20144 }
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (ac_try="$ac_compile"
20148 case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
20160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20161 { (case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_try") 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; } &&
20170 { ac_try='test -s conftest.$ac_objext'
20171 { (case "(($ac_try" in
20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173 *) ac_try_echo=$ac_try;;
20174 esac
20175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20176 (eval "$ac_try") 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; }; then
20180 :
20181 else
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20184
20185 ac_c_werror_flag=$ac_save_c_werror_flag
20186 CFLAGS="-g"
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193
20194 int
20195 main ()
20196 {
20197
20198 ;
20199 return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext
20203 if { (ac_try="$ac_compile"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_compile") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20217 { (case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_try") 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } &&
20226 { ac_try='test -s conftest.$ac_objext'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_cv_prog_cc_g=yes
20237 else
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241
20242 fi
20243
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 fi
20246
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 fi
20249
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 ac_c_werror_flag=$ac_save_c_werror_flag
20252 fi
20253 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20254 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20255 if test "$ac_test_CFLAGS" = set; then
20256 CFLAGS=$ac_save_CFLAGS
20257 elif test $ac_cv_prog_cc_g = yes; then
20258 if test "$GCC" = yes; then
20259 CFLAGS="-g -O2"
20260 else
20261 CFLAGS="-g"
20262 fi
20263 else
20264 if test "$GCC" = yes; then
20265 CFLAGS="-O2"
20266 else
20267 CFLAGS=
20268 fi
20269 fi
20270 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20271 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20272 if test "${ac_cv_prog_cc_c89+set}" = set; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 else
20275 ac_cv_prog_cc_c89=no
20276 ac_save_CC=$CC
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h. */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 #include <stdarg.h>
20284 #include <stdio.h>
20285 #include <sys/types.h>
20286 #include <sys/stat.h>
20287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20288 struct buf { int x; };
20289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20290 static char *e (p, i)
20291 char **p;
20292 int i;
20293 {
20294 return p[i];
20295 }
20296 static char *f (char * (*g) (char **, int), char **p, ...)
20297 {
20298 char *s;
20299 va_list v;
20300 va_start (v,p);
20301 s = g (p, va_arg (v,int));
20302 va_end (v);
20303 return s;
20304 }
20305
20306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20307 function prototypes and stuff, but not '\xHH' hex character constants.
20308 These don't provoke an error unfortunately, instead are silently treated
20309 as 'x'. The following induces an error, until -std is added to get
20310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20311 array size at least. It's necessary to write '\x00'==0 to get something
20312 that's true only with -std. */
20313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20314
20315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20316 inside strings and character constants. */
20317 #define FOO(x) 'x'
20318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20319
20320 int test (int i, double x);
20321 struct s1 {int (*f) (int a);};
20322 struct s2 {int (*f) (double a);};
20323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20324 int argc;
20325 char **argv;
20326 int
20327 main ()
20328 {
20329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20330 ;
20331 return 0;
20332 }
20333 _ACEOF
20334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20336 do
20337 CC="$ac_save_CC $ac_arg"
20338 rm -f conftest.$ac_objext
20339 if { (ac_try="$ac_compile"
20340 case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_compile") 2>conftest.er1
20346 ac_status=$?
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
20352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
20363 { (case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_try") 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 ac_cv_prog_cc_c89=$ac_arg
20373 else
20374 echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377
20378 fi
20379
20380 rm -f core conftest.err conftest.$ac_objext
20381 test "x$ac_cv_prog_cc_c89" != "xno" && break
20382 done
20383 rm -f conftest.$ac_ext
20384 CC=$ac_save_CC
20385
20386 fi
20387 # AC_CACHE_VAL
20388 case "x$ac_cv_prog_cc_c89" in
20389 x)
20390 { echo "$as_me:$LINENO: result: none needed" >&5
20391 echo "${ECHO_T}none needed" >&6; } ;;
20392 xno)
20393 { echo "$as_me:$LINENO: result: unsupported" >&5
20394 echo "${ECHO_T}unsupported" >&6; } ;;
20395 *)
20396 CC="$CC $ac_cv_prog_cc_c89"
20397 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20398 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20399 esac
20400
20401
20402 ac_ext=c
20403 ac_cpp='$CPP $CPPFLAGS'
20404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20407
20408 depcc="$CC" am_compiler_list=
20409
20410 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20411 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20412 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 else
20415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20416 # We make a subdir and do the tests there. Otherwise we can end up
20417 # making bogus files that we don't know about and never remove. For
20418 # instance it was reported that on HP-UX the gcc test will end up
20419 # making a dummy file named `D' -- because `-MD' means `put the output
20420 # in D'.
20421 mkdir conftest.dir
20422 # Copy depcomp to subdir because otherwise we won't find it if we're
20423 # using a relative directory.
20424 cp "$am_depcomp" conftest.dir
20425 cd conftest.dir
20426 # We will build objects and dependencies in a subdirectory because
20427 # it helps to detect inapplicable dependency modes. For instance
20428 # both Tru64's cc and ICC support -MD to output dependencies as a
20429 # side effect of compilation, but ICC will put the dependencies in
20430 # the current directory while Tru64 will put them in the object
20431 # directory.
20432 mkdir sub
20433
20434 am_cv_CC_dependencies_compiler_type=none
20435 if test "$am_compiler_list" = ""; then
20436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20437 fi
20438 for depmode in $am_compiler_list; do
20439 # Setup a source with many dependencies, because some compilers
20440 # like to wrap large dependency lists on column 80 (with \), and
20441 # we should not choose a depcomp mode which is confused by this.
20442 #
20443 # We need to recreate these files for each test, as the compiler may
20444 # overwrite some of them when testing with obscure command lines.
20445 # This happens at least with the AIX C compiler.
20446 : > sub/conftest.c
20447 for i in 1 2 3 4 5 6; do
20448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20450 # Solaris 8's {/usr,}/bin/sh.
20451 touch sub/conftst$i.h
20452 done
20453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20454
20455 case $depmode in
20456 nosideeffect)
20457 # after this tag, mechanisms are not by side-effect, so they'll
20458 # only be used when explicitly requested
20459 if test "x$enable_dependency_tracking" = xyes; then
20460 continue
20461 else
20462 break
20463 fi
20464 ;;
20465 none) break ;;
20466 esac
20467 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20468 # mode. It turns out that the SunPro C++ compiler does not properly
20469 # handle `-M -o', and we need to detect this.
20470 if depmode=$depmode \
20471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20474 >/dev/null 2>conftest.err &&
20475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20478 # icc doesn't choke on unknown options, it will just issue warnings
20479 # or remarks (even with -Werror). So we grep stderr for any message
20480 # that says an option was ignored or not supported.
20481 # When given -MP, icc 7.0 and 7.1 complain thusly:
20482 # icc: Command line warning: ignoring option '-M'; no argument required
20483 # The diagnosis changed in icc 8.0:
20484 # icc: Command line remark: option '-MP' not supported
20485 if (grep 'ignoring option' conftest.err ||
20486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20487 am_cv_CC_dependencies_compiler_type=$depmode
20488 break
20489 fi
20490 fi
20491 done
20492
20493 cd ..
20494 rm -rf conftest.dir
20495 else
20496 am_cv_CC_dependencies_compiler_type=none
20497 fi
20498
20499 fi
20500 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20501 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20503
20504
20505
20506 if
20507 test "x$enable_dependency_tracking" != xno \
20508 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20509 am__fastdepCC_TRUE=
20510 am__fastdepCC_FALSE='#'
20511 else
20512 am__fastdepCC_TRUE='#'
20513 am__fastdepCC_FALSE=
20514 fi
20515
20516
20517
20518
20519 ac_save_CFLAGS="$CFLAGS"
20520 CFLAGS="$CFLAGS -Werror"
20521 { echo "$as_me:$LINENO: checking if compiler supports __attribute__((weak, alias))" >&5
20522 echo $ECHO_N "checking if compiler supports __attribute__((weak, alias))... $ECHO_C" >&6; }
20523 if test "${cc_cv_attribute_alias+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526 cat >conftest.$ac_ext <<_ACEOF
20527
20528 void other_function(void *foo) { }
20529 void some_function(void *foo) __attribute__((weak, alias("other_function")));
20530
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20547 { (case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_try") 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest.$ac_objext'
20557 { (case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_try") 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 cc_cv_attribute_alias=yes
20567 else
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 cc_cv_attribute_alias=no
20572 fi
20573
20574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20575
20576 fi
20577 { echo "$as_me:$LINENO: result: $cc_cv_attribute_alias" >&5
20578 echo "${ECHO_T}$cc_cv_attribute_alias" >&6; }
20579 CFLAGS="$ac_save_CFLAGS"
20580 if test "x$cc_cv_attribute_alias" = "xyes"; then
20581
20582 cat >>confdefs.h <<\_ACEOF
20583 #define SUPPORT_ATTRIBUTE_ALIAS 1
20584 _ACEOF
20585
20586 fi
20587
20588
20589 PKG_CONFIG_LIBS=
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601 for ac_func in pthread_self pthread_mutex_init pthread_mutex_destroy pthread_mutex_lock pthread_mutex_unlock pthread_cond_init pthread_cond_destroy pthread_cond_wait pthread_cond_signal pthread_cond_broadcast pthread_equal
20602 do
20603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20617 #define $ac_func innocuous_$ac_func
20618
20619 /* System header to define __stub macros and hopefully few prototypes,
20620 which can conflict with char $ac_func (); below.
20621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20622 <limits.h> exists even on freestanding compilers. */
20623
20624 #ifdef __STDC__
20625 # include <limits.h>
20626 #else
20627 # include <assert.h>
20628 #endif
20629
20630 #undef $ac_func
20631
20632 /* Override any GCC internal prototype to avoid an error.
20633 Use char because int might match the return type of a GCC
20634 builtin and then its argument prototype would still apply. */
20635 #ifdef __cplusplus
20636 extern "C"
20637 #endif
20638 char $ac_func ();
20639 /* The GNU C library defines this for functions which it implements
20640 to always fail with ENOSYS. Some functions are actually named
20641 something starting with __ and the normal name is an alias. */
20642 #if defined __stub_$ac_func || defined __stub___$ac_func
20643 choke me
20644 #endif
20645
20646 int
20647 main ()
20648 {
20649 return $ac_func ();
20650 ;
20651 return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest.$ac_objext conftest$ac_exeext
20655 if { (ac_try="$ac_link"
20656 case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_link") 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20669 { (case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672 esac
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_try") 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; } &&
20678 { ac_try='test -s conftest$ac_exeext'
20679 { (case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682 esac
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_try") 2>&5
20685 ac_status=$?
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; }; then
20688 eval "$as_ac_var=yes"
20689 else
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693 eval "$as_ac_var=no"
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20697 conftest$ac_exeext conftest.$ac_ext
20698 fi
20699 ac_res=`eval echo '${'$as_ac_var'}'`
20700 { echo "$as_me:$LINENO: result: $ac_res" >&5
20701 echo "${ECHO_T}$ac_res" >&6; }
20702 if test `eval echo '${'$as_ac_var'}'` = yes; then
20703 cat >>confdefs.h <<_ACEOF
20704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20705 _ACEOF
20706
20707 else
20708 PKG_CONFIG_LIBS='-L${libdir} -lpthread-stubs'
20709 fi
20710 done
20711
20712
20713
20714
20715 if test "x$PKG_CONFIG_LIBS" != x; then
20716 BUILD_LIB_TRUE=
20717 BUILD_LIB_FALSE='#'
20718 else
20719 BUILD_LIB_TRUE='#'
20720 BUILD_LIB_FALSE=
20721 fi
20722
20723
20724 ac_config_files="$ac_config_files Makefile pthread-stubs.pc"
20725
20726 cat >confcache <<\_ACEOF
20727 # This file is a shell script that caches the results of configure
20728 # tests run on this system so they can be shared between configure
20729 # scripts and configure runs, see configure's option --config-cache.
20730 # It is not useful on other systems. If it contains results you don't
20731 # want to keep, you may remove or edit it.
20732 #
20733 # config.status only pays attention to the cache file if you give it
20734 # the --recheck option to rerun configure.
20735 #
20736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20738 # following values.
20739
20740 _ACEOF
20741
20742 # The following way of writing the cache mishandles newlines in values,
20743 # but we know of no workaround that is simple, portable, and efficient.
20744 # So, we kill variables containing newlines.
20745 # Ultrix sh set writes to stderr and can't be redirected directly,
20746 # and sets the high bit in the cache file unless we assign to the vars.
20747 (
20748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20749 eval ac_val=\$$ac_var
20750 case $ac_val in #(
20751 *${as_nl}*)
20752 case $ac_var in #(
20753 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20754 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20755 esac
20756 case $ac_var in #(
20757 _ | IFS | as_nl) ;; #(
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 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20791 echo "$as_me: updating cache $cache_file" >&6;}
20792 cat confcache >$cache_file
20793 else
20794 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20795 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=`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 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20824 Usually this means the macro was only invoked conditionally." >&5
20825 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 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20831 Usually this means the macro was only invoked conditionally." >&5
20832 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 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20838 Usually this means the macro was only invoked conditionally." >&5
20839 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 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20844 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20845 Usually this means the macro was only invoked conditionally." >&5
20846 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20847 Usually this means the macro was only invoked conditionally." >&2;}
20848 { (exit 1); exit 1; }; }
20849 fi
20850 if test -z "${BUILD_LIB_TRUE}" && test -z "${BUILD_LIB_FALSE}"; then
20851 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIB\" was never defined.
20852 Usually this means the macro was only invoked conditionally." >&5
20853 echo "$as_me: error: conditional \"BUILD_LIB\" was never defined.
20854 Usually this means the macro was only invoked conditionally." >&2;}
20855 { (exit 1); exit 1; }; }
20856 fi
20857
20858 : ${CONFIG_STATUS=./config.status}
20859 ac_clean_files_save=$ac_clean_files
20860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20861 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20862 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20863 cat >$CONFIG_STATUS <<_ACEOF
20864 #! $SHELL
20865 # Generated by $as_me.
20866 # Run this file to recreate the current configuration.
20867 # Compiler output produced by configure, useful for debugging
20868 # configure, is in config.log if it exists.
20869
20870 debug=false
20871 ac_cs_recheck=false
20872 ac_cs_silent=false
20873 SHELL=\${CONFIG_SHELL-$SHELL}
20874 _ACEOF
20875
20876 cat >>$CONFIG_STATUS <<\_ACEOF
20877 ## --------------------- ##
20878 ## M4sh Initialization. ##
20879 ## --------------------- ##
20880
20881 # Be Bourne compatible
20882 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20883 emulate sh
20884 NULLCMD=:
20885 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20886 # is contrary to our usage. Disable this feature.
20887 alias -g '${1+"$@"}'='"$@"'
20888 setopt NO_GLOB_SUBST
20889 else
20890 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20891 fi
20892 BIN_SH=xpg4; export BIN_SH # for Tru64
20893 DUALCASE=1; export DUALCASE # for MKS sh
20894
20895
20896 # PATH needs CR
20897 # Avoid depending upon Character Ranges.
20898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20901 as_cr_digits='0123456789'
20902 as_cr_alnum=$as_cr_Letters$as_cr_digits
20903
20904 # The user is always right.
20905 if test "${PATH_SEPARATOR+set}" != set; then
20906 echo "#! /bin/sh" >conf$$.sh
20907 echo "exit 0" >>conf$$.sh
20908 chmod +x conf$$.sh
20909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20910 PATH_SEPARATOR=';'
20911 else
20912 PATH_SEPARATOR=:
20913 fi
20914 rm -f conf$$.sh
20915 fi
20916
20917 # Support unset when possible.
20918 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20919 as_unset=unset
20920 else
20921 as_unset=false
20922 fi
20923
20924
20925 # IFS
20926 # We need space, tab and new line, in precisely that order. Quoting is
20927 # there to prevent editors from complaining about space-tab.
20928 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20929 # splitting by setting IFS to empty value.)
20930 as_nl='
20931 '
20932 IFS=" "" $as_nl"
20933
20934 # Find who we are. Look in the path if we contain no directory separator.
20935 case $0 in
20936 *[\\/]* ) as_myself=$0 ;;
20937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20938 for as_dir in $PATH
20939 do
20940 IFS=$as_save_IFS
20941 test -z "$as_dir" && as_dir=.
20942 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20943 done
20944 IFS=$as_save_IFS
20945
20946 ;;
20947 esac
20948 # We did not find ourselves, most probably we were run as `sh COMMAND'
20949 # in which case we are not to be found in the path.
20950 if test "x$as_myself" = x; then
20951 as_myself=$0
20952 fi
20953 if test ! -f "$as_myself"; then
20954 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20955 { (exit 1); exit 1; }
20956 fi
20957
20958 # Work around bugs in pre-3.0 UWIN ksh.
20959 for as_var in ENV MAIL MAILPATH
20960 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20961 done
20962 PS1='$ '
20963 PS2='> '
20964 PS4='+ '
20965
20966 # NLS nuisances.
20967 for as_var in \
20968 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20969 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20970 LC_TELEPHONE LC_TIME
20971 do
20972 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20973 eval $as_var=C; export $as_var
20974 else
20975 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20976 fi
20977 done
20978
20979 # Required to use basename.
20980 if expr a : '\(a\)' >/dev/null 2>&1 &&
20981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20982 as_expr=expr
20983 else
20984 as_expr=false
20985 fi
20986
20987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20988 as_basename=basename
20989 else
20990 as_basename=false
20991 fi
20992
20993
20994 # Name of the executable.
20995 as_me=`$as_basename -- "$0" ||
20996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20997 X"$0" : 'X\(//\)$' \| \
20998 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20999 echo X/"$0" |
21000 sed '/^.*\/\([^/][^/]*\)\/*$/{
21001 s//\1/
21002 q
21003 }
21004 /^X\/\(\/\/\)$/{
21005 s//\1/
21006 q
21007 }
21008 /^X\/\(\/\).*/{
21009 s//\1/
21010 q
21011 }
21012 s/.*/./; q'`
21013
21014 # CDPATH.
21015 $as_unset CDPATH
21016
21017
21018
21019 as_lineno_1=$LINENO
21020 as_lineno_2=$LINENO
21021 test "x$as_lineno_1" != "x$as_lineno_2" &&
21022 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21023
21024 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21025 # uniformly replaced by the line number. The first 'sed' inserts a
21026 # line-number line after each line using $LINENO; the second 'sed'
21027 # does the real work. The second script uses 'N' to pair each
21028 # line-number line with the line containing $LINENO, and appends
21029 # trailing '-' during substitution so that $LINENO is not a special
21030 # case at line end.
21031 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21032 # scripts with optimization help from Paolo Bonzini. Blame Lee
21033 # E. McMahon (1931-1989) for sed's syntax. :-)
21034 sed -n '
21035 p
21036 /[$]LINENO/=
21037 ' <$as_myself |
21038 sed '
21039 s/[$]LINENO.*/&-/
21040 t lineno
21041 b
21042 :lineno
21043 N
21044 :loop
21045 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21046 t loop
21047 s/-\n.*//
21048 ' >$as_me.lineno &&
21049 chmod +x "$as_me.lineno" ||
21050 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21051 { (exit 1); exit 1; }; }
21052
21053 # Don't try to exec as it changes $[0], causing all sort of problems
21054 # (the dirname of $[0] is not the place where we might find the
21055 # original and so on. Autoconf is especially sensitive to this).
21056 . "./$as_me.lineno"
21057 # Exit status is that of the last command.
21058 exit
21059 }
21060
21061
21062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21063 as_dirname=dirname
21064 else
21065 as_dirname=false
21066 fi
21067
21068 ECHO_C= ECHO_N= ECHO_T=
21069 case `echo -n x` in
21070 -n*)
21071 case `echo 'x\c'` in
21072 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21073 *) ECHO_C='\c';;
21074 esac;;
21075 *)
21076 ECHO_N='-n';;
21077 esac
21078
21079 if expr a : '\(a\)' >/dev/null 2>&1 &&
21080 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21081 as_expr=expr
21082 else
21083 as_expr=false
21084 fi
21085
21086 rm -f conf$$ conf$$.exe conf$$.file
21087 if test -d conf$$.dir; then
21088 rm -f conf$$.dir/conf$$.file
21089 else
21090 rm -f conf$$.dir
21091 mkdir conf$$.dir
21092 fi
21093 echo >conf$$.file
21094 if ln -s conf$$.file conf$$ 2>/dev/null; then
21095 as_ln_s='ln -s'
21096 # ... but there are two gotchas:
21097 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21098 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21099 # In both cases, we have to default to `cp -p'.
21100 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21101 as_ln_s='cp -p'
21102 elif ln conf$$.file conf$$ 2>/dev/null; then
21103 as_ln_s=ln
21104 else
21105 as_ln_s='cp -p'
21106 fi
21107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21108 rmdir conf$$.dir 2>/dev/null
21109
21110 if mkdir -p . 2>/dev/null; then
21111 as_mkdir_p=:
21112 else
21113 test -d ./-p && rmdir ./-p
21114 as_mkdir_p=false
21115 fi
21116
21117 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21118 # systems may use methods other than mode bits to determine executability.
21119 cat >conf$$.file <<_ASEOF
21120 #! /bin/sh
21121 exit 0
21122 _ASEOF
21123 chmod +x conf$$.file
21124 if test -x conf$$.file >/dev/null 2>&1; then
21125 as_executable_p="test -x"
21126 else
21127 as_executable_p=:
21128 fi
21129 rm -f conf$$.file
21130
21131 # Sed expression to map a string onto a valid CPP name.
21132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21133
21134 # Sed expression to map a string onto a valid variable name.
21135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21136
21137
21138 exec 6>&1
21139
21140 # Save the log message, to keep $[0] and so on meaningful, and to
21141 # report actual input values of CONFIG_FILES etc. instead of their
21142 # values after options handling.
21143 ac_log="
21144 This file was extended by libpthread-stubs $as_me 0.1, which was
21145 generated by GNU Autoconf 2.60a. Invocation command line was
21146
21147 CONFIG_FILES = $CONFIG_FILES
21148 CONFIG_HEADERS = $CONFIG_HEADERS
21149 CONFIG_LINKS = $CONFIG_LINKS
21150 CONFIG_COMMANDS = $CONFIG_COMMANDS
21151 $ $0 $@
21152
21153 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21154 "
21155
21156 _ACEOF
21157
21158 cat >>$CONFIG_STATUS <<_ACEOF
21159 # Files that config.status was made for.
21160 config_files="$ac_config_files"
21161 config_headers="$ac_config_headers"
21162 config_commands="$ac_config_commands"
21163
21164 _ACEOF
21165
21166 cat >>$CONFIG_STATUS <<\_ACEOF
21167 ac_cs_usage="\
21168 \`$as_me' instantiates files from templates according to the
21169 current configuration.
21170
21171 Usage: $0 [OPTIONS] [FILE]...
21172
21173 -h, --help print this help, then exit
21174 -V, --version print version number and configuration settings, then exit
21175 -q, --quiet do not print progress messages
21176 -d, --debug don't remove temporary files
21177 --recheck update $as_me by reconfiguring in the same conditions
21178 --file=FILE[:TEMPLATE]
21179 instantiate the configuration file FILE
21180 --header=FILE[:TEMPLATE]
21181 instantiate the configuration header FILE
21182
21183 Configuration files:
21184 $config_files
21185
21186 Configuration headers:
21187 $config_headers
21188
21189 Configuration commands:
21190 $config_commands
21191
21192 Report bugs to <bug-autoconf@gnu.org>."
21193
21194 _ACEOF
21195 cat >>$CONFIG_STATUS <<_ACEOF
21196 ac_cs_version="\\
21197 libpthread-stubs config.status 0.1
21198 configured by $0, generated by GNU Autoconf 2.60a,
21199 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21200
21201 Copyright (C) 2006 Free Software Foundation, Inc.
21202 This config.status script is free software; the Free Software Foundation
21203 gives unlimited permission to copy, distribute and modify it."
21204
21205 ac_pwd='$ac_pwd'
21206 srcdir='$srcdir'
21207 INSTALL='$INSTALL'
21208 _ACEOF
21209
21210 cat >>$CONFIG_STATUS <<\_ACEOF
21211 # If no file are specified by the user, then we need to provide default
21212 # value. By we need to know if files were specified by the user.
21213 ac_need_defaults=:
21214 while test $# != 0
21215 do
21216 case $1 in
21217 --*=*)
21218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21220 ac_shift=:
21221 ;;
21222 *)
21223 ac_option=$1
21224 ac_optarg=$2
21225 ac_shift=shift
21226 ;;
21227 esac
21228
21229 case $ac_option in
21230 # Handling of the options.
21231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21232 ac_cs_recheck=: ;;
21233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21234 echo "$ac_cs_version"; exit ;;
21235 --debug | --debu | --deb | --de | --d | -d )
21236 debug=: ;;
21237 --file | --fil | --fi | --f )
21238 $ac_shift
21239 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21240 ac_need_defaults=false;;
21241 --header | --heade | --head | --hea )
21242 $ac_shift
21243 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21244 ac_need_defaults=false;;
21245 --he | --h)
21246 # Conflict between --help and --header
21247 { echo "$as_me: error: ambiguous option: $1
21248 Try \`$0 --help' for more information." >&2
21249 { (exit 1); exit 1; }; };;
21250 --help | --hel | -h )
21251 echo "$ac_cs_usage"; exit ;;
21252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21254 ac_cs_silent=: ;;
21255
21256 # This is an error.
21257 -*) { echo "$as_me: error: unrecognized option: $1
21258 Try \`$0 --help' for more information." >&2
21259 { (exit 1); exit 1; }; } ;;
21260
21261 *) ac_config_targets="$ac_config_targets $1"
21262 ac_need_defaults=false ;;
21263
21264 esac
21265 shift
21266 done
21267
21268 ac_configure_extra_args=
21269
21270 if $ac_cs_silent; then
21271 exec 6>/dev/null
21272 ac_configure_extra_args="$ac_configure_extra_args --silent"
21273 fi
21274
21275 _ACEOF
21276 cat >>$CONFIG_STATUS <<_ACEOF
21277 if \$ac_cs_recheck; then
21278 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21279 CONFIG_SHELL=$SHELL
21280 export CONFIG_SHELL
21281 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21282 fi
21283
21284 _ACEOF
21285 cat >>$CONFIG_STATUS <<\_ACEOF
21286 exec 5>>config.log
21287 {
21288 echo
21289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21290 ## Running $as_me. ##
21291 _ASBOX
21292 echo "$ac_log"
21293 } >&5
21294
21295 _ACEOF
21296 cat >>$CONFIG_STATUS <<_ACEOF
21297 #
21298 # INIT-COMMANDS
21299 #
21300 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21301
21302 _ACEOF
21303
21304 cat >>$CONFIG_STATUS <<\_ACEOF
21305
21306 # Handling of arguments.
21307 for ac_config_target in $ac_config_targets
21308 do
21309 case $ac_config_target in
21310 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21311 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21313 "pthread-stubs.pc") CONFIG_FILES="$CONFIG_FILES pthread-stubs.pc" ;;
21314
21315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21317 { (exit 1); exit 1; }; };;
21318 esac
21319 done
21320
21321
21322 # If the user did not use the arguments to specify the items to instantiate,
21323 # then the envvar interface is used. Set only those that are not.
21324 # We use the long form for the default assignment because of an extremely
21325 # bizarre bug on SunOS 4.1.3.
21326 if $ac_need_defaults; then
21327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21330 fi
21331
21332 # Have a temporary directory for convenience. Make it in the build tree
21333 # simply because there is no reason against having it here, and in addition,
21334 # creating and moving files from /tmp can sometimes cause problems.
21335 # Hook for its removal unless debugging.
21336 # Note that there is a small window in which the directory will not be cleaned:
21337 # after its creation but before its name has been assigned to `$tmp'.
21338 $debug ||
21339 {
21340 tmp=
21341 trap 'exit_status=$?
21342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21343 ' 0
21344 trap '{ (exit 1); exit 1; }' 1 2 13 15
21345 }
21346 # Create a (secure) tmp directory for tmp files.
21347
21348 {
21349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21350 test -n "$tmp" && test -d "$tmp"
21351 } ||
21352 {
21353 tmp=./conf$$-$RANDOM
21354 (umask 077 && mkdir "$tmp")
21355 } ||
21356 {
21357 echo "$me: cannot create a temporary directory in ." >&2
21358 { (exit 1); exit 1; }
21359 }
21360
21361 #
21362 # Set up the sed scripts for CONFIG_FILES section.
21363 #
21364
21365 # No need to generate the scripts if there are no CONFIG_FILES.
21366 # This happens for instance when ./config.status config.h
21367 if test -n "$CONFIG_FILES"; then
21368
21369 _ACEOF
21370
21371
21372
21373 ac_delim='%!_!# '
21374 for ac_last_try in false false false false false :; do
21375 cat >conf$$subs.sed <<_ACEOF
21376 SHELL!$SHELL$ac_delim
21377 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21378 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21379 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21380 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21381 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21382 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21383 exec_prefix!$exec_prefix$ac_delim
21384 prefix!$prefix$ac_delim
21385 program_transform_name!$program_transform_name$ac_delim
21386 bindir!$bindir$ac_delim
21387 sbindir!$sbindir$ac_delim
21388 libexecdir!$libexecdir$ac_delim
21389 datarootdir!$datarootdir$ac_delim
21390 datadir!$datadir$ac_delim
21391 sysconfdir!$sysconfdir$ac_delim
21392 sharedstatedir!$sharedstatedir$ac_delim
21393 localstatedir!$localstatedir$ac_delim
21394 includedir!$includedir$ac_delim
21395 oldincludedir!$oldincludedir$ac_delim
21396 docdir!$docdir$ac_delim
21397 infodir!$infodir$ac_delim
21398 htmldir!$htmldir$ac_delim
21399 dvidir!$dvidir$ac_delim
21400 pdfdir!$pdfdir$ac_delim
21401 psdir!$psdir$ac_delim
21402 libdir!$libdir$ac_delim
21403 localedir!$localedir$ac_delim
21404 mandir!$mandir$ac_delim
21405 DEFS!$DEFS$ac_delim
21406 ECHO_C!$ECHO_C$ac_delim
21407 ECHO_N!$ECHO_N$ac_delim
21408 ECHO_T!$ECHO_T$ac_delim
21409 LIBS!$LIBS$ac_delim
21410 build_alias!$build_alias$ac_delim
21411 host_alias!$host_alias$ac_delim
21412 target_alias!$target_alias$ac_delim
21413 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21414 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21415 INSTALL_DATA!$INSTALL_DATA$ac_delim
21416 CYGPATH_W!$CYGPATH_W$ac_delim
21417 PACKAGE!$PACKAGE$ac_delim
21418 VERSION!$VERSION$ac_delim
21419 ACLOCAL!$ACLOCAL$ac_delim
21420 AUTOCONF!$AUTOCONF$ac_delim
21421 AUTOMAKE!$AUTOMAKE$ac_delim
21422 AUTOHEADER!$AUTOHEADER$ac_delim
21423 MAKEINFO!$MAKEINFO$ac_delim
21424 install_sh!$install_sh$ac_delim
21425 STRIP!$STRIP$ac_delim
21426 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21427 mkdir_p!$mkdir_p$ac_delim
21428 AWK!$AWK$ac_delim
21429 SET_MAKE!$SET_MAKE$ac_delim
21430 am__leading_dot!$am__leading_dot$ac_delim
21431 AMTAR!$AMTAR$ac_delim
21432 am__tar!$am__tar$ac_delim
21433 am__untar!$am__untar$ac_delim
21434 build!$build$ac_delim
21435 build_cpu!$build_cpu$ac_delim
21436 build_vendor!$build_vendor$ac_delim
21437 build_os!$build_os$ac_delim
21438 host!$host$ac_delim
21439 host_cpu!$host_cpu$ac_delim
21440 host_vendor!$host_vendor$ac_delim
21441 host_os!$host_os$ac_delim
21442 CC!$CC$ac_delim
21443 CFLAGS!$CFLAGS$ac_delim
21444 LDFLAGS!$LDFLAGS$ac_delim
21445 CPPFLAGS!$CPPFLAGS$ac_delim
21446 ac_ct_CC!$ac_ct_CC$ac_delim
21447 EXEEXT!$EXEEXT$ac_delim
21448 OBJEXT!$OBJEXT$ac_delim
21449 DEPDIR!$DEPDIR$ac_delim
21450 am__include!$am__include$ac_delim
21451 am__quote!$am__quote$ac_delim
21452 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21453 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21454 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21455 CCDEPMODE!$CCDEPMODE$ac_delim
21456 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21457 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21458 GREP!$GREP$ac_delim
21459 EGREP!$EGREP$ac_delim
21460 LN_S!$LN_S$ac_delim
21461 ECHO!$ECHO$ac_delim
21462 AR!$AR$ac_delim
21463 RANLIB!$RANLIB$ac_delim
21464 CPP!$CPP$ac_delim
21465 CXX!$CXX$ac_delim
21466 CXXFLAGS!$CXXFLAGS$ac_delim
21467 ac_ct_CXX!$ac_ct_CXX$ac_delim
21468 CXXDEPMODE!$CXXDEPMODE$ac_delim
21469 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21470 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21471 CXXCPP!$CXXCPP$ac_delim
21472 F77!$F77$ac_delim
21473 _ACEOF
21474
21475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21476 break
21477 elif $ac_last_try; then
21478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21479 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21480 { (exit 1); exit 1; }; }
21481 else
21482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21483 fi
21484 done
21485
21486 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21487 if test -n "$ac_eof"; then
21488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21489 ac_eof=`expr $ac_eof + 1`
21490 fi
21491
21492 cat >>$CONFIG_STATUS <<_ACEOF
21493 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21495 _ACEOF
21496 sed '
21497 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21498 s/^/s,@/; s/!/@,|#_!!_#|/
21499 :n
21500 t n
21501 s/'"$ac_delim"'$/,g/; t
21502 s/$/\\/; p
21503 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21504 ' >>$CONFIG_STATUS <conf$$subs.sed
21505 rm -f conf$$subs.sed
21506 cat >>$CONFIG_STATUS <<_ACEOF
21507 CEOF$ac_eof
21508 _ACEOF
21509
21510
21511 ac_delim='%!_!# '
21512 for ac_last_try in false false false false false :; do
21513 cat >conf$$subs.sed <<_ACEOF
21514 FFLAGS!$FFLAGS$ac_delim
21515 ac_ct_F77!$ac_ct_F77$ac_delim
21516 LIBTOOL!$LIBTOOL$ac_delim
21517 PKG_CONFIG_LIBS!$PKG_CONFIG_LIBS$ac_delim
21518 BUILD_LIB_TRUE!$BUILD_LIB_TRUE$ac_delim
21519 BUILD_LIB_FALSE!$BUILD_LIB_FALSE$ac_delim
21520 LIBOBJS!$LIBOBJS$ac_delim
21521 LTLIBOBJS!$LTLIBOBJS$ac_delim
21522 _ACEOF
21523
21524 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
21525 break
21526 elif $ac_last_try; then
21527 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21528 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21529 { (exit 1); exit 1; }; }
21530 else
21531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21532 fi
21533 done
21534
21535 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21536 if test -n "$ac_eof"; then
21537 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21538 ac_eof=`expr $ac_eof + 1`
21539 fi
21540
21541 cat >>$CONFIG_STATUS <<_ACEOF
21542 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21544 _ACEOF
21545 sed '
21546 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21547 s/^/s,@/; s/!/@,|#_!!_#|/
21548 :n
21549 t n
21550 s/'"$ac_delim"'$/,g/; t
21551 s/$/\\/; p
21552 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21553 ' >>$CONFIG_STATUS <conf$$subs.sed
21554 rm -f conf$$subs.sed
21555 cat >>$CONFIG_STATUS <<_ACEOF
21556 :end
21557 s/|#_!!_#|//g
21558 CEOF$ac_eof
21559 _ACEOF
21560
21561
21562 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21563 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21564 # trailing colons and then remove the whole line if VPATH becomes empty
21565 # (actually we leave an empty line to preserve line numbers).
21566 if test "x$srcdir" = x.; then
21567 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21568 s/:*\$(srcdir):*/:/
21569 s/:*\${srcdir}:*/:/
21570 s/:*@srcdir@:*/:/
21571 s/^\([^=]*=[ ]*\):*/\1/
21572 s/:*$//
21573 s/^[^=]*=[ ]*$//
21574 }'
21575 fi
21576
21577 cat >>$CONFIG_STATUS <<\_ACEOF
21578 fi # test -n "$CONFIG_FILES"
21579
21580
21581 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21582 do
21583 case $ac_tag in
21584 :[FHLC]) ac_mode=$ac_tag; continue;;
21585 esac
21586 case $ac_mode$ac_tag in
21587 :[FHL]*:*);;
21588 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21589 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21590 { (exit 1); exit 1; }; };;
21591 :[FH]-) ac_tag=-:-;;
21592 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21593 esac
21594 ac_save_IFS=$IFS
21595 IFS=:
21596 set x $ac_tag
21597 IFS=$ac_save_IFS
21598 shift
21599 ac_file=$1
21600 shift
21601
21602 case $ac_mode in
21603 :L) ac_source=$1;;
21604 :[FH])
21605 ac_file_inputs=
21606 for ac_f
21607 do
21608 case $ac_f in
21609 -) ac_f="$tmp/stdin";;
21610 *) # Look for the file first in the build tree, then in the source tree
21611 # (if the path is not absolute). The absolute path cannot be DOS-style,
21612 # because $ac_f cannot contain `:'.
21613 test -f "$ac_f" ||
21614 case $ac_f in
21615 [\\/$]*) false;;
21616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21617 esac ||
21618 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21619 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21620 { (exit 1); exit 1; }; };;
21621 esac
21622 ac_file_inputs="$ac_file_inputs $ac_f"
21623 done
21624
21625 # Let's still pretend it is `configure' which instantiates (i.e., don't
21626 # use $as_me), people would be surprised to read:
21627 # /* config.h. Generated by config.status. */
21628 configure_input="Generated from "`IFS=:
21629 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21630 if test x"$ac_file" != x-; then
21631 configure_input="$ac_file. $configure_input"
21632 { echo "$as_me:$LINENO: creating $ac_file" >&5
21633 echo "$as_me: creating $ac_file" >&6;}
21634 fi
21635
21636 case $ac_tag in
21637 *:-:* | *:-) cat >"$tmp/stdin";;
21638 esac
21639 ;;
21640 esac
21641
21642 ac_dir=`$as_dirname -- "$ac_file" ||
21643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21644 X"$ac_file" : 'X\(//\)[^/]' \| \
21645 X"$ac_file" : 'X\(//\)$' \| \
21646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21647 echo X"$ac_file" |
21648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21649 s//\1/
21650 q
21651 }
21652 /^X\(\/\/\)[^/].*/{
21653 s//\1/
21654 q
21655 }
21656 /^X\(\/\/\)$/{
21657 s//\1/
21658 q
21659 }
21660 /^X\(\/\).*/{
21661 s//\1/
21662 q
21663 }
21664 s/.*/./; q'`
21665 { as_dir="$ac_dir"
21666 case $as_dir in #(
21667 -*) as_dir=./$as_dir;;
21668 esac
21669 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21670 as_dirs=
21671 while :; do
21672 case $as_dir in #(
21673 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21674 *) as_qdir=$as_dir;;
21675 esac
21676 as_dirs="'$as_qdir' $as_dirs"
21677 as_dir=`$as_dirname -- "$as_dir" ||
21678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679 X"$as_dir" : 'X\(//\)[^/]' \| \
21680 X"$as_dir" : 'X\(//\)$' \| \
21681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21682 echo X"$as_dir" |
21683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21684 s//\1/
21685 q
21686 }
21687 /^X\(\/\/\)[^/].*/{
21688 s//\1/
21689 q
21690 }
21691 /^X\(\/\/\)$/{
21692 s//\1/
21693 q
21694 }
21695 /^X\(\/\).*/{
21696 s//\1/
21697 q
21698 }
21699 s/.*/./; q'`
21700 test -d "$as_dir" && break
21701 done
21702 test -z "$as_dirs" || eval "mkdir $as_dirs"
21703 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21704 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21705 { (exit 1); exit 1; }; }; }
21706 ac_builddir=.
21707
21708 case "$ac_dir" in
21709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21710 *)
21711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21712 # A ".." for each directory in $ac_dir_suffix.
21713 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21714 case $ac_top_builddir_sub in
21715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21717 esac ;;
21718 esac
21719 ac_abs_top_builddir=$ac_pwd
21720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21721 # for backward compatibility:
21722 ac_top_builddir=$ac_top_build_prefix
21723
21724 case $srcdir in
21725 .) # We are building in place.
21726 ac_srcdir=.
21727 ac_top_srcdir=$ac_top_builddir_sub
21728 ac_abs_top_srcdir=$ac_pwd ;;
21729 [\\/]* | ?:[\\/]* ) # Absolute name.
21730 ac_srcdir=$srcdir$ac_dir_suffix;
21731 ac_top_srcdir=$srcdir
21732 ac_abs_top_srcdir=$srcdir ;;
21733 *) # Relative name.
21734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21735 ac_top_srcdir=$ac_top_build_prefix$srcdir
21736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21737 esac
21738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21739
21740
21741 case $ac_mode in
21742 :F)
21743 #
21744 # CONFIG_FILE
21745 #
21746
21747 case $INSTALL in
21748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21750 esac
21751 _ACEOF
21752
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21754 # If the template does not know about datarootdir, expand it.
21755 # FIXME: This hack should be removed a few years after 2.60.
21756 ac_datarootdir_hack=; ac_datarootdir_seen=
21757
21758 case `sed -n '/datarootdir/ {
21759 p
21760 q
21761 }
21762 /@datadir@/p
21763 /@docdir@/p
21764 /@infodir@/p
21765 /@localedir@/p
21766 /@mandir@/p
21767 ' $ac_file_inputs` in
21768 *datarootdir*) ac_datarootdir_seen=yes;;
21769 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21770 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21771 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21772 _ACEOF
21773 cat >>$CONFIG_STATUS <<_ACEOF
21774 ac_datarootdir_hack='
21775 s&@datadir@&$datadir&g
21776 s&@docdir@&$docdir&g
21777 s&@infodir@&$infodir&g
21778 s&@localedir@&$localedir&g
21779 s&@mandir@&$mandir&g
21780 s&\\\${datarootdir}&$datarootdir&g' ;;
21781 esac
21782 _ACEOF
21783
21784 # Neutralize VPATH when `$srcdir' = `.'.
21785 # Shell code in configure.ac might set extrasub.
21786 # FIXME: do we really want to maintain this feature?
21787 cat >>$CONFIG_STATUS <<_ACEOF
21788 sed "$ac_vpsub
21789 $extrasub
21790 _ACEOF
21791 cat >>$CONFIG_STATUS <<\_ACEOF
21792 :t
21793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21794 s&@configure_input@&$configure_input&;t t
21795 s&@top_builddir@&$ac_top_builddir_sub&;t t
21796 s&@srcdir@&$ac_srcdir&;t t
21797 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21798 s&@top_srcdir@&$ac_top_srcdir&;t t
21799 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21800 s&@builddir@&$ac_builddir&;t t
21801 s&@abs_builddir@&$ac_abs_builddir&;t t
21802 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21803 s&@INSTALL@&$ac_INSTALL&;t t
21804 $ac_datarootdir_hack
21805 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21806
21807 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21808 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21810 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21811 which seems to be undefined. Please make sure it is defined." >&5
21812 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21813 which seems to be undefined. Please make sure it is defined." >&2;}
21814
21815 rm -f "$tmp/stdin"
21816 case $ac_file in
21817 -) cat "$tmp/out"; rm -f "$tmp/out";;
21818 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21819 esac
21820 ;;
21821 :H)
21822 #
21823 # CONFIG_HEADER
21824 #
21825 _ACEOF
21826
21827 # Transform confdefs.h into a sed script `conftest.defines', that
21828 # substitutes the proper values into config.h.in to produce config.h.
21829 rm -f conftest.defines conftest.tail
21830 # First, append a space to every undef/define line, to ease matching.
21831 echo 's/$/ /' >conftest.defines
21832 # Then, protect against being on the right side of a sed subst, or in
21833 # an unquoted here document, in config.status. If some macros were
21834 # called several times there might be several #defines for the same
21835 # symbol, which is useless. But do not sort them, since the last
21836 # AC_DEFINE must be honored.
21837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21838 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21839 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21840 # PARAMS is the parameter list in the macro definition--in most cases, it's
21841 # just an empty string.
21842 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21843 ac_dB='\\)[ (].*,\\1define\\2'
21844 ac_dC=' '
21845 ac_dD=' ,'
21846
21847 uniq confdefs.h |
21848 sed -n '
21849 t rset
21850 :rset
21851 s/^[ ]*#[ ]*define[ ][ ]*//
21852 t ok
21853 d
21854 :ok
21855 s/[\\&,]/\\&/g
21856 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21857 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21858 ' >>conftest.defines
21859
21860 # Remove the space that was appended to ease matching.
21861 # Then replace #undef with comments. This is necessary, for
21862 # example, in the case of _POSIX_SOURCE, which is predefined and required
21863 # on some systems where configure will not decide to define it.
21864 # (The regexp can be short, since the line contains either #define or #undef.)
21865 echo 's/ $//
21866 s,^[ #]*u.*,/* & */,' >>conftest.defines
21867
21868 # Break up conftest.defines:
21869 ac_max_sed_lines=50
21870
21871 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21872 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21873 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21874 # et cetera.
21875 ac_in='$ac_file_inputs'
21876 ac_out='"$tmp/out1"'
21877 ac_nxt='"$tmp/out2"'
21878
21879 while :
21880 do
21881 # Write a here document:
21882 cat >>$CONFIG_STATUS <<_ACEOF
21883 # First, check the format of the line:
21884 cat >"\$tmp/defines.sed" <<\\CEOF
21885 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21886 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21887 b
21888 :def
21889 _ACEOF
21890 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21891 echo 'CEOF
21892 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21893 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21894 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21895 grep . conftest.tail >/dev/null || break
21896 rm -f conftest.defines
21897 mv conftest.tail conftest.defines
21898 done
21899 rm -f conftest.defines conftest.tail
21900
21901 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21902 cat >>$CONFIG_STATUS <<\_ACEOF
21903 if test x"$ac_file" != x-; then
21904 echo "/* $configure_input */" >"$tmp/config.h"
21905 cat "$ac_result" >>"$tmp/config.h"
21906 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21907 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21908 echo "$as_me: $ac_file is unchanged" >&6;}
21909 else
21910 rm -f $ac_file
21911 mv "$tmp/config.h" $ac_file
21912 fi
21913 else
21914 echo "/* $configure_input */"
21915 cat "$ac_result"
21916 fi
21917 rm -f "$tmp/out12"
21918 # Compute $ac_file's index in $config_headers.
21919 _am_stamp_count=1
21920 for _am_header in $config_headers :; do
21921 case $_am_header in
21922 $ac_file | $ac_file:* )
21923 break ;;
21924 * )
21925 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21926 esac
21927 done
21928 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21929 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21930 X$ac_file : 'X\(//\)[^/]' \| \
21931 X$ac_file : 'X\(//\)$' \| \
21932 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21933 echo X$ac_file |
21934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21935 s//\1/
21936 q
21937 }
21938 /^X\(\/\/\)[^/].*/{
21939 s//\1/
21940 q
21941 }
21942 /^X\(\/\/\)$/{
21943 s//\1/
21944 q
21945 }
21946 /^X\(\/\).*/{
21947 s//\1/
21948 q
21949 }
21950 s/.*/./; q'`/stamp-h$_am_stamp_count
21951 ;;
21952
21953 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21954 echo "$as_me: executing $ac_file commands" >&6;}
21955 ;;
21956 esac
21957
21958
21959 case $ac_file$ac_mode in
21960 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21961 # Strip MF so we end up with the name of the file.
21962 mf=`echo "$mf" | sed -e 's/:.*$//'`
21963 # Check whether this is an Automake generated Makefile or not.
21964 # We used to match only the files named `Makefile.in', but
21965 # some people rename them; so instead we look at the file content.
21966 # Grep'ing the first line is not enough: some people post-process
21967 # each Makefile.in and add a new line on top of each file to say so.
21968 # So let's grep whole file.
21969 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21970 dirpart=`$as_dirname -- "$mf" ||
21971 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21972 X"$mf" : 'X\(//\)[^/]' \| \
21973 X"$mf" : 'X\(//\)$' \| \
21974 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21975 echo X"$mf" |
21976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21977 s//\1/
21978 q
21979 }
21980 /^X\(\/\/\)[^/].*/{
21981 s//\1/
21982 q
21983 }
21984 /^X\(\/\/\)$/{
21985 s//\1/
21986 q
21987 }
21988 /^X\(\/\).*/{
21989 s//\1/
21990 q
21991 }
21992 s/.*/./; q'`
21993 else
21994 continue
21995 fi
21996 # Extract the definition of DEPDIR, am__include, and am__quote
21997 # from the Makefile without running `make'.
21998 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21999 test -z "$DEPDIR" && continue
22000 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22001 test -z "am__include" && continue
22002 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22003 # When using ansi2knr, U may be empty or an underscore; expand it
22004 U=`sed -n 's/^U = //p' < "$mf"`
22005 # Find all dependency output files, they are included files with
22006 # $(DEPDIR) in their names. We invoke sed twice because it is the
22007 # simplest approach to changing $(DEPDIR) to its actual value in the
22008 # expansion.
22009 for file in `sed -n "
22010 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22011 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22012 # Make sure the directory exists.
22013 test -f "$dirpart/$file" && continue
22014 fdir=`$as_dirname -- "$file" ||
22015 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22016 X"$file" : 'X\(//\)[^/]' \| \
22017 X"$file" : 'X\(//\)$' \| \
22018 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22019 echo X"$file" |
22020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22021 s//\1/
22022 q
22023 }
22024 /^X\(\/\/\)[^/].*/{
22025 s//\1/
22026 q
22027 }
22028 /^X\(\/\/\)$/{
22029 s//\1/
22030 q
22031 }
22032 /^X\(\/\).*/{
22033 s//\1/
22034 q
22035 }
22036 s/.*/./; q'`
22037 { as_dir=$dirpart/$fdir
22038 case $as_dir in #(
22039 -*) as_dir=./$as_dir;;
22040 esac
22041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22042 as_dirs=
22043 while :; do
22044 case $as_dir in #(
22045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22046 *) as_qdir=$as_dir;;
22047 esac
22048 as_dirs="'$as_qdir' $as_dirs"
22049 as_dir=`$as_dirname -- "$as_dir" ||
22050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22051 X"$as_dir" : 'X\(//\)[^/]' \| \
22052 X"$as_dir" : 'X\(//\)$' \| \
22053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22054 echo X"$as_dir" |
22055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22056 s//\1/
22057 q
22058 }
22059 /^X\(\/\/\)[^/].*/{
22060 s//\1/
22061 q
22062 }
22063 /^X\(\/\/\)$/{
22064 s//\1/
22065 q
22066 }
22067 /^X\(\/\).*/{
22068 s//\1/
22069 q
22070 }
22071 s/.*/./; q'`
22072 test -d "$as_dir" && break
22073 done
22074 test -z "$as_dirs" || eval "mkdir $as_dirs"
22075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22076 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22077 { (exit 1); exit 1; }; }; }
22078 # echo "creating $dirpart/$file"
22079 echo '# dummy' > "$dirpart/$file"
22080 done
22081 done
22082 ;;
22083
22084 esac
22085 done # for ac_tag
22086
22087
22088 { (exit 0); exit 0; }
22089 _ACEOF
22090 chmod +x $CONFIG_STATUS
22091 ac_clean_files=$ac_clean_files_save
22092
22093
22094 # configure is writing to config.log, and then calls config.status.
22095 # config.status does its own redirection, appending to config.log.
22096 # Unfortunately, on DOS this fails, as config.log is still kept open
22097 # by configure, so config.status won't be able to write to it; its
22098 # output is simply discarded. So we exec the FD to /dev/null,
22099 # effectively closing config.log, so it can be properly (re)opened and
22100 # appended to by config.status. When coming back to configure, we
22101 # need to make the FD available again.
22102 if test "$no_create" != yes; then
22103 ac_cs_success=:
22104 ac_config_status_args=
22105 test "$silent" = yes &&
22106 ac_config_status_args="$ac_config_status_args --quiet"
22107 exec 5>/dev/null
22108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22109 exec 5>>config.log
22110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22111 # would make configure fail if this is the last instruction.
22112 $ac_cs_success || { (exit 1); exit 1; }
22113 fi
22114
22115