Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for ots 0.4.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 [email protected] 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='ots'
715 PACKAGE_TARNAME='ots'
716 PACKAGE_VERSION='0.4.2'
717 PACKAGE_STRING='ots 0.4.2'
718 PACKAGE_BUGREPORT='[email protected]'
719
720 ac_unique_file="src/libots.h"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #if HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #if HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #if STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # if HAVE_STDLIB_H
735 # include <stdlib.h>
736 # endif
737 #endif
738 #if HAVE_STRING_H
739 # if !STDC_HEADERS && HAVE_MEMORY_H
740 # include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #if HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #if HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #if HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #if 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 POPT_REQUIRED
795 OTS_MAJOR_VERSION
796 OTS_MINOR_VERSION
797 OTS_MICRO_VERSION
798 OTS_VERSION
799 VERSION_INFO
800 INSTALL_PROGRAM
801 INSTALL_SCRIPT
802 INSTALL_DATA
803 PACKAGE
804 VERSION
805 ACLOCAL
806 AUTOCONF
807 AUTOMAKE
808 AUTOHEADER
809 MAKEINFO
810 SET_MAKE
811 MAINTAINER_MODE_TRUE
812 MAINTAINER_MODE_FALSE
813 MAINT
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 ANSI_CFLAGS
822 build
823 build_cpu
824 build_vendor
825 build_os
826 host
827 host_cpu
828 host_vendor
829 host_os
830 GREP
831 EGREP
832 LN_S
833 ECHO
834 AR
835 RANLIB
836 STRIP
837 DLLTOOL
838 AS
839 OBJDUMP
840 CPP
841 CXX
842 CXXFLAGS
843 ac_ct_CXX
844 CXXCPP
845 F77
846 FFLAGS
847 ac_ct_F77
848 LIBTOOL
849 PKG_CONFIG
850 OTS_CFLAGS
851 OTS_LIBS
852 POPT_LIBS
853 OS_WIN32_TRUE
854 OS_WIN32_FALSE
855 PLATFORM_WIN32_TRUE
856 PLATFORM_WIN32_FALSE
857 HTML_DIR
858 GTKDOC
859 DB2HTML
860 HAVE_DOCBOOK_TRUE
861 HAVE_DOCBOOK_FALSE
862 ENABLE_GTK_DOC_TRUE
863 ENABLE_GTK_DOC_FALSE
864 LIBOBJS
865 LTLIBOBJS'
866 ac_subst_files=''
867 ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 CPPFLAGS
874 CPP
875 CXX
876 CXXFLAGS
877 CCC
878 CXXCPP
879 F77
880 FFLAGS'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
987 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988 { (exit 1); exit 1; }; }
989 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
990 eval enable_$ac_feature=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1009 eval enable_$ac_feature=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1175
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1198
1199 -with-* | --with-*)
1200 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package| sed 's/-/_/g'`
1206 eval with_$ac_package=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/-/_/g'`
1215 eval with_$ac_package=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1264 fi
1265
1266 # Be sure to have absolute directory names.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$0" : 'X\(//\)[^/]' \| \
1322 X"$0" : 'X\(//\)$' \| \
1323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324 echo X"$0" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures ots 0.4.2 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/ots]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of ots 0.4.2:";;
1454 esac
1455 cat <<\_ACEOF
1456
1457 Optional Features:
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-maintainer-mode enable make rules and dependencies not useful
1461 (and sometimes confusing) to the casual installer
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --disable-gtk-doc use gtk-doc to build documentation default=yes
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-pic try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-tags[=TAGS] include additional configurations [automatic]
1476 --with-popt-prefix=DIR
1477 specify under which prefix popt is installed.
1478 --with-html-dir=PATH path to installed docs
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1490 CXXCPP C++ preprocessor
1491 F77 Fortran 77 compiler command
1492 FFLAGS Fortran 77 compiler flags
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <[email protected]>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" || continue
1506 ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525 .) # We are building in place.
1526 ac_srcdir=.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1548 else
1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1552 done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557 cat <<\_ACEOF
1558 ots configure 0.4.2
1559 generated by GNU Autoconf 2.60
1560
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1571
1572 It was created by ots $as_me 0.4.2, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1574
1575 $ $0 $@
1576
1577 _ACEOF
1578 exec 5>>config.log
1579 {
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1584
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601
1602 _ASUNAME
1603
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1612
1613 } >&5
1614
1615 cat >&5 <<_ACEOF
1616
1617
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1621
1622 _ACEOF
1623
1624
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1635 do
1636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
1643 *\'*)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645 esac
1646 case $ac_pass in
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648 2)
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1652 else
1653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
1664 fi
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1666 ;;
1667 esac
1668 done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
1682
1683 cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
1690 (
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1702 esac ;;
1703 esac
1704 done
1705 (set) 2>&1 |
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1708 sed -n \
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
1712 *)
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714 ;;
1715 esac |
1716 sort
1717 )
1718 echo
1719
1720 cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
1728 eval ac_val=\$$ac_var
1729 case $ac_val in
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 esac
1732 echo "$ac_var='\''$ac_val'\''"
1733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1752 fi
1753
1754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760 echo
1761 cat confdefs.h
1762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1767 } >&5
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 exit $exit_status
1771 ' 0
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1776
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1779
1780 # Predefined preprocessor variables.
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1805
1806
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1816 fi
1817 shift
1818 for ac_site_file
1819 do
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826 done
1827
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834 case $cache_file in
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1837 esac
1838 fi
1839 else
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842 >$cache_file
1843 fi
1844
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1854 set,)
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,set)
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 esac
1884 fi
1885 done
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1892 fi
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
1926
1927 POPT_REQUIRED=1.5
1928
1929
1930 # Making releases:
1931 # OTS_MICRO_VERSION += 1;
1932 # OTS_INTERFACE_AGE += 1;
1933 # OTS_BINARY_AGE += 1;
1934 # if any functions have been added, set OTS_INTERFACE_AGE to 0.
1935 # if backwards compatibility has been broken,
1936 # set OTS_BINARY_AGE and OTS_INTERFACE_AGE to 0.
1937 #
1938 OTS_MAJOR_VERSION=0
1939 OTS_MINOR_VERSION=5
1940 OTS_MICRO_VERSION=0
1941 OTS_VERSION=$OTS_MAJOR_VERSION.$OTS_MINOR_VERSION.$OTS_MICRO_VERSION
1942
1943
1944
1945
1946
1947
1948 # libtool versioning
1949 VERSION_INFO=`expr $OTS_MAJOR_VERSION + $OTS_MINOR_VERSION`:$OTS_MICRO_VERSION:$OTS_MINOR_VERSION
1950
1951
1952 # For automake.
1953 PACKAGE=ots
1954
1955
1956 ac_config_headers="$ac_config_headers ots-config.h"
1957
1958 ac_config_commands="$ac_config_commands default-1"
1959
1960 am__api_version="1.4"
1961 ac_aux_dir=
1962 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1963 if test -f "$ac_dir/install-sh"; then
1964 ac_aux_dir=$ac_dir
1965 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 break
1967 elif test -f "$ac_dir/install.sh"; then
1968 ac_aux_dir=$ac_dir
1969 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 break
1971 elif test -f "$ac_dir/shtool"; then
1972 ac_aux_dir=$ac_dir
1973 ac_install_sh="$ac_aux_dir/shtool install -c"
1974 break
1975 fi
1976 done
1977 if test -z "$ac_aux_dir"; then
1978 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1979 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1980 { (exit 1); exit 1; }; }
1981 fi
1982
1983 # These three variables are undocumented and unsupported,
1984 # and are intended to be withdrawn in a future Autoconf release.
1985 # They can cause serious problems if a builder's source tree is in a directory
1986 # whose full name contains unusual characters.
1987 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1988 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1989 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1990
1991
1992 # Find a good install program. We prefer a C program (faster),
1993 # so one script is as good as another. But avoid the broken or
1994 # incompatible versions:
1995 # SysV /etc/install, /usr/sbin/install
1996 # SunOS /usr/etc/install
1997 # IRIX /sbin/install
1998 # AIX /bin/install
1999 # AmigaOS /C/install, which installs bootblocks on floppy discs
2000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2003 # OS/2's system install, which has a completely different semantic
2004 # ./install, which can be erroneously created by make from ./install.sh.
2005 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2006 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2007 if test -z "$INSTALL"; then
2008 if test "${ac_cv_path_install+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 # Account for people who put trailing slashes in PATH elements.
2017 case $as_dir/ in
2018 ./ | .// | /cC/* | \
2019 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2020 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2021 /usr/ucb/* ) ;;
2022 *)
2023 # OSF1 and SCO ODT 3.0 have their own names for install.
2024 # Don't use installbsd from OSF since it installs stuff as root
2025 # by default.
2026 for ac_prog in ginstall scoinst install; do
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2029 if test $ac_prog = install &&
2030 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2031 # AIX install. It has an incompatible calling convention.
2032 :
2033 elif test $ac_prog = install &&
2034 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2035 # program-specific install script used by HP pwplus--don't use.
2036 :
2037 else
2038 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2039 break 3
2040 fi
2041 fi
2042 done
2043 done
2044 ;;
2045 esac
2046 done
2047 IFS=$as_save_IFS
2048
2049
2050 fi
2051 if test "${ac_cv_path_install+set}" = set; then
2052 INSTALL=$ac_cv_path_install
2053 else
2054 # As a last resort, use the slow shell script. Don't cache a
2055 # value for INSTALL within a source directory, because that will
2056 # break other packages using the cache if that directory is
2057 # removed, or if the value is a relative name.
2058 INSTALL=$ac_install_sh
2059 fi
2060 fi
2061 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2062 echo "${ECHO_T}$INSTALL" >&6; }
2063
2064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2065 # It thinks the first close brace ends the variable substitution.
2066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2067
2068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2069
2070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2071
2072 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2073 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2074 # Just in case
2075 sleep 1
2076 echo timestamp > conftestfile
2077 # Do `set' in a subshell so we don't clobber the current shell's
2078 # arguments. Must try -L first in case configure is actually a
2079 # symlink; some systems play weird games with the mod time of symlinks
2080 # (eg FreeBSD returns the mod time of the symlink's containing
2081 # directory).
2082 if (
2083 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2084 if test "$*" = "X"; then
2085 # -L didn't work.
2086 set X `ls -t $srcdir/configure conftestfile`
2087 fi
2088 if test "$*" != "X $srcdir/configure conftestfile" \
2089 && test "$*" != "X conftestfile $srcdir/configure"; then
2090
2091 # If neither matched, then we have a broken ls. This can happen
2092 # if, for instance, CONFIG_SHELL is bash and it inherits a
2093 # broken ls alias from the environment. This has actually
2094 # happened. Such a system could not be considered "sane".
2095 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2096 alias in your environment" >&5
2097 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2098 alias in your environment" >&2;}
2099 { (exit 1); exit 1; }; }
2100 fi
2101
2102 test "$2" = conftestfile
2103 )
2104 then
2105 # Ok.
2106 :
2107 else
2108 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2109 Check your system clock" >&5
2110 echo "$as_me: error: newly created file is older than distributed files!
2111 Check your system clock" >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114 rm -f conftest*
2115 { echo "$as_me:$LINENO: result: yes" >&5
2116 echo "${ECHO_T}yes" >&6; }
2117 test "$program_prefix" != NONE &&
2118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2119 # Use a double $ so make ignores it.
2120 test "$program_suffix" != NONE &&
2121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2122 # Double any \ or $. echo might interpret backslashes.
2123 # By default was `s,x,x', remove it if useless.
2124 cat <<\_ACEOF >conftest.sed
2125 s/[\\$]/&&/g;s/;s,x,x,$//
2126 _ACEOF
2127 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2128 rm -f conftest.sed
2129
2130 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2131 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2132 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2133 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 cat >conftest.make <<\_ACEOF
2137 SHELL = /bin/sh
2138 all:
2139 @echo '@@@%%%=$(MAKE)=@@@%%%'
2140 _ACEOF
2141 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2142 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2143 *@@@%%%=?*=@@@%%%*)
2144 eval ac_cv_prog_make_${ac_make}_set=yes;;
2145 *)
2146 eval ac_cv_prog_make_${ac_make}_set=no;;
2147 esac
2148 rm -f conftest.make
2149 fi
2150 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2151 { echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6; }
2153 SET_MAKE=
2154 else
2155 { echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6; }
2157 SET_MAKE="MAKE=${MAKE-make}"
2158 fi
2159
2160
2161 PACKAGE=$PACKAGE
2162
2163 VERSION=$OTS_VERSION
2164
2165 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2166 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2167 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE "$PACKAGE"
2173 _ACEOF
2174
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define VERSION "$VERSION"
2178 _ACEOF
2179
2180
2181
2182 missing_dir=`cd $ac_aux_dir && pwd`
2183 { echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2184 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6; }
2185 # Run test in a subshell; some versions of sh will print an error if
2186 # an executable is not found, even if stderr is redirected.
2187 # Redirect stdin to placate older versions of autoconf. Sigh.
2188 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2189 ACLOCAL=aclocal-${am__api_version}
2190 { echo "$as_me:$LINENO: result: found" >&5
2191 echo "${ECHO_T}found" >&6; }
2192 else
2193 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2194 { echo "$as_me:$LINENO: result: missing" >&5
2195 echo "${ECHO_T}missing" >&6; }
2196 fi
2197
2198 { echo "$as_me:$LINENO: checking for working autoconf" >&5
2199 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
2200 # Run test in a subshell; some versions of sh will print an error if
2201 # an executable is not found, even if stderr is redirected.
2202 # Redirect stdin to placate older versions of autoconf. Sigh.
2203 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2204 AUTOCONF=autoconf
2205 { echo "$as_me:$LINENO: result: found" >&5
2206 echo "${ECHO_T}found" >&6; }
2207 else
2208 AUTOCONF="$missing_dir/missing autoconf"
2209 { echo "$as_me:$LINENO: result: missing" >&5
2210 echo "${ECHO_T}missing" >&6; }
2211 fi
2212
2213 { echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2214 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6; }
2215 # Run test in a subshell; some versions of sh will print an error if
2216 # an executable is not found, even if stderr is redirected.
2217 # Redirect stdin to placate older versions of autoconf. Sigh.
2218 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2219 AUTOMAKE=automake-${am__api_version}
2220 { echo "$as_me:$LINENO: result: found" >&5
2221 echo "${ECHO_T}found" >&6; }
2222 else
2223 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2224 { echo "$as_me:$LINENO: result: missing" >&5
2225 echo "${ECHO_T}missing" >&6; }
2226 fi
2227
2228 { echo "$as_me:$LINENO: checking for working autoheader" >&5
2229 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
2230 # Run test in a subshell; some versions of sh will print an error if
2231 # an executable is not found, even if stderr is redirected.
2232 # Redirect stdin to placate older versions of autoconf. Sigh.
2233 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2234 AUTOHEADER=autoheader
2235 { echo "$as_me:$LINENO: result: found" >&5
2236 echo "${ECHO_T}found" >&6; }
2237 else
2238 AUTOHEADER="$missing_dir/missing autoheader"
2239 { echo "$as_me:$LINENO: result: missing" >&5
2240 echo "${ECHO_T}missing" >&6; }
2241 fi
2242
2243 { echo "$as_me:$LINENO: checking for working makeinfo" >&5
2244 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6; }
2245 # Run test in a subshell; some versions of sh will print an error if
2246 # an executable is not found, even if stderr is redirected.
2247 # Redirect stdin to placate older versions of autoconf. Sigh.
2248 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2249 MAKEINFO=makeinfo
2250 { echo "$as_me:$LINENO: result: found" >&5
2251 echo "${ECHO_T}found" >&6; }
2252 else
2253 MAKEINFO="$missing_dir/missing makeinfo"
2254 { echo "$as_me:$LINENO: result: missing" >&5
2255 echo "${ECHO_T}missing" >&6; }
2256 fi
2257
2258
2259 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2260 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2261 # Check whether --enable-maintainer-mode was given.
2262 if test "${enable_maintainer_mode+set}" = set; then
2263 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2264 else
2265 USE_MAINTAINER_MODE=no
2266 fi
2267
2268 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2269 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2270
2271
2272 if test $USE_MAINTAINER_MODE = yes; then
2273 MAINTAINER_MODE_TRUE=
2274 MAINTAINER_MODE_FALSE='#'
2275 else
2276 MAINTAINER_MODE_TRUE='#'
2277 MAINTAINER_MODE_FALSE=
2278 fi
2279 MAINT=$MAINTAINER_MODE_TRUE
2280
2281
2282
2283
2284 ac_ext=c
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2314
2315 fi
2316 fi
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 { echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6; }
2321 else
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324 fi
2325
2326
2327 fi
2328 if test -z "$ac_cv_prog_CC"; then
2329 ac_ct_CC=$CC
2330 # Extract the first word of "gcc", so it can be a program name with args.
2331 set dummy gcc; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_ac_ct_CC="gcc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351 done
2352 done
2353 IFS=$as_save_IFS
2354
2355 fi
2356 fi
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 echo "${ECHO_T}$ac_ct_CC" >&6; }
2361 else
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364 fi
2365
2366 if test "x$ac_ct_CC" = x; then
2367 CC=""
2368 else
2369 case $cross_compiling:$ac_tool_warned in
2370 yes:)
2371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372 whose name does not start with the host triplet. If you think this
2373 configuration is useful to you, please write to [email protected]." >&5
2374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to [email protected]." >&2;}
2377 ac_tool_warned=yes ;;
2378 esac
2379 CC=$ac_ct_CC
2380 fi
2381 else
2382 CC="$ac_cv_prog_CC"
2383 fi
2384
2385 if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2388 set dummy ${ac_tool_prefix}cc; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394 if test -n "$CC"; then
2395 ac_cv_prog_CC="$CC" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_CC="${ac_tool_prefix}cc"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416 { echo "$as_me:$LINENO: result: $CC" >&5
2417 echo "${ECHO_T}$CC" >&6; }
2418 else
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423
2424 fi
2425 fi
2426 if test -z "$CC"; then
2427 # Extract the first word of "cc", so it can be a program name with args.
2428 set dummy cc; ac_word=$2
2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 else
2437 ac_prog_rejected=no
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2446 ac_prog_rejected=yes
2447 continue
2448 fi
2449 ac_cv_prog_CC="cc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 if test $ac_prog_rejected = yes; then
2458 # We found a bogon in the path, so make sure we never use it.
2459 set dummy $ac_cv_prog_CC
2460 shift
2461 if test $# != 0; then
2462 # We chose a different compiler from the bogus one.
2463 # However, it has the same basename, so the bogon will be chosen
2464 # first if we set CC to just the basename; use the full file name.
2465 shift
2466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2467 fi
2468 fi
2469 fi
2470 fi
2471 CC=$ac_cv_prog_CC
2472 if test -n "$CC"; then
2473 { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2475 else
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2478 fi
2479
2480
2481 fi
2482 if test -z "$CC"; then
2483 if test -n "$ac_tool_prefix"; then
2484 for ac_prog in cl.exe
2485 do
2486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_CC+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507 done
2508 done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 CC=$ac_cv_prog_CC
2514 if test -n "$CC"; then
2515 { echo "$as_me:$LINENO: result: $CC" >&5
2516 echo "${ECHO_T}$CC" >&6; }
2517 else
2518 { echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6; }
2520 fi
2521
2522
2523 test -n "$CC" && break
2524 done
2525 fi
2526 if test -z "$CC"; then
2527 ac_ct_CC=$CC
2528 for ac_prog in cl.exe
2529 do
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 if test -n "$ac_ct_CC"; then
2538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_ac_ct_CC="$ac_prog"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2558 if test -n "$ac_ct_CC"; then
2559 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2560 echo "${ECHO_T}$ac_ct_CC" >&6; }
2561 else
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2564 fi
2565
2566
2567 test -n "$ac_ct_CC" && break
2568 done
2569
2570 if test "x$ac_ct_CC" = x; then
2571 CC=""
2572 else
2573 case $cross_compiling:$ac_tool_warned in
2574 yes:)
2575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2576 whose name does not start with the host triplet. If you think this
2577 configuration is useful to you, please write to [email protected]." >&5
2578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2579 whose name does not start with the host triplet. If you think this
2580 configuration is useful to you, please write to [email protected]." >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583 CC=$ac_ct_CC
2584 fi
2585 fi
2586
2587 fi
2588
2589
2590 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: no acceptable C compiler found in \$PATH
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }
2595
2596 # Provide some information about the compiler.
2597 echo "$as_me:$LINENO: checking for C compiler version" >&5
2598 ac_compiler=`set X $ac_compile; echo $2`
2599 { (ac_try="$ac_compiler --version >&5"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compiler --version >&5") 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609 { (ac_try="$ac_compiler -v >&5"
2610 case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compiler -v >&5") 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }
2619 { (ac_try="$ac_compiler -V >&5"
2620 case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_compiler -V >&5") 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }
2629
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636
2637 int
2638 main ()
2639 {
2640
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 ac_clean_files_save=$ac_clean_files
2646 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2647 # Try to create an executable without -o first, disregard a.out.
2648 # It will help us diagnose broken compilers, and finding out an intuition
2649 # of exeext.
2650 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2651 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2652 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2653 #
2654 # List of possible output files, starting from the most likely.
2655 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2656 # only as a last resort. b.out is created by i960 compilers.
2657 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2658 #
2659 # The IRIX 6 linker writes into existing files which may not be
2660 # executable, retaining their permissions. Remove them first so a
2661 # subsequent execution test works.
2662 ac_rmfiles=
2663 for ac_file in $ac_files
2664 do
2665 case $ac_file in
2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2667 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2668 esac
2669 done
2670 rm -f $ac_rmfiles
2671
2672 if { (ac_try="$ac_link_default"
2673 case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_link_default") 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; then
2682 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2683 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2684 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2685 # so that the user can short-circuit this test for compilers unknown to
2686 # Autoconf.
2687 for ac_file in $ac_files
2688 do
2689 test -f "$ac_file" || continue
2690 case $ac_file in
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2692 ;;
2693 [ab].out )
2694 # We found the default executable, but exeext='' is most
2695 # certainly right.
2696 break;;
2697 *.* )
2698 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2699 then :; else
2700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 fi
2702 # We set ac_cv_exeext here because the later test for it is not
2703 # safe: cross compilers may not add the suffix if given an `-o'
2704 # argument, so we may need to know it at that point already.
2705 # Even if this section looks crufty: it has the advantage of
2706 # actually working.
2707 break;;
2708 * )
2709 break;;
2710 esac
2711 done
2712 test "$ac_cv_exeext" = no && ac_cv_exeext=
2713
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: C compiler cannot create executables
2721 See \`config.log' for more details." >&2;}
2722 { (exit 77); exit 77; }; }
2723 fi
2724
2725 ac_exeext=$ac_cv_exeext
2726 { echo "$as_me:$LINENO: result: $ac_file" >&5
2727 echo "${ECHO_T}$ac_file" >&6; }
2728
2729 # Check that the compiler produces executables we can run. If not, either
2730 # the compiler is broken, or we cross compile.
2731 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734 # If not cross compiling, check that we can run a simple program.
2735 if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_try") 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 cross_compiling=no
2747 else
2748 if test "$cross_compiling" = maybe; then
2749 cross_compiling=yes
2750 else
2751 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2752 If you meant to cross compile, use \`--host'.
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: cannot run C compiled programs.
2755 If you meant to cross compile, use \`--host'.
2756 See \`config.log' for more details." >&2;}
2757 { (exit 1); exit 1; }; }
2758 fi
2759 fi
2760 fi
2761 { echo "$as_me:$LINENO: result: yes" >&5
2762 echo "${ECHO_T}yes" >&6; }
2763
2764 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2765 ac_clean_files=$ac_clean_files_save
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2769 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2770 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2771 echo "${ECHO_T}$cross_compiling" >&6; }
2772
2773 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2774 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2775 if { (ac_try="$ac_link"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2786 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2787 # work properly (i.e., refer to `conftest.exe'), while it won't with
2788 # `rm'.
2789 for ac_file in conftest.exe conftest conftest.*; do
2790 test -f "$ac_file" || continue
2791 case $ac_file in
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2794 break;;
2795 * ) break;;
2796 esac
2797 done
2798 else
2799 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2802 See \`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }
2804 fi
2805
2806 rm -f conftest$ac_cv_exeext
2807 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2808 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2809
2810 rm -f conftest.$ac_ext
2811 EXEEXT=$ac_cv_exeext
2812 ac_exeext=$EXEEXT
2813 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2814 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2815 if test "${ac_cv_objext+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824
2825 int
2826 main ()
2827 {
2828
2829 ;
2830 return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.o conftest.obj
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
2844 for ac_file in conftest.o conftest.obj conftest.*; do
2845 test -f "$ac_file" || continue;
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2848 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2849 break;;
2850 esac
2851 done
2852 else
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862
2863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2864 fi
2865 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2866 echo "${ECHO_T}$ac_cv_objext" >&6; }
2867 OBJEXT=$ac_cv_objext
2868 ac_objext=$OBJEXT
2869 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880
2881 int
2882 main ()
2883 {
2884 #ifndef __GNUC__
2885 choke me
2886 #endif
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2907 { (case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_try") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_try") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2926 ac_compiler_gnu=yes
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 ac_compiler_gnu=no
2932 fi
2933
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2936
2937 fi
2938 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2940 GCC=`test $ac_compiler_gnu = yes && echo yes`
2941 ac_test_CFLAGS=${CFLAGS+set}
2942 ac_save_CFLAGS=$CFLAGS
2943 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2944 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2945 if test "${ac_cv_prog_cc_g+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 ac_save_c_werror_flag=$ac_c_werror_flag
2949 ac_c_werror_flag=yes
2950 ac_cv_prog_cc_g=no
2951 CFLAGS="-g"
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958
2959 int
2960 main ()
2961 {
2962
2963 ;
2964 return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_cv_prog_cc_g=yes
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 CFLAGS=""
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013
3014 int
3015 main ()
3016 {
3017
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 :
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 ac_c_werror_flag=$ac_save_c_werror_flag
3062 CFLAGS="-g"
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069
3070 int
3071 main ()
3072 {
3073
3074 ;
3075 return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3086 ac_status=$?
3087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_try") 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 ac_cv_prog_cc_g=yes
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117
3118 fi
3119
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 fi
3122
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 fi
3125
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 fi
3129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3130 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132 CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134 if test "$GCC" = yes; then
3135 CFLAGS="-g -O2"
3136 else
3137 CFLAGS="-g"
3138 fi
3139 else
3140 if test "$GCC" = yes; then
3141 CFLAGS="-O2"
3142 else
3143 CFLAGS=
3144 fi
3145 fi
3146 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3147 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3148 if test "${ac_cv_prog_cc_c89+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 ac_cv_prog_cc_c89=no
3152 ac_save_CC=$CC
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #include <stdarg.h>
3160 #include <stdio.h>
3161 #include <sys/types.h>
3162 #include <sys/stat.h>
3163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3164 struct buf { int x; };
3165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3166 static char *e (p, i)
3167 char **p;
3168 int i;
3169 {
3170 return p[i];
3171 }
3172 static char *f (char * (*g) (char **, int), char **p, ...)
3173 {
3174 char *s;
3175 va_list v;
3176 va_start (v,p);
3177 s = g (p, va_arg (v,int));
3178 va_end (v);
3179 return s;
3180 }
3181
3182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3183 function prototypes and stuff, but not '\xHH' hex character constants.
3184 These don't provoke an error unfortunately, instead are silently treated
3185 as 'x'. The following induces an error, until -std is added to get
3186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3187 array size at least. It's necessary to write '\x00'==0 to get something
3188 that's true only with -std. */
3189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3190
3191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3192 inside strings and character constants. */
3193 #define FOO(x) 'x'
3194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3195
3196 int test (int i, double x);
3197 struct s1 {int (*f) (int a);};
3198 struct s2 {int (*f) (double a);};
3199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3200 int argc;
3201 char **argv;
3202 int
3203 main ()
3204 {
3205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3212 do
3213 CC="$ac_save_CC $ac_arg"
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3229 { (case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_try") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_prog_cc_c89=$ac_arg
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253
3254 fi
3255
3256 rm -f core conftest.err conftest.$ac_objext
3257 test "x$ac_cv_prog_cc_c89" != "xno" && break
3258 done
3259 rm -f conftest.$ac_ext
3260 CC=$ac_save_CC
3261
3262 fi
3263 # AC_CACHE_VAL
3264 case "x$ac_cv_prog_cc_c89" in
3265 x)
3266 { echo "$as_me:$LINENO: result: none needed" >&5
3267 echo "${ECHO_T}none needed" >&6; } ;;
3268 xno)
3269 { echo "$as_me:$LINENO: result: unsupported" >&5
3270 echo "${ECHO_T}unsupported" >&6; } ;;
3271 *)
3272 CC="$CC $ac_cv_prog_cc_c89"
3273 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3274 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3275 esac
3276
3277
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283
3284 if test "x$GCC" = "xyes"; then
3285 ANSI_CFLAGS="-Wall"
3286 else
3287 ANSI_CFLAGS=""
3288 fi
3289
3290
3291 # Find a good install program. We prefer a C program (faster),
3292 # so one script is as good as another. But avoid the broken or
3293 # incompatible versions:
3294 # SysV /etc/install, /usr/sbin/install
3295 # SunOS /usr/etc/install
3296 # IRIX /sbin/install
3297 # AIX /bin/install
3298 # AmigaOS /C/install, which installs bootblocks on floppy discs
3299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3302 # OS/2's system install, which has a completely different semantic
3303 # ./install, which can be erroneously created by make from ./install.sh.
3304 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3305 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3306 if test -z "$INSTALL"; then
3307 if test "${ac_cv_path_install+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 # Account for people who put trailing slashes in PATH elements.
3316 case $as_dir/ in
3317 ./ | .// | /cC/* | \
3318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3319 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3320 /usr/ucb/* ) ;;
3321 *)
3322 # OSF1 and SCO ODT 3.0 have their own names for install.
3323 # Don't use installbsd from OSF since it installs stuff as root
3324 # by default.
3325 for ac_prog in ginstall scoinst install; do
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3328 if test $ac_prog = install &&
3329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3330 # AIX install. It has an incompatible calling convention.
3331 :
3332 elif test $ac_prog = install &&
3333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3334 # program-specific install script used by HP pwplus--don't use.
3335 :
3336 else
3337 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3338 break 3
3339 fi
3340 fi
3341 done
3342 done
3343 ;;
3344 esac
3345 done
3346 IFS=$as_save_IFS
3347
3348
3349 fi
3350 if test "${ac_cv_path_install+set}" = set; then
3351 INSTALL=$ac_cv_path_install
3352 else
3353 # As a last resort, use the slow shell script. Don't cache a
3354 # value for INSTALL within a source directory, because that will
3355 # break other packages using the cache if that directory is
3356 # removed, or if the value is a relative name.
3357 INSTALL=$ac_install_sh
3358 fi
3359 fi
3360 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3361 echo "${ECHO_T}$INSTALL" >&6; }
3362
3363 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3364 # It thinks the first close brace ends the variable substitution.
3365 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3366
3367 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3368
3369 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3370
3371 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3372 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3373 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3374 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 cat >conftest.make <<\_ACEOF
3378 SHELL = /bin/sh
3379 all:
3380 @echo '@@@%%%=$(MAKE)=@@@%%%'
3381 _ACEOF
3382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3383 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3384 *@@@%%%=?*=@@@%%%*)
3385 eval ac_cv_prog_make_${ac_make}_set=yes;;
3386 *)
3387 eval ac_cv_prog_make_${ac_make}_set=no;;
3388 esac
3389 rm -f conftest.make
3390 fi
3391 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3392 { echo "$as_me:$LINENO: result: yes" >&5
3393 echo "${ECHO_T}yes" >&6; }
3394 SET_MAKE=
3395 else
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3398 SET_MAKE="MAKE=${MAKE-make}"
3399 fi
3400
3401
3402
3403
3404 # Check whether --enable-shared was given.
3405 if test "${enable_shared+set}" = set; then
3406 enableval=$enable_shared; p=${PACKAGE-default}
3407 case $enableval in
3408 yes) enable_shared=yes ;;
3409 no) enable_shared=no ;;
3410 *)
3411 enable_shared=no
3412 # Look at the argument we got. We use all the common list separators.
3413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3414 for pkg in $enableval; do
3415 IFS="$lt_save_ifs"
3416 if test "X$pkg" = "X$p"; then
3417 enable_shared=yes
3418 fi
3419 done
3420 IFS="$lt_save_ifs"
3421 ;;
3422 esac
3423 else
3424 enable_shared=yes
3425 fi
3426
3427
3428 # Check whether --enable-static was given.
3429 if test "${enable_static+set}" = set; then
3430 enableval=$enable_static; p=${PACKAGE-default}
3431 case $enableval in
3432 yes) enable_static=yes ;;
3433 no) enable_static=no ;;
3434 *)
3435 enable_static=no
3436 # Look at the argument we got. We use all the common list separators.
3437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3438 for pkg in $enableval; do
3439 IFS="$lt_save_ifs"
3440 if test "X$pkg" = "X$p"; then
3441 enable_static=yes
3442 fi
3443 done
3444 IFS="$lt_save_ifs"
3445 ;;
3446 esac
3447 else
3448 enable_static=yes
3449 fi
3450
3451
3452 # Check whether --enable-fast-install was given.
3453 if test "${enable_fast_install+set}" = set; then
3454 enableval=$enable_fast_install; p=${PACKAGE-default}
3455 case $enableval in
3456 yes) enable_fast_install=yes ;;
3457 no) enable_fast_install=no ;;
3458 *)
3459 enable_fast_install=no
3460 # Look at the argument we got. We use all the common list separators.
3461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3462 for pkg in $enableval; do
3463 IFS="$lt_save_ifs"
3464 if test "X$pkg" = "X$p"; then
3465 enable_fast_install=yes
3466 fi
3467 done
3468 IFS="$lt_save_ifs"
3469 ;;
3470 esac
3471 else
3472 enable_fast_install=yes
3473 fi
3474
3475
3476 # Make sure we can run config.sub.
3477 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3478 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3479 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3480 { (exit 1); exit 1; }; }
3481
3482 { echo "$as_me:$LINENO: checking build system type" >&5
3483 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3484 if test "${ac_cv_build+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 ac_build_alias=$build_alias
3488 test "x$ac_build_alias" = x &&
3489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3490 test "x$ac_build_alias" = x &&
3491 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3492 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3493 { (exit 1); exit 1; }; }
3494 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3495 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3496 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3497 { (exit 1); exit 1; }; }
3498
3499 fi
3500 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3501 echo "${ECHO_T}$ac_cv_build" >&6; }
3502 case $ac_cv_build in
3503 *-*-*) ;;
3504 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3505 echo "$as_me: error: invalid value of canonical build" >&2;}
3506 { (exit 1); exit 1; }; };;
3507 esac
3508 build=$ac_cv_build
3509 ac_save_IFS=$IFS; IFS='-'
3510 set x $ac_cv_build
3511 shift
3512 build_cpu=$1
3513 build_vendor=$2
3514 shift; shift
3515 # Remember, the first character of IFS is used to create $*,
3516 # except with old shells:
3517 build_os=$*
3518 IFS=$ac_save_IFS
3519 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3520
3521
3522 { echo "$as_me:$LINENO: checking host system type" >&5
3523 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3524 if test "${ac_cv_host+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 if test "x$host_alias" = x; then
3528 ac_cv_host=$ac_cv_build
3529 else
3530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3531 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3532 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3533 { (exit 1); exit 1; }; }
3534 fi
3535
3536 fi
3537 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3538 echo "${ECHO_T}$ac_cv_host" >&6; }
3539 case $ac_cv_host in
3540 *-*-*) ;;
3541 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3542 echo "$as_me: error: invalid value of canonical host" >&2;}
3543 { (exit 1); exit 1; }; };;
3544 esac
3545 host=$ac_cv_host
3546 ac_save_IFS=$IFS; IFS='-'
3547 set x $ac_cv_host
3548 shift
3549 host_cpu=$1
3550 host_vendor=$2
3551 shift; shift
3552 # Remember, the first character of IFS is used to create $*,
3553 # except with old shells:
3554 host_os=$*
3555 IFS=$ac_save_IFS
3556 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3557
3558
3559 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3560 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3561 if test "${lt_cv_path_SED+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 # Loop through the user's path and test for sed and gsed.
3565 # Then use that list of sed's as ones to test for truncation.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for lt_ac_prog in sed gsed; do
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3574 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3575 fi
3576 done
3577 done
3578 done
3579 lt_ac_max=0
3580 lt_ac_count=0
3581 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3582 # along with /bin/sed that truncates output.
3583 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3584 test ! -f $lt_ac_sed && continue
3585 cat /dev/null > conftest.in
3586 lt_ac_count=0
3587 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3588 # Check for GNU sed and select it if it is found.
3589 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3590 lt_cv_path_SED=$lt_ac_sed
3591 break
3592 fi
3593 while true; do
3594 cat conftest.in conftest.in >conftest.tmp
3595 mv conftest.tmp conftest.in
3596 cp conftest.in conftest.nl
3597 echo >>conftest.nl
3598 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3599 cmp -s conftest.out conftest.nl || break
3600 # 10000 chars as input seems more than enough
3601 test $lt_ac_count -gt 10 && break
3602 lt_ac_count=`expr $lt_ac_count + 1`
3603 if test $lt_ac_count -gt $lt_ac_max; then
3604 lt_ac_max=$lt_ac_count
3605 lt_cv_path_SED=$lt_ac_sed
3606 fi
3607 done
3608 done
3609
3610 fi
3611
3612 SED=$lt_cv_path_SED
3613 { echo "$as_me:$LINENO: result: $SED" >&5
3614 echo "${ECHO_T}$SED" >&6; }
3615
3616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 # Extract the first word of "grep ggrep" to use in msg output
3622 if test -z "$GREP"; then
3623 set dummy grep ggrep; ac_prog_name=$2
3624 if test "${ac_cv_path_GREP+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 ac_path_GREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 do
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_prog in grep ggrep; do
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
3639 # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3641 *GNU*)
3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 *)
3644 ac_count=0
3645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646 while :
3647 do
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
3651 echo 'GREP' >> "conftest.nl"
3652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654 ac_count=`expr $ac_count + 1`
3655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_GREP="$ac_path_GREP"
3658 ac_path_GREP_max=$ac_count
3659 fi
3660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3662 done
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664 esac
3665
3666
3667 $ac_path_GREP_found && break 3
3668 done
3669 done
3670
3671 done
3672 IFS=$as_save_IFS
3673
3674
3675 fi
3676
3677 GREP="$ac_cv_path_GREP"
3678 if test -z "$GREP"; then
3679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681 { (exit 1); exit 1; }; }
3682 fi
3683
3684 else
3685 ac_cv_path_GREP=$GREP
3686 fi
3687
3688
3689 fi
3690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3693
3694
3695 { echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3702 else
3703 # Extract the first word of "egrep" to use in msg output
3704 if test -z "$EGREP"; then
3705 set dummy egrep; ac_prog_name=$2
3706 if test "${ac_cv_path_EGREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721 # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3723 *GNU*)
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 *)
3726 ac_count=0
3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 while :
3729 do
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 echo 'EGREP' >> "conftest.nl"
3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 ac_count=`expr $ac_count + 1`
3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3741 fi
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3744 done
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3747
3748
3749 $ac_path_EGREP_found && break 3
3750 done
3751 done
3752
3753 done
3754 IFS=$as_save_IFS
3755
3756
3757 fi
3758
3759 EGREP="$ac_cv_path_EGREP"
3760 if test -z "$EGREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3764 fi
3765
3766 else
3767 ac_cv_path_EGREP=$EGREP
3768 fi
3769
3770
3771 fi
3772 fi
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3775 EGREP="$ac_cv_path_EGREP"
3776
3777
3778
3779 # Check whether --with-gnu-ld was given.
3780 if test "${with_gnu_ld+set}" = set; then
3781 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3782 else
3783 with_gnu_ld=no
3784 fi
3785
3786 ac_prog=ld
3787 if test "$GCC" = yes; then
3788 # Check if gcc -print-prog-name=ld gives a path.
3789 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3790 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3791 case $host in
3792 *-*-mingw*)
3793 # gcc leaves a trailing carriage return which upsets mingw
3794 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3795 *)
3796 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3797 esac
3798 case $ac_prog in
3799 # Accept absolute paths.
3800 [\\/]* | ?:[\\/]*)
3801 re_direlt='/[^/][^/]*/\.\./'
3802 # Canonicalize the pathname of ld
3803 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3804 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3805 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3806 done
3807 test -z "$LD" && LD="$ac_prog"
3808 ;;
3809 "")
3810 # If it fails, then pretend we aren't using GCC.
3811 ac_prog=ld
3812 ;;
3813 *)
3814 # If it is relative, then search for the first ld in PATH.
3815 with_gnu_ld=unknown
3816 ;;
3817 esac
3818 elif test "$with_gnu_ld" = yes; then
3819 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3820 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3821 else
3822 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3823 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3824 fi
3825 if test "${lt_cv_path_LD+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828 if test -z "$LD"; then
3829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3830 for ac_dir in $PATH; do
3831 IFS="$lt_save_ifs"
3832 test -z "$ac_dir" && ac_dir=.
3833 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3834 lt_cv_path_LD="$ac_dir/$ac_prog"
3835 # Check to see if the program is GNU ld. I'd rather use --version,
3836 # but apparently some variants of GNU ld only accept -v.
3837 # Break only if it was the GNU/non-GNU ld that we prefer.
3838 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3839 *GNU* | *'with BFD'*)
3840 test "$with_gnu_ld" != no && break
3841 ;;
3842 *)
3843 test "$with_gnu_ld" != yes && break
3844 ;;
3845 esac
3846 fi
3847 done
3848 IFS="$lt_save_ifs"
3849 else
3850 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3851 fi
3852 fi
3853
3854 LD="$lt_cv_path_LD"
3855 if test -n "$LD"; then
3856 { echo "$as_me:$LINENO: result: $LD" >&5
3857 echo "${ECHO_T}$LD" >&6; }
3858 else
3859 { echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6; }
3861 fi
3862 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3863 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3864 { (exit 1); exit 1; }; }
3865 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3866 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3867 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3871 case `$LD -v 2>&1 </dev/null` in
3872 *GNU* | *'with BFD'*)
3873 lt_cv_prog_gnu_ld=yes
3874 ;;
3875 *)
3876 lt_cv_prog_gnu_ld=no
3877 ;;
3878 esac
3879 fi
3880 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3881 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3882 with_gnu_ld=$lt_cv_prog_gnu_ld
3883
3884
3885 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3886 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3887 if test "${lt_cv_ld_reload_flag+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 lt_cv_ld_reload_flag='-r'
3891 fi
3892 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3893 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3894 reload_flag=$lt_cv_ld_reload_flag
3895 case $reload_flag in
3896 "" | " "*) ;;
3897 *) reload_flag=" $reload_flag" ;;
3898 esac
3899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3900 case $host_os in
3901 darwin*)
3902 if test "$GCC" = yes; then
3903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3904 else
3905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3906 fi
3907 ;;
3908 esac
3909
3910 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3911 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3912 if test "${lt_cv_path_NM+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 if test -n "$NM"; then
3916 # Let the user override the test.
3917 lt_cv_path_NM="$NM"
3918 else
3919 lt_nm_to_check="${ac_tool_prefix}nm"
3920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3921 lt_nm_to_check="$lt_nm_to_check nm"
3922 fi
3923 for lt_tmp_nm in $lt_nm_to_check; do
3924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3926 IFS="$lt_save_ifs"
3927 test -z "$ac_dir" && ac_dir=.
3928 tmp_nm="$ac_dir/$lt_tmp_nm"
3929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3930 # Check to see if the nm accepts a BSD-compat flag.
3931 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3932 # nm: unknown option "B" ignored
3933 # Tru64's nm complains that /dev/null is an invalid object file
3934 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3935 */dev/null* | *'Invalid file or object type'*)
3936 lt_cv_path_NM="$tmp_nm -B"
3937 break
3938 ;;
3939 *)
3940 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3941 */dev/null*)
3942 lt_cv_path_NM="$tmp_nm -p"
3943 break
3944 ;;
3945 *)
3946 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3947 continue # so that we can try to find one that supports BSD flags
3948 ;;
3949 esac
3950 ;;
3951 esac
3952 fi
3953 done
3954 IFS="$lt_save_ifs"
3955 done
3956 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3957 fi
3958 fi
3959 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3960 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3961 NM="$lt_cv_path_NM"
3962
3963 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3964 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3965 LN_S=$as_ln_s
3966 if test "$LN_S" = "ln -s"; then
3967 { echo "$as_me:$LINENO: result: yes" >&5
3968 echo "${ECHO_T}yes" >&6; }
3969 else
3970 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3971 echo "${ECHO_T}no, using $LN_S" >&6; }
3972 fi
3973
3974 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3975 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3976 if test "${lt_cv_deplibs_check_method+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 lt_cv_file_magic_cmd='$MAGIC_CMD'
3980 lt_cv_file_magic_test_file=
3981 lt_cv_deplibs_check_method='unknown'
3982 # Need to set the preceding variable on all platforms that support
3983 # interlibrary dependencies.
3984 # 'none' -- dependencies not supported.
3985 # `unknown' -- same as none, but documents that we really don't know.
3986 # 'pass_all' -- all dependencies passed with no checks.
3987 # 'test_compile' -- check by making test program.
3988 # 'file_magic [[regex]]' -- check by looking for files in library path
3989 # which responds to the $file_magic_cmd with a given extended regex.
3990 # If you have `file' or equivalent on your system and you're not sure
3991 # whether `pass_all' will *always* work, you probably want this one.
3992
3993 case $host_os in
3994 aix4* | aix5*)
3995 lt_cv_deplibs_check_method=pass_all
3996 ;;
3997
3998 beos*)
3999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002 bsdi[45]*)
4003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4004 lt_cv_file_magic_cmd='/usr/bin/file -L'
4005 lt_cv_file_magic_test_file=/shlib/libc.so
4006 ;;
4007
4008 cygwin*)
4009 # func_win32_libid is a shell function defined in ltmain.sh
4010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4011 lt_cv_file_magic_cmd='func_win32_libid'
4012 ;;
4013
4014 mingw* | pw32*)
4015 # Base MSYS/MinGW do not provide the 'file' command needed by
4016 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4018 lt_cv_file_magic_cmd='$OBJDUMP -f'
4019 ;;
4020
4021 darwin* | rhapsody*)
4022 lt_cv_deplibs_check_method=pass_all
4023 ;;
4024
4025 freebsd* | dragonfly*)
4026 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4027 case $host_cpu in
4028 i*86 )
4029 # Not sure whether the presence of OpenBSD here was a mistake.
4030 # Let's accept both of them until this is cleared up.
4031 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4032 lt_cv_file_magic_cmd=/usr/bin/file
4033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4034 ;;
4035 esac
4036 else
4037 lt_cv_deplibs_check_method=pass_all
4038 fi
4039 ;;
4040
4041 gnu*)
4042 lt_cv_deplibs_check_method=pass_all
4043 ;;
4044
4045 hpux10.20* | hpux11*)
4046 lt_cv_file_magic_cmd=/usr/bin/file
4047 case $host_cpu in
4048 ia64*)
4049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4050 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4051 ;;
4052 hppa*64*)
4053 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]'
4054 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4055 ;;
4056 *)
4057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4058 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4059 ;;
4060 esac
4061 ;;
4062
4063 interix3*)
4064 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4066 ;;
4067
4068 irix5* | irix6* | nonstopux*)
4069 case $LD in
4070 *-32|*"-32 ") libmagic=32-bit;;
4071 *-n32|*"-n32 ") libmagic=N32;;
4072 *-64|*"-64 ") libmagic=64-bit;;
4073 *) libmagic=never-match;;
4074 esac
4075 lt_cv_deplibs_check_method=pass_all
4076 ;;
4077
4078 # This must be Linux ELF.
4079 linux* | k*bsd*-gnu)
4080 lt_cv_deplibs_check_method=pass_all
4081 ;;
4082
4083 netbsd* | netbsdelf*-gnu)
4084 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4086 else
4087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4088 fi
4089 ;;
4090
4091 newos6*)
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4093 lt_cv_file_magic_cmd=/usr/bin/file
4094 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4095 ;;
4096
4097 nto-qnx*)
4098 lt_cv_deplibs_check_method=unknown
4099 ;;
4100
4101 openbsd*)
4102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4104 else
4105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4106 fi
4107 ;;
4108
4109 osf3* | osf4* | osf5*)
4110 lt_cv_deplibs_check_method=pass_all
4111 ;;
4112
4113 solaris*)
4114 lt_cv_deplibs_check_method=pass_all
4115 ;;
4116
4117 sysv4 | sysv4.3*)
4118 case $host_vendor in
4119 motorola)
4120 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]'
4121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4122 ;;
4123 ncr)
4124 lt_cv_deplibs_check_method=pass_all
4125 ;;
4126 sequent)
4127 lt_cv_file_magic_cmd='/bin/file'
4128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4129 ;;
4130 sni)
4131 lt_cv_file_magic_cmd='/bin/file'
4132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4133 lt_cv_file_magic_test_file=/lib/libc.so
4134 ;;
4135 siemens)
4136 lt_cv_deplibs_check_method=pass_all
4137 ;;
4138 pc)
4139 lt_cv_deplibs_check_method=pass_all
4140 ;;
4141 esac
4142 ;;
4143
4144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4145 lt_cv_deplibs_check_method=pass_all
4146 ;;
4147 esac
4148
4149 fi
4150 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4151 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4152 file_magic_cmd=$lt_cv_file_magic_cmd
4153 deplibs_check_method=$lt_cv_deplibs_check_method
4154 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4155
4156
4157
4158
4159 # If no C compiler was specified, use CC.
4160 LTCC=${LTCC-"$CC"}
4161
4162 # If no C compiler flags were specified, use CFLAGS.
4163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4164
4165 # Allow CC to be a program name with arguments.
4166 compiler=$CC
4167
4168
4169 # Check whether --enable-libtool-lock was given.
4170 if test "${enable_libtool_lock+set}" = set; then
4171 enableval=$enable_libtool_lock;
4172 fi
4173
4174 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4175
4176 # Some flags need to be propagated to the compiler or linker for good
4177 # libtool support.
4178 case $host in
4179 ia64-*-hpux*)
4180 # Find out which ABI we are using.
4181 echo 'int i;' > conftest.$ac_ext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; then
4187 case `/usr/bin/file conftest.$ac_objext` in
4188 *ELF-32*)
4189 HPUX_IA64_MODE="32"
4190 ;;
4191 *ELF-64*)
4192 HPUX_IA64_MODE="64"
4193 ;;
4194 esac
4195 fi
4196 rm -rf conftest*
4197 ;;
4198 *-*-irix6*)
4199 # Find out which ABI we are using.
4200 echo '#line 4200 "configure"' > conftest.$ac_ext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4202 (eval $ac_compile) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; then
4206 if test "$lt_cv_prog_gnu_ld" = yes; then
4207 case `/usr/bin/file conftest.$ac_objext` in
4208 *32-bit*)
4209 LD="${LD-ld} -melf32bsmip"
4210 ;;
4211 *N32*)
4212 LD="${LD-ld} -melf32bmipn32"
4213 ;;
4214 *64-bit*)
4215 LD="${LD-ld} -melf64bmip"
4216 ;;
4217 esac
4218 else
4219 case `/usr/bin/file conftest.$ac_objext` in
4220 *32-bit*)
4221 LD="${LD-ld} -32"
4222 ;;
4223 *N32*)
4224 LD="${LD-ld} -n32"
4225 ;;
4226 *64-bit*)
4227 LD="${LD-ld} -64"
4228 ;;
4229 esac
4230 fi
4231 fi
4232 rm -rf conftest*
4233 ;;
4234
4235 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4236 # Find out which ABI we are using.
4237 echo 'int i;' > conftest.$ac_ext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; then
4243 case `/usr/bin/file conftest.o` in
4244 *32-bit*)
4245 case $host in
4246 x86_64-*linux*)
4247 LD="${LD-ld} -m elf_i386"
4248 ;;
4249 ppc64-*linux*|powerpc64-*linux*)
4250 LD="${LD-ld} -m elf32ppclinux"
4251 ;;
4252 s390x-*linux*)
4253 LD="${LD-ld} -m elf_s390"
4254 ;;
4255 sparc64-*linux*)
4256 LD="${LD-ld} -m elf32_sparc"
4257 ;;
4258 esac
4259 ;;
4260 *64-bit*)
4261 case $host in
4262 x86_64-*linux*)
4263 LD="${LD-ld} -m elf_x86_64"
4264 ;;
4265 ppc*-*linux*|powerpc*-*linux*)
4266 LD="${LD-ld} -m elf64ppc"
4267 ;;
4268 s390*-*linux*)
4269 LD="${LD-ld} -m elf64_s390"
4270 ;;
4271 sparc*-*linux*)
4272 LD="${LD-ld} -m elf64_sparc"
4273 ;;
4274 esac
4275 ;;
4276 esac
4277 fi
4278 rm -rf conftest*
4279 ;;
4280
4281 *-*-sco3.2v5*)
4282 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4283 SAVE_CFLAGS="$CFLAGS"
4284 CFLAGS="$CFLAGS -belf"
4285 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4286 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4287 if test "${lt_cv_cc_needs_belf+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302
4303 int
4304 main ()
4305 {
4306
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (ac_try="$ac_link"
4313 case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_link") 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest$ac_exeext'
4336 { (case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_try") 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 lt_cv_cc_needs_belf=yes
4346 else
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 lt_cv_cc_needs_belf=no
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext \
4354 conftest$ac_exeext conftest.$ac_ext
4355 ac_ext=c
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360
4361 fi
4362 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4363 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4364 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4365 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4366 CFLAGS="$SAVE_CFLAGS"
4367 fi
4368 ;;
4369 sparc*-*solaris*)
4370 # Find out which ABI we are using.
4371 echo 'int i;' > conftest.$ac_ext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; then
4377 case `/usr/bin/file conftest.o` in
4378 *64-bit*)
4379 case $lt_cv_prog_gnu_ld in
4380 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4381 *) LD="${LD-ld} -64" ;;
4382 esac
4383 ;;
4384 esac
4385 fi
4386 rm -rf conftest*
4387 ;;
4388
4389 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4390 if test -n "$ac_tool_prefix"; then
4391 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4392 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 if test -n "$DLLTOOL"; then
4399 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 DLLTOOL=$ac_cv_prog_DLLTOOL
4419 if test -n "$DLLTOOL"; then
4420 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4421 echo "${ECHO_T}$DLLTOOL" >&6; }
4422 else
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428 fi
4429 if test -z "$ac_cv_prog_DLLTOOL"; then
4430 ac_ct_DLLTOOL=$DLLTOOL
4431 # Extract the first word of "dlltool", so it can be a program name with args.
4432 set dummy dlltool; ac_word=$2
4433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 if test -n "$ac_ct_DLLTOOL"; then
4439 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4459 if test -n "$ac_ct_DLLTOOL"; then
4460 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4461 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4462 else
4463 { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4465 fi
4466
4467 if test "x$ac_ct_DLLTOOL" = x; then
4468 DLLTOOL="false"
4469 else
4470 case $cross_compiling:$ac_tool_warned in
4471 yes:)
4472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4473 whose name does not start with the host triplet. If you think this
4474 configuration is useful to you, please write to [email protected]." >&5
4475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4476 whose name does not start with the host triplet. If you think this
4477 configuration is useful to you, please write to [email protected]." >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480 DLLTOOL=$ac_ct_DLLTOOL
4481 fi
4482 else
4483 DLLTOOL="$ac_cv_prog_DLLTOOL"
4484 fi
4485
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4488 set dummy ${ac_tool_prefix}as; ac_word=$2
4489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4491 if test "${ac_cv_prog_AS+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494 if test -n "$AS"; then
4495 ac_cv_prog_AS="$AS" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_prog_AS="${ac_tool_prefix}as"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 fi
4513 fi
4514 AS=$ac_cv_prog_AS
4515 if test -n "$AS"; then
4516 { echo "$as_me:$LINENO: result: $AS" >&5
4517 echo "${ECHO_T}$AS" >&6; }
4518 else
4519 { echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6; }
4521 fi
4522
4523
4524 fi
4525 if test -z "$ac_cv_prog_AS"; then
4526 ac_ct_AS=$AS
4527 # Extract the first word of "as", so it can be a program name with args.
4528 set dummy as; ac_word=$2
4529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 if test -n "$ac_ct_AS"; then
4535 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_ac_ct_AS="as"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4555 if test -n "$ac_ct_AS"; then
4556 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4557 echo "${ECHO_T}$ac_ct_AS" >&6; }
4558 else
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4561 fi
4562
4563 if test "x$ac_ct_AS" = x; then
4564 AS="false"
4565 else
4566 case $cross_compiling:$ac_tool_warned in
4567 yes:)
4568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4569 whose name does not start with the host triplet. If you think this
4570 configuration is useful to you, please write to [email protected]." >&5
4571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4572 whose name does not start with the host triplet. If you think this
4573 configuration is useful to you, please write to [email protected]." >&2;}
4574 ac_tool_warned=yes ;;
4575 esac
4576 AS=$ac_ct_AS
4577 fi
4578 else
4579 AS="$ac_cv_prog_AS"
4580 fi
4581
4582 if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 if test -n "$OBJDUMP"; then
4591 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 OBJDUMP=$ac_cv_prog_OBJDUMP
4611 if test -n "$OBJDUMP"; then
4612 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4613 echo "${ECHO_T}$OBJDUMP" >&6; }
4614 else
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 fi
4618
4619
4620 fi
4621 if test -z "$ac_cv_prog_OBJDUMP"; then
4622 ac_ct_OBJDUMP=$OBJDUMP
4623 # Extract the first word of "objdump", so it can be a program name with args.
4624 set dummy objdump; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 if test -n "$ac_ct_OBJDUMP"; then
4631 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644 done
4645 done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
4650 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4651 if test -n "$ac_ct_OBJDUMP"; then
4652 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4653 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4654 else
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4657 fi
4658
4659 if test "x$ac_ct_OBJDUMP" = x; then
4660 OBJDUMP="false"
4661 else
4662 case $cross_compiling:$ac_tool_warned in
4663 yes:)
4664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4665 whose name does not start with the host triplet. If you think this
4666 configuration is useful to you, please write to [email protected]." >&5
4667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4668 whose name does not start with the host triplet. If you think this
4669 configuration is useful to you, please write to [email protected]." >&2;}
4670 ac_tool_warned=yes ;;
4671 esac
4672 OBJDUMP=$ac_ct_OBJDUMP
4673 fi
4674 else
4675 OBJDUMP="$ac_cv_prog_OBJDUMP"
4676 fi
4677
4678 ;;
4679
4680 esac
4681
4682 need_locks="$enable_libtool_lock"
4683
4684
4685 ac_ext=c
4686 ac_cpp='$CPP $CPPFLAGS'
4687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4691 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4692 # On Suns, sometimes $CPP names a directory.
4693 if test -n "$CPP" && test -d "$CPP"; then
4694 CPP=
4695 fi
4696 if test -z "$CPP"; then
4697 if test "${ac_cv_prog_CPP+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700 # Double quotes because CPP needs to be expanded
4701 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4702 do
4703 ac_preproc_ok=false
4704 for ac_c_preproc_warn_flag in '' yes
4705 do
4706 # Use a header file that comes with gcc, so configuring glibc
4707 # with a fresh cross-compiler works.
4708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709 # <limits.h> exists even on freestanding compilers.
4710 # On the NeXT, cc -E runs the code through the compiler's parser,
4711 # not just through cpp. "Syntax error" is here to catch this case.
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 #ifdef __STDC__
4719 # include <limits.h>
4720 #else
4721 # include <assert.h>
4722 #endif
4723 Syntax error
4724 _ACEOF
4725 if { (ac_try="$ac_cpp conftest.$ac_ext"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } >/dev/null; then
4738 if test -s conftest.err; then
4739 ac_cpp_err=$ac_c_preproc_warn_flag
4740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4741 else
4742 ac_cpp_err=
4743 fi
4744 else
4745 ac_cpp_err=yes
4746 fi
4747 if test -z "$ac_cpp_err"; then
4748 :
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 # Broken: fails on valid input.
4754 continue
4755 fi
4756
4757 rm -f conftest.err conftest.$ac_ext
4758
4759 # OK, works on sane cases. Now check whether nonexistent headers
4760 # can be detected and how.
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 #include <ac_nonexistent.h>
4768 _ACEOF
4769 if { (ac_try="$ac_cpp conftest.$ac_ext"
4770 case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } >/dev/null; then
4782 if test -s conftest.err; then
4783 ac_cpp_err=$ac_c_preproc_warn_flag
4784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4785 else
4786 ac_cpp_err=
4787 fi
4788 else
4789 ac_cpp_err=yes
4790 fi
4791 if test -z "$ac_cpp_err"; then
4792 # Broken: success on invalid input.
4793 continue
4794 else
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 # Passes both tests.
4799 ac_preproc_ok=:
4800 break
4801 fi
4802
4803 rm -f conftest.err conftest.$ac_ext
4804
4805 done
4806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807 rm -f conftest.err conftest.$ac_ext
4808 if $ac_preproc_ok; then
4809 break
4810 fi
4811
4812 done
4813 ac_cv_prog_CPP=$CPP
4814
4815 fi
4816 CPP=$ac_cv_prog_CPP
4817 else
4818 ac_cv_prog_CPP=$CPP
4819 fi
4820 { echo "$as_me:$LINENO: result: $CPP" >&5
4821 echo "${ECHO_T}$CPP" >&6; }
4822 ac_preproc_ok=false
4823 for ac_c_preproc_warn_flag in '' yes
4824 do
4825 # Use a header file that comes with gcc, so configuring glibc
4826 # with a fresh cross-compiler works.
4827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828 # <limits.h> exists even on freestanding compilers.
4829 # On the NeXT, cc -E runs the code through the compiler's parser,
4830 # not just through cpp. "Syntax error" is here to catch this case.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842 Syntax error
4843 _ACEOF
4844 if { (ac_try="$ac_cpp conftest.$ac_ext"
4845 case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev/null; then
4857 if test -s conftest.err; then
4858 ac_cpp_err=$ac_c_preproc_warn_flag
4859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4860 else
4861 ac_cpp_err=
4862 fi
4863 else
4864 ac_cpp_err=yes
4865 fi
4866 if test -z "$ac_cpp_err"; then
4867 :
4868 else
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 # Broken: fails on valid input.
4873 continue
4874 fi
4875
4876 rm -f conftest.err conftest.$ac_ext
4877
4878 # OK, works on sane cases. Now check whether nonexistent headers
4879 # can be detected and how.
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 #include <ac_nonexistent.h>
4887 _ACEOF
4888 if { (ac_try="$ac_cpp conftest.$ac_ext"
4889 case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892 esac
4893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4895 ac_status=$?
4896 grep -v '^ *+' conftest.er1 >conftest.err
4897 rm -f conftest.er1
4898 cat conftest.err >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } >/dev/null; then
4901 if test -s conftest.err; then
4902 ac_cpp_err=$ac_c_preproc_warn_flag
4903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4904 else
4905 ac_cpp_err=
4906 fi
4907 else
4908 ac_cpp_err=yes
4909 fi
4910 if test -z "$ac_cpp_err"; then
4911 # Broken: success on invalid input.
4912 continue
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 # Passes both tests.
4918 ac_preproc_ok=:
4919 break
4920 fi
4921
4922 rm -f conftest.err conftest.$ac_ext
4923
4924 done
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then
4928 :
4929 else
4930 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4931 See \`config.log' for more details." >&5
4932 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4933 See \`config.log' for more details." >&2;}
4934 { (exit 1); exit 1; }; }
4935 fi
4936
4937 ac_ext=c
4938 ac_cpp='$CPP $CPPFLAGS'
4939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942
4943
4944 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4945 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4946 if test "${ac_cv_header_stdc+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <stdlib.h>
4956 #include <stdarg.h>
4957 #include <string.h>
4958 #include <float.h>
4959
4960 int
4961 main ()
4962 {
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4983 { (case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_try") 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_try") 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 ac_cv_header_stdc=yes
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 ac_cv_header_stdc=no
5008 fi
5009
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011
5012 if test $ac_cv_header_stdc = yes; then
5013 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5014 cat >conftest.$ac_ext <<_ACEOF
5015 /* confdefs.h. */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 #include <string.h>
5021
5022 _ACEOF
5023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5024 $EGREP "memchr" >/dev/null 2>&1; then
5025 :
5026 else
5027 ac_cv_header_stdc=no
5028 fi
5029 rm -f conftest*
5030
5031 fi
5032
5033 if test $ac_cv_header_stdc = yes; then
5034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <stdlib.h>
5042
5043 _ACEOF
5044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5045 $EGREP "free" >/dev/null 2>&1; then
5046 :
5047 else
5048 ac_cv_header_stdc=no
5049 fi
5050 rm -f conftest*
5051
5052 fi
5053
5054 if test $ac_cv_header_stdc = yes; then
5055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5056 if test "$cross_compiling" = yes; then
5057 :
5058 else
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #include <ctype.h>
5066 #include <stdlib.h>
5067 #if ((' ' & 0x0FF) == 0x020)
5068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5070 #else
5071 # define ISLOWER(c) \
5072 (('a' <= (c) && (c) <= 'i') \
5073 || ('j' <= (c) && (c) <= 'r') \
5074 || ('s' <= (c) && (c) <= 'z'))
5075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5076 #endif
5077
5078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5079 int
5080 main ()
5081 {
5082 int i;
5083 for (i = 0; i < 256; i++)
5084 if (XOR (islower (i), ISLOWER (i))
5085 || toupper (i) != TOUPPER (i))
5086 return 2;
5087 return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest$ac_exeext
5091 if { (ac_try="$ac_link"
5092 case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_link") 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5101 { (case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_try") 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 :
5111 else
5112 echo "$as_me: program exited with status $ac_status" >&5
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ( exit $ac_status )
5117 ac_cv_header_stdc=no
5118 fi
5119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5120 fi
5121
5122
5123 fi
5124 fi
5125 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5126 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5127 if test $ac_cv_header_stdc = yes; then
5128
5129 cat >>confdefs.h <<\_ACEOF
5130 #define STDC_HEADERS 1
5131 _ACEOF
5132
5133 fi
5134
5135 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5146 inttypes.h stdint.h unistd.h
5147 do
5148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h. */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 $ac_includes_default
5161
5162 #include <$ac_header>
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (ac_try="$ac_compile"
5166 case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_compile") 2>conftest.er1
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } &&
5178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5179 { (case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_try") 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; } &&
5188 { ac_try='test -s conftest.$ac_objext'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_try") 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5198 eval "$as_ac_Header=yes"
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 eval "$as_ac_Header=no"
5204 fi
5205
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 fi
5208 ac_res=`eval echo '${'$as_ac_Header'}'`
5209 { echo "$as_me:$LINENO: result: $ac_res" >&5
5210 echo "${ECHO_T}$ac_res" >&6; }
5211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5212 cat >>confdefs.h <<_ACEOF
5213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5214 _ACEOF
5215
5216 fi
5217
5218 done
5219
5220
5221
5222 for ac_header in dlfcn.h
5223 do
5224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 fi
5231 ac_res=`eval echo '${'$as_ac_Header'}'`
5232 { echo "$as_me:$LINENO: result: $ac_res" >&5
5233 echo "${ECHO_T}$ac_res" >&6; }
5234 else
5235 # Is the header compilable?
5236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 $ac_includes_default
5245 #include <$ac_header>
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5249 case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5262 { (case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_try") 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; } &&
5271 { ac_try='test -s conftest.$ac_objext'
5272 { (case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_try") 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_header_compiler=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_header_compiler=no
5287 fi
5288
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6; }
5292
5293 # Is the header present?
5294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <$ac_header>
5303 _ACEOF
5304 if { (ac_try="$ac_cpp conftest.$ac_ext"
5305 case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } >/dev/null; then
5317 if test -s conftest.err; then
5318 ac_cpp_err=$ac_c_preproc_warn_flag
5319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5320 else
5321 ac_cpp_err=
5322 fi
5323 else
5324 ac_cpp_err=yes
5325 fi
5326 if test -z "$ac_cpp_err"; then
5327 ac_header_preproc=yes
5328 else
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 ac_header_preproc=no
5333 fi
5334
5335 rm -f conftest.err conftest.$ac_ext
5336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5337 echo "${ECHO_T}$ac_header_preproc" >&6; }
5338
5339 # So? What about this header?
5340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5341 yes:no: )
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5346 ac_header_preproc=yes
5347 ;;
5348 no:yes:* )
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5361 ( cat <<\_ASBOX
5362 ## ----------------------------------- ##
5363 ## Report this to [email protected] ##
5364 ## ----------------------------------- ##
5365 _ASBOX
5366 ) | sed "s/^/$as_me: WARNING: /" >&2
5367 ;;
5368 esac
5369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 eval "$as_ac_Header=\$ac_header_preproc"
5375 fi
5376 ac_res=`eval echo '${'$as_ac_Header'}'`
5377 { echo "$as_me:$LINENO: result: $ac_res" >&5
5378 echo "${ECHO_T}$ac_res" >&6; }
5379
5380 fi
5381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5384 _ACEOF
5385
5386 fi
5387
5388 done
5389
5390 ac_ext=cpp
5391 ac_cpp='$CXXCPP $CPPFLAGS'
5392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5395 if test -z "$CXX"; then
5396 if test -n "$CCC"; then
5397 CXX=$CCC
5398 else
5399 if test -n "$ac_tool_prefix"; then
5400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5401 do
5402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5406 if test "${ac_cv_prog_CXX+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 if test -n "$CXX"; then
5410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 CXX=$ac_cv_prog_CXX
5430 if test -n "$CXX"; then
5431 { echo "$as_me:$LINENO: result: $CXX" >&5
5432 echo "${ECHO_T}$CXX" >&6; }
5433 else
5434 { echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6; }
5436 fi
5437
5438
5439 test -n "$CXX" && break
5440 done
5441 fi
5442 if test -z "$CXX"; then
5443 ac_ct_CXX=$CXX
5444 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5445 do
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5450 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 if test -n "$ac_ct_CXX"; then
5454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_ac_ct_CXX="$ac_prog"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5474 if test -n "$ac_ct_CXX"; then
5475 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5476 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5477 else
5478 { echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6; }
5480 fi
5481
5482
5483 test -n "$ac_ct_CXX" && break
5484 done
5485
5486 if test "x$ac_ct_CXX" = x; then
5487 CXX="g++"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5492 whose name does not start with the host triplet. If you think this
5493 configuration is useful to you, please write to [email protected]." >&5
5494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5495 whose name does not start with the host triplet. If you think this
5496 configuration is useful to you, please write to [email protected]." >&2;}
5497 ac_tool_warned=yes ;;
5498 esac
5499 CXX=$ac_ct_CXX
5500 fi
5501 fi
5502
5503 fi
5504 fi
5505 # Provide some information about the compiler.
5506 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5507 ac_compiler=`set X $ac_compile; echo $2`
5508 { (ac_try="$ac_compiler --version >&5"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compiler --version >&5") 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }
5518 { (ac_try="$ac_compiler -v >&5"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compiler -v >&5") 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }
5528 { (ac_try="$ac_compiler -V >&5"
5529 case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compiler -V >&5") 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }
5538
5539 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5540 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5541 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h. */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550
5551 int
5552 main ()
5553 {
5554 #ifndef __GNUC__
5555 choke me
5556 #endif
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5564 case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5577 { (case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_try") 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; } &&
5586 { ac_try='test -s conftest.$ac_objext'
5587 { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 ac_compiler_gnu=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 ac_compiler_gnu=no
5602 fi
5603
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5606
5607 fi
5608 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5609 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5610 GXX=`test $ac_compiler_gnu = yes && echo yes`
5611 ac_test_CXXFLAGS=${CXXFLAGS+set}
5612 ac_save_CXXFLAGS=$CXXFLAGS
5613 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5614 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5615 if test "${ac_cv_prog_cxx_g+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5619 ac_cxx_werror_flag=yes
5620 ac_cv_prog_cxx_g=no
5621 CXXFLAGS="-g"
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628
5629 int
5630 main ()
5631 {
5632
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext
5638 if { (ac_try="$ac_compile"
5639 case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_compile") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5652 { (case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_try") 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest.$ac_objext'
5662 { (case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_try") 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_prog_cxx_g=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 CXXFLAGS=""
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683
5684 int
5685 main ()
5686 {
5687
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5707 { (case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_try") 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; } &&
5716 { ac_try='test -s conftest.$ac_objext'
5717 { (case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_try") 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 :
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5732 CXXFLAGS="-g"
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739
5740 int
5741 main ()
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_prog_cxx_g=yes
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787
5788 fi
5789
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 fi
5792
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 fi
5795
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5798 fi
5799 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5800 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5801 if test "$ac_test_CXXFLAGS" = set; then
5802 CXXFLAGS=$ac_save_CXXFLAGS
5803 elif test $ac_cv_prog_cxx_g = yes; then
5804 if test "$GXX" = yes; then
5805 CXXFLAGS="-g -O2"
5806 else
5807 CXXFLAGS="-g"
5808 fi
5809 else
5810 if test "$GXX" = yes; then
5811 CXXFLAGS="-O2"
5812 else
5813 CXXFLAGS=
5814 fi
5815 fi
5816 ac_ext=cpp
5817 ac_cpp='$CXXCPP $CPPFLAGS'
5818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821
5822
5823
5824 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5825 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5826 (test "X$CXX" != "Xg++"))) ; then
5827 ac_ext=cpp
5828 ac_cpp='$CXXCPP $CPPFLAGS'
5829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5832 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5833 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5834 if test -z "$CXXCPP"; then
5835 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 # Double quotes because CXXCPP needs to be expanded
5839 for CXXCPP in "$CXX -E" "/lib/cpp"
5840 do
5841 ac_preproc_ok=false
5842 for ac_cxx_preproc_warn_flag in '' yes
5843 do
5844 # Use a header file that comes with gcc, so configuring glibc
5845 # with a fresh cross-compiler works.
5846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847 # <limits.h> exists even on freestanding compilers.
5848 # On the NeXT, cc -E runs the code through the compiler's parser,
5849 # not just through cpp. "Syntax error" is here to catch this case.
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #ifdef __STDC__
5857 # include <limits.h>
5858 #else
5859 # include <assert.h>
5860 #endif
5861 Syntax error
5862 _ACEOF
5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
5864 case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } >/dev/null; then
5876 if test -s conftest.err; then
5877 ac_cpp_err=$ac_cxx_preproc_warn_flag
5878 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5879 else
5880 ac_cpp_err=
5881 fi
5882 else
5883 ac_cpp_err=yes
5884 fi
5885 if test -z "$ac_cpp_err"; then
5886 :
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 # Broken: fails on valid input.
5892 continue
5893 fi
5894
5895 rm -f conftest.err conftest.$ac_ext
5896
5897 # OK, works on sane cases. Now check whether nonexistent headers
5898 # can be detected and how.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <ac_nonexistent.h>
5906 _ACEOF
5907 if { (ac_try="$ac_cpp conftest.$ac_ext"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null; then
5920 if test -s conftest.err; then
5921 ac_cpp_err=$ac_cxx_preproc_warn_flag
5922 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5923 else
5924 ac_cpp_err=
5925 fi
5926 else
5927 ac_cpp_err=yes
5928 fi
5929 if test -z "$ac_cpp_err"; then
5930 # Broken: success on invalid input.
5931 continue
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 # Passes both tests.
5937 ac_preproc_ok=:
5938 break
5939 fi
5940
5941 rm -f conftest.err conftest.$ac_ext
5942
5943 done
5944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5945 rm -f conftest.err conftest.$ac_ext
5946 if $ac_preproc_ok; then
5947 break
5948 fi
5949
5950 done
5951 ac_cv_prog_CXXCPP=$CXXCPP
5952
5953 fi
5954 CXXCPP=$ac_cv_prog_CXXCPP
5955 else
5956 ac_cv_prog_CXXCPP=$CXXCPP
5957 fi
5958 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5959 echo "${ECHO_T}$CXXCPP" >&6; }
5960 ac_preproc_ok=false
5961 for ac_cxx_preproc_warn_flag in '' yes
5962 do
5963 # Use a header file that comes with gcc, so configuring glibc
5964 # with a fresh cross-compiler works.
5965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5966 # <limits.h> exists even on freestanding compilers.
5967 # On the NeXT, cc -E runs the code through the compiler's parser,
5968 # not just through cpp. "Syntax error" is here to catch this case.
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 #ifdef __STDC__
5976 # include <limits.h>
5977 #else
5978 # include <assert.h>
5979 #endif
5980 Syntax error
5981 _ACEOF
5982 if { (ac_try="$ac_cpp conftest.$ac_ext"
5983 case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null; then
5995 if test -s conftest.err; then
5996 ac_cpp_err=$ac_cxx_preproc_warn_flag
5997 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5998 else
5999 ac_cpp_err=
6000 fi
6001 else
6002 ac_cpp_err=yes
6003 fi
6004 if test -z "$ac_cpp_err"; then
6005 :
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 # Broken: fails on valid input.
6011 continue
6012 fi
6013
6014 rm -f conftest.err conftest.$ac_ext
6015
6016 # OK, works on sane cases. Now check whether nonexistent headers
6017 # can be detected and how.
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <ac_nonexistent.h>
6025 _ACEOF
6026 if { (ac_try="$ac_cpp conftest.$ac_ext"
6027 case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev/null; then
6039 if test -s conftest.err; then
6040 ac_cpp_err=$ac_cxx_preproc_warn_flag
6041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6042 else
6043 ac_cpp_err=
6044 fi
6045 else
6046 ac_cpp_err=yes
6047 fi
6048 if test -z "$ac_cpp_err"; then
6049 # Broken: success on invalid input.
6050 continue
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 # Passes both tests.
6056 ac_preproc_ok=:
6057 break
6058 fi
6059
6060 rm -f conftest.err conftest.$ac_ext
6061
6062 done
6063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6064 rm -f conftest.err conftest.$ac_ext
6065 if $ac_preproc_ok; then
6066 :
6067 else
6068 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6069 See \`config.log' for more details." >&5
6070 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6071 See \`config.log' for more details." >&2;}
6072 { (exit 1); exit 1; }; }
6073 fi
6074
6075 ac_ext=cpp
6076 ac_cpp='$CXXCPP $CPPFLAGS'
6077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6080
6081 fi
6082
6083
6084 ac_ext=f
6085 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6086 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6088 if test -n "$ac_tool_prefix"; then
6089 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
6090 do
6091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_F77+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 if test -n "$F77"; then
6099 ac_cv_prog_F77="$F77" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 F77=$ac_cv_prog_F77
6119 if test -n "$F77"; then
6120 { echo "$as_me:$LINENO: result: $F77" >&5
6121 echo "${ECHO_T}$F77" >&6; }
6122 else
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127
6128 test -n "$F77" && break
6129 done
6130 fi
6131 if test -z "$F77"; then
6132 ac_ct_F77=$F77
6133 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
6134 do
6135 # Extract the first word of "$ac_prog", so it can be a program name with args.
6136 set dummy $ac_prog; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 if test -n "$ac_ct_F77"; then
6143 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_ac_ct_F77="$ac_prog"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6163 if test -n "$ac_ct_F77"; then
6164 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6165 echo "${ECHO_T}$ac_ct_F77" >&6; }
6166 else
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6170
6171
6172 test -n "$ac_ct_F77" && break
6173 done
6174
6175 if test "x$ac_ct_F77" = x; then
6176 F77=""
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet. If you think this
6182 configuration is useful to you, please write to [email protected]." >&5
6183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6184 whose name does not start with the host triplet. If you think this
6185 configuration is useful to you, please write to [email protected]." >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188 F77=$ac_ct_F77
6189 fi
6190 fi
6191
6192
6193 # Provide some information about the compiler.
6194 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6195 ac_compiler=`set X $ac_compile; echo $2`
6196 { (ac_try="$ac_compiler --version >&5"
6197 case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compiler --version >&5") 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }
6206 { (ac_try="$ac_compiler -v >&5"
6207 case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compiler -v >&5") 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }
6216 { (ac_try="$ac_compiler -V >&5"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compiler -V >&5") 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }
6226 rm -f a.out
6227
6228 # If we don't use `.F' as extension, the preprocessor is not run on the
6229 # input file. (Note that this only needs to work for GNU compilers.)
6230 ac_save_ext=$ac_ext
6231 ac_ext=F
6232 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6233 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6234 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 cat >conftest.$ac_ext <<_ACEOF
6238 program main
6239 #ifndef __GNUC__
6240 choke me
6241 #endif
6242
6243 end
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (ac_try="$ac_compile"
6247 case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250 esac
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6260 { (case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_try") 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273 esac
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_try") 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_compiler_gnu=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 ac_compiler_gnu=no
6285 fi
6286
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6289
6290 fi
6291 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6292 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6293 ac_ext=$ac_save_ext
6294 ac_test_FFLAGS=${FFLAGS+set}
6295 ac_save_FFLAGS=$FFLAGS
6296 FFLAGS=
6297 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6298 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6299 if test "${ac_cv_prog_f77_g+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 FFLAGS=-g
6303 cat >conftest.$ac_ext <<_ACEOF
6304 program main
6305
6306 end
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6323 { (case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_try") 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_try") 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 ac_cv_prog_f77_g=yes
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 ac_cv_prog_f77_g=no
6348 fi
6349
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351
6352 fi
6353 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6354 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6355 if test "$ac_test_FFLAGS" = set; then
6356 FFLAGS=$ac_save_FFLAGS
6357 elif test $ac_cv_prog_f77_g = yes; then
6358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6359 FFLAGS="-g -O2"
6360 else
6361 FFLAGS="-g"
6362 fi
6363 else
6364 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6365 FFLAGS="-O2"
6366 else
6367 FFLAGS=
6368 fi
6369 fi
6370
6371 G77=`test $ac_compiler_gnu = yes && echo yes`
6372 ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378
6379
6380 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6381
6382 # find the maximum length of command line arguments
6383 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6384 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6385 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 i=0
6389 teststring="ABCD"
6390
6391 case $build_os in
6392 msdosdjgpp*)
6393 # On DJGPP, this test can blow up pretty badly due to problems in libc
6394 # (any single argument exceeding 2000 bytes causes a buffer overrun
6395 # during glob expansion). Even if it were fixed, the result of this
6396 # check would be larger than it should be.
6397 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6398 ;;
6399
6400 gnu*)
6401 # Under GNU Hurd, this test is not required because there is
6402 # no limit to the length of command line arguments.
6403 # Libtool will interpret -1 as no limit whatsoever
6404 lt_cv_sys_max_cmd_len=-1;
6405 ;;
6406
6407 cygwin* | mingw*)
6408 # On Win9x/ME, this test blows up -- it succeeds, but takes
6409 # about 5 minutes as the teststring grows exponentially.
6410 # Worse, since 9x/ME are not pre-emptively multitasking,
6411 # you end up with a "frozen" computer, even though with patience
6412 # the test eventually succeeds (with a max line length of 256k).
6413 # Instead, let's just punt: use the minimum linelength reported by
6414 # all of the supported platforms: 8192 (on NT/2K/XP).
6415 lt_cv_sys_max_cmd_len=8192;
6416 ;;
6417
6418 amigaos*)
6419 # On AmigaOS with pdksh, this test takes hours, literally.
6420 # So we just punt and use a minimum line length of 8192.
6421 lt_cv_sys_max_cmd_len=8192;
6422 ;;
6423
6424 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6425 # This has been around since 386BSD, at least. Likely further.
6426 if test -x /sbin/sysctl; then
6427 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6428 elif test -x /usr/sbin/sysctl; then
6429 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6430 else
6431 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6432 fi
6433 # And add a safety zone
6434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6436 ;;
6437
6438 interix*)
6439 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6440 lt_cv_sys_max_cmd_len=196608
6441 ;;
6442
6443 osf*)
6444 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6445 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6446 # nice to cause kernel panics so lets avoid the loop below.
6447 # First set a reasonable default.
6448 lt_cv_sys_max_cmd_len=16384
6449 #
6450 if test -x /sbin/sysconfig; then
6451 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6452 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6453 esac
6454 fi
6455 ;;
6456 sco3.2v5*)
6457 lt_cv_sys_max_cmd_len=102400
6458 ;;
6459 sysv5* | sco5v6* | sysv4.2uw2*)
6460 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6461 if test -n "$kargmax"; then
6462 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6463 else
6464 lt_cv_sys_max_cmd_len=32768
6465 fi
6466 ;;
6467 *)
6468 # If test is not a shell built-in, we'll probably end up computing a
6469 # maximum length that is only half of the actual maximum length, but
6470 # we can't tell.
6471 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6472 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6473 = "XX$teststring") >/dev/null 2>&1 &&
6474 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6475 lt_cv_sys_max_cmd_len=$new_result &&
6476 test $i != 17 # 1/2 MB should be enough
6477 do
6478 i=`expr $i + 1`
6479 teststring=$teststring$teststring
6480 done
6481 teststring=
6482 # Add a significant safety factor because C++ compilers can tack on massive
6483 # amounts of additional arguments before passing them to the linker.
6484 # It appears as though 1/2 is a usable value.
6485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6486 ;;
6487 esac
6488
6489 fi
6490
6491 if test -n $lt_cv_sys_max_cmd_len ; then
6492 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6493 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6494 else
6495 { echo "$as_me:$LINENO: result: none" >&5
6496 echo "${ECHO_T}none" >&6; }
6497 fi
6498
6499
6500
6501
6502 # Check for command to grab the raw symbol name followed by C symbol from nm.
6503 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6504 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508
6509 # These are sane defaults that work on at least a few old systems.
6510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6511
6512 # Character class describing NM global symbol codes.
6513 symcode='[BCDEGRST]'
6514
6515 # Regexp to match symbols that can be accessed directly from C.
6516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6517
6518 # Transform an extracted symbol line into a proper C declaration
6519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6520
6521 # Transform an extracted symbol line into symbol name and symbol address
6522 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'"
6523
6524 # Define system-specific variables.
6525 case $host_os in
6526 aix*)
6527 symcode='[BCDT]'
6528 ;;
6529 cygwin* | mingw* | pw32*)
6530 symcode='[ABCDGISTW]'
6531 ;;
6532 hpux*) # Its linker distinguishes data from code symbols
6533 if test "$host_cpu" = ia64; then
6534 symcode='[ABCDEGRST]'
6535 fi
6536 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6537 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'"
6538 ;;
6539 linux* | k*bsd*-gnu)
6540 if test "$host_cpu" = ia64; then
6541 symcode='[ABCDGIRSTW]'
6542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6543 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'"
6544 fi
6545 ;;
6546 irix* | nonstopux*)
6547 symcode='[BCDEGRST]'
6548 ;;
6549 osf*)
6550 symcode='[BCDEGQRST]'
6551 ;;
6552 solaris*)
6553 symcode='[BDRT]'
6554 ;;
6555 sco3.2v5*)
6556 symcode='[DT]'
6557 ;;
6558 sysv4.2uw2*)
6559 symcode='[DT]'
6560 ;;
6561 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6562 symcode='[ABDT]'
6563 ;;
6564 sysv4)
6565 symcode='[DFNSTU]'
6566 ;;
6567 esac
6568
6569 # Handle CRLF in mingw tool chain
6570 opt_cr=
6571 case $build_os in
6572 mingw*)
6573 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6574 ;;
6575 esac
6576
6577 # If we're using GNU nm, then use its standard symbol codes.
6578 case `$NM -V 2>&1` in
6579 *GNU* | *'with BFD'*)
6580 symcode='[ABCDGIRSTW]' ;;
6581 esac
6582
6583 # Try without a prefix undercore, then with it.
6584 for ac_symprfx in "" "_"; do
6585
6586 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6587 symxfrm="\\1 $ac_symprfx\\2 \\2"
6588
6589 # Write the raw and C identifiers.
6590 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6591
6592 # Check to see that the pipe works correctly.
6593 pipe_works=no
6594
6595 rm -f conftest*
6596 cat > conftest.$ac_ext <<EOF
6597 #ifdef __cplusplus
6598 extern "C" {
6599 #endif
6600 char nm_test_var;
6601 void nm_test_func(){}
6602 #ifdef __cplusplus
6603 }
6604 #endif
6605 int main(){nm_test_var='a';nm_test_func();return(0);}
6606 EOF
6607
6608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; then
6613 # Now try to grab the symbols.
6614 nlist=conftest.nm
6615 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6616 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && test -s "$nlist"; then
6620 # Try sorting and uniquifying the output.
6621 if sort "$nlist" | uniq > "$nlist"T; then
6622 mv -f "$nlist"T "$nlist"
6623 else
6624 rm -f "$nlist"T
6625 fi
6626
6627 # Make sure that we snagged all the symbols we need.
6628 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6629 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6630 cat <<EOF > conftest.$ac_ext
6631 #ifdef __cplusplus
6632 extern "C" {
6633 #endif
6634
6635 EOF
6636 # Now generate the symbol file.
6637 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6638
6639 cat <<EOF >> conftest.$ac_ext
6640 #if defined (__STDC__) && __STDC__
6641 # define lt_ptr_t void *
6642 #else
6643 # define lt_ptr_t char *
6644 # define const
6645 #endif
6646
6647 /* The mapping between symbol names and symbols. */
6648 const struct {
6649 const char *name;
6650 lt_ptr_t address;
6651 }
6652 lt_preloaded_symbols[] =
6653 {
6654 EOF
6655 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6656 cat <<\EOF >> conftest.$ac_ext
6657 {0, (lt_ptr_t) 0}
6658 };
6659
6660 #ifdef __cplusplus
6661 }
6662 #endif
6663 EOF
6664 # Now try linking the two files.
6665 mv conftest.$ac_objext conftstm.$ac_objext
6666 lt_save_LIBS="$LIBS"
6667 lt_save_CFLAGS="$CFLAGS"
6668 LIBS="conftstm.$ac_objext"
6669 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6675 pipe_works=yes
6676 fi
6677 LIBS="$lt_save_LIBS"
6678 CFLAGS="$lt_save_CFLAGS"
6679 else
6680 echo "cannot find nm_test_func in $nlist" >&5
6681 fi
6682 else
6683 echo "cannot find nm_test_var in $nlist" >&5
6684 fi
6685 else
6686 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6687 fi
6688 else
6689 echo "$progname: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6691 fi
6692 rm -f conftest* conftst*
6693
6694 # Do not use the global_symbol_pipe unless it works.
6695 if test "$pipe_works" = yes; then
6696 break
6697 else
6698 lt_cv_sys_global_symbol_pipe=
6699 fi
6700 done
6701
6702 fi
6703
6704 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6705 lt_cv_sys_global_symbol_to_cdecl=
6706 fi
6707 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6708 { echo "$as_me:$LINENO: result: failed" >&5
6709 echo "${ECHO_T}failed" >&6; }
6710 else
6711 { echo "$as_me:$LINENO: result: ok" >&5
6712 echo "${ECHO_T}ok" >&6; }
6713 fi
6714
6715 { echo "$as_me:$LINENO: checking for objdir" >&5
6716 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6717 if test "${lt_cv_objdir+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 rm -f .libs 2>/dev/null
6721 mkdir .libs 2>/dev/null
6722 if test -d .libs; then
6723 lt_cv_objdir=.libs
6724 else
6725 # MS-DOS does not allow filenames that begin with a dot.
6726 lt_cv_objdir=_libs
6727 fi
6728 rmdir .libs 2>/dev/null
6729 fi
6730 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6731 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6732 objdir=$lt_cv_objdir
6733
6734
6735
6736
6737
6738 case $host_os in
6739 aix3*)
6740 # AIX sometimes has problems with the GCC collect2 program. For some
6741 # reason, if we set the COLLECT_NAMES environment variable, the problems
6742 # vanish in a puff of smoke.
6743 if test "X${COLLECT_NAMES+set}" != Xset; then
6744 COLLECT_NAMES=
6745 export COLLECT_NAMES
6746 fi
6747 ;;
6748 esac
6749
6750 # Sed substitution that helps us do robust quoting. It backslashifies
6751 # metacharacters that are still active within double-quoted strings.
6752 Xsed='sed -e 1s/^X//'
6753 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6754
6755 # Same as above, but do not quote variable references.
6756 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6757
6758 # Sed substitution to delay expansion of an escaped shell variable in a
6759 # double_quote_subst'ed string.
6760 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6761
6762 # Sed substitution to avoid accidental globbing in evaled expressions
6763 no_glob_subst='s/\*/\\\*/g'
6764
6765 # Constants:
6766 rm="rm -f"
6767
6768 # Global variables:
6769 default_ofile=libtool
6770 can_build_shared=yes
6771
6772 # All known linkers require a `.a' archive for static linking (except MSVC,
6773 # which needs '.lib').
6774 libext=a
6775 ltmain="$ac_aux_dir/ltmain.sh"
6776 ofile="$default_ofile"
6777 with_gnu_ld="$lt_cv_prog_gnu_ld"
6778
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ar; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_AR+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 if test -n "$AR"; then
6788 ac_cv_prog_AR="$AR" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_AR="${ac_tool_prefix}ar"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 AR=$ac_cv_prog_AR
6808 if test -n "$AR"; then
6809 { echo "$as_me:$LINENO: result: $AR" >&5
6810 echo "${ECHO_T}$AR" >&6; }
6811 else
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_AR"; then
6819 ac_ct_AR=$AR
6820 # Extract the first word of "ar", so it can be a program name with args.
6821 set dummy ar; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827 if test -n "$ac_ct_AR"; then
6828 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_AR="ar"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6848 if test -n "$ac_ct_AR"; then
6849 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6850 echo "${ECHO_T}$ac_ct_AR" >&6; }
6851 else
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_AR" = x; then
6857 AR="false"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to [email protected]." >&5
6864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet. If you think this
6866 configuration is useful to you, please write to [email protected]." >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869 AR=$ac_ct_AR
6870 fi
6871 else
6872 AR="$ac_cv_prog_AR"
6873 fi
6874
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_prog_RANLIB+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883 if test -n "$RANLIB"; then
6884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 RANLIB=$ac_cv_prog_RANLIB
6904 if test -n "$RANLIB"; then
6905 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6906 echo "${ECHO_T}$RANLIB" >&6; }
6907 else
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6910 fi
6911
6912
6913 fi
6914 if test -z "$ac_cv_prog_RANLIB"; then
6915 ac_ct_RANLIB=$RANLIB
6916 # Extract the first word of "ranlib", so it can be a program name with args.
6917 set dummy ranlib; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 if test -n "$ac_ct_RANLIB"; then
6924 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_RANLIB="ranlib"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6944 if test -n "$ac_ct_RANLIB"; then
6945 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6946 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6947 else
6948 { echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6; }
6950 fi
6951
6952 if test "x$ac_ct_RANLIB" = x; then
6953 RANLIB=":"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6958 whose name does not start with the host triplet. If you think this
6959 configuration is useful to you, please write to [email protected]." >&5
6960 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6961 whose name does not start with the host triplet. If you think this
6962 configuration is useful to you, please write to [email protected]." >&2;}
6963 ac_tool_warned=yes ;;
6964 esac
6965 RANLIB=$ac_ct_RANLIB
6966 fi
6967 else
6968 RANLIB="$ac_cv_prog_RANLIB"
6969 fi
6970
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}strip; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_prog_STRIP+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 if test -n "$STRIP"; then
6980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 STRIP=$ac_cv_prog_STRIP
7000 if test -n "$STRIP"; then
7001 { echo "$as_me:$LINENO: result: $STRIP" >&5
7002 echo "${ECHO_T}$STRIP" >&6; }
7003 else
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7006 fi
7007
7008
7009 fi
7010 if test -z "$ac_cv_prog_STRIP"; then
7011 ac_ct_STRIP=$STRIP
7012 # Extract the first word of "strip", so it can be a program name with args.
7013 set dummy strip; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 if test -n "$ac_ct_STRIP"; then
7020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_ac_ct_STRIP="strip"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7040 if test -n "$ac_ct_STRIP"; then
7041 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7042 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7043 else
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7046 fi
7047
7048 if test "x$ac_ct_STRIP" = x; then
7049 STRIP=":"
7050 else
7051 case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7054 whose name does not start with the host triplet. If you think this
7055 configuration is useful to you, please write to [email protected]." >&5
7056 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7057 whose name does not start with the host triplet. If you think this
7058 configuration is useful to you, please write to [email protected]." >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061 STRIP=$ac_ct_STRIP
7062 fi
7063 else
7064 STRIP="$ac_cv_prog_STRIP"
7065 fi
7066
7067
7068 old_CC="$CC"
7069 old_CFLAGS="$CFLAGS"
7070
7071 # Set sane defaults for various variables
7072 test -z "$AR" && AR=ar
7073 test -z "$AR_FLAGS" && AR_FLAGS=cru
7074 test -z "$AS" && AS=as
7075 test -z "$CC" && CC=cc
7076 test -z "$LTCC" && LTCC=$CC
7077 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7078 test -z "$DLLTOOL" && DLLTOOL=dlltool
7079 test -z "$LD" && LD=ld
7080 test -z "$LN_S" && LN_S="ln -s"
7081 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7082 test -z "$NM" && NM=nm
7083 test -z "$SED" && SED=sed
7084 test -z "$OBJDUMP" && OBJDUMP=objdump
7085 test -z "$RANLIB" && RANLIB=:
7086 test -z "$STRIP" && STRIP=:
7087 test -z "$ac_objext" && ac_objext=o
7088
7089 # Determine commands to create old-style static archives.
7090 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7091 old_postinstall_cmds='chmod 644 $oldlib'
7092 old_postuninstall_cmds=
7093
7094 if test -n "$RANLIB"; then
7095 case $host_os in
7096 openbsd*)
7097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7098 ;;
7099 *)
7100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7101 ;;
7102 esac
7103 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7104 fi
7105
7106 for cc_temp in $compiler""; do
7107 case $cc_temp in
7108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7110 \-*) ;;
7111 *) break;;
7112 esac
7113 done
7114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7115
7116
7117 # Only perform the check for file, if the check method requires it
7118 case $deplibs_check_method in
7119 file_magic*)
7120 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7121 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7122 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 case $MAGIC_CMD in
7127 [\\/*] | ?:[\\/]*)
7128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7129 ;;
7130 *)
7131 lt_save_MAGIC_CMD="$MAGIC_CMD"
7132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7134 for ac_dir in $ac_dummy; do
7135 IFS="$lt_save_ifs"
7136 test -z "$ac_dir" && ac_dir=.
7137 if test -f $ac_dir/${ac_tool_prefix}file; then
7138 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7139 if test -n "$file_magic_test_file"; then
7140 case $deplibs_check_method in
7141 "file_magic "*)
7142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7145 $EGREP "$file_magic_regex" > /dev/null; then
7146 :
7147 else
7148 cat <<EOF 1>&2
7149
7150 *** Warning: the command libtool uses to detect shared libraries,
7151 *** $file_magic_cmd, produces output that libtool cannot recognize.
7152 *** The result is that libtool may fail to recognize shared libraries
7153 *** as such. This will affect the creation of libtool libraries that
7154 *** depend on shared libraries, but programs linked with such libtool
7155 *** libraries will work regardless of this problem. Nevertheless, you
7156 *** may want to report the problem to your system manager and/or to
7157 *** [email protected]
7158
7159 EOF
7160 fi ;;
7161 esac
7162 fi
7163 break
7164 fi
7165 done
7166 IFS="$lt_save_ifs"
7167 MAGIC_CMD="$lt_save_MAGIC_CMD"
7168 ;;
7169 esac
7170 fi
7171
7172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7173 if test -n "$MAGIC_CMD"; then
7174 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7175 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7176 else
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7179 fi
7180
7181 if test -z "$lt_cv_path_MAGIC_CMD"; then
7182 if test -n "$ac_tool_prefix"; then
7183 { echo "$as_me:$LINENO: checking for file" >&5
7184 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 case $MAGIC_CMD in
7189 [\\/*] | ?:[\\/]*)
7190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7191 ;;
7192 *)
7193 lt_save_MAGIC_CMD="$MAGIC_CMD"
7194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7196 for ac_dir in $ac_dummy; do
7197 IFS="$lt_save_ifs"
7198 test -z "$ac_dir" && ac_dir=.
7199 if test -f $ac_dir/file; then
7200 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7201 if test -n "$file_magic_test_file"; then
7202 case $deplibs_check_method in
7203 "file_magic "*)
7204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7207 $EGREP "$file_magic_regex" > /dev/null; then
7208 :
7209 else
7210 cat <<EOF 1>&2
7211
7212 *** Warning: the command libtool uses to detect shared libraries,
7213 *** $file_magic_cmd, produces output that libtool cannot recognize.
7214 *** The result is that libtool may fail to recognize shared libraries
7215 *** as such. This will affect the creation of libtool libraries that
7216 *** depend on shared libraries, but programs linked with such libtool
7217 *** libraries will work regardless of this problem. Nevertheless, you
7218 *** may want to report the problem to your system manager and/or to
7219 *** [email protected]
7220
7221 EOF
7222 fi ;;
7223 esac
7224 fi
7225 break
7226 fi
7227 done
7228 IFS="$lt_save_ifs"
7229 MAGIC_CMD="$lt_save_MAGIC_CMD"
7230 ;;
7231 esac
7232 fi
7233
7234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7235 if test -n "$MAGIC_CMD"; then
7236 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7237 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7238 else
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7241 fi
7242
7243 else
7244 MAGIC_CMD=:
7245 fi
7246 fi
7247
7248 fi
7249 ;;
7250 esac
7251
7252 enable_dlopen=no
7253 enable_win32_dll=yes
7254
7255 # Check whether --enable-libtool-lock was given.
7256 if test "${enable_libtool_lock+set}" = set; then
7257 enableval=$enable_libtool_lock;
7258 fi
7259
7260 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7261
7262
7263 # Check whether --with-pic was given.
7264 if test "${with_pic+set}" = set; then
7265 withval=$with_pic; pic_mode="$withval"
7266 else
7267 pic_mode=default
7268 fi
7269
7270 test -z "$pic_mode" && pic_mode=default
7271
7272 # Use C for the default configuration in the libtool script
7273 tagname=
7274 lt_save_CC="$CC"
7275 ac_ext=c
7276 ac_cpp='$CPP $CPPFLAGS'
7277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7280
7281
7282 # Source file extension for C test sources.
7283 ac_ext=c
7284
7285 # Object file extension for compiled C test sources.
7286 objext=o
7287 objext=$objext
7288
7289 # Code to be used in simple compile tests
7290 lt_simple_compile_test_code="int some_variable = 0;\n"
7291
7292 # Code to be used in simple link tests
7293 lt_simple_link_test_code='int main(){return(0);}\n'
7294
7295
7296 # If no C compiler was specified, use CC.
7297 LTCC=${LTCC-"$CC"}
7298
7299 # If no C compiler flags were specified, use CFLAGS.
7300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7301
7302 # Allow CC to be a program name with arguments.
7303 compiler=$CC
7304
7305
7306 # save warnings/boilerplate of simple test code
7307 ac_outfile=conftest.$ac_objext
7308 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7310 _lt_compiler_boilerplate=`cat conftest.err`
7311 $rm conftest*
7312
7313 ac_outfile=conftest.$ac_objext
7314 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7316 _lt_linker_boilerplate=`cat conftest.err`
7317 $rm conftest*
7318
7319
7320
7321 lt_prog_compiler_no_builtin_flag=
7322
7323 if test "$GCC" = yes; then
7324 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7325
7326
7327 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7328 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7329 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332 lt_cv_prog_compiler_rtti_exceptions=no
7333 ac_outfile=conftest.$ac_objext
7334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335 lt_compiler_flag="-fno-rtti -fno-exceptions"
7336 # Insert the option either (1) after the last *FLAGS variable, or
7337 # (2) before a word containing "conftest.", or (3) at the end.
7338 # Note that $ac_compile itself does not contain backslashes and begins
7339 # with a dollar sign (not a hyphen), so the echo should work correctly.
7340 # The option is referenced via a variable to avoid confusing sed.
7341 lt_compile=`echo "$ac_compile" | $SED \
7342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7344 -e 's:$: $lt_compiler_flag:'`
7345 (eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
7346 (eval "$lt_compile" 2>conftest.err)
7347 ac_status=$?
7348 cat conftest.err >&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 if (exit $ac_status) && test -s "$ac_outfile"; then
7351 # The compiler can only warn and ignore the option if not recognized
7352 # So say no if there are warnings other than the usual output.
7353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7356 lt_cv_prog_compiler_rtti_exceptions=yes
7357 fi
7358 fi
7359 $rm conftest*
7360
7361 fi
7362 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7363 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7364
7365 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7366 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7367 else
7368 :
7369 fi
7370
7371 fi
7372
7373 lt_prog_compiler_wl=
7374 lt_prog_compiler_pic=
7375 lt_prog_compiler_static=
7376
7377 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7378 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7379
7380 if test "$GCC" = yes; then
7381 lt_prog_compiler_wl='-Wl,'
7382 lt_prog_compiler_static='-static'
7383
7384 case $host_os in
7385 aix*)
7386 # All AIX code is PIC.
7387 if test "$host_cpu" = ia64; then
7388 # AIX 5 now supports IA64 processor
7389 lt_prog_compiler_static='-Bstatic'
7390 fi
7391 ;;
7392
7393 amigaos*)
7394 # FIXME: we need at least 68020 code to build shared libraries, but
7395 # adding the `-m68020' flag to GCC prevents building anything better,
7396 # like `-m68040'.
7397 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7398 ;;
7399
7400 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7401 # PIC is the default for these OSes.
7402 ;;
7403
7404 mingw* | pw32* | os2*)
7405 # This hack is so that the source file can tell whether it is being
7406 # built for inclusion in a dll (and should export symbols for example).
7407 lt_prog_compiler_pic='-DDLL_EXPORT'
7408 ;;
7409
7410 darwin* | rhapsody*)
7411 # PIC is the default on this platform
7412 # Common symbols not allowed in MH_DYLIB files
7413 lt_prog_compiler_pic='-fno-common'
7414 ;;
7415
7416 interix3*)
7417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7418 # Instead, we relocate shared libraries at runtime.
7419 ;;
7420
7421 msdosdjgpp*)
7422 # Just because we use GCC doesn't mean we suddenly get shared libraries
7423 # on systems that don't support them.
7424 lt_prog_compiler_can_build_shared=no
7425 enable_shared=no
7426 ;;
7427
7428 sysv4*MP*)
7429 if test -d /usr/nec; then
7430 lt_prog_compiler_pic=-Kconform_pic
7431 fi
7432 ;;
7433
7434 hpux*)
7435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7436 # not for PA HP-UX.
7437 case $host_cpu in
7438 hppa*64*|ia64*)
7439 # +Z the default
7440 ;;
7441 *)
7442 lt_prog_compiler_pic='-fPIC'
7443 ;;
7444 esac
7445 ;;
7446
7447 *)
7448 lt_prog_compiler_pic='-fPIC'
7449 ;;
7450 esac
7451 else
7452 # PORTME Check for flag to pass linker flags through the system compiler.
7453 case $host_os in
7454 aix*)
7455 lt_prog_compiler_wl='-Wl,'
7456 if test "$host_cpu" = ia64; then
7457 # AIX 5 now supports IA64 processor
7458 lt_prog_compiler_static='-Bstatic'
7459 else
7460 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7461 fi
7462 ;;
7463 darwin*)
7464 # PIC is the default on this platform
7465 # Common symbols not allowed in MH_DYLIB files
7466 case $cc_basename in
7467 xlc*)
7468 lt_prog_compiler_pic='-qnocommon'
7469 lt_prog_compiler_wl='-Wl,'
7470 ;;
7471 esac
7472 ;;
7473
7474 mingw* | pw32* | os2*)
7475 # This hack is so that the source file can tell whether it is being
7476 # built for inclusion in a dll (and should export symbols for example).
7477 lt_prog_compiler_pic='-DDLL_EXPORT'
7478 ;;
7479
7480 hpux9* | hpux10* | hpux11*)
7481 lt_prog_compiler_wl='-Wl,'
7482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7483 # not for PA HP-UX.
7484 case $host_cpu in
7485 hppa*64*|ia64*)
7486 # +Z the default
7487 ;;
7488 *)
7489 lt_prog_compiler_pic='+Z'
7490 ;;
7491 esac
7492 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7493 lt_prog_compiler_static='${wl}-a ${wl}archive'
7494 ;;
7495
7496 irix5* | irix6* | nonstopux*)
7497 lt_prog_compiler_wl='-Wl,'
7498 # PIC (with -KPIC) is the default.
7499 lt_prog_compiler_static='-non_shared'
7500 ;;
7501
7502 newsos6)
7503 lt_prog_compiler_pic='-KPIC'
7504 lt_prog_compiler_static='-Bstatic'
7505 ;;
7506
7507 linux* | k*bsd*-gnu)
7508 case $cc_basename in
7509 icc* | ecc*)
7510 lt_prog_compiler_wl='-Wl,'
7511 lt_prog_compiler_pic='-KPIC'
7512 lt_prog_compiler_static='-static'
7513 ;;
7514 pgcc* | pgf77* | pgf90* | pgf95*)
7515 # Portland Group compilers (*not* the Pentium gcc compiler,
7516 # which looks to be a dead project)
7517 lt_prog_compiler_wl='-Wl,'
7518 lt_prog_compiler_pic='-fpic'
7519 lt_prog_compiler_static='-Bstatic'
7520 ;;
7521 ccc*)
7522 lt_prog_compiler_wl='-Wl,'
7523 # All Alpha code is PIC.
7524 lt_prog_compiler_static='-non_shared'
7525 ;;
7526 esac
7527 ;;
7528
7529 osf3* | osf4* | osf5*)
7530 lt_prog_compiler_wl='-Wl,'
7531 # All OSF/1 code is PIC.
7532 lt_prog_compiler_static='-non_shared'
7533 ;;
7534
7535 solaris*)
7536 lt_prog_compiler_pic='-KPIC'
7537 lt_prog_compiler_static='-Bstatic'
7538 case $cc_basename in
7539 f77* | f90* | f95*)
7540 lt_prog_compiler_wl='-Qoption ld ';;
7541 *)
7542 lt_prog_compiler_wl='-Wl,';;
7543 esac
7544 ;;
7545
7546 sunos4*)
7547 lt_prog_compiler_wl='-Qoption ld '
7548 lt_prog_compiler_pic='-PIC'
7549 lt_prog_compiler_static='-Bstatic'
7550 ;;
7551
7552 sysv4 | sysv4.2uw2* | sysv4.3*)
7553 lt_prog_compiler_wl='-Wl,'
7554 lt_prog_compiler_pic='-KPIC'
7555 lt_prog_compiler_static='-Bstatic'
7556 ;;
7557
7558 sysv4*MP*)
7559 if test -d /usr/nec ;then
7560 lt_prog_compiler_pic='-Kconform_pic'
7561 lt_prog_compiler_static='-Bstatic'
7562 fi
7563 ;;
7564
7565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7566 lt_prog_compiler_wl='-Wl,'
7567 lt_prog_compiler_pic='-KPIC'
7568 lt_prog_compiler_static='-Bstatic'
7569 ;;
7570
7571 unicos*)
7572 lt_prog_compiler_wl='-Wl,'
7573 lt_prog_compiler_can_build_shared=no
7574 ;;
7575
7576 uts4*)
7577 lt_prog_compiler_pic='-pic'
7578 lt_prog_compiler_static='-Bstatic'
7579 ;;
7580
7581 *)
7582 lt_prog_compiler_can_build_shared=no
7583 ;;
7584 esac
7585 fi
7586
7587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7588 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7589
7590 #
7591 # Check to make sure the PIC flag actually works.
7592 #
7593 if test -n "$lt_prog_compiler_pic"; then
7594
7595 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7596 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7597 if test "${lt_prog_compiler_pic_works+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 lt_prog_compiler_pic_works=no
7601 ac_outfile=conftest.$ac_objext
7602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7603 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7604 # Insert the option either (1) after the last *FLAGS variable, or
7605 # (2) before a word containing "conftest.", or (3) at the end.
7606 # Note that $ac_compile itself does not contain backslashes and begins
7607 # with a dollar sign (not a hyphen), so the echo should work correctly.
7608 # The option is referenced via a variable to avoid confusing sed.
7609 lt_compile=`echo "$ac_compile" | $SED \
7610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7612 -e 's:$: $lt_compiler_flag:'`
7613 (eval echo "\"\$as_me:7613: $lt_compile\"" >&5)
7614 (eval "$lt_compile" 2>conftest.err)
7615 ac_status=$?
7616 cat conftest.err >&5
7617 echo "$as_me:7617: \$? = $ac_status" >&5
7618 if (exit $ac_status) && test -s "$ac_outfile"; then
7619 # The compiler can only warn and ignore the option if not recognized
7620 # So say no if there are warnings other than the usual output.
7621 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7624 lt_prog_compiler_pic_works=yes
7625 fi
7626 fi
7627 $rm conftest*
7628
7629 fi
7630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7631 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7632
7633 if test x"$lt_prog_compiler_pic_works" = xyes; then
7634 case $lt_prog_compiler_pic in
7635 "" | " "*) ;;
7636 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7637 esac
7638 else
7639 lt_prog_compiler_pic=
7640 lt_prog_compiler_can_build_shared=no
7641 fi
7642
7643 fi
7644 case $host_os in
7645 # For platforms which do not support PIC, -DPIC is meaningless:
7646 *djgpp*)
7647 lt_prog_compiler_pic=
7648 ;;
7649 *)
7650 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7651 ;;
7652 esac
7653
7654 #
7655 # Check to make sure the static flag actually works.
7656 #
7657 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7658 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7659 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7660 if test "${lt_prog_compiler_static_works+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 lt_prog_compiler_static_works=no
7664 save_LDFLAGS="$LDFLAGS"
7665 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7666 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7668 # The linker can only warn and ignore the option if not recognized
7669 # So say no if there are warnings
7670 if test -s conftest.err; then
7671 # Append any errors to the config.log.
7672 cat conftest.err 1>&5
7673 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7675 if diff conftest.exp conftest.er2 >/dev/null; then
7676 lt_prog_compiler_static_works=yes
7677 fi
7678 else
7679 lt_prog_compiler_static_works=yes
7680 fi
7681 fi
7682 $rm conftest*
7683 LDFLAGS="$save_LDFLAGS"
7684
7685 fi
7686 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7687 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7688
7689 if test x"$lt_prog_compiler_static_works" = xyes; then
7690 :
7691 else
7692 lt_prog_compiler_static=
7693 fi
7694
7695
7696 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7697 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7698 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701 lt_cv_prog_compiler_c_o=no
7702 $rm -r conftest 2>/dev/null
7703 mkdir conftest
7704 cd conftest
7705 mkdir out
7706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7707
7708 lt_compiler_flag="-o out/conftest2.$ac_objext"
7709 # Insert the option either (1) after the last *FLAGS variable, or
7710 # (2) before a word containing "conftest.", or (3) at the end.
7711 # Note that $ac_compile itself does not contain backslashes and begins
7712 # with a dollar sign (not a hyphen), so the echo should work correctly.
7713 lt_compile=`echo "$ac_compile" | $SED \
7714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7716 -e 's:$: $lt_compiler_flag:'`
7717 (eval echo "\"\$as_me:7717: $lt_compile\"" >&5)
7718 (eval "$lt_compile" 2>out/conftest.err)
7719 ac_status=$?
7720 cat out/conftest.err >&5
7721 echo "$as_me:7721: \$? = $ac_status" >&5
7722 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7723 then
7724 # The compiler can only warn and ignore the option if not recognized
7725 # So say no if there are warnings
7726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7727 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7728 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7729 lt_cv_prog_compiler_c_o=yes
7730 fi
7731 fi
7732 chmod u+w . 2>&5
7733 $rm conftest*
7734 # SGI C++ compiler will create directory out/ii_files/ for
7735 # template instantiation
7736 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7737 $rm out/* && rmdir out
7738 cd ..
7739 rmdir conftest
7740 $rm conftest*
7741
7742 fi
7743 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7744 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7745
7746
7747 hard_links="nottested"
7748 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7749 # do not overwrite the value of need_locks provided by the user
7750 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7751 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7752 hard_links=yes
7753 $rm conftest*
7754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7755 touch conftest.a
7756 ln conftest.a conftest.b 2>&5 || hard_links=no
7757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7758 { echo "$as_me:$LINENO: result: $hard_links" >&5
7759 echo "${ECHO_T}$hard_links" >&6; }
7760 if test "$hard_links" = no; then
7761 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7762 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7763 need_locks=warn
7764 fi
7765 else
7766 need_locks=no
7767 fi
7768
7769 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7771
7772 runpath_var=
7773 allow_undefined_flag=
7774 enable_shared_with_static_runtimes=no
7775 archive_cmds=
7776 archive_expsym_cmds=
7777 old_archive_From_new_cmds=
7778 old_archive_from_expsyms_cmds=
7779 export_dynamic_flag_spec=
7780 whole_archive_flag_spec=
7781 thread_safe_flag_spec=
7782 hardcode_libdir_flag_spec=
7783 hardcode_libdir_flag_spec_ld=
7784 hardcode_libdir_separator=
7785 hardcode_direct=no
7786 hardcode_minus_L=no
7787 hardcode_shlibpath_var=unsupported
7788 link_all_deplibs=unknown
7789 hardcode_automatic=no
7790 module_cmds=
7791 module_expsym_cmds=
7792 always_export_symbols=no
7793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7794 # include_expsyms should be a list of space-separated symbols to be *always*
7795 # included in the symbol list
7796 include_expsyms=
7797 # exclude_expsyms can be an extended regexp of symbols to exclude
7798 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7799 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7800 # as well as any symbol that contains `d'.
7801 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7802 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7803 # platforms (ab)use it in PIC code, but their linkers get confused if
7804 # the symbol is explicitly referenced. Since portable code cannot
7805 # rely on this symbol name, it's probably fine to never include it in
7806 # preloaded symbol tables.
7807 extract_expsyms_cmds=
7808 # Just being paranoid about ensuring that cc_basename is set.
7809 for cc_temp in $compiler""; do
7810 case $cc_temp in
7811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7813 \-*) ;;
7814 *) break;;
7815 esac
7816 done
7817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7818
7819 case $host_os in
7820 cygwin* | mingw* | pw32*)
7821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7822 # When not using gcc, we currently assume that we are using
7823 # Microsoft Visual C++.
7824 if test "$GCC" != yes; then
7825 with_gnu_ld=no
7826 fi
7827 ;;
7828 interix*)
7829 # we just hope/assume this is gcc and not c89 (= MSVC++)
7830 with_gnu_ld=yes
7831 ;;
7832 openbsd*)
7833 with_gnu_ld=no
7834 ;;
7835 esac
7836
7837 ld_shlibs=yes
7838 if test "$with_gnu_ld" = yes; then
7839 # If archive_cmds runs LD, not CC, wlarc should be empty
7840 wlarc='${wl}'
7841
7842 # Set some defaults for GNU ld with shared library support. These
7843 # are reset later if shared libraries are not supported. Putting them
7844 # here allows them to be overridden if necessary.
7845 runpath_var=LD_RUN_PATH
7846 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7847 export_dynamic_flag_spec='${wl}--export-dynamic'
7848 # ancient GNU ld didn't support --whole-archive et. al.
7849 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7850 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7851 else
7852 whole_archive_flag_spec=
7853 fi
7854 supports_anon_versioning=no
7855 case `$LD -v 2>/dev/null` in
7856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7859 *\ 2.11.*) ;; # other 2.11 versions
7860 *) supports_anon_versioning=yes ;;
7861 esac
7862
7863 # See if GNU ld supports shared libraries.
7864 case $host_os in
7865 aix3* | aix4* | aix5*)
7866 # On AIX/PPC, the GNU linker is very broken
7867 if test "$host_cpu" != ia64; then
7868 ld_shlibs=no
7869 cat <<EOF 1>&2
7870
7871 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7872 *** to be unable to reliably create shared libraries on AIX.
7873 *** Therefore, libtool is disabling shared libraries support. If you
7874 *** really care for shared libraries, you may want to modify your PATH
7875 *** so that a non-GNU linker is found, and then restart.
7876
7877 EOF
7878 fi
7879 ;;
7880
7881 amigaos*)
7882 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)'
7883 hardcode_libdir_flag_spec='-L$libdir'
7884 hardcode_minus_L=yes
7885
7886 # Samuel A. Falvo II <[email protected]> reports
7887 # that the semantics of dynamic libraries on AmigaOS, at least up
7888 # to version 4, is to share data among multiple programs linked
7889 # with the same dynamic library. Since this doesn't match the
7890 # behavior of shared libraries on other platforms, we can't use
7891 # them.
7892 ld_shlibs=no
7893 ;;
7894
7895 beos*)
7896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7897 allow_undefined_flag=unsupported
7898 # Joseph Beckenbach <[email protected]> says some releases of gcc
7899 # support --undefined. This deserves some investigation. FIXME
7900 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7901 else
7902 ld_shlibs=no
7903 fi
7904 ;;
7905
7906 cygwin* | mingw* | pw32*)
7907 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7908 # as there is no search path for DLLs.
7909 hardcode_libdir_flag_spec='-L$libdir'
7910 allow_undefined_flag=unsupported
7911 always_export_symbols=no
7912 enable_shared_with_static_runtimes=yes
7913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7914
7915 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7917 # If the export-symbols file already is a .def file (1st line
7918 # is EXPORTS), use it as is; otherwise, prepend...
7919 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7920 cp $export_symbols $output_objdir/$soname.def;
7921 else
7922 echo EXPORTS > $output_objdir/$soname.def;
7923 cat $export_symbols >> $output_objdir/$soname.def;
7924 fi~
7925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7926 else
7927 ld_shlibs=no
7928 fi
7929 ;;
7930
7931 interix3*)
7932 hardcode_direct=no
7933 hardcode_shlibpath_var=no
7934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7935 export_dynamic_flag_spec='${wl}-E'
7936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7937 # Instead, shared libraries are loaded at an image base (0x10000000 by
7938 # default) and relocated if they conflict, which is a slow very memory
7939 # consuming and fragmenting process. To avoid this, we pick a random,
7940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7941 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7943 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'
7944 ;;
7945
7946 linux* | k*bsd*-gnu)
7947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7948 tmp_addflag=
7949 case $cc_basename,$host_cpu in
7950 pgcc*) # Portland Group C compiler
7951 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'
7952 tmp_addflag=' $pic_flag'
7953 ;;
7954 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7955 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'
7956 tmp_addflag=' $pic_flag -Mnomain' ;;
7957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7958 tmp_addflag=' -i_dynamic' ;;
7959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7960 tmp_addflag=' -i_dynamic -nofor_main' ;;
7961 ifc* | ifort*) # Intel Fortran compiler
7962 tmp_addflag=' -nofor_main' ;;
7963 esac
7964 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7965
7966 if test $supports_anon_versioning = yes; then
7967 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7969 $echo "local: *; };" >> $output_objdir/$libname.ver~
7970 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7971 fi
7972 link_all_deplibs=no
7973 else
7974 ld_shlibs=no
7975 fi
7976 ;;
7977
7978 netbsd* | netbsdelf*-gnu)
7979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7980 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7981 wlarc=
7982 else
7983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7985 fi
7986 ;;
7987
7988 solaris*)
7989 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7990 ld_shlibs=no
7991 cat <<EOF 1>&2
7992
7993 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7994 *** create shared libraries on Solaris systems. Therefore, libtool
7995 *** is disabling shared libraries support. We urge you to upgrade GNU
7996 *** binutils to release 2.9.1 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 EOF
8001 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8004 else
8005 ld_shlibs=no
8006 fi
8007 ;;
8008
8009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8010 case `$LD -v 2>&1` in
8011 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8012 ld_shlibs=no
8013 cat <<_LT_EOF 1>&2
8014
8015 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8016 *** reliably create shared libraries on SCO systems. Therefore, libtool
8017 *** is disabling shared libraries support. We urge you to upgrade GNU
8018 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8019 *** your PATH or compiler configuration so that the native linker is
8020 *** used, and then restart.
8021
8022 _LT_EOF
8023 ;;
8024 *)
8025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8026 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8029 else
8030 ld_shlibs=no
8031 fi
8032 ;;
8033 esac
8034 ;;
8035
8036 sunos4*)
8037 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8038 wlarc=
8039 hardcode_direct=yes
8040 hardcode_shlibpath_var=no
8041 ;;
8042
8043 *)
8044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047 else
8048 ld_shlibs=no
8049 fi
8050 ;;
8051 esac
8052
8053 if test "$ld_shlibs" = no; then
8054 runpath_var=
8055 hardcode_libdir_flag_spec=
8056 export_dynamic_flag_spec=
8057 whole_archive_flag_spec=
8058 fi
8059 else
8060 # PORTME fill in a description of your system's linker (not GNU ld)
8061 case $host_os in
8062 aix3*)
8063 allow_undefined_flag=unsupported
8064 always_export_symbols=yes
8065 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'
8066 # Note: this linker hardcodes the directories in LIBPATH if there
8067 # are no directories specified by -L.
8068 hardcode_minus_L=yes
8069 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8070 # Neither direct hardcoding nor static linking is supported with a
8071 # broken collect2.
8072 hardcode_direct=unsupported
8073 fi
8074 ;;
8075
8076 aix4* | aix5*)
8077 if test "$host_cpu" = ia64; then
8078 # On IA64, the linker does run time linking by default, so we don't
8079 # have to do anything special.
8080 aix_use_runtimelinking=no
8081 exp_sym_flag='-Bexport'
8082 no_entry_flag=""
8083 else
8084 # If we're using GNU nm, then we don't want the "-C" option.
8085 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8086 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8087 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'
8088 else
8089 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'
8090 fi
8091 aix_use_runtimelinking=no
8092
8093 # Test if we are trying to use run time linking or normal
8094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8095 # need to do runtime linking.
8096 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8097 for ld_flag in $LDFLAGS; do
8098 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8099 aix_use_runtimelinking=yes
8100 break
8101 fi
8102 done
8103 ;;
8104 esac
8105
8106 exp_sym_flag='-bexport'
8107 no_entry_flag='-bnoentry'
8108 fi
8109
8110 # When large executables or shared objects are built, AIX ld can
8111 # have problems creating the table of contents. If linking a library
8112 # or program results in "error TOC overflow" add -mminimal-toc to
8113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8115
8116 archive_cmds=''
8117 hardcode_direct=yes
8118 hardcode_libdir_separator=':'
8119 link_all_deplibs=yes
8120
8121 if test "$GCC" = yes; then
8122 case $host_os in aix4.[012]|aix4.[012].*)
8123 # We only want to do this on AIX 4.2 and lower, the check
8124 # below for broken collect2 doesn't work under 4.3+
8125 collect2name=`${CC} -print-prog-name=collect2`
8126 if test -f "$collect2name" && \
8127 strings "$collect2name" | grep resolve_lib_name >/dev/null
8128 then
8129 # We have reworked collect2
8130 hardcode_direct=yes
8131 else
8132 # We have old collect2
8133 hardcode_direct=unsupported
8134 # It fails to find uninstalled libraries when the uninstalled
8135 # path is not listed in the libpath. Setting hardcode_minus_L
8136 # to unsupported forces relinking
8137 hardcode_minus_L=yes
8138 hardcode_libdir_flag_spec='-L$libdir'
8139 hardcode_libdir_separator=
8140 fi
8141 ;;
8142 esac
8143 shared_flag='-shared'
8144 if test "$aix_use_runtimelinking" = yes; then
8145 shared_flag="$shared_flag "'${wl}-G'
8146 fi
8147 else
8148 # not using gcc
8149 if test "$host_cpu" = ia64; then
8150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8151 # chokes on -Wl,-G. The following line is correct:
8152 shared_flag='-G'
8153 else
8154 if test "$aix_use_runtimelinking" = yes; then
8155 shared_flag='${wl}-G'
8156 else
8157 shared_flag='${wl}-bM:SRE'
8158 fi
8159 fi
8160 fi
8161
8162 # It seems that -bexpall does not export symbols beginning with
8163 # underscore (_), so it is better to generate a list of symbols to export.
8164 always_export_symbols=yes
8165 if test "$aix_use_runtimelinking" = yes; then
8166 # Warning - without using the other runtime loading flags (-brtl),
8167 # -berok will link without error, but may produce a broken library.
8168 allow_undefined_flag='-berok'
8169 # Determine the default libpath from the value encoded in an empty executable.
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176
8177 int
8178 main ()
8179 {
8180
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext conftest$ac_exeext
8186 if { (ac_try="$ac_link"
8187 case "(($ac_try" in
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_link") 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest$ac_exeext'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219
8220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8221 }'`
8222 # Check for a 64-bit object if we didn't find anything.
8223 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; }
8224 }'`; fi
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8235
8236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8237 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"
8238 else
8239 if test "$host_cpu" = ia64; then
8240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8241 allow_undefined_flag="-z nodefs"
8242 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"
8243 else
8244 # Determine the default libpath from the value encoded in an empty executable.
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251
8252 int
8253 main ()
8254 {
8255
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8262 case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_link") 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_try") 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294
8295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8296 }'`
8297 # Check for a 64-bit object if we didn't find anything.
8298 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; }
8299 }'`; fi
8300 else
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304
8305 fi
8306
8307 rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8310
8311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8312 # Warning - without using the other run time loading flags,
8313 # -berok will link without error, but may produce a broken library.
8314 no_undefined_flag=' ${wl}-bernotok'
8315 allow_undefined_flag=' ${wl}-berok'
8316 # Exported symbols can be pulled into shared objects from archives
8317 whole_archive_flag_spec='$convenience'
8318 archive_cmds_need_lc=yes
8319 # This is similar to how AIX traditionally builds its shared libraries.
8320 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'
8321 fi
8322 fi
8323 ;;
8324
8325 amigaos*)
8326 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)'
8327 hardcode_libdir_flag_spec='-L$libdir'
8328 hardcode_minus_L=yes
8329 # see comment about different semantics on the GNU ld section
8330 ld_shlibs=no
8331 ;;
8332
8333 bsdi[45]*)
8334 export_dynamic_flag_spec=-rdynamic
8335 ;;
8336
8337 cygwin* | mingw* | pw32*)
8338 # When not using gcc, we currently assume that we are using
8339 # Microsoft Visual C++.
8340 # hardcode_libdir_flag_spec is actually meaningless, as there is
8341 # no search path for DLLs.
8342 hardcode_libdir_flag_spec=' '
8343 allow_undefined_flag=unsupported
8344 # Tell ltmain to make .lib files, not .a files.
8345 libext=lib
8346 # Tell ltmain to make .dll files, not .so files.
8347 shrext_cmds=".dll"
8348 # FIXME: Setting linknames here is a bad hack.
8349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8350 # The linker will automatically build a .lib file if we build a DLL.
8351 old_archive_From_new_cmds='true'
8352 # FIXME: Should let the user specify the lib program.
8353 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8354 fix_srcfile_path='`cygpath -w "$srcfile"`'
8355 enable_shared_with_static_runtimes=yes
8356 ;;
8357
8358 darwin* | rhapsody*)
8359 case $host_os in
8360 rhapsody* | darwin1.[012])
8361 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8362 ;;
8363 *) # Darwin 1.3 on
8364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8365 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8366 else
8367 case ${MACOSX_DEPLOYMENT_TARGET} in
8368 10.[012])
8369 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8370 ;;
8371 10.*)
8372 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8373 ;;
8374 esac
8375 fi
8376 ;;
8377 esac
8378 archive_cmds_need_lc=no
8379 hardcode_direct=no
8380 hardcode_automatic=yes
8381 hardcode_shlibpath_var=unsupported
8382 whole_archive_flag_spec=''
8383 link_all_deplibs=yes
8384 if test "$GCC" = yes ; then
8385 output_verbose_link_cmd='echo'
8386 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8387 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8388 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8389 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}'
8390 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}'
8391 else
8392 case $cc_basename in
8393 xlc*)
8394 output_verbose_link_cmd='echo'
8395 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8398 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}'
8399 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}'
8400 ;;
8401 *)
8402 ld_shlibs=no
8403 ;;
8404 esac
8405 fi
8406 ;;
8407
8408 dgux*)
8409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_libdir_flag_spec='-L$libdir'
8411 hardcode_shlibpath_var=no
8412 ;;
8413
8414 freebsd1*)
8415 ld_shlibs=no
8416 ;;
8417
8418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8419 # support. Future versions do this automatically, but an explicit c++rt0.o
8420 # does not break anything, and helps significantly (at the cost of a little
8421 # extra space).
8422 freebsd2.2*)
8423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8424 hardcode_libdir_flag_spec='-R$libdir'
8425 hardcode_direct=yes
8426 hardcode_shlibpath_var=no
8427 ;;
8428
8429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8430 freebsd2*)
8431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8432 hardcode_direct=yes
8433 hardcode_minus_L=yes
8434 hardcode_shlibpath_var=no
8435 ;;
8436
8437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8438 freebsd* | dragonfly*)
8439 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8440 hardcode_libdir_flag_spec='-R$libdir'
8441 hardcode_direct=yes
8442 hardcode_shlibpath_var=no
8443 ;;
8444
8445 hpux9*)
8446 if test "$GCC" = yes; then
8447 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'
8448 else
8449 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'
8450 fi
8451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452 hardcode_libdir_separator=:
8453 hardcode_direct=yes
8454
8455 # hardcode_minus_L: Not really in the search PATH,
8456 # but as the default location of the library.
8457 hardcode_minus_L=yes
8458 export_dynamic_flag_spec='${wl}-E'
8459 ;;
8460
8461 hpux10*)
8462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8464 else
8465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8466 fi
8467 if test "$with_gnu_ld" = no; then
8468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8469 hardcode_libdir_separator=:
8470
8471 hardcode_direct=yes
8472 export_dynamic_flag_spec='${wl}-E'
8473
8474 # hardcode_minus_L: Not really in the search PATH,
8475 # but as the default location of the library.
8476 hardcode_minus_L=yes
8477 fi
8478 ;;
8479
8480 hpux11*)
8481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8482 case $host_cpu in
8483 hppa*64*)
8484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 ;;
8486 ia64*)
8487 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8488 ;;
8489 *)
8490 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8491 ;;
8492 esac
8493 else
8494 case $host_cpu in
8495 hppa*64*)
8496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8497 ;;
8498 ia64*)
8499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8500 ;;
8501 *)
8502 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8503 ;;
8504 esac
8505 fi
8506 if test "$with_gnu_ld" = no; then
8507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508 hardcode_libdir_separator=:
8509
8510 case $host_cpu in
8511 hppa*64*|ia64*)
8512 hardcode_libdir_flag_spec_ld='+b $libdir'
8513 hardcode_direct=no
8514 hardcode_shlibpath_var=no
8515 ;;
8516 *)
8517 hardcode_direct=yes
8518 export_dynamic_flag_spec='${wl}-E'
8519
8520 # hardcode_minus_L: Not really in the search PATH,
8521 # but as the default location of the library.
8522 hardcode_minus_L=yes
8523 ;;
8524 esac
8525 fi
8526 ;;
8527
8528 irix5* | irix6* | nonstopux*)
8529 if test "$GCC" = yes; then
8530 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'
8531 else
8532 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'
8533 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8534 fi
8535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536 hardcode_libdir_separator=:
8537 link_all_deplibs=yes
8538 ;;
8539
8540 netbsd* | netbsdelf*-gnu)
8541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8543 else
8544 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8545 fi
8546 hardcode_libdir_flag_spec='-R$libdir'
8547 hardcode_direct=yes
8548 hardcode_shlibpath_var=no
8549 ;;
8550
8551 newsos6)
8552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8553 hardcode_direct=yes
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 hardcode_libdir_separator=:
8556 hardcode_shlibpath_var=no
8557 ;;
8558
8559 openbsd*)
8560 hardcode_direct=yes
8561 hardcode_shlibpath_var=no
8562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8564 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8566 export_dynamic_flag_spec='${wl}-E'
8567 else
8568 case $host_os in
8569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571 hardcode_libdir_flag_spec='-R$libdir'
8572 ;;
8573 *)
8574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8576 ;;
8577 esac
8578 fi
8579 ;;
8580
8581 os2*)
8582 hardcode_libdir_flag_spec='-L$libdir'
8583 hardcode_minus_L=yes
8584 allow_undefined_flag=unsupported
8585 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'
8586 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8587 ;;
8588
8589 osf3*)
8590 if test "$GCC" = yes; then
8591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8592 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'
8593 else
8594 allow_undefined_flag=' -expect_unresolved \*'
8595 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'
8596 fi
8597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598 hardcode_libdir_separator=:
8599 ;;
8600
8601 osf4* | osf5*) # as osf3* with the addition of -msym flag
8602 if test "$GCC" = yes; then
8603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8604 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'
8605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8606 else
8607 allow_undefined_flag=' -expect_unresolved \*'
8608 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'
8609 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8610 $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'
8611
8612 # Both c and cxx compiler support -rpath directly
8613 hardcode_libdir_flag_spec='-rpath $libdir'
8614 fi
8615 hardcode_libdir_separator=:
8616 ;;
8617
8618 solaris*)
8619 no_undefined_flag=' -z text'
8620 if test "$GCC" = yes; then
8621 wlarc='${wl}'
8622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8625 else
8626 wlarc=''
8627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8630 fi
8631 hardcode_libdir_flag_spec='-R$libdir'
8632 hardcode_shlibpath_var=no
8633 case $host_os in
8634 solaris2.[0-5] | solaris2.[0-5].*) ;;
8635 *)
8636 # The compiler driver will combine linker options so we
8637 # cannot just pass the convience library names through
8638 # without $wl, iff we do not link with $LD.
8639 # Luckily, gcc supports the same syntax we need for Sun Studio.
8640 # Supported since Solaris 2.6 (maybe 2.5.1?)
8641 case $wlarc in
8642 '')
8643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8644 *)
8645 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' ;;
8646 esac ;;
8647 esac
8648 link_all_deplibs=yes
8649 ;;
8650
8651 sunos4*)
8652 if test "x$host_vendor" = xsequent; then
8653 # Use $CC to link under sequent, because it throws in some extra .o
8654 # files that make .init and .fini sections work.
8655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8656 else
8657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8658 fi
8659 hardcode_libdir_flag_spec='-L$libdir'
8660 hardcode_direct=yes
8661 hardcode_minus_L=yes
8662 hardcode_shlibpath_var=no
8663 ;;
8664
8665 sysv4)
8666 case $host_vendor in
8667 sni)
8668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669 hardcode_direct=yes # is this really true???
8670 ;;
8671 siemens)
8672 ## LD is ld it makes a PLAMLIB
8673 ## CC just makes a GrossModule.
8674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8675 reload_cmds='$CC -r -o $output$reload_objs'
8676 hardcode_direct=no
8677 ;;
8678 motorola)
8679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8681 ;;
8682 esac
8683 runpath_var='LD_RUN_PATH'
8684 hardcode_shlibpath_var=no
8685 ;;
8686
8687 sysv4.3*)
8688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_shlibpath_var=no
8690 export_dynamic_flag_spec='-Bexport'
8691 ;;
8692
8693 sysv4*MP*)
8694 if test -d /usr/nec; then
8695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_shlibpath_var=no
8697 runpath_var=LD_RUN_PATH
8698 hardcode_runpath_var=yes
8699 ld_shlibs=yes
8700 fi
8701 ;;
8702
8703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8704 no_undefined_flag='${wl}-z,text'
8705 archive_cmds_need_lc=no
8706 hardcode_shlibpath_var=no
8707 runpath_var='LD_RUN_PATH'
8708
8709 if test "$GCC" = yes; then
8710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 else
8713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 fi
8716 ;;
8717
8718 sysv5* | sco3.2v5* | sco5v6*)
8719 # Note: We can NOT use -z defs as we might desire, because we do not
8720 # link with -lc, and that would cause any symbols used from libc to
8721 # always be unresolved, which means just about no library would
8722 # ever link correctly. If we're not using GNU ld we use -z text
8723 # though, which does catch some bad symbols but isn't as heavy-handed
8724 # as -z defs.
8725 no_undefined_flag='${wl}-z,text'
8726 allow_undefined_flag='${wl}-z,nodefs'
8727 archive_cmds_need_lc=no
8728 hardcode_shlibpath_var=no
8729 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8730 hardcode_libdir_separator=':'
8731 link_all_deplibs=yes
8732 export_dynamic_flag_spec='${wl}-Bexport'
8733 runpath_var='LD_RUN_PATH'
8734
8735 if test "$GCC" = yes; then
8736 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 else
8739 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8741 fi
8742 ;;
8743
8744 uts4*)
8745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_libdir_flag_spec='-L$libdir'
8747 hardcode_shlibpath_var=no
8748 ;;
8749
8750 *)
8751 ld_shlibs=no
8752 ;;
8753 esac
8754 fi
8755
8756 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8757 echo "${ECHO_T}$ld_shlibs" >&6; }
8758 test "$ld_shlibs" = no && can_build_shared=no
8759
8760 #
8761 # Do we need to explicitly link libc?
8762 #
8763 case "x$archive_cmds_need_lc" in
8764 x|xyes)
8765 # Assume -lc should be added
8766 archive_cmds_need_lc=yes
8767
8768 if test "$enable_shared" = yes && test "$GCC" = yes; then
8769 case $archive_cmds in
8770 *'~'*)
8771 # FIXME: we may have to deal with multi-command sequences.
8772 ;;
8773 '$CC '*)
8774 # Test whether the compiler implicitly links with -lc since on some
8775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8776 # to ld, don't add -lc before -lgcc.
8777 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8779 $rm conftest*
8780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8781
8782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783 (eval $ac_compile) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } 2>conftest.err; then
8787 soname=conftest
8788 lib=conftest
8789 libobjs=conftest.$ac_objext
8790 deplibs=
8791 wl=$lt_prog_compiler_wl
8792 pic_flag=$lt_prog_compiler_pic
8793 compiler_flags=-v
8794 linker_flags=-v
8795 verstring=
8796 output_objdir=.
8797 libname=conftest
8798 lt_save_allow_undefined_flag=$allow_undefined_flag
8799 allow_undefined_flag=
8800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8801 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }
8805 then
8806 archive_cmds_need_lc=no
8807 else
8808 archive_cmds_need_lc=yes
8809 fi
8810 allow_undefined_flag=$lt_save_allow_undefined_flag
8811 else
8812 cat conftest.err 1>&5
8813 fi
8814 $rm conftest*
8815 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8816 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8817 ;;
8818 esac
8819 fi
8820 ;;
8821 esac
8822
8823 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8825 library_names_spec=
8826 libname_spec='lib$name'
8827 soname_spec=
8828 shrext_cmds=".so"
8829 postinstall_cmds=
8830 postuninstall_cmds=
8831 finish_cmds=
8832 finish_eval=
8833 shlibpath_var=
8834 shlibpath_overrides_runpath=unknown
8835 version_type=none
8836 dynamic_linker="$host_os ld.so"
8837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8838 if test "$GCC" = yes; then
8839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8841 # if the path contains ";" then we assume it to be the separator
8842 # otherwise default to the standard path separator (i.e. ":") - it is
8843 # assumed that no part of a normal pathname contains ";" but that should
8844 # okay in the real world where ";" in dirpaths is itself problematic.
8845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8846 else
8847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8848 fi
8849 else
8850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8851 fi
8852 need_lib_prefix=unknown
8853 hardcode_into_libs=no
8854
8855 # when you set need_version to no, make sure it does not cause -set_version
8856 # flags to be left without arguments
8857 need_version=unknown
8858
8859 case $host_os in
8860 aix3*)
8861 version_type=linux
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8863 shlibpath_var=LIBPATH
8864
8865 # AIX 3 has no versioning support, so we append a major version to the name.
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 ;;
8868
8869 aix4* | aix5*)
8870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
8873 hardcode_into_libs=yes
8874 if test "$host_cpu" = ia64; then
8875 # AIX 5 supports IA64
8876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 else
8879 # With GCC up to 2.95.x, collect2 would create an import file
8880 # for dependence libraries. The import file would start with
8881 # the line `#! .'. This would cause the generated library to
8882 # depend on `.', always an invalid library. This was fixed in
8883 # development snapshots of GCC prior to 3.0.
8884 case $host_os in
8885 aix4 | aix4.[01] | aix4.[01].*)
8886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8887 echo ' yes '
8888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8889 :
8890 else
8891 can_build_shared=no
8892 fi
8893 ;;
8894 esac
8895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8896 # soname into executable. Probably we can add versioning support to
8897 # collect2, so additional links can be useful in future.
8898 if test "$aix_use_runtimelinking" = yes; then
8899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8900 # instead of lib<name>.a to let people know that these are not
8901 # typical AIX shared libraries.
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 else
8904 # We preserve .a as extension for shared libraries through AIX4.2
8905 # and later when we are not doing run time linking.
8906 library_names_spec='${libname}${release}.a $libname.a'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 fi
8909 shlibpath_var=LIBPATH
8910 fi
8911 ;;
8912
8913 amigaos*)
8914 library_names_spec='$libname.ixlibrary $libname.a'
8915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8916 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'
8917 ;;
8918
8919 beos*)
8920 library_names_spec='${libname}${shared_ext}'
8921 dynamic_linker="$host_os ld.so"
8922 shlibpath_var=LIBRARY_PATH
8923 ;;
8924
8925 bsdi[45]*)
8926 version_type=linux
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8934 # the default ld.so.conf also contains /usr/contrib/lib and
8935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8936 # libtool to hard-code these into programs
8937 ;;
8938
8939 cygwin* | mingw* | pw32*)
8940 version_type=windows
8941 shrext_cmds=".dll"
8942 need_version=no
8943 need_lib_prefix=no
8944
8945 case $GCC,$host_os in
8946 yes,cygwin* | yes,mingw* | yes,pw32*)
8947 library_names_spec='$libname.dll.a'
8948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8949 postinstall_cmds='base_file=`basename \${file}`~
8950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8951 dldir=$destdir/`dirname \$dlpath`~
8952 test -d \$dldir || mkdir -p \$dldir~
8953 $install_prog $dir/$dlname \$dldir/$dlname~
8954 chmod a+x \$dldir/$dlname'
8955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8956 dlpath=$dir/\$dldll~
8957 $rm \$dlpath'
8958 shlibpath_overrides_runpath=yes
8959
8960 case $host_os in
8961 cygwin*)
8962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8965 ;;
8966 mingw*)
8967 # MinGW DLLs use traditional 'lib' prefix
8968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8971 # It is most probably a Windows format PATH printed by
8972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8973 # path with ; separators, and with drive letters. We can handle the
8974 # drive letters (cygwin fileutils understands them), so leave them,
8975 # especially as we might pass files found there to a mingw objdump,
8976 # which wouldn't understand a cygwinified path. Ahh.
8977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8978 else
8979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8980 fi
8981 ;;
8982 pw32*)
8983 # pw32 DLLs use 'pw' prefix rather than 'lib'
8984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8985 ;;
8986 esac
8987 ;;
8988
8989 *)
8990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8991 ;;
8992 esac
8993 dynamic_linker='Win32 ld.exe'
8994 # FIXME: first we should search . and the directory the executable is in
8995 shlibpath_var=PATH
8996 ;;
8997
8998 darwin* | rhapsody*)
8999 dynamic_linker="$host_os dyld"
9000 version_type=darwin
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9004 soname_spec='${libname}${release}${major}$shared_ext'
9005 shlibpath_overrides_runpath=yes
9006 shlibpath_var=DYLD_LIBRARY_PATH
9007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9008 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9009 if test "$GCC" = yes; then
9010 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"`
9011 else
9012 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9013 fi
9014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9015 ;;
9016
9017 dgux*)
9018 version_type=linux
9019 need_lib_prefix=no
9020 need_version=no
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 shlibpath_var=LD_LIBRARY_PATH
9024 ;;
9025
9026 freebsd1*)
9027 dynamic_linker=no
9028 ;;
9029
9030 freebsd* | dragonfly*)
9031 # DragonFly does not have aout. When/if they implement a new
9032 # versioning mechanism, adjust this.
9033 if test -x /usr/bin/objformat; then
9034 objformat=`/usr/bin/objformat`
9035 else
9036 case $host_os in
9037 freebsd[123]*) objformat=aout ;;
9038 *) objformat=elf ;;
9039 esac
9040 fi
9041 version_type=freebsd-$objformat
9042 case $version_type in
9043 freebsd-elf*)
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9045 need_version=no
9046 need_lib_prefix=no
9047 ;;
9048 freebsd-*)
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9050 need_version=yes
9051 ;;
9052 esac
9053 shlibpath_var=LD_LIBRARY_PATH
9054 case $host_os in
9055 freebsd2*)
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058 freebsd3.[01]* | freebsdelf3.[01]*)
9059 shlibpath_overrides_runpath=yes
9060 hardcode_into_libs=yes
9061 ;;
9062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9064 shlibpath_overrides_runpath=no
9065 hardcode_into_libs=yes
9066 ;;
9067 freebsd*) # from 4.6 on
9068 shlibpath_overrides_runpath=yes
9069 hardcode_into_libs=yes
9070 ;;
9071 esac
9072 ;;
9073
9074 gnu*)
9075 version_type=linux
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 hardcode_into_libs=yes
9082 ;;
9083
9084 hpux9* | hpux10* | hpux11*)
9085 # Give a soname corresponding to the major version so that dld.sl refuses to
9086 # link against other versions.
9087 version_type=sunos
9088 need_lib_prefix=no
9089 need_version=no
9090 case $host_cpu in
9091 ia64*)
9092 shrext_cmds='.so'
9093 hardcode_into_libs=yes
9094 dynamic_linker="$host_os dld.so"
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 if test "X$HPUX_IA64_MODE" = X32; then
9100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9101 else
9102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9103 fi
9104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9105 ;;
9106 hppa*64*)
9107 shrext_cmds='.sl'
9108 hardcode_into_libs=yes
9109 dynamic_linker="$host_os dld.sl"
9110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9116 ;;
9117 *)
9118 shrext_cmds='.sl'
9119 dynamic_linker="$host_os dld.sl"
9120 shlibpath_var=SHLIB_PATH
9121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 ;;
9125 esac
9126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9127 postinstall_cmds='chmod 555 $lib'
9128 ;;
9129
9130 interix3*)
9131 version_type=linux
9132 need_lib_prefix=no
9133 need_version=no
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=no
9139 hardcode_into_libs=yes
9140 ;;
9141
9142 irix5* | irix6* | nonstopux*)
9143 case $host_os in
9144 nonstopux*) version_type=nonstopux ;;
9145 *)
9146 if test "$lt_cv_prog_gnu_ld" = yes; then
9147 version_type=linux
9148 else
9149 version_type=irix
9150 fi ;;
9151 esac
9152 need_lib_prefix=no
9153 need_version=no
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9156 case $host_os in
9157 irix5* | nonstopux*)
9158 libsuff= shlibsuff=
9159 ;;
9160 *)
9161 case $LD in # libtool.m4 will add one of these switches to LD
9162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9163 libsuff= shlibsuff= libmagic=32-bit;;
9164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9165 libsuff=32 shlibsuff=N32 libmagic=N32;;
9166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9168 *) libsuff= shlibsuff= libmagic=never-match;;
9169 esac
9170 ;;
9171 esac
9172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9173 shlibpath_overrides_runpath=no
9174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9176 hardcode_into_libs=yes
9177 ;;
9178
9179 # No shared lib support for Linux oldld, aout, or coff.
9180 linux*oldld* | linux*aout* | linux*coff*)
9181 dynamic_linker=no
9182 ;;
9183
9184 # This must be Linux ELF.
9185 linux* | k*bsd*-gnu)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=no
9194 # This implies no fast_install, which is unacceptable.
9195 # Some rework will be needed to allow for fast_install
9196 # before this can be enabled.
9197 hardcode_into_libs=yes
9198
9199 # Append ld.so.conf contents to the search path
9200 if test -f /etc/ld.so.conf; then
9201 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' ' '`
9202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9203 fi
9204
9205 # We used to test for /lib/ld.so.1 and disable shared libraries on
9206 # powerpc, because MkLinux only supported shared libraries with the
9207 # GNU dynamic linker. Since this was broken with cross compilers,
9208 # most powerpc-linux boxes support dynamic linking these days and
9209 # people can always --disable-shared, the test was removed, and we
9210 # assume the GNU/Linux dynamic linker is in use.
9211 dynamic_linker='GNU/Linux ld.so'
9212 ;;
9213
9214 netbsdelf*-gnu)
9215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=no
9222 hardcode_into_libs=yes
9223 dynamic_linker='NetBSD ld.elf_so'
9224 ;;
9225
9226 netbsd*)
9227 version_type=sunos
9228 need_lib_prefix=no
9229 need_version=no
9230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9233 dynamic_linker='NetBSD (a.out) ld.so'
9234 else
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 dynamic_linker='NetBSD ld.elf_so'
9238 fi
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=yes
9241 hardcode_into_libs=yes
9242 ;;
9243
9244 newsos6)
9245 version_type=linux
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 ;;
9250
9251 nto-qnx*)
9252 version_type=linux
9253 need_lib_prefix=no
9254 need_version=no
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9259 ;;
9260
9261 openbsd*)
9262 version_type=sunos
9263 sys_lib_dlsearch_path_spec="/usr/lib"
9264 need_lib_prefix=no
9265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9266 case $host_os in
9267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9268 *) need_version=no ;;
9269 esac
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9274 case $host_os in
9275 openbsd2.[89] | openbsd2.[89].*)
9276 shlibpath_overrides_runpath=no
9277 ;;
9278 *)
9279 shlibpath_overrides_runpath=yes
9280 ;;
9281 esac
9282 else
9283 shlibpath_overrides_runpath=yes
9284 fi
9285 ;;
9286
9287 os2*)
9288 libname_spec='$name'
9289 shrext_cmds=".dll"
9290 need_lib_prefix=no
9291 library_names_spec='$libname${shared_ext} $libname.a'
9292 dynamic_linker='OS/2 ld.exe'
9293 shlibpath_var=LIBPATH
9294 ;;
9295
9296 osf3* | osf4* | osf5*)
9297 version_type=osf
9298 need_lib_prefix=no
9299 need_version=no
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9305 ;;
9306
9307 solaris*)
9308 version_type=linux
9309 need_lib_prefix=no
9310 need_version=no
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 shlibpath_overrides_runpath=yes
9315 hardcode_into_libs=yes
9316 # ldd complains unless libraries are executable
9317 postinstall_cmds='chmod +x $lib'
9318 ;;
9319
9320 sunos4*)
9321 version_type=sunos
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=yes
9326 if test "$with_gnu_ld" = yes; then
9327 need_lib_prefix=no
9328 fi
9329 need_version=yes
9330 ;;
9331
9332 sysv4 | sysv4.3*)
9333 version_type=linux
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335 soname_spec='${libname}${release}${shared_ext}$major'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 case $host_vendor in
9338 sni)
9339 shlibpath_overrides_runpath=no
9340 need_lib_prefix=no
9341 export_dynamic_flag_spec='${wl}-Blargedynsym'
9342 runpath_var=LD_RUN_PATH
9343 ;;
9344 siemens)
9345 need_lib_prefix=no
9346 ;;
9347 motorola)
9348 need_lib_prefix=no
9349 need_version=no
9350 shlibpath_overrides_runpath=no
9351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9352 ;;
9353 esac
9354 ;;
9355
9356 sysv4*MP*)
9357 if test -d /usr/nec ;then
9358 version_type=linux
9359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9360 soname_spec='$libname${shared_ext}.$major'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 fi
9363 ;;
9364
9365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9366 version_type=freebsd-elf
9367 need_lib_prefix=no
9368 need_version=no
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 hardcode_into_libs=yes
9373 if test "$with_gnu_ld" = yes; then
9374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9375 shlibpath_overrides_runpath=no
9376 else
9377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9378 shlibpath_overrides_runpath=yes
9379 case $host_os in
9380 sco3.2v5*)
9381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9382 ;;
9383 esac
9384 fi
9385 sys_lib_dlsearch_path_spec='/usr/lib'
9386 ;;
9387
9388 uts4*)
9389 version_type=linux
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 ;;
9394
9395 *)
9396 dynamic_linker=no
9397 ;;
9398 esac
9399 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9400 echo "${ECHO_T}$dynamic_linker" >&6; }
9401 test "$dynamic_linker" = no && can_build_shared=no
9402
9403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9404 if test "$GCC" = yes; then
9405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9406 fi
9407
9408 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9410 hardcode_action=
9411 if test -n "$hardcode_libdir_flag_spec" || \
9412 test -n "$runpath_var" || \
9413 test "X$hardcode_automatic" = "Xyes" ; then
9414
9415 # We can hardcode non-existant directories.
9416 if test "$hardcode_direct" != no &&
9417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9418 # have to relink, otherwise we might link with an installed library
9419 # when we should be linking with a yet-to-be-installed one
9420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9421 test "$hardcode_minus_L" != no; then
9422 # Linking always hardcodes the temporary library directory.
9423 hardcode_action=relink
9424 else
9425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9426 hardcode_action=immediate
9427 fi
9428 else
9429 # We cannot hardcode anything, or else we can only hardcode existing
9430 # directories.
9431 hardcode_action=unsupported
9432 fi
9433 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9434 echo "${ECHO_T}$hardcode_action" >&6; }
9435
9436 if test "$hardcode_action" = relink; then
9437 # Fast installation is not supported
9438 enable_fast_install=no
9439 elif test "$shlibpath_overrides_runpath" = yes ||
9440 test "$enable_shared" = no; then
9441 # Fast installation is not necessary
9442 enable_fast_install=needless
9443 fi
9444
9445 striplib=
9446 old_striplib=
9447 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9448 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9449 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9450 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9451 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9452 { echo "$as_me:$LINENO: result: yes" >&5
9453 echo "${ECHO_T}yes" >&6; }
9454 else
9455 # FIXME - insert some real tests, host_os isn't really good enough
9456 case $host_os in
9457 darwin*)
9458 if test -n "$STRIP" ; then
9459 striplib="$STRIP -x"
9460 { echo "$as_me:$LINENO: result: yes" >&5
9461 echo "${ECHO_T}yes" >&6; }
9462 else
9463 { echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6; }
9465 fi
9466 ;;
9467 *)
9468 { echo "$as_me:$LINENO: result: no" >&5
9469 echo "${ECHO_T}no" >&6; }
9470 ;;
9471 esac
9472 fi
9473
9474 if test "x$enable_dlopen" != xyes; then
9475 enable_dlopen=unknown
9476 enable_dlopen_self=unknown
9477 enable_dlopen_self_static=unknown
9478 else
9479 lt_cv_dlopen=no
9480 lt_cv_dlopen_libs=
9481
9482 case $host_os in
9483 beos*)
9484 lt_cv_dlopen="load_add_on"
9485 lt_cv_dlopen_libs=
9486 lt_cv_dlopen_self=yes
9487 ;;
9488
9489 mingw* | pw32*)
9490 lt_cv_dlopen="LoadLibrary"
9491 lt_cv_dlopen_libs=
9492 ;;
9493
9494 cygwin*)
9495 lt_cv_dlopen="dlopen"
9496 lt_cv_dlopen_libs=
9497 ;;
9498
9499 darwin*)
9500 # if libdl is installed we need to link against it
9501 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506 ac_check_lib_save_LIBS=$LIBS
9507 LIBS="-ldl $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char dlopen ();
9522 int
9523 main ()
9524 {
9525 return dlopen ();
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9545 { (case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_try") 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest$ac_exeext'
9555 { (case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9558 esac
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_try") 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_lib_dl_dlopen=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ac_cv_lib_dl_dlopen=no
9570 fi
9571
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 LIBS=$ac_check_lib_save_LIBS
9575 fi
9576 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9578 if test $ac_cv_lib_dl_dlopen = yes; then
9579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9580 else
9581
9582 lt_cv_dlopen="dyld"
9583 lt_cv_dlopen_libs=
9584 lt_cv_dlopen_self=yes
9585
9586 fi
9587
9588 ;;
9589
9590 *)
9591 { echo "$as_me:$LINENO: checking for shl_load" >&5
9592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9593 if test "${ac_cv_func_shl_load+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9604 #define shl_load innocuous_shl_load
9605
9606 /* System header to define __stub macros and hopefully few prototypes,
9607 which can conflict with char shl_load (); below.
9608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9609 <limits.h> exists even on freestanding compilers. */
9610
9611 #ifdef __STDC__
9612 # include <limits.h>
9613 #else
9614 # include <assert.h>
9615 #endif
9616
9617 #undef shl_load
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char shl_load ();
9626 /* The GNU C library defines this for functions which it implements
9627 to always fail with ENOSYS. Some functions are actually named
9628 something starting with __ and the normal name is an alias. */
9629 #if defined __stub_shl_load || defined __stub___shl_load
9630 choke me
9631 #endif
9632
9633 int
9634 main ()
9635 {
9636 return shl_load ();
9637 ;
9638 return 0;
9639 }
9640 _ACEOF
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (ac_try="$ac_link"
9643 case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try='test -s conftest$ac_exeext'
9666 { (case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_try") 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_func_shl_load=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_cv_func_shl_load=no
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 fi
9686 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9688 if test $ac_cv_func_shl_load = yes; then
9689 lt_cv_dlopen="shl_load"
9690 else
9691 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9692 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696 ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-ldld $LIBS"
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704
9705 /* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9708 #ifdef __cplusplus
9709 extern "C"
9710 #endif
9711 char shl_load ();
9712 int
9713 main ()
9714 {
9715 return shl_load ();
9716 ;
9717 return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9722 case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_lib_dld_shl_load=yes
9755 else
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_cv_lib_dld_shl_load=no
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9765 fi
9766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9768 if test $ac_cv_lib_dld_shl_load = yes; then
9769 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9770 else
9771 { echo "$as_me:$LINENO: checking for dlopen" >&5
9772 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9773 if test "${ac_cv_func_dlopen+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9784 #define dlopen innocuous_dlopen
9785
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char dlopen (); below.
9788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 <limits.h> exists even on freestanding compilers. */
9790
9791 #ifdef __STDC__
9792 # include <limits.h>
9793 #else
9794 # include <assert.h>
9795 #endif
9796
9797 #undef dlopen
9798
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char dlopen ();
9806 /* The GNU C library defines this for functions which it implements
9807 to always fail with ENOSYS. Some functions are actually named
9808 something starting with __ and the normal name is an alias. */
9809 #if defined __stub_dlopen || defined __stub___dlopen
9810 choke me
9811 #endif
9812
9813 int
9814 main ()
9815 {
9816 return dlopen ();
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_cv_func_dlopen=yes
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860 ac_cv_func_dlopen=no
9861 fi
9862
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 fi
9866 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9867 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9868 if test $ac_cv_func_dlopen = yes; then
9869 lt_cv_dlopen="dlopen"
9870 else
9871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876 ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldl $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h. */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9884
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char dlopen ();
9892 int
9893 main ()
9894 {
9895 return dlopen ();
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_link") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_lib_dl_dlopen=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_lib_dl_dlopen=no
9940 fi
9941
9942 rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9945 fi
9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948 if test $ac_cv_lib_dl_dlopen = yes; then
9949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9950 else
9951 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9952 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-lsvld $LIBS"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char dlopen ();
9972 int
9973 main ()
9974 {
9975 return dlopen ();
9976 ;
9977 return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9982 case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_link") 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest$ac_exeext'
10005 { (case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_try") 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_svld_dlopen=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_cv_lib_svld_dlopen=no
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10025 fi
10026 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10028 if test $ac_cv_lib_svld_dlopen = yes; then
10029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10030 else
10031 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10032 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10033 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036 ac_check_lib_save_LIBS=$LIBS
10037 LIBS="-ldld $LIBS"
10038 cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h. */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044
10045 /* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 char dld_link ();
10052 int
10053 main ()
10054 {
10055 return dld_link ();
10056 ;
10057 return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_link") 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10075 { (case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_try") 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
10085 { (case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_try") 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 ac_cv_lib_dld_dld_link=yes
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 ac_cv_lib_dld_dld_link=no
10100 fi
10101
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10105 fi
10106 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10107 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10108 if test $ac_cv_lib_dld_dld_link = yes; then
10109 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10110 fi
10111
10112
10113 fi
10114
10115
10116 fi
10117
10118
10119 fi
10120
10121
10122 fi
10123
10124
10125 fi
10126
10127 ;;
10128 esac
10129
10130 if test "x$lt_cv_dlopen" != xno; then
10131 enable_dlopen=yes
10132 else
10133 enable_dlopen=no
10134 fi
10135
10136 case $lt_cv_dlopen in
10137 dlopen)
10138 save_CPPFLAGS="$CPPFLAGS"
10139 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10140
10141 save_LDFLAGS="$LDFLAGS"
10142 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10143
10144 save_LIBS="$LIBS"
10145 LIBS="$lt_cv_dlopen_libs $LIBS"
10146
10147 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10148 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10149 if test "${lt_cv_dlopen_self+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 if test "$cross_compiling" = yes; then :
10153 lt_cv_dlopen_self=cross
10154 else
10155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10156 lt_status=$lt_dlunknown
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10158 "configure"
10159 #include "confdefs.h"
10160
10161 #if HAVE_DLFCN_H
10162 #include <dlfcn.h>
10163 #endif
10164
10165 #include <stdio.h>
10166
10167 #ifdef RTLD_GLOBAL
10168 # define LT_DLGLOBAL RTLD_GLOBAL
10169 #else
10170 # ifdef DL_GLOBAL
10171 # define LT_DLGLOBAL DL_GLOBAL
10172 # else
10173 # define LT_DLGLOBAL 0
10174 # endif
10175 #endif
10176
10177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10178 find out it does not work in some platform. */
10179 #ifndef LT_DLLAZY_OR_NOW
10180 # ifdef RTLD_LAZY
10181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10182 # else
10183 # ifdef DL_LAZY
10184 # define LT_DLLAZY_OR_NOW DL_LAZY
10185 # else
10186 # ifdef RTLD_NOW
10187 # define LT_DLLAZY_OR_NOW RTLD_NOW
10188 # else
10189 # ifdef DL_NOW
10190 # define LT_DLLAZY_OR_NOW DL_NOW
10191 # else
10192 # define LT_DLLAZY_OR_NOW 0
10193 # endif
10194 # endif
10195 # endif
10196 # endif
10197 #endif
10198
10199 #ifdef __cplusplus
10200 extern "C" void exit (int);
10201 #endif
10202
10203 void fnord() { int i=42;}
10204 int main ()
10205 {
10206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10207 int status = $lt_dlunknown;
10208
10209 if (self)
10210 {
10211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10212 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10213 /* dlclose (self); */
10214 }
10215 else
10216 puts (dlerror ());
10217
10218 exit (status);
10219 }
10220 EOF
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10226 (./conftest; exit; ) >&5 2>/dev/null
10227 lt_status=$?
10228 case x$lt_status in
10229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10230 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10231 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10232 esac
10233 else :
10234 # compilation failed
10235 lt_cv_dlopen_self=no
10236 fi
10237 fi
10238 rm -fr conftest*
10239
10240
10241 fi
10242 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10243 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10244
10245 if test "x$lt_cv_dlopen_self" = xyes; then
10246 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10247 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10248 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10249 if test "${lt_cv_dlopen_self_static+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 if test "$cross_compiling" = yes; then :
10253 lt_cv_dlopen_self_static=cross
10254 else
10255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10256 lt_status=$lt_dlunknown
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10258 "configure"
10259 #include "confdefs.h"
10260
10261 #if HAVE_DLFCN_H
10262 #include <dlfcn.h>
10263 #endif
10264
10265 #include <stdio.h>
10266
10267 #ifdef RTLD_GLOBAL
10268 # define LT_DLGLOBAL RTLD_GLOBAL
10269 #else
10270 # ifdef DL_GLOBAL
10271 # define LT_DLGLOBAL DL_GLOBAL
10272 # else
10273 # define LT_DLGLOBAL 0
10274 # endif
10275 #endif
10276
10277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10278 find out it does not work in some platform. */
10279 #ifndef LT_DLLAZY_OR_NOW
10280 # ifdef RTLD_LAZY
10281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10282 # else
10283 # ifdef DL_LAZY
10284 # define LT_DLLAZY_OR_NOW DL_LAZY
10285 # else
10286 # ifdef RTLD_NOW
10287 # define LT_DLLAZY_OR_NOW RTLD_NOW
10288 # else
10289 # ifdef DL_NOW
10290 # define LT_DLLAZY_OR_NOW DL_NOW
10291 # else
10292 # define LT_DLLAZY_OR_NOW 0
10293 # endif
10294 # endif
10295 # endif
10296 # endif
10297 #endif
10298
10299 #ifdef __cplusplus
10300 extern "C" void exit (int);
10301 #endif
10302
10303 void fnord() { int i=42;}
10304 int main ()
10305 {
10306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10307 int status = $lt_dlunknown;
10308
10309 if (self)
10310 {
10311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10313 /* dlclose (self); */
10314 }
10315 else
10316 puts (dlerror ());
10317
10318 exit (status);
10319 }
10320 EOF
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10326 (./conftest; exit; ) >&5 2>/dev/null
10327 lt_status=$?
10328 case x$lt_status in
10329 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10330 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10331 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10332 esac
10333 else :
10334 # compilation failed
10335 lt_cv_dlopen_self_static=no
10336 fi
10337 fi
10338 rm -fr conftest*
10339
10340
10341 fi
10342 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10343 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10344 fi
10345
10346 CPPFLAGS="$save_CPPFLAGS"
10347 LDFLAGS="$save_LDFLAGS"
10348 LIBS="$save_LIBS"
10349 ;;
10350 esac
10351
10352 case $lt_cv_dlopen_self in
10353 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10354 *) enable_dlopen_self=unknown ;;
10355 esac
10356
10357 case $lt_cv_dlopen_self_static in
10358 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10359 *) enable_dlopen_self_static=unknown ;;
10360 esac
10361 fi
10362
10363
10364 # Report which library types will actually be built
10365 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10366 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10367 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10368 echo "${ECHO_T}$can_build_shared" >&6; }
10369
10370 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10371 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10372 test "$can_build_shared" = "no" && enable_shared=no
10373
10374 # On AIX, shared libraries and static libraries use the same namespace, and
10375 # are all built from PIC.
10376 case $host_os in
10377 aix3*)
10378 test "$enable_shared" = yes && enable_static=no
10379 if test -n "$RANLIB"; then
10380 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10381 postinstall_cmds='$RANLIB $lib'
10382 fi
10383 ;;
10384
10385 aix4* | aix5*)
10386 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10387 test "$enable_shared" = yes && enable_static=no
10388 fi
10389 ;;
10390 esac
10391 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10392 echo "${ECHO_T}$enable_shared" >&6; }
10393
10394 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10395 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10396 # Make sure either enable_shared or enable_static is yes.
10397 test "$enable_shared" = yes || enable_static=yes
10398 { echo "$as_me:$LINENO: result: $enable_static" >&5
10399 echo "${ECHO_T}$enable_static" >&6; }
10400
10401 # The else clause should only fire when bootstrapping the
10402 # libtool distribution, otherwise you forgot to ship ltmain.sh
10403 # with your package, and you will get complaints that there are
10404 # no rules to generate ltmain.sh.
10405 if test -f "$ltmain"; then
10406 # See if we are running on zsh, and set the options which allow our commands through
10407 # without removal of \ escapes.
10408 if test -n "${ZSH_VERSION+set}" ; then
10409 setopt NO_GLOB_SUBST
10410 fi
10411 # Now quote all the things that may contain metacharacters while being
10412 # careful not to overquote the AC_SUBSTed values. We take copies of the
10413 # variables and quote the copies for generation of the libtool script.
10414 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10415 SED SHELL STRIP \
10416 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10417 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10418 deplibs_check_method reload_flag reload_cmds need_locks \
10419 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10420 lt_cv_sys_global_symbol_to_c_name_address \
10421 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10422 old_postinstall_cmds old_postuninstall_cmds \
10423 compiler \
10424 CC \
10425 LD \
10426 lt_prog_compiler_wl \
10427 lt_prog_compiler_pic \
10428 lt_prog_compiler_static \
10429 lt_prog_compiler_no_builtin_flag \
10430 export_dynamic_flag_spec \
10431 thread_safe_flag_spec \
10432 whole_archive_flag_spec \
10433 enable_shared_with_static_runtimes \
10434 old_archive_cmds \
10435 old_archive_from_new_cmds \
10436 predep_objects \
10437 postdep_objects \
10438 predeps \
10439 postdeps \
10440 compiler_lib_search_path \
10441 archive_cmds \
10442 archive_expsym_cmds \
10443 postinstall_cmds \
10444 postuninstall_cmds \
10445 old_archive_from_expsyms_cmds \
10446 allow_undefined_flag \
10447 no_undefined_flag \
10448 export_symbols_cmds \
10449 hardcode_libdir_flag_spec \
10450 hardcode_libdir_flag_spec_ld \
10451 hardcode_libdir_separator \
10452 hardcode_automatic \
10453 module_cmds \
10454 module_expsym_cmds \
10455 lt_cv_prog_compiler_c_o \
10456 exclude_expsyms \
10457 include_expsyms; do
10458
10459 case $var in
10460 old_archive_cmds | \
10461 old_archive_from_new_cmds | \
10462 archive_cmds | \
10463 archive_expsym_cmds | \
10464 module_cmds | \
10465 module_expsym_cmds | \
10466 old_archive_from_expsyms_cmds | \
10467 export_symbols_cmds | \
10468 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10469 postinstall_cmds | postuninstall_cmds | \
10470 old_postinstall_cmds | old_postuninstall_cmds | \
10471 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10472 # Double-quote double-evaled strings.
10473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10474 ;;
10475 *)
10476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10477 ;;
10478 esac
10479 done
10480
10481 case $lt_echo in
10482 *'\$0 --fallback-echo"')
10483 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10484 ;;
10485 esac
10486
10487 cfgfile="${ofile}T"
10488 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10489 $rm -f "$cfgfile"
10490 { echo "$as_me:$LINENO: creating $ofile" >&5
10491 echo "$as_me: creating $ofile" >&6;}
10492
10493 cat <<__EOF__ >> "$cfgfile"
10494 #! $SHELL
10495
10496 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10497 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10498 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10499 #
10500 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10501 # Free Software Foundation, Inc.
10502 #
10503 # This file is part of GNU Libtool:
10504 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10505 #
10506 # This program is free software; you can redistribute it and/or modify
10507 # it under the terms of the GNU General Public License as published by
10508 # the Free Software Foundation; either version 2 of the License, or
10509 # (at your option) any later version.
10510 #
10511 # This program is distributed in the hope that it will be useful, but
10512 # WITHOUT ANY WARRANTY; without even the implied warranty of
10513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10514 # General Public License for more details.
10515 #
10516 # You should have received a copy of the GNU General Public License
10517 # along with this program; if not, write to the Free Software
10518 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10519 #
10520 # As a special exception to the GNU General Public License, if you
10521 # distribute this file as part of a program that contains a
10522 # configuration script generated by Autoconf, you may include it under
10523 # the same distribution terms that you use for the rest of that program.
10524
10525 # A sed program that does not truncate output.
10526 SED=$lt_SED
10527
10528 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10529 Xsed="$SED -e 1s/^X//"
10530
10531 # The HP-UX ksh and POSIX shell print the target directory to stdout
10532 # if CDPATH is set.
10533 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10534
10535 # The names of the tagged configurations supported by this script.
10536 available_tags=
10537
10538 # ### BEGIN LIBTOOL CONFIG
10539
10540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10541
10542 # Shell to use when invoking shell scripts.
10543 SHELL=$lt_SHELL
10544
10545 # Whether or not to build shared libraries.
10546 build_libtool_libs=$enable_shared
10547
10548 # Whether or not to build static libraries.
10549 build_old_libs=$enable_static
10550
10551 # Whether or not to add -lc for building shared libraries.
10552 build_libtool_need_lc=$archive_cmds_need_lc
10553
10554 # Whether or not to disallow shared libs when runtime libs are static
10555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10556
10557 # Whether or not to optimize for fast installation.
10558 fast_install=$enable_fast_install
10559
10560 # The host system.
10561 host_alias=$host_alias
10562 host=$host
10563 host_os=$host_os
10564
10565 # The build system.
10566 build_alias=$build_alias
10567 build=$build
10568 build_os=$build_os
10569
10570 # An echo program that does not interpret backslashes.
10571 echo=$lt_echo
10572
10573 # The archiver.
10574 AR=$lt_AR
10575 AR_FLAGS=$lt_AR_FLAGS
10576
10577 # A C compiler.
10578 LTCC=$lt_LTCC
10579
10580 # LTCC compiler flags.
10581 LTCFLAGS=$lt_LTCFLAGS
10582
10583 # A language-specific compiler.
10584 CC=$lt_compiler
10585
10586 # Is the compiler the GNU C compiler?
10587 with_gcc=$GCC
10588
10589 # An ERE matcher.
10590 EGREP=$lt_EGREP
10591
10592 # The linker used to build libraries.
10593 LD=$lt_LD
10594
10595 # Whether we need hard or soft links.
10596 LN_S=$lt_LN_S
10597
10598 # A BSD-compatible nm program.
10599 NM=$lt_NM
10600
10601 # A symbol stripping program
10602 STRIP=$lt_STRIP
10603
10604 # Used to examine libraries when file_magic_cmd begins "file"
10605 MAGIC_CMD=$MAGIC_CMD
10606
10607 # Used on cygwin: DLL creation program.
10608 DLLTOOL="$DLLTOOL"
10609
10610 # Used on cygwin: object dumper.
10611 OBJDUMP="$OBJDUMP"
10612
10613 # Used on cygwin: assembler.
10614 AS="$AS"
10615
10616 # The name of the directory that contains temporary libtool files.
10617 objdir=$objdir
10618
10619 # How to create reloadable object files.
10620 reload_flag=$lt_reload_flag
10621 reload_cmds=$lt_reload_cmds
10622
10623 # How to pass a linker flag through the compiler.
10624 wl=$lt_lt_prog_compiler_wl
10625
10626 # Object file suffix (normally "o").
10627 objext="$ac_objext"
10628
10629 # Old archive suffix (normally "a").
10630 libext="$libext"
10631
10632 # Shared library suffix (normally ".so").
10633 shrext_cmds='$shrext_cmds'
10634
10635 # Executable file suffix (normally "").
10636 exeext="$exeext"
10637
10638 # Additional compiler flags for building library objects.
10639 pic_flag=$lt_lt_prog_compiler_pic
10640 pic_mode=$pic_mode
10641
10642 # What is the maximum length of a command?
10643 max_cmd_len=$lt_cv_sys_max_cmd_len
10644
10645 # Does compiler simultaneously support -c and -o options?
10646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10647
10648 # Must we lock files when doing compilation?
10649 need_locks=$lt_need_locks
10650
10651 # Do we need the lib prefix for modules?
10652 need_lib_prefix=$need_lib_prefix
10653
10654 # Do we need a version for libraries?
10655 need_version=$need_version
10656
10657 # Whether dlopen is supported.
10658 dlopen_support=$enable_dlopen
10659
10660 # Whether dlopen of programs is supported.
10661 dlopen_self=$enable_dlopen_self
10662
10663 # Whether dlopen of statically linked programs is supported.
10664 dlopen_self_static=$enable_dlopen_self_static
10665
10666 # Compiler flag to prevent dynamic linking.
10667 link_static_flag=$lt_lt_prog_compiler_static
10668
10669 # Compiler flag to turn off builtin functions.
10670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10671
10672 # Compiler flag to allow reflexive dlopens.
10673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10674
10675 # Compiler flag to generate shared objects directly from archives.
10676 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10677
10678 # Compiler flag to generate thread-safe objects.
10679 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10680
10681 # Library versioning type.
10682 version_type=$version_type
10683
10684 # Format of library name prefix.
10685 libname_spec=$lt_libname_spec
10686
10687 # List of archive names. First name is the real one, the rest are links.
10688 # The last name is the one that the linker finds with -lNAME.
10689 library_names_spec=$lt_library_names_spec
10690
10691 # The coded name of the library, if different from the real name.
10692 soname_spec=$lt_soname_spec
10693
10694 # Commands used to build and install an old-style archive.
10695 RANLIB=$lt_RANLIB
10696 old_archive_cmds=$lt_old_archive_cmds
10697 old_postinstall_cmds=$lt_old_postinstall_cmds
10698 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10699
10700 # Create an old-style archive from a shared archive.
10701 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10702
10703 # Create a temporary old-style archive to link instead of a shared archive.
10704 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10705
10706 # Commands used to build and install a shared archive.
10707 archive_cmds=$lt_archive_cmds
10708 archive_expsym_cmds=$lt_archive_expsym_cmds
10709 postinstall_cmds=$lt_postinstall_cmds
10710 postuninstall_cmds=$lt_postuninstall_cmds
10711
10712 # Commands used to build a loadable module (assumed same as above if empty)
10713 module_cmds=$lt_module_cmds
10714 module_expsym_cmds=$lt_module_expsym_cmds
10715
10716 # Commands to strip libraries.
10717 old_striplib=$lt_old_striplib
10718 striplib=$lt_striplib
10719
10720 # Dependencies to place before the objects being linked to create a
10721 # shared library.
10722 predep_objects=$lt_predep_objects
10723
10724 # Dependencies to place after the objects being linked to create a
10725 # shared library.
10726 postdep_objects=$lt_postdep_objects
10727
10728 # Dependencies to place before the objects being linked to create a
10729 # shared library.
10730 predeps=$lt_predeps
10731
10732 # Dependencies to place after the objects being linked to create a
10733 # shared library.
10734 postdeps=$lt_postdeps
10735
10736 # The library search path used internally by the compiler when linking
10737 # a shared library.
10738 compiler_lib_search_path=$lt_compiler_lib_search_path
10739
10740 # Method to check whether dependent libraries are shared objects.
10741 deplibs_check_method=$lt_deplibs_check_method
10742
10743 # Command to use when deplibs_check_method == file_magic.
10744 file_magic_cmd=$lt_file_magic_cmd
10745
10746 # Flag that allows shared libraries with undefined symbols to be built.
10747 allow_undefined_flag=$lt_allow_undefined_flag
10748
10749 # Flag that forces no undefined symbols.
10750 no_undefined_flag=$lt_no_undefined_flag
10751
10752 # Commands used to finish a libtool library installation in a directory.
10753 finish_cmds=$lt_finish_cmds
10754
10755 # Same as above, but a single script fragment to be evaled but not shown.
10756 finish_eval=$lt_finish_eval
10757
10758 # Take the output of nm and produce a listing of raw symbols and C names.
10759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10760
10761 # Transform the output of nm in a proper C declaration
10762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10763
10764 # Transform the output of nm in a C name address pair
10765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10766
10767 # This is the shared library runtime path variable.
10768 runpath_var=$runpath_var
10769
10770 # This is the shared library path variable.
10771 shlibpath_var=$shlibpath_var
10772
10773 # Is shlibpath searched before the hard-coded library search path?
10774 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10775
10776 # How to hardcode a shared library path into an executable.
10777 hardcode_action=$hardcode_action
10778
10779 # Whether we should hardcode library paths into libraries.
10780 hardcode_into_libs=$hardcode_into_libs
10781
10782 # Flag to hardcode \$libdir into a binary during linking.
10783 # This must work even if \$libdir does not exist.
10784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10785
10786 # If ld is used when linking, flag to hardcode \$libdir into
10787 # a binary during linking. This must work even if \$libdir does
10788 # not exist.
10789 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10790
10791 # Whether we need a single -rpath flag with a separated argument.
10792 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10793
10794 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10795 # resulting binary.
10796 hardcode_direct=$hardcode_direct
10797
10798 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10799 # resulting binary.
10800 hardcode_minus_L=$hardcode_minus_L
10801
10802 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10803 # the resulting binary.
10804 hardcode_shlibpath_var=$hardcode_shlibpath_var
10805
10806 # Set to yes if building a shared library automatically hardcodes DIR into the library
10807 # and all subsequent libraries and executables linked against it.
10808 hardcode_automatic=$hardcode_automatic
10809
10810 # Variables whose values should be saved in libtool wrapper scripts and
10811 # restored at relink time.
10812 variables_saved_for_relink="$variables_saved_for_relink"
10813
10814 # Whether libtool must link a program against all its dependency libraries.
10815 link_all_deplibs=$link_all_deplibs
10816
10817 # Compile-time system search path for libraries
10818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10819
10820 # Run-time system search path for libraries
10821 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10822
10823 # Fix the shell variable \$srcfile for the compiler.
10824 fix_srcfile_path="$fix_srcfile_path"
10825
10826 # Set to yes if exported symbols are required.
10827 always_export_symbols=$always_export_symbols
10828
10829 # The commands to list exported symbols.
10830 export_symbols_cmds=$lt_export_symbols_cmds
10831
10832 # The commands to extract the exported symbol list from a shared archive.
10833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10834
10835 # Symbols that should not be listed in the preloaded symbols.
10836 exclude_expsyms=$lt_exclude_expsyms
10837
10838 # Symbols that must always be exported.
10839 include_expsyms=$lt_include_expsyms
10840
10841 # ### END LIBTOOL CONFIG
10842
10843 __EOF__
10844
10845
10846 case $host_os in
10847 aix3*)
10848 cat <<\EOF >> "$cfgfile"
10849
10850 # AIX sometimes has problems with the GCC collect2 program. For some
10851 # reason, if we set the COLLECT_NAMES environment variable, the problems
10852 # vanish in a puff of smoke.
10853 if test "X${COLLECT_NAMES+set}" != Xset; then
10854 COLLECT_NAMES=
10855 export COLLECT_NAMES
10856 fi
10857 EOF
10858 ;;
10859 esac
10860
10861 # We use sed instead of cat because bash on DJGPP gets confused if
10862 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10863 # text mode, it properly converts lines to CR/LF. This bash problem
10864 # is reportedly fixed, but why not run on old versions too?
10865 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10866
10867 mv -f "$cfgfile" "$ofile" || \
10868 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10869 chmod +x "$ofile"
10870
10871 else
10872 # If there is no Makefile yet, we rely on a make rule to execute
10873 # `config.status --recheck' to rerun these tests and create the
10874 # libtool script then.
10875 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10876 if test -f "$ltmain_in"; then
10877 test -f Makefile && make "$ltmain"
10878 fi
10879 fi
10880
10881
10882 ac_ext=c
10883 ac_cpp='$CPP $CPPFLAGS'
10884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10887
10888 CC="$lt_save_CC"
10889
10890
10891 # Check whether --with-tags was given.
10892 if test "${with_tags+set}" = set; then
10893 withval=$with_tags; tagnames="$withval"
10894 fi
10895
10896
10897 if test -f "$ltmain" && test -n "$tagnames"; then
10898 if test ! -f "${ofile}"; then
10899 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10900 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10901 fi
10902
10903 if test -z "$LTCC"; then
10904 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10905 if test -z "$LTCC"; then
10906 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10907 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10908 else
10909 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10910 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10911 fi
10912 fi
10913 if test -z "$LTCFLAGS"; then
10914 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10915 fi
10916
10917 # Extract list of available tagged configurations in $ofile.
10918 # Note that this assumes the entire list is on one line.
10919 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10920
10921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10922 for tagname in $tagnames; do
10923 IFS="$lt_save_ifs"
10924 # Check whether tagname contains only valid characters
10925 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10926 "") ;;
10927 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10928 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10929 { (exit 1); exit 1; }; }
10930 ;;
10931 esac
10932
10933 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10934 then
10935 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10936 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10937 { (exit 1); exit 1; }; }
10938 fi
10939
10940 # Update the list of available tags.
10941 if test -n "$tagname"; then
10942 echo appending configuration tag \"$tagname\" to $ofile
10943
10944 case $tagname in
10945 CXX)
10946 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10947 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10948 (test "X$CXX" != "Xg++"))) ; then
10949 ac_ext=cpp
10950 ac_cpp='$CXXCPP $CPPFLAGS'
10951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10954
10955
10956
10957
10958 archive_cmds_need_lc_CXX=no
10959 allow_undefined_flag_CXX=
10960 always_export_symbols_CXX=no
10961 archive_expsym_cmds_CXX=
10962 export_dynamic_flag_spec_CXX=
10963 hardcode_direct_CXX=no
10964 hardcode_libdir_flag_spec_CXX=
10965 hardcode_libdir_flag_spec_ld_CXX=
10966 hardcode_libdir_separator_CXX=
10967 hardcode_minus_L_CXX=no
10968 hardcode_shlibpath_var_CXX=unsupported
10969 hardcode_automatic_CXX=no
10970 module_cmds_CXX=
10971 module_expsym_cmds_CXX=
10972 link_all_deplibs_CXX=unknown
10973 old_archive_cmds_CXX=$old_archive_cmds
10974 no_undefined_flag_CXX=
10975 whole_archive_flag_spec_CXX=
10976 enable_shared_with_static_runtimes_CXX=no
10977
10978 # Dependencies to place before and after the object being linked:
10979 predep_objects_CXX=
10980 postdep_objects_CXX=
10981 predeps_CXX=
10982 postdeps_CXX=
10983 compiler_lib_search_path_CXX=
10984
10985 # Source file extension for C++ test sources.
10986 ac_ext=cpp
10987
10988 # Object file extension for compiled C++ test sources.
10989 objext=o
10990 objext_CXX=$objext
10991
10992 # Code to be used in simple compile tests
10993 lt_simple_compile_test_code="int some_variable = 0;\n"
10994
10995 # Code to be used in simple link tests
10996 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10997
10998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10999
11000 # If no C compiler was specified, use CC.
11001 LTCC=${LTCC-"$CC"}
11002
11003 # If no C compiler flags were specified, use CFLAGS.
11004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11005
11006 # Allow CC to be a program name with arguments.
11007 compiler=$CC
11008
11009
11010 # save warnings/boilerplate of simple test code
11011 ac_outfile=conftest.$ac_objext
11012 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11013 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11014 _lt_compiler_boilerplate=`cat conftest.err`
11015 $rm conftest*
11016
11017 ac_outfile=conftest.$ac_objext
11018 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11019 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11020 _lt_linker_boilerplate=`cat conftest.err`
11021 $rm conftest*
11022
11023
11024 # Allow CC to be a program name with arguments.
11025 lt_save_CC=$CC
11026 lt_save_LD=$LD
11027 lt_save_GCC=$GCC
11028 GCC=$GXX
11029 lt_save_with_gnu_ld=$with_gnu_ld
11030 lt_save_path_LD=$lt_cv_path_LD
11031 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11032 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11033 else
11034 $as_unset lt_cv_prog_gnu_ld
11035 fi
11036 if test -n "${lt_cv_path_LDCXX+set}"; then
11037 lt_cv_path_LD=$lt_cv_path_LDCXX
11038 else
11039 $as_unset lt_cv_path_LD
11040 fi
11041 test -z "${LDCXX+set}" || LD=$LDCXX
11042 CC=${CXX-"c++"}
11043 compiler=$CC
11044 compiler_CXX=$CC
11045 for cc_temp in $compiler""; do
11046 case $cc_temp in
11047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11049 \-*) ;;
11050 *) break;;
11051 esac
11052 done
11053 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11054
11055
11056 # We don't want -fno-exception wen compiling C++ code, so set the
11057 # no_builtin_flag separately
11058 if test "$GXX" = yes; then
11059 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11060 else
11061 lt_prog_compiler_no_builtin_flag_CXX=
11062 fi
11063
11064 if test "$GXX" = yes; then
11065 # Set up default GNU C++ configuration
11066
11067
11068 # Check whether --with-gnu-ld was given.
11069 if test "${with_gnu_ld+set}" = set; then
11070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11071 else
11072 with_gnu_ld=no
11073 fi
11074
11075 ac_prog=ld
11076 if test "$GCC" = yes; then
11077 # Check if gcc -print-prog-name=ld gives a path.
11078 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11079 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11080 case $host in
11081 *-*-mingw*)
11082 # gcc leaves a trailing carriage return which upsets mingw
11083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11084 *)
11085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11086 esac
11087 case $ac_prog in
11088 # Accept absolute paths.
11089 [\\/]* | ?:[\\/]*)
11090 re_direlt='/[^/][^/]*/\.\./'
11091 # Canonicalize the pathname of ld
11092 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11093 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11094 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11095 done
11096 test -z "$LD" && LD="$ac_prog"
11097 ;;
11098 "")
11099 # If it fails, then pretend we aren't using GCC.
11100 ac_prog=ld
11101 ;;
11102 *)
11103 # If it is relative, then search for the first ld in PATH.
11104 with_gnu_ld=unknown
11105 ;;
11106 esac
11107 elif test "$with_gnu_ld" = yes; then
11108 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11109 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11110 else
11111 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11112 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11113 fi
11114 if test "${lt_cv_path_LD+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117 if test -z "$LD"; then
11118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11119 for ac_dir in $PATH; do
11120 IFS="$lt_save_ifs"
11121 test -z "$ac_dir" && ac_dir=.
11122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11123 lt_cv_path_LD="$ac_dir/$ac_prog"
11124 # Check to see if the program is GNU ld. I'd rather use --version,
11125 # but apparently some variants of GNU ld only accept -v.
11126 # Break only if it was the GNU/non-GNU ld that we prefer.
11127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11128 *GNU* | *'with BFD'*)
11129 test "$with_gnu_ld" != no && break
11130 ;;
11131 *)
11132 test "$with_gnu_ld" != yes && break
11133 ;;
11134 esac
11135 fi
11136 done
11137 IFS="$lt_save_ifs"
11138 else
11139 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11140 fi
11141 fi
11142
11143 LD="$lt_cv_path_LD"
11144 if test -n "$LD"; then
11145 { echo "$as_me:$LINENO: result: $LD" >&5
11146 echo "${ECHO_T}$LD" >&6; }
11147 else
11148 { echo "$as_me:$LINENO: result: no" >&5
11149 echo "${ECHO_T}no" >&6; }
11150 fi
11151 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11152 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11153 { (exit 1); exit 1; }; }
11154 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11155 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11156 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11160 case `$LD -v 2>&1 </dev/null` in
11161 *GNU* | *'with BFD'*)
11162 lt_cv_prog_gnu_ld=yes
11163 ;;
11164 *)
11165 lt_cv_prog_gnu_ld=no
11166 ;;
11167 esac
11168 fi
11169 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11170 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11171 with_gnu_ld=$lt_cv_prog_gnu_ld
11172
11173
11174
11175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11176 # archiving commands below assume that GNU ld is being used.
11177 if test "$with_gnu_ld" = yes; then
11178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11179 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'
11180
11181 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11183
11184 # If archive_cmds runs LD, not CC, wlarc should be empty
11185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11186 # investigate it a little bit more. (MM)
11187 wlarc='${wl}'
11188
11189 # ancient GNU ld didn't support --whole-archive et. al.
11190 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11191 grep 'no-whole-archive' > /dev/null; then
11192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11193 else
11194 whole_archive_flag_spec_CXX=
11195 fi
11196 else
11197 with_gnu_ld=no
11198 wlarc=
11199
11200 # A generic and very simple default shared library creation
11201 # command for GNU C++ for the case where it uses the native
11202 # linker, instead of GNU ld. If possible, this setting should
11203 # overridden to take advantage of the native linker features on
11204 # the platform it is being used on.
11205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11206 fi
11207
11208 # Commands to make compiler produce verbose output that lists
11209 # what "hidden" libraries, object files and flags are used when
11210 # linking a shared library.
11211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11212
11213 else
11214 GXX=no
11215 with_gnu_ld=no
11216 wlarc=
11217 fi
11218
11219 # PORTME: fill in a description of your system's C++ link characteristics
11220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11222 ld_shlibs_CXX=yes
11223 case $host_os in
11224 aix3*)
11225 # FIXME: insert proper C++ library support
11226 ld_shlibs_CXX=no
11227 ;;
11228 aix4* | aix5*)
11229 if test "$host_cpu" = ia64; then
11230 # On IA64, the linker does run time linking by default, so we don't
11231 # have to do anything special.
11232 aix_use_runtimelinking=no
11233 exp_sym_flag='-Bexport'
11234 no_entry_flag=""
11235 else
11236 aix_use_runtimelinking=no
11237
11238 # Test if we are trying to use run time linking or normal
11239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11240 # need to do runtime linking.
11241 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11242 for ld_flag in $LDFLAGS; do
11243 case $ld_flag in
11244 *-brtl*)
11245 aix_use_runtimelinking=yes
11246 break
11247 ;;
11248 esac
11249 done
11250 ;;
11251 esac
11252
11253 exp_sym_flag='-bexport'
11254 no_entry_flag='-bnoentry'
11255 fi
11256
11257 # When large executables or shared objects are built, AIX ld can
11258 # have problems creating the table of contents. If linking a library
11259 # or program results in "error TOC overflow" add -mminimal-toc to
11260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11262
11263 archive_cmds_CXX=''
11264 hardcode_direct_CXX=yes
11265 hardcode_libdir_separator_CXX=':'
11266 link_all_deplibs_CXX=yes
11267
11268 if test "$GXX" = yes; then
11269 case $host_os in aix4.[012]|aix4.[012].*)
11270 # We only want to do this on AIX 4.2 and lower, the check
11271 # below for broken collect2 doesn't work under 4.3+
11272 collect2name=`${CC} -print-prog-name=collect2`
11273 if test -f "$collect2name" && \
11274 strings "$collect2name" | grep resolve_lib_name >/dev/null
11275 then
11276 # We have reworked collect2
11277 hardcode_direct_CXX=yes
11278 else
11279 # We have old collect2
11280 hardcode_direct_CXX=unsupported
11281 # It fails to find uninstalled libraries when the uninstalled
11282 # path is not listed in the libpath. Setting hardcode_minus_L
11283 # to unsupported forces relinking
11284 hardcode_minus_L_CXX=yes
11285 hardcode_libdir_flag_spec_CXX='-L$libdir'
11286 hardcode_libdir_separator_CXX=
11287 fi
11288 ;;
11289 esac
11290 shared_flag='-shared'
11291 if test "$aix_use_runtimelinking" = yes; then
11292 shared_flag="$shared_flag "'${wl}-G'
11293 fi
11294 else
11295 # not using gcc
11296 if test "$host_cpu" = ia64; then
11297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11298 # chokes on -Wl,-G. The following line is correct:
11299 shared_flag='-G'
11300 else
11301 if test "$aix_use_runtimelinking" = yes; then
11302 shared_flag='${wl}-G'
11303 else
11304 shared_flag='${wl}-bM:SRE'
11305 fi
11306 fi
11307 fi
11308
11309 # It seems that -bexpall does not export symbols beginning with
11310 # underscore (_), so it is better to generate a list of symbols to export.
11311 always_export_symbols_CXX=yes
11312 if test "$aix_use_runtimelinking" = yes; then
11313 # Warning - without using the other runtime loading flags (-brtl),
11314 # -berok will link without error, but may produce a broken library.
11315 allow_undefined_flag_CXX='-berok'
11316 # Determine the default libpath from the value encoded in an empty executable.
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323
11324 int
11325 main ()
11326 {
11327
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 rm -f conftest.$ac_objext conftest$ac_exeext
11333 if { (ac_try="$ac_link"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_link") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11347 { (case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_try") 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; } &&
11356 { ac_try='test -s conftest$ac_exeext'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366
11367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11368 }'`
11369 # Check for a 64-bit object if we didn't find anything.
11370 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; }
11371 }'`; fi
11372 else
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376
11377 fi
11378
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11382
11383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11384
11385 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"
11386 else
11387 if test "$host_cpu" = ia64; then
11388 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11389 allow_undefined_flag_CXX="-z nodefs"
11390 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"
11391 else
11392 # Determine the default libpath from the value encoded in an empty executable.
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399
11400 int
11401 main ()
11402 {
11403
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (ac_try="$ac_link"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_link") 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11423 { (case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_try") 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; } &&
11432 { ac_try='test -s conftest$ac_exeext'
11433 { (case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_try") 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442
11443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11444 }'`
11445 # Check for a 64-bit object if we didn't find anything.
11446 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; }
11447 }'`; fi
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452
11453 fi
11454
11455 rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11458
11459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11460 # Warning - without using the other run time loading flags,
11461 # -berok will link without error, but may produce a broken library.
11462 no_undefined_flag_CXX=' ${wl}-bernotok'
11463 allow_undefined_flag_CXX=' ${wl}-berok'
11464 # Exported symbols can be pulled into shared objects from archives
11465 whole_archive_flag_spec_CXX='$convenience'
11466 archive_cmds_need_lc_CXX=yes
11467 # This is similar to how AIX traditionally builds its shared libraries.
11468 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'
11469 fi
11470 fi
11471 ;;
11472
11473 beos*)
11474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11475 allow_undefined_flag_CXX=unsupported
11476 # Joseph Beckenbach <[email protected]> says some releases of gcc
11477 # support --undefined. This deserves some investigation. FIXME
11478 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11479 else
11480 ld_shlibs_CXX=no
11481 fi
11482 ;;
11483
11484 chorus*)
11485 case $cc_basename in
11486 *)
11487 # FIXME: insert proper C++ library support
11488 ld_shlibs_CXX=no
11489 ;;
11490 esac
11491 ;;
11492
11493 cygwin* | mingw* | pw32*)
11494 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11495 # as there is no search path for DLLs.
11496 hardcode_libdir_flag_spec_CXX='-L$libdir'
11497 allow_undefined_flag_CXX=unsupported
11498 always_export_symbols_CXX=no
11499 enable_shared_with_static_runtimes_CXX=yes
11500
11501 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11502 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'
11503 # If the export-symbols file already is a .def file (1st line
11504 # is EXPORTS), use it as is; otherwise, prepend...
11505 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11506 cp $export_symbols $output_objdir/$soname.def;
11507 else
11508 echo EXPORTS > $output_objdir/$soname.def;
11509 cat $export_symbols >> $output_objdir/$soname.def;
11510 fi~
11511 $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'
11512 else
11513 ld_shlibs_CXX=no
11514 fi
11515 ;;
11516 darwin* | rhapsody*)
11517 case $host_os in
11518 rhapsody* | darwin1.[012])
11519 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11520 ;;
11521 *) # Darwin 1.3 on
11522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11523 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11524 else
11525 case ${MACOSX_DEPLOYMENT_TARGET} in
11526 10.[012])
11527 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11528 ;;
11529 10.*)
11530 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11531 ;;
11532 esac
11533 fi
11534 ;;
11535 esac
11536 archive_cmds_need_lc_CXX=no
11537 hardcode_direct_CXX=no
11538 hardcode_automatic_CXX=yes
11539 hardcode_shlibpath_var_CXX=unsupported
11540 whole_archive_flag_spec_CXX=''
11541 link_all_deplibs_CXX=yes
11542
11543 if test "$GXX" = yes ; then
11544 lt_int_apple_cc_single_mod=no
11545 output_verbose_link_cmd='echo'
11546 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11547 lt_int_apple_cc_single_mod=yes
11548 fi
11549 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11550 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11551 else
11552 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'
11553 fi
11554 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11557 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}'
11558 else
11559 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}'
11560 fi
11561 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}'
11562 else
11563 case $cc_basename in
11564 xlc*)
11565 output_verbose_link_cmd='echo'
11566 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'
11567 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11568 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11569 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}'
11570 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}'
11571 ;;
11572 *)
11573 ld_shlibs_CXX=no
11574 ;;
11575 esac
11576 fi
11577 ;;
11578
11579 dgux*)
11580 case $cc_basename in
11581 ec++*)
11582 # FIXME: insert proper C++ library support
11583 ld_shlibs_CXX=no
11584 ;;
11585 ghcx*)
11586 # Green Hills C++ Compiler
11587 # FIXME: insert proper C++ library support
11588 ld_shlibs_CXX=no
11589 ;;
11590 *)
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 esac
11595 ;;
11596 freebsd[12]*)
11597 # C++ shared libraries reported to be fairly broken before switch to ELF
11598 ld_shlibs_CXX=no
11599 ;;
11600 freebsd-elf*)
11601 archive_cmds_need_lc_CXX=no
11602 ;;
11603 freebsd* | dragonfly*)
11604 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11605 # conventions
11606 ld_shlibs_CXX=yes
11607 ;;
11608 gnu*)
11609 ;;
11610 hpux9*)
11611 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11612 hardcode_libdir_separator_CXX=:
11613 export_dynamic_flag_spec_CXX='${wl}-E'
11614 hardcode_direct_CXX=yes
11615 hardcode_minus_L_CXX=yes # Not in the search PATH,
11616 # but as the default
11617 # location of the library.
11618
11619 case $cc_basename in
11620 CC*)
11621 # FIXME: insert proper C++ library support
11622 ld_shlibs_CXX=no
11623 ;;
11624 aCC*)
11625 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'
11626 # Commands to make compiler produce verbose output that lists
11627 # what "hidden" libraries, object files and flags are used when
11628 # linking a shared library.
11629 #
11630 # There doesn't appear to be a way to prevent this compiler from
11631 # explicitly linking system object files so we need to strip them
11632 # from the output so that they don't get included in the library
11633 # dependencies.
11634 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'
11635 ;;
11636 *)
11637 if test "$GXX" = yes; then
11638 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'
11639 else
11640 # FIXME: insert proper C++ library support
11641 ld_shlibs_CXX=no
11642 fi
11643 ;;
11644 esac
11645 ;;
11646 hpux10*|hpux11*)
11647 if test $with_gnu_ld = no; then
11648 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11649 hardcode_libdir_separator_CXX=:
11650
11651 case $host_cpu in
11652 hppa*64*|ia64*)
11653 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11654 ;;
11655 *)
11656 export_dynamic_flag_spec_CXX='${wl}-E'
11657 ;;
11658 esac
11659 fi
11660 case $host_cpu in
11661 hppa*64*|ia64*)
11662 hardcode_direct_CXX=no
11663 hardcode_shlibpath_var_CXX=no
11664 ;;
11665 *)
11666 hardcode_direct_CXX=yes
11667 hardcode_minus_L_CXX=yes # Not in the search PATH,
11668 # but as the default
11669 # location of the library.
11670 ;;
11671 esac
11672
11673 case $cc_basename in
11674 CC*)
11675 # FIXME: insert proper C++ library support
11676 ld_shlibs_CXX=no
11677 ;;
11678 aCC*)
11679 case $host_cpu in
11680 hppa*64*)
11681 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11682 ;;
11683 ia64*)
11684 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11685 ;;
11686 *)
11687 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11688 ;;
11689 esac
11690 # Commands to make compiler produce verbose output that lists
11691 # what "hidden" libraries, object files and flags are used when
11692 # linking a shared library.
11693 #
11694 # There doesn't appear to be a way to prevent this compiler from
11695 # explicitly linking system object files so we need to strip them
11696 # from the output so that they don't get included in the library
11697 # dependencies.
11698 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'
11699 ;;
11700 *)
11701 if test "$GXX" = yes; then
11702 if test $with_gnu_ld = no; then
11703 case $host_cpu in
11704 hppa*64*)
11705 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11706 ;;
11707 ia64*)
11708 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11709 ;;
11710 *)
11711 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'
11712 ;;
11713 esac
11714 fi
11715 else
11716 # FIXME: insert proper C++ library support
11717 ld_shlibs_CXX=no
11718 fi
11719 ;;
11720 esac
11721 ;;
11722 interix3*)
11723 hardcode_direct_CXX=no
11724 hardcode_shlibpath_var_CXX=no
11725 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11726 export_dynamic_flag_spec_CXX='${wl}-E'
11727 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11728 # Instead, shared libraries are loaded at an image base (0x10000000 by
11729 # default) and relocated if they conflict, which is a slow very memory
11730 # consuming and fragmenting process. To avoid this, we pick a random,
11731 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11732 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11733 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'
11734 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'
11735 ;;
11736 irix5* | irix6*)
11737 case $cc_basename in
11738 CC*)
11739 # SGI C++
11740 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'
11741
11742 # Archives containing C++ object files must be created using
11743 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11744 # necessary to make sure instantiated templates are included
11745 # in the archive.
11746 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11747 ;;
11748 *)
11749 if test "$GXX" = yes; then
11750 if test "$with_gnu_ld" = no; then
11751 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'
11752 else
11753 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'
11754 fi
11755 fi
11756 link_all_deplibs_CXX=yes
11757 ;;
11758 esac
11759 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11760 hardcode_libdir_separator_CXX=:
11761 ;;
11762 linux* | k*bsd*-gnu)
11763 case $cc_basename in
11764 KCC*)
11765 # Kuck and Associates, Inc. (KAI) C++ Compiler
11766
11767 # KCC will only create a shared library if the output file
11768 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11769 # to its proper name (with version) after linking.
11770 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'
11771 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'
11772 # Commands to make compiler produce verbose output that lists
11773 # what "hidden" libraries, object files and flags are used when
11774 # linking a shared library.
11775 #
11776 # There doesn't appear to be a way to prevent this compiler from
11777 # explicitly linking system object files so we need to strip them
11778 # from the output so that they don't get included in the library
11779 # dependencies.
11780 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'
11781
11782 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11783 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11784
11785 # Archives containing C++ object files must be created using
11786 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11787 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11788 ;;
11789 icpc*)
11790 # Intel C++
11791 with_gnu_ld=yes
11792 # version 8.0 and above of icpc choke on multiply defined symbols
11793 # if we add $predep_objects and $postdep_objects, however 7.1 and
11794 # earlier do not add the objects themselves.
11795 case `$CC -V 2>&1` in
11796 *"Version 7."*)
11797 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11798 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'
11799 ;;
11800 *) # Version 8.0 or newer
11801 tmp_idyn=
11802 case $host_cpu in
11803 ia64*) tmp_idyn=' -i_dynamic';;
11804 esac
11805 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11806 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'
11807 ;;
11808 esac
11809 archive_cmds_need_lc_CXX=no
11810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11812 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11813 ;;
11814 pgCC*)
11815 # Portland Group C++ compiler
11816 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11817 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'
11818
11819 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11821 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'
11822 ;;
11823 cxx*)
11824 # Compaq C++
11825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11826 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'
11827
11828 runpath_var=LD_RUN_PATH
11829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11830 hardcode_libdir_separator_CXX=:
11831
11832 # Commands to make compiler produce verbose output that lists
11833 # what "hidden" libraries, object files and flags are used when
11834 # linking a shared library.
11835 #
11836 # There doesn't appear to be a way to prevent this compiler from
11837 # explicitly linking system object files so we need to strip them
11838 # from the output so that they don't get included in the library
11839 # dependencies.
11840 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'
11841 ;;
11842 esac
11843 ;;
11844 lynxos*)
11845 # FIXME: insert proper C++ library support
11846 ld_shlibs_CXX=no
11847 ;;
11848 m88k*)
11849 # FIXME: insert proper C++ library support
11850 ld_shlibs_CXX=no
11851 ;;
11852 mvs*)
11853 case $cc_basename in
11854 cxx*)
11855 # FIXME: insert proper C++ library support
11856 ld_shlibs_CXX=no
11857 ;;
11858 *)
11859 # FIXME: insert proper C++ library support
11860 ld_shlibs_CXX=no
11861 ;;
11862 esac
11863 ;;
11864 netbsd* | netbsdelf*-gnu)
11865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11866 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11867 wlarc=
11868 hardcode_libdir_flag_spec_CXX='-R$libdir'
11869 hardcode_direct_CXX=yes
11870 hardcode_shlibpath_var_CXX=no
11871 fi
11872 # Workaround some broken pre-1.5 toolchains
11873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11874 ;;
11875 openbsd2*)
11876 # C++ shared libraries are fairly broken
11877 ld_shlibs_CXX=no
11878 ;;
11879 openbsd*)
11880 hardcode_direct_CXX=yes
11881 hardcode_shlibpath_var_CXX=no
11882 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11885 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11886 export_dynamic_flag_spec_CXX='${wl}-E'
11887 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11888 fi
11889 output_verbose_link_cmd='echo'
11890 ;;
11891 osf3*)
11892 case $cc_basename in
11893 KCC*)
11894 # Kuck and Associates, Inc. (KAI) C++ Compiler
11895
11896 # KCC will only create a shared library if the output file
11897 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11898 # to its proper name (with version) after linking.
11899 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'
11900
11901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11902 hardcode_libdir_separator_CXX=:
11903
11904 # Archives containing C++ object files must be created using
11905 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11906 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11907
11908 ;;
11909 RCC*)
11910 # Rational C++ 2.4.1
11911 # FIXME: insert proper C++ library support
11912 ld_shlibs_CXX=no
11913 ;;
11914 cxx*)
11915 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11916 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'
11917
11918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11919 hardcode_libdir_separator_CXX=:
11920
11921 # Commands to make compiler produce verbose output that lists
11922 # what "hidden" libraries, object files and flags are used when
11923 # linking a shared library.
11924 #
11925 # There doesn't appear to be a way to prevent this compiler from
11926 # explicitly linking system object files so we need to strip them
11927 # from the output so that they don't get included in the library
11928 # dependencies.
11929 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'
11930 ;;
11931 *)
11932 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11933 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11934 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'
11935
11936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11937 hardcode_libdir_separator_CXX=:
11938
11939 # Commands to make compiler produce verbose output that lists
11940 # what "hidden" libraries, object files and flags are used when
11941 # linking a shared library.
11942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11943
11944 else
11945 # FIXME: insert proper C++ library support
11946 ld_shlibs_CXX=no
11947 fi
11948 ;;
11949 esac
11950 ;;
11951 osf4* | osf5*)
11952 case $cc_basename in
11953 KCC*)
11954 # Kuck and Associates, Inc. (KAI) C++ Compiler
11955
11956 # KCC will only create a shared library if the output file
11957 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11958 # to its proper name (with version) after linking.
11959 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'
11960
11961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11962 hardcode_libdir_separator_CXX=:
11963
11964 # Archives containing C++ object files must be created using
11965 # the KAI C++ compiler.
11966 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11967 ;;
11968 RCC*)
11969 # Rational C++ 2.4.1
11970 # FIXME: insert proper C++ library support
11971 ld_shlibs_CXX=no
11972 ;;
11973 cxx*)
11974 allow_undefined_flag_CXX=' -expect_unresolved \*'
11975 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'
11976 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11977 echo "-hidden">> $lib.exp~
11978 $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~
11979 $rm $lib.exp'
11980
11981 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11982 hardcode_libdir_separator_CXX=:
11983
11984 # Commands to make compiler produce verbose output that lists
11985 # what "hidden" libraries, object files and flags are used when
11986 # linking a shared library.
11987 #
11988 # There doesn't appear to be a way to prevent this compiler from
11989 # explicitly linking system object files so we need to strip them
11990 # from the output so that they don't get included in the library
11991 # dependencies.
11992 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'
11993 ;;
11994 *)
11995 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11996 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11997 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'
11998
11999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12000 hardcode_libdir_separator_CXX=:
12001
12002 # Commands to make compiler produce verbose output that lists
12003 # what "hidden" libraries, object files and flags are used when
12004 # linking a shared library.
12005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12006
12007 else
12008 # FIXME: insert proper C++ library support
12009 ld_shlibs_CXX=no
12010 fi
12011 ;;
12012 esac
12013 ;;
12014 psos*)
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12017 ;;
12018 sunos4*)
12019 case $cc_basename in
12020 CC*)
12021 # Sun C++ 4.x
12022 # FIXME: insert proper C++ library support
12023 ld_shlibs_CXX=no
12024 ;;
12025 lcc*)
12026 # Lucid
12027 # FIXME: insert proper C++ library support
12028 ld_shlibs_CXX=no
12029 ;;
12030 *)
12031 # FIXME: insert proper C++ library support
12032 ld_shlibs_CXX=no
12033 ;;
12034 esac
12035 ;;
12036 solaris*)
12037 case $cc_basename in
12038 CC*)
12039 # Sun C++ 4.2, 5.x and Centerline C++
12040 archive_cmds_need_lc_CXX=yes
12041 no_undefined_flag_CXX=' -zdefs'
12042 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12044 $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'
12045
12046 hardcode_libdir_flag_spec_CXX='-R$libdir'
12047 hardcode_shlibpath_var_CXX=no
12048 case $host_os in
12049 solaris2.[0-5] | solaris2.[0-5].*) ;;
12050 *)
12051 # The C++ compiler is used as linker so we must use $wl
12052 # flag to pass the commands to the underlying system
12053 # linker. We must also pass each convience library through
12054 # to the system linker between allextract/defaultextract.
12055 # The C++ compiler will combine linker options so we
12056 # cannot just pass the convience library names through
12057 # without $wl.
12058 # Supported since Solaris 2.6 (maybe 2.5.1?)
12059 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'
12060 ;;
12061 esac
12062 link_all_deplibs_CXX=yes
12063
12064 output_verbose_link_cmd='echo'
12065
12066 # Archives containing C++ object files must be created using
12067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12068 # necessary to make sure instantiated templates are included
12069 # in the archive.
12070 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12071 ;;
12072 gcx*)
12073 # Green Hills C++ Compiler
12074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12075
12076 # The C++ compiler must be used to create the archive.
12077 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12078 ;;
12079 *)
12080 # GNU C++ compiler with Solaris linker
12081 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12082 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12083 if $CC --version | grep -v '^2\.7' > /dev/null; then
12084 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12085 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12086 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12087
12088 # Commands to make compiler produce verbose output that lists
12089 # what "hidden" libraries, object files and flags are used when
12090 # linking a shared library.
12091 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12092 else
12093 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12094 # platform.
12095 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12096 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12097 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12098
12099 # Commands to make compiler produce verbose output that lists
12100 # what "hidden" libraries, object files and flags are used when
12101 # linking a shared library.
12102 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12103 fi
12104
12105 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12106 fi
12107 ;;
12108 esac
12109 ;;
12110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12111 no_undefined_flag_CXX='${wl}-z,text'
12112 archive_cmds_need_lc_CXX=no
12113 hardcode_shlibpath_var_CXX=no
12114 runpath_var='LD_RUN_PATH'
12115
12116 case $cc_basename in
12117 CC*)
12118 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12119 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12120 ;;
12121 *)
12122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12124 ;;
12125 esac
12126 ;;
12127 sysv5* | sco3.2v5* | sco5v6*)
12128 # Note: We can NOT use -z defs as we might desire, because we do not
12129 # link with -lc, and that would cause any symbols used from libc to
12130 # always be unresolved, which means just about no library would
12131 # ever link correctly. If we're not using GNU ld we use -z text
12132 # though, which does catch some bad symbols but isn't as heavy-handed
12133 # as -z defs.
12134 # For security reasons, it is highly recommended that you always
12135 # use absolute paths for naming shared libraries, and exclude the
12136 # DT_RUNPATH tag from executables and libraries. But doing so
12137 # requires that you compile everything twice, which is a pain.
12138 # So that behaviour is only enabled if SCOABSPATH is set to a
12139 # non-empty value in the environment. Most likely only useful for
12140 # creating official distributions of packages.
12141 # This is a hack until libtool officially supports absolute path
12142 # names for shared libraries.
12143 no_undefined_flag_CXX='${wl}-z,text'
12144 allow_undefined_flag_CXX='${wl}-z,nodefs'
12145 archive_cmds_need_lc_CXX=no
12146 hardcode_shlibpath_var_CXX=no
12147 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12148 hardcode_libdir_separator_CXX=':'
12149 link_all_deplibs_CXX=yes
12150 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12151 runpath_var='LD_RUN_PATH'
12152
12153 case $cc_basename in
12154 CC*)
12155 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12156 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12157 ;;
12158 *)
12159 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12160 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12161 ;;
12162 esac
12163 ;;
12164 tandem*)
12165 case $cc_basename in
12166 NCC*)
12167 # NonStop-UX NCC 3.20
12168 # FIXME: insert proper C++ library support
12169 ld_shlibs_CXX=no
12170 ;;
12171 *)
12172 # FIXME: insert proper C++ library support
12173 ld_shlibs_CXX=no
12174 ;;
12175 esac
12176 ;;
12177 vxworks*)
12178 # FIXME: insert proper C++ library support
12179 ld_shlibs_CXX=no
12180 ;;
12181 *)
12182 # FIXME: insert proper C++ library support
12183 ld_shlibs_CXX=no
12184 ;;
12185 esac
12186 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12187 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12188 test "$ld_shlibs_CXX" = no && can_build_shared=no
12189
12190 GCC_CXX="$GXX"
12191 LD_CXX="$LD"
12192
12193
12194 cat > conftest.$ac_ext <<EOF
12195 class Foo
12196 {
12197 public:
12198 Foo (void) { a = 0; }
12199 private:
12200 int a;
12201 };
12202 EOF
12203
12204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12205 (eval $ac_compile) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; then
12209 # Parse the compiler output and extract the necessary
12210 # objects, libraries and library flags.
12211
12212 # Sentinel used to keep track of whether or not we are before
12213 # the conftest object file.
12214 pre_test_object_deps_done=no
12215
12216 # The `*' in the case matches for architectures that use `case' in
12217 # $output_verbose_cmd can trigger glob expansion during the loop
12218 # eval without this substitution.
12219 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12220
12221 for p in `eval $output_verbose_link_cmd`; do
12222 case $p in
12223
12224 -L* | -R* | -l*)
12225 # Some compilers place space between "-{L,R}" and the path.
12226 # Remove the space.
12227 if test $p = "-L" \
12228 || test $p = "-R"; then
12229 prev=$p
12230 continue
12231 else
12232 prev=
12233 fi
12234
12235 if test "$pre_test_object_deps_done" = no; then
12236 case $p in
12237 -L* | -R*)
12238 # Internal compiler library paths should come after those
12239 # provided the user. The postdeps already come after the
12240 # user supplied libs so there is no need to process them.
12241 if test -z "$compiler_lib_search_path_CXX"; then
12242 compiler_lib_search_path_CXX="${prev}${p}"
12243 else
12244 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12245 fi
12246 ;;
12247 # The "-l" case would never come before the object being
12248 # linked, so don't bother handling this case.
12249 esac
12250 else
12251 if test -z "$postdeps_CXX"; then
12252 postdeps_CXX="${prev}${p}"
12253 else
12254 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12255 fi
12256 fi
12257 ;;
12258
12259 *.$objext)
12260 # This assumes that the test object file only shows up
12261 # once in the compiler output.
12262 if test "$p" = "conftest.$objext"; then
12263 pre_test_object_deps_done=yes
12264 continue
12265 fi
12266
12267 if test "$pre_test_object_deps_done" = no; then
12268 if test -z "$predep_objects_CXX"; then
12269 predep_objects_CXX="$p"
12270 else
12271 predep_objects_CXX="$predep_objects_CXX $p"
12272 fi
12273 else
12274 if test -z "$postdep_objects_CXX"; then
12275 postdep_objects_CXX="$p"
12276 else
12277 postdep_objects_CXX="$postdep_objects_CXX $p"
12278 fi
12279 fi
12280 ;;
12281
12282 *) ;; # Ignore the rest.
12283
12284 esac
12285 done
12286
12287 # Clean up.
12288 rm -f a.out a.exe
12289 else
12290 echo "libtool.m4: error: problem compiling CXX test program"
12291 fi
12292
12293 $rm -f confest.$objext
12294
12295 # PORTME: override above test on systems where it is broken
12296 case $host_os in
12297 interix3*)
12298 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12299 # hack all around it, let's just trust "g++" to DTRT.
12300 predep_objects_CXX=
12301 postdep_objects_CXX=
12302 postdeps_CXX=
12303 ;;
12304
12305 solaris*)
12306 case $cc_basename in
12307 CC*)
12308 # Adding this requires a known-good setup of shared libraries for
12309 # Sun compiler versions before 5.6, else PIC objects from an old
12310 # archive will be linked into the output, leading to subtle bugs.
12311 postdeps_CXX='-lCstd -lCrun'
12312 ;;
12313 esac
12314 ;;
12315 esac
12316
12317
12318 case " $postdeps_CXX " in
12319 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12320 esac
12321
12322 lt_prog_compiler_wl_CXX=
12323 lt_prog_compiler_pic_CXX=
12324 lt_prog_compiler_static_CXX=
12325
12326 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12327 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12328
12329 # C++ specific cases for pic, static, wl, etc.
12330 if test "$GXX" = yes; then
12331 lt_prog_compiler_wl_CXX='-Wl,'
12332 lt_prog_compiler_static_CXX='-static'
12333
12334 case $host_os in
12335 aix*)
12336 # All AIX code is PIC.
12337 if test "$host_cpu" = ia64; then
12338 # AIX 5 now supports IA64 processor
12339 lt_prog_compiler_static_CXX='-Bstatic'
12340 fi
12341 ;;
12342 amigaos*)
12343 # FIXME: we need at least 68020 code to build shared libraries, but
12344 # adding the `-m68020' flag to GCC prevents building anything better,
12345 # like `-m68040'.
12346 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12347 ;;
12348 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12349 # PIC is the default for these OSes.
12350 ;;
12351 mingw* | os2* | pw32*)
12352 # This hack is so that the source file can tell whether it is being
12353 # built for inclusion in a dll (and should export symbols for example).
12354 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12355 ;;
12356 darwin* | rhapsody*)
12357 # PIC is the default on this platform
12358 # Common symbols not allowed in MH_DYLIB files
12359 lt_prog_compiler_pic_CXX='-fno-common'
12360 ;;
12361 *djgpp*)
12362 # DJGPP does not support shared libraries at all
12363 lt_prog_compiler_pic_CXX=
12364 ;;
12365 interix3*)
12366 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12367 # Instead, we relocate shared libraries at runtime.
12368 ;;
12369 sysv4*MP*)
12370 if test -d /usr/nec; then
12371 lt_prog_compiler_pic_CXX=-Kconform_pic
12372 fi
12373 ;;
12374 hpux*)
12375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12376 # not for PA HP-UX.
12377 case $host_cpu in
12378 hppa*64*|ia64*)
12379 ;;
12380 *)
12381 lt_prog_compiler_pic_CXX='-fPIC'
12382 ;;
12383 esac
12384 ;;
12385 *)
12386 lt_prog_compiler_pic_CXX='-fPIC'
12387 ;;
12388 esac
12389 else
12390 case $host_os in
12391 aix4* | aix5*)
12392 # All AIX code is PIC.
12393 if test "$host_cpu" = ia64; then
12394 # AIX 5 now supports IA64 processor
12395 lt_prog_compiler_static_CXX='-Bstatic'
12396 else
12397 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12398 fi
12399 ;;
12400 chorus*)
12401 case $cc_basename in
12402 cxch68*)
12403 # Green Hills C++ Compiler
12404 # _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"
12405 ;;
12406 esac
12407 ;;
12408 darwin*)
12409 # PIC is the default on this platform
12410 # Common symbols not allowed in MH_DYLIB files
12411 case $cc_basename in
12412 xlc*)
12413 lt_prog_compiler_pic_CXX='-qnocommon'
12414 lt_prog_compiler_wl_CXX='-Wl,'
12415 ;;
12416 esac
12417 ;;
12418 dgux*)
12419 case $cc_basename in
12420 ec++*)
12421 lt_prog_compiler_pic_CXX='-KPIC'
12422 ;;
12423 ghcx*)
12424 # Green Hills C++ Compiler
12425 lt_prog_compiler_pic_CXX='-pic'
12426 ;;
12427 *)
12428 ;;
12429 esac
12430 ;;
12431 freebsd* | dragonfly*)
12432 # FreeBSD uses GNU C++
12433 ;;
12434 hpux9* | hpux10* | hpux11*)
12435 case $cc_basename in
12436 CC*)
12437 lt_prog_compiler_wl_CXX='-Wl,'
12438 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12439 if test "$host_cpu" != ia64; then
12440 lt_prog_compiler_pic_CXX='+Z'
12441 fi
12442 ;;
12443 aCC*)
12444 lt_prog_compiler_wl_CXX='-Wl,'
12445 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12446 case $host_cpu in
12447 hppa*64*|ia64*)
12448 # +Z the default
12449 ;;
12450 *)
12451 lt_prog_compiler_pic_CXX='+Z'
12452 ;;
12453 esac
12454 ;;
12455 *)
12456 ;;
12457 esac
12458 ;;
12459 interix*)
12460 # This is c89, which is MS Visual C++ (no shared libs)
12461 # Anyone wants to do a port?
12462 ;;
12463 irix5* | irix6* | nonstopux*)
12464 case $cc_basename in
12465 CC*)
12466 lt_prog_compiler_wl_CXX='-Wl,'
12467 lt_prog_compiler_static_CXX='-non_shared'
12468 # CC pic flag -KPIC is the default.
12469 ;;
12470 *)
12471 ;;
12472 esac
12473 ;;
12474 linux* | k*bsd*-gnu)
12475 case $cc_basename in
12476 KCC*)
12477 # KAI C++ Compiler
12478 lt_prog_compiler_wl_CXX='--backend -Wl,'
12479 lt_prog_compiler_pic_CXX='-fPIC'
12480 ;;
12481 icpc* | ecpc*)
12482 # Intel C++
12483 lt_prog_compiler_wl_CXX='-Wl,'
12484 lt_prog_compiler_pic_CXX='-KPIC'
12485 lt_prog_compiler_static_CXX='-static'
12486 ;;
12487 pgCC*)
12488 # Portland Group C++ compiler.
12489 lt_prog_compiler_wl_CXX='-Wl,'
12490 lt_prog_compiler_pic_CXX='-fpic'
12491 lt_prog_compiler_static_CXX='-Bstatic'
12492 ;;
12493 cxx*)
12494 # Compaq C++
12495 # Make sure the PIC flag is empty. It appears that all Alpha
12496 # Linux and Compaq Tru64 Unix objects are PIC.
12497 lt_prog_compiler_pic_CXX=
12498 lt_prog_compiler_static_CXX='-non_shared'
12499 ;;
12500 *)
12501 ;;
12502 esac
12503 ;;
12504 lynxos*)
12505 ;;
12506 m88k*)
12507 ;;
12508 mvs*)
12509 case $cc_basename in
12510 cxx*)
12511 lt_prog_compiler_pic_CXX='-W c,exportall'
12512 ;;
12513 *)
12514 ;;
12515 esac
12516 ;;
12517 netbsd* | netbsdelf*-gnu)
12518 ;;
12519 osf3* | osf4* | osf5*)
12520 case $cc_basename in
12521 KCC*)
12522 lt_prog_compiler_wl_CXX='--backend -Wl,'
12523 ;;
12524 RCC*)
12525 # Rational C++ 2.4.1
12526 lt_prog_compiler_pic_CXX='-pic'
12527 ;;
12528 cxx*)
12529 # Digital/Compaq C++
12530 lt_prog_compiler_wl_CXX='-Wl,'
12531 # Make sure the PIC flag is empty. It appears that all Alpha
12532 # Linux and Compaq Tru64 Unix objects are PIC.
12533 lt_prog_compiler_pic_CXX=
12534 lt_prog_compiler_static_CXX='-non_shared'
12535 ;;
12536 *)
12537 ;;
12538 esac
12539 ;;
12540 psos*)
12541 ;;
12542 solaris*)
12543 case $cc_basename in
12544 CC*)
12545 # Sun C++ 4.2, 5.x and Centerline C++
12546 lt_prog_compiler_pic_CXX='-KPIC'
12547 lt_prog_compiler_static_CXX='-Bstatic'
12548 lt_prog_compiler_wl_CXX='-Qoption ld '
12549 ;;
12550 gcx*)
12551 # Green Hills C++ Compiler
12552 lt_prog_compiler_pic_CXX='-PIC'
12553 ;;
12554 *)
12555 ;;
12556 esac
12557 ;;
12558 sunos4*)
12559 case $cc_basename in
12560 CC*)
12561 # Sun C++ 4.x
12562 lt_prog_compiler_pic_CXX='-pic'
12563 lt_prog_compiler_static_CXX='-Bstatic'
12564 ;;
12565 lcc*)
12566 # Lucid
12567 lt_prog_compiler_pic_CXX='-pic'
12568 ;;
12569 *)
12570 ;;
12571 esac
12572 ;;
12573 tandem*)
12574 case $cc_basename in
12575 NCC*)
12576 # NonStop-UX NCC 3.20
12577 lt_prog_compiler_pic_CXX='-KPIC'
12578 ;;
12579 *)
12580 ;;
12581 esac
12582 ;;
12583 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12584 case $cc_basename in
12585 CC*)
12586 lt_prog_compiler_wl_CXX='-Wl,'
12587 lt_prog_compiler_pic_CXX='-KPIC'
12588 lt_prog_compiler_static_CXX='-Bstatic'
12589 ;;
12590 esac
12591 ;;
12592 vxworks*)
12593 ;;
12594 *)
12595 lt_prog_compiler_can_build_shared_CXX=no
12596 ;;
12597 esac
12598 fi
12599
12600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12601 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12602
12603 #
12604 # Check to make sure the PIC flag actually works.
12605 #
12606 if test -n "$lt_prog_compiler_pic_CXX"; then
12607
12608 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12609 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12610 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613 lt_prog_compiler_pic_works_CXX=no
12614 ac_outfile=conftest.$ac_objext
12615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12616 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12617 # Insert the option either (1) after the last *FLAGS variable, or
12618 # (2) before a word containing "conftest.", or (3) at the end.
12619 # Note that $ac_compile itself does not contain backslashes and begins
12620 # with a dollar sign (not a hyphen), so the echo should work correctly.
12621 # The option is referenced via a variable to avoid confusing sed.
12622 lt_compile=`echo "$ac_compile" | $SED \
12623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12625 -e 's:$: $lt_compiler_flag:'`
12626 (eval echo "\"\$as_me:12626: $lt_compile\"" >&5)
12627 (eval "$lt_compile" 2>conftest.err)
12628 ac_status=$?
12629 cat conftest.err >&5
12630 echo "$as_me:12630: \$? = $ac_status" >&5
12631 if (exit $ac_status) && test -s "$ac_outfile"; then
12632 # The compiler can only warn and ignore the option if not recognized
12633 # So say no if there are warnings other than the usual output.
12634 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12637 lt_prog_compiler_pic_works_CXX=yes
12638 fi
12639 fi
12640 $rm conftest*
12641
12642 fi
12643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12644 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12645
12646 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12647 case $lt_prog_compiler_pic_CXX in
12648 "" | " "*) ;;
12649 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12650 esac
12651 else
12652 lt_prog_compiler_pic_CXX=
12653 lt_prog_compiler_can_build_shared_CXX=no
12654 fi
12655
12656 fi
12657 case $host_os in
12658 # For platforms which do not support PIC, -DPIC is meaningless:
12659 *djgpp*)
12660 lt_prog_compiler_pic_CXX=
12661 ;;
12662 *)
12663 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12664 ;;
12665 esac
12666
12667 #
12668 # Check to make sure the static flag actually works.
12669 #
12670 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12671 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12672 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12673 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 lt_prog_compiler_static_works_CXX=no
12677 save_LDFLAGS="$LDFLAGS"
12678 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12679 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12681 # The linker can only warn and ignore the option if not recognized
12682 # So say no if there are warnings
12683 if test -s conftest.err; then
12684 # Append any errors to the config.log.
12685 cat conftest.err 1>&5
12686 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12688 if diff conftest.exp conftest.er2 >/dev/null; then
12689 lt_prog_compiler_static_works_CXX=yes
12690 fi
12691 else
12692 lt_prog_compiler_static_works_CXX=yes
12693 fi
12694 fi
12695 $rm conftest*
12696 LDFLAGS="$save_LDFLAGS"
12697
12698 fi
12699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12700 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12701
12702 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12703 :
12704 else
12705 lt_prog_compiler_static_CXX=
12706 fi
12707
12708
12709 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12711 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 lt_cv_prog_compiler_c_o_CXX=no
12715 $rm -r conftest 2>/dev/null
12716 mkdir conftest
12717 cd conftest
12718 mkdir out
12719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12720
12721 lt_compiler_flag="-o out/conftest2.$ac_objext"
12722 # Insert the option either (1) after the last *FLAGS variable, or
12723 # (2) before a word containing "conftest.", or (3) at the end.
12724 # Note that $ac_compile itself does not contain backslashes and begins
12725 # with a dollar sign (not a hyphen), so the echo should work correctly.
12726 lt_compile=`echo "$ac_compile" | $SED \
12727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12729 -e 's:$: $lt_compiler_flag:'`
12730 (eval echo "\"\$as_me:12730: $lt_compile\"" >&5)
12731 (eval "$lt_compile" 2>out/conftest.err)
12732 ac_status=$?
12733 cat out/conftest.err >&5
12734 echo "$as_me:12734: \$? = $ac_status" >&5
12735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12736 then
12737 # The compiler can only warn and ignore the option if not recognized
12738 # So say no if there are warnings
12739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12742 lt_cv_prog_compiler_c_o_CXX=yes
12743 fi
12744 fi
12745 chmod u+w . 2>&5
12746 $rm conftest*
12747 # SGI C++ compiler will create directory out/ii_files/ for
12748 # template instantiation
12749 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12750 $rm out/* && rmdir out
12751 cd ..
12752 rmdir conftest
12753 $rm conftest*
12754
12755 fi
12756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12758
12759
12760 hard_links="nottested"
12761 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12762 # do not overwrite the value of need_locks provided by the user
12763 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12764 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12765 hard_links=yes
12766 $rm conftest*
12767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12768 touch conftest.a
12769 ln conftest.a conftest.b 2>&5 || hard_links=no
12770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12771 { echo "$as_me:$LINENO: result: $hard_links" >&5
12772 echo "${ECHO_T}$hard_links" >&6; }
12773 if test "$hard_links" = no; then
12774 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12775 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12776 need_locks=warn
12777 fi
12778 else
12779 need_locks=no
12780 fi
12781
12782 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12784
12785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12786 case $host_os in
12787 aix4* | aix5*)
12788 # If we're using GNU nm, then we don't want the "-C" option.
12789 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12790 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12791 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'
12792 else
12793 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'
12794 fi
12795 ;;
12796 pw32*)
12797 export_symbols_cmds_CXX="$ltdll_cmds"
12798 ;;
12799 cygwin* | mingw*)
12800 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'
12801 ;;
12802 linux* | k*bsd*-gnu)
12803 link_all_deplibs_CXX=no
12804 ;;
12805 *)
12806 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12807 ;;
12808 esac
12809
12810 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12811 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12812 test "$ld_shlibs_CXX" = no && can_build_shared=no
12813
12814 #
12815 # Do we need to explicitly link libc?
12816 #
12817 case "x$archive_cmds_need_lc_CXX" in
12818 x|xyes)
12819 # Assume -lc should be added
12820 archive_cmds_need_lc_CXX=yes
12821
12822 if test "$enable_shared" = yes && test "$GCC" = yes; then
12823 case $archive_cmds_CXX in
12824 *'~'*)
12825 # FIXME: we may have to deal with multi-command sequences.
12826 ;;
12827 '$CC '*)
12828 # Test whether the compiler implicitly links with -lc since on some
12829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12830 # to ld, don't add -lc before -lgcc.
12831 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12832 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12833 $rm conftest*
12834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12835
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } 2>conftest.err; then
12841 soname=conftest
12842 lib=conftest
12843 libobjs=conftest.$ac_objext
12844 deplibs=
12845 wl=$lt_prog_compiler_wl_CXX
12846 pic_flag=$lt_prog_compiler_pic_CXX
12847 compiler_flags=-v
12848 linker_flags=-v
12849 verstring=
12850 output_objdir=.
12851 libname=conftest
12852 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12853 allow_undefined_flag_CXX=
12854 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12855 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }
12859 then
12860 archive_cmds_need_lc_CXX=no
12861 else
12862 archive_cmds_need_lc_CXX=yes
12863 fi
12864 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12865 else
12866 cat conftest.err 1>&5
12867 fi
12868 $rm conftest*
12869 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12870 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12871 ;;
12872 esac
12873 fi
12874 ;;
12875 esac
12876
12877 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12879 library_names_spec=
12880 libname_spec='lib$name'
12881 soname_spec=
12882 shrext_cmds=".so"
12883 postinstall_cmds=
12884 postuninstall_cmds=
12885 finish_cmds=
12886 finish_eval=
12887 shlibpath_var=
12888 shlibpath_overrides_runpath=unknown
12889 version_type=none
12890 dynamic_linker="$host_os ld.so"
12891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12892 if test "$GCC" = yes; then
12893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12894 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12895 # if the path contains ";" then we assume it to be the separator
12896 # otherwise default to the standard path separator (i.e. ":") - it is
12897 # assumed that no part of a normal pathname contains ";" but that should
12898 # okay in the real world where ";" in dirpaths is itself problematic.
12899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12900 else
12901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12902 fi
12903 else
12904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12905 fi
12906 need_lib_prefix=unknown
12907 hardcode_into_libs=no
12908
12909 # when you set need_version to no, make sure it does not cause -set_version
12910 # flags to be left without arguments
12911 need_version=unknown
12912
12913 case $host_os in
12914 aix3*)
12915 version_type=linux
12916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12917 shlibpath_var=LIBPATH
12918
12919 # AIX 3 has no versioning support, so we append a major version to the name.
12920 soname_spec='${libname}${release}${shared_ext}$major'
12921 ;;
12922
12923 aix4* | aix5*)
12924 version_type=linux
12925 need_lib_prefix=no
12926 need_version=no
12927 hardcode_into_libs=yes
12928 if test "$host_cpu" = ia64; then
12929 # AIX 5 supports IA64
12930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 else
12933 # With GCC up to 2.95.x, collect2 would create an import file
12934 # for dependence libraries. The import file would start with
12935 # the line `#! .'. This would cause the generated library to
12936 # depend on `.', always an invalid library. This was fixed in
12937 # development snapshots of GCC prior to 3.0.
12938 case $host_os in
12939 aix4 | aix4.[01] | aix4.[01].*)
12940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12941 echo ' yes '
12942 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12943 :
12944 else
12945 can_build_shared=no
12946 fi
12947 ;;
12948 esac
12949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12950 # soname into executable. Probably we can add versioning support to
12951 # collect2, so additional links can be useful in future.
12952 if test "$aix_use_runtimelinking" = yes; then
12953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12954 # instead of lib<name>.a to let people know that these are not
12955 # typical AIX shared libraries.
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12957 else
12958 # We preserve .a as extension for shared libraries through AIX4.2
12959 # and later when we are not doing run time linking.
12960 library_names_spec='${libname}${release}.a $libname.a'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 fi
12963 shlibpath_var=LIBPATH
12964 fi
12965 ;;
12966
12967 amigaos*)
12968 library_names_spec='$libname.ixlibrary $libname.a'
12969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12970 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'
12971 ;;
12972
12973 beos*)
12974 library_names_spec='${libname}${shared_ext}'
12975 dynamic_linker="$host_os ld.so"
12976 shlibpath_var=LIBRARY_PATH
12977 ;;
12978
12979 bsdi[45]*)
12980 version_type=linux
12981 need_version=no
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983 soname_spec='${libname}${release}${shared_ext}$major'
12984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12988 # the default ld.so.conf also contains /usr/contrib/lib and
12989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12990 # libtool to hard-code these into programs
12991 ;;
12992
12993 cygwin* | mingw* | pw32*)
12994 version_type=windows
12995 shrext_cmds=".dll"
12996 need_version=no
12997 need_lib_prefix=no
12998
12999 case $GCC,$host_os in
13000 yes,cygwin* | yes,mingw* | yes,pw32*)
13001 library_names_spec='$libname.dll.a'
13002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13003 postinstall_cmds='base_file=`basename \${file}`~
13004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13005 dldir=$destdir/`dirname \$dlpath`~
13006 test -d \$dldir || mkdir -p \$dldir~
13007 $install_prog $dir/$dlname \$dldir/$dlname~
13008 chmod a+x \$dldir/$dlname'
13009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13010 dlpath=$dir/\$dldll~
13011 $rm \$dlpath'
13012 shlibpath_overrides_runpath=yes
13013
13014 case $host_os in
13015 cygwin*)
13016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13018 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13019 ;;
13020 mingw*)
13021 # MinGW DLLs use traditional 'lib' prefix
13022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13024 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13025 # It is most probably a Windows format PATH printed by
13026 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13027 # path with ; separators, and with drive letters. We can handle the
13028 # drive letters (cygwin fileutils understands them), so leave them,
13029 # especially as we might pass files found there to a mingw objdump,
13030 # which wouldn't understand a cygwinified path. Ahh.
13031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13032 else
13033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13034 fi
13035 ;;
13036 pw32*)
13037 # pw32 DLLs use 'pw' prefix rather than 'lib'
13038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13039 ;;
13040 esac
13041 ;;
13042
13043 *)
13044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13045 ;;
13046 esac
13047 dynamic_linker='Win32 ld.exe'
13048 # FIXME: first we should search . and the directory the executable is in
13049 shlibpath_var=PATH
13050 ;;
13051
13052 darwin* | rhapsody*)
13053 dynamic_linker="$host_os dyld"
13054 version_type=darwin
13055 need_lib_prefix=no
13056 need_version=no
13057 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13058 soname_spec='${libname}${release}${major}$shared_ext'
13059 shlibpath_overrides_runpath=yes
13060 shlibpath_var=DYLD_LIBRARY_PATH
13061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13062 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13063 if test "$GCC" = yes; then
13064 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"`
13065 else
13066 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13067 fi
13068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13069 ;;
13070
13071 dgux*)
13072 version_type=linux
13073 need_lib_prefix=no
13074 need_version=no
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 ;;
13079
13080 freebsd1*)
13081 dynamic_linker=no
13082 ;;
13083
13084 freebsd* | dragonfly*)
13085 # DragonFly does not have aout. When/if they implement a new
13086 # versioning mechanism, adjust this.
13087 if test -x /usr/bin/objformat; then
13088 objformat=`/usr/bin/objformat`
13089 else
13090 case $host_os in
13091 freebsd[123]*) objformat=aout ;;
13092 *) objformat=elf ;;
13093 esac
13094 fi
13095 version_type=freebsd-$objformat
13096 case $version_type in
13097 freebsd-elf*)
13098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13099 need_version=no
13100 need_lib_prefix=no
13101 ;;
13102 freebsd-*)
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13104 need_version=yes
13105 ;;
13106 esac
13107 shlibpath_var=LD_LIBRARY_PATH
13108 case $host_os in
13109 freebsd2*)
13110 shlibpath_overrides_runpath=yes
13111 ;;
13112 freebsd3.[01]* | freebsdelf3.[01]*)
13113 shlibpath_overrides_runpath=yes
13114 hardcode_into_libs=yes
13115 ;;
13116 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13117 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13118 shlibpath_overrides_runpath=no
13119 hardcode_into_libs=yes
13120 ;;
13121 freebsd*) # from 4.6 on
13122 shlibpath_overrides_runpath=yes
13123 hardcode_into_libs=yes
13124 ;;
13125 esac
13126 ;;
13127
13128 gnu*)
13129 version_type=linux
13130 need_lib_prefix=no
13131 need_version=no
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13133 soname_spec='${libname}${release}${shared_ext}$major'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 hardcode_into_libs=yes
13136 ;;
13137
13138 hpux9* | hpux10* | hpux11*)
13139 # Give a soname corresponding to the major version so that dld.sl refuses to
13140 # link against other versions.
13141 version_type=sunos
13142 need_lib_prefix=no
13143 need_version=no
13144 case $host_cpu in
13145 ia64*)
13146 shrext_cmds='.so'
13147 hardcode_into_libs=yes
13148 dynamic_linker="$host_os dld.so"
13149 shlibpath_var=LD_LIBRARY_PATH
13150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152 soname_spec='${libname}${release}${shared_ext}$major'
13153 if test "X$HPUX_IA64_MODE" = X32; then
13154 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13155 else
13156 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13157 fi
13158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13159 ;;
13160 hppa*64*)
13161 shrext_cmds='.sl'
13162 hardcode_into_libs=yes
13163 dynamic_linker="$host_os dld.sl"
13164 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13170 ;;
13171 *)
13172 shrext_cmds='.sl'
13173 dynamic_linker="$host_os dld.sl"
13174 shlibpath_var=SHLIB_PATH
13175 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 ;;
13179 esac
13180 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13181 postinstall_cmds='chmod 555 $lib'
13182 ;;
13183
13184 interix3*)
13185 version_type=linux
13186 need_lib_prefix=no
13187 need_version=no
13188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13189 soname_spec='${libname}${release}${shared_ext}$major'
13190 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13191 shlibpath_var=LD_LIBRARY_PATH
13192 shlibpath_overrides_runpath=no
13193 hardcode_into_libs=yes
13194 ;;
13195
13196 irix5* | irix6* | nonstopux*)
13197 case $host_os in
13198 nonstopux*) version_type=nonstopux ;;
13199 *)
13200 if test "$lt_cv_prog_gnu_ld" = yes; then
13201 version_type=linux
13202 else
13203 version_type=irix
13204 fi ;;
13205 esac
13206 need_lib_prefix=no
13207 need_version=no
13208 soname_spec='${libname}${release}${shared_ext}$major'
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13210 case $host_os in
13211 irix5* | nonstopux*)
13212 libsuff= shlibsuff=
13213 ;;
13214 *)
13215 case $LD in # libtool.m4 will add one of these switches to LD
13216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13217 libsuff= shlibsuff= libmagic=32-bit;;
13218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13219 libsuff=32 shlibsuff=N32 libmagic=N32;;
13220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13221 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13222 *) libsuff= shlibsuff= libmagic=never-match;;
13223 esac
13224 ;;
13225 esac
13226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13227 shlibpath_overrides_runpath=no
13228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13230 hardcode_into_libs=yes
13231 ;;
13232
13233 # No shared lib support for Linux oldld, aout, or coff.
13234 linux*oldld* | linux*aout* | linux*coff*)
13235 dynamic_linker=no
13236 ;;
13237
13238 # This must be Linux ELF.
13239 linux* | k*bsd*-gnu)
13240 version_type=linux
13241 need_lib_prefix=no
13242 need_version=no
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 shlibpath_overrides_runpath=no
13248 # This implies no fast_install, which is unacceptable.
13249 # Some rework will be needed to allow for fast_install
13250 # before this can be enabled.
13251 hardcode_into_libs=yes
13252
13253 # Append ld.so.conf contents to the search path
13254 if test -f /etc/ld.so.conf; then
13255 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' ' '`
13256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13257 fi
13258
13259 # We used to test for /lib/ld.so.1 and disable shared libraries on
13260 # powerpc, because MkLinux only supported shared libraries with the
13261 # GNU dynamic linker. Since this was broken with cross compilers,
13262 # most powerpc-linux boxes support dynamic linking these days and
13263 # people can always --disable-shared, the test was removed, and we
13264 # assume the GNU/Linux dynamic linker is in use.
13265 dynamic_linker='GNU/Linux ld.so'
13266 ;;
13267
13268 netbsdelf*-gnu)
13269 version_type=linux
13270 need_lib_prefix=no
13271 need_version=no
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13273 soname_spec='${libname}${release}${shared_ext}$major'
13274 shlibpath_var=LD_LIBRARY_PATH
13275 shlibpath_overrides_runpath=no
13276 hardcode_into_libs=yes
13277 dynamic_linker='NetBSD ld.elf_so'
13278 ;;
13279
13280 netbsd*)
13281 version_type=sunos
13282 need_lib_prefix=no
13283 need_version=no
13284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13287 dynamic_linker='NetBSD (a.out) ld.so'
13288 else
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 dynamic_linker='NetBSD ld.elf_so'
13292 fi
13293 shlibpath_var=LD_LIBRARY_PATH
13294 shlibpath_overrides_runpath=yes
13295 hardcode_into_libs=yes
13296 ;;
13297
13298 newsos6)
13299 version_type=linux
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13303 ;;
13304
13305 nto-qnx*)
13306 version_type=linux
13307 need_lib_prefix=no
13308 need_version=no
13309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13310 soname_spec='${libname}${release}${shared_ext}$major'
13311 shlibpath_var=LD_LIBRARY_PATH
13312 shlibpath_overrides_runpath=yes
13313 ;;
13314
13315 openbsd*)
13316 version_type=sunos
13317 sys_lib_dlsearch_path_spec="/usr/lib"
13318 need_lib_prefix=no
13319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13320 case $host_os in
13321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13322 *) need_version=no ;;
13323 esac
13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13326 shlibpath_var=LD_LIBRARY_PATH
13327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13328 case $host_os in
13329 openbsd2.[89] | openbsd2.[89].*)
13330 shlibpath_overrides_runpath=no
13331 ;;
13332 *)
13333 shlibpath_overrides_runpath=yes
13334 ;;
13335 esac
13336 else
13337 shlibpath_overrides_runpath=yes
13338 fi
13339 ;;
13340
13341 os2*)
13342 libname_spec='$name'
13343 shrext_cmds=".dll"
13344 need_lib_prefix=no
13345 library_names_spec='$libname${shared_ext} $libname.a'
13346 dynamic_linker='OS/2 ld.exe'
13347 shlibpath_var=LIBPATH
13348 ;;
13349
13350 osf3* | osf4* | osf5*)
13351 version_type=osf
13352 need_lib_prefix=no
13353 need_version=no
13354 soname_spec='${libname}${release}${shared_ext}$major'
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13359 ;;
13360
13361 solaris*)
13362 version_type=linux
13363 need_lib_prefix=no
13364 need_version=no
13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13366 soname_spec='${libname}${release}${shared_ext}$major'
13367 shlibpath_var=LD_LIBRARY_PATH
13368 shlibpath_overrides_runpath=yes
13369 hardcode_into_libs=yes
13370 # ldd complains unless libraries are executable
13371 postinstall_cmds='chmod +x $lib'
13372 ;;
13373
13374 sunos4*)
13375 version_type=sunos
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13377 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=yes
13380 if test "$with_gnu_ld" = yes; then
13381 need_lib_prefix=no
13382 fi
13383 need_version=yes
13384 ;;
13385
13386 sysv4 | sysv4.3*)
13387 version_type=linux
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 case $host_vendor in
13392 sni)
13393 shlibpath_overrides_runpath=no
13394 need_lib_prefix=no
13395 export_dynamic_flag_spec='${wl}-Blargedynsym'
13396 runpath_var=LD_RUN_PATH
13397 ;;
13398 siemens)
13399 need_lib_prefix=no
13400 ;;
13401 motorola)
13402 need_lib_prefix=no
13403 need_version=no
13404 shlibpath_overrides_runpath=no
13405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13406 ;;
13407 esac
13408 ;;
13409
13410 sysv4*MP*)
13411 if test -d /usr/nec ;then
13412 version_type=linux
13413 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13414 soname_spec='$libname${shared_ext}.$major'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 fi
13417 ;;
13418
13419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13420 version_type=freebsd-elf
13421 need_lib_prefix=no
13422 need_version=no
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13424 soname_spec='${libname}${release}${shared_ext}$major'
13425 shlibpath_var=LD_LIBRARY_PATH
13426 hardcode_into_libs=yes
13427 if test "$with_gnu_ld" = yes; then
13428 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13429 shlibpath_overrides_runpath=no
13430 else
13431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13432 shlibpath_overrides_runpath=yes
13433 case $host_os in
13434 sco3.2v5*)
13435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13436 ;;
13437 esac
13438 fi
13439 sys_lib_dlsearch_path_spec='/usr/lib'
13440 ;;
13441
13442 uts4*)
13443 version_type=linux
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 ;;
13448
13449 *)
13450 dynamic_linker=no
13451 ;;
13452 esac
13453 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13454 echo "${ECHO_T}$dynamic_linker" >&6; }
13455 test "$dynamic_linker" = no && can_build_shared=no
13456
13457 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13458 if test "$GCC" = yes; then
13459 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13460 fi
13461
13462 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13463 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13464 hardcode_action_CXX=
13465 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13466 test -n "$runpath_var_CXX" || \
13467 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13468
13469 # We can hardcode non-existant directories.
13470 if test "$hardcode_direct_CXX" != no &&
13471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13472 # have to relink, otherwise we might link with an installed library
13473 # when we should be linking with a yet-to-be-installed one
13474 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13475 test "$hardcode_minus_L_CXX" != no; then
13476 # Linking always hardcodes the temporary library directory.
13477 hardcode_action_CXX=relink
13478 else
13479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13480 hardcode_action_CXX=immediate
13481 fi
13482 else
13483 # We cannot hardcode anything, or else we can only hardcode existing
13484 # directories.
13485 hardcode_action_CXX=unsupported
13486 fi
13487 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13488 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13489
13490 if test "$hardcode_action_CXX" = relink; then
13491 # Fast installation is not supported
13492 enable_fast_install=no
13493 elif test "$shlibpath_overrides_runpath" = yes ||
13494 test "$enable_shared" = no; then
13495 # Fast installation is not necessary
13496 enable_fast_install=needless
13497 fi
13498
13499
13500 # The else clause should only fire when bootstrapping the
13501 # libtool distribution, otherwise you forgot to ship ltmain.sh
13502 # with your package, and you will get complaints that there are
13503 # no rules to generate ltmain.sh.
13504 if test -f "$ltmain"; then
13505 # See if we are running on zsh, and set the options which allow our commands through
13506 # without removal of \ escapes.
13507 if test -n "${ZSH_VERSION+set}" ; then
13508 setopt NO_GLOB_SUBST
13509 fi
13510 # Now quote all the things that may contain metacharacters while being
13511 # careful not to overquote the AC_SUBSTed values. We take copies of the
13512 # variables and quote the copies for generation of the libtool script.
13513 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13514 SED SHELL STRIP \
13515 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13516 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13517 deplibs_check_method reload_flag reload_cmds need_locks \
13518 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13519 lt_cv_sys_global_symbol_to_c_name_address \
13520 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13521 old_postinstall_cmds old_postuninstall_cmds \
13522 compiler_CXX \
13523 CC_CXX \
13524 LD_CXX \
13525 lt_prog_compiler_wl_CXX \
13526 lt_prog_compiler_pic_CXX \
13527 lt_prog_compiler_static_CXX \
13528 lt_prog_compiler_no_builtin_flag_CXX \
13529 export_dynamic_flag_spec_CXX \
13530 thread_safe_flag_spec_CXX \
13531 whole_archive_flag_spec_CXX \
13532 enable_shared_with_static_runtimes_CXX \
13533 old_archive_cmds_CXX \
13534 old_archive_from_new_cmds_CXX \
13535 predep_objects_CXX \
13536 postdep_objects_CXX \
13537 predeps_CXX \
13538 postdeps_CXX \
13539 compiler_lib_search_path_CXX \
13540 archive_cmds_CXX \
13541 archive_expsym_cmds_CXX \
13542 postinstall_cmds_CXX \
13543 postuninstall_cmds_CXX \
13544 old_archive_from_expsyms_cmds_CXX \
13545 allow_undefined_flag_CXX \
13546 no_undefined_flag_CXX \
13547 export_symbols_cmds_CXX \
13548 hardcode_libdir_flag_spec_CXX \
13549 hardcode_libdir_flag_spec_ld_CXX \
13550 hardcode_libdir_separator_CXX \
13551 hardcode_automatic_CXX \
13552 module_cmds_CXX \
13553 module_expsym_cmds_CXX \
13554 lt_cv_prog_compiler_c_o_CXX \
13555 exclude_expsyms_CXX \
13556 include_expsyms_CXX; do
13557
13558 case $var in
13559 old_archive_cmds_CXX | \
13560 old_archive_from_new_cmds_CXX | \
13561 archive_cmds_CXX | \
13562 archive_expsym_cmds_CXX | \
13563 module_cmds_CXX | \
13564 module_expsym_cmds_CXX | \
13565 old_archive_from_expsyms_cmds_CXX | \
13566 export_symbols_cmds_CXX | \
13567 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13568 postinstall_cmds | postuninstall_cmds | \
13569 old_postinstall_cmds | old_postuninstall_cmds | \
13570 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13571 # Double-quote double-evaled strings.
13572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13573 ;;
13574 *)
13575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13576 ;;
13577 esac
13578 done
13579
13580 case $lt_echo in
13581 *'\$0 --fallback-echo"')
13582 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13583 ;;
13584 esac
13585
13586 cfgfile="$ofile"
13587
13588 cat <<__EOF__ >> "$cfgfile"
13589 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13590
13591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13592
13593 # Shell to use when invoking shell scripts.
13594 SHELL=$lt_SHELL
13595
13596 # Whether or not to build shared libraries.
13597 build_libtool_libs=$enable_shared
13598
13599 # Whether or not to build static libraries.
13600 build_old_libs=$enable_static
13601
13602 # Whether or not to add -lc for building shared libraries.
13603 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13604
13605 # Whether or not to disallow shared libs when runtime libs are static
13606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13607
13608 # Whether or not to optimize for fast installation.
13609 fast_install=$enable_fast_install
13610
13611 # The host system.
13612 host_alias=$host_alias
13613 host=$host
13614 host_os=$host_os
13615
13616 # The build system.
13617 build_alias=$build_alias
13618 build=$build
13619 build_os=$build_os
13620
13621 # An echo program that does not interpret backslashes.
13622 echo=$lt_echo
13623
13624 # The archiver.
13625 AR=$lt_AR
13626 AR_FLAGS=$lt_AR_FLAGS
13627
13628 # A C compiler.
13629 LTCC=$lt_LTCC
13630
13631 # LTCC compiler flags.
13632 LTCFLAGS=$lt_LTCFLAGS
13633
13634 # A language-specific compiler.
13635 CC=$lt_compiler_CXX
13636
13637 # Is the compiler the GNU C compiler?
13638 with_gcc=$GCC_CXX
13639
13640 # An ERE matcher.
13641 EGREP=$lt_EGREP
13642
13643 # The linker used to build libraries.
13644 LD=$lt_LD_CXX
13645
13646 # Whether we need hard or soft links.
13647 LN_S=$lt_LN_S
13648
13649 # A BSD-compatible nm program.
13650 NM=$lt_NM
13651
13652 # A symbol stripping program
13653 STRIP=$lt_STRIP
13654
13655 # Used to examine libraries when file_magic_cmd begins "file"
13656 MAGIC_CMD=$MAGIC_CMD
13657
13658 # Used on cygwin: DLL creation program.
13659 DLLTOOL="$DLLTOOL"
13660
13661 # Used on cygwin: object dumper.
13662 OBJDUMP="$OBJDUMP"
13663
13664 # Used on cygwin: assembler.
13665 AS="$AS"
13666
13667 # The name of the directory that contains temporary libtool files.
13668 objdir=$objdir
13669
13670 # How to create reloadable object files.
13671 reload_flag=$lt_reload_flag
13672 reload_cmds=$lt_reload_cmds
13673
13674 # How to pass a linker flag through the compiler.
13675 wl=$lt_lt_prog_compiler_wl_CXX
13676
13677 # Object file suffix (normally "o").
13678 objext="$ac_objext"
13679
13680 # Old archive suffix (normally "a").
13681 libext="$libext"
13682
13683 # Shared library suffix (normally ".so").
13684 shrext_cmds='$shrext_cmds'
13685
13686 # Executable file suffix (normally "").
13687 exeext="$exeext"
13688
13689 # Additional compiler flags for building library objects.
13690 pic_flag=$lt_lt_prog_compiler_pic_CXX
13691 pic_mode=$pic_mode
13692
13693 # What is the maximum length of a command?
13694 max_cmd_len=$lt_cv_sys_max_cmd_len
13695
13696 # Does compiler simultaneously support -c and -o options?
13697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13698
13699 # Must we lock files when doing compilation?
13700 need_locks=$lt_need_locks
13701
13702 # Do we need the lib prefix for modules?
13703 need_lib_prefix=$need_lib_prefix
13704
13705 # Do we need a version for libraries?
13706 need_version=$need_version
13707
13708 # Whether dlopen is supported.
13709 dlopen_support=$enable_dlopen
13710
13711 # Whether dlopen of programs is supported.
13712 dlopen_self=$enable_dlopen_self
13713
13714 # Whether dlopen of statically linked programs is supported.
13715 dlopen_self_static=$enable_dlopen_self_static
13716
13717 # Compiler flag to prevent dynamic linking.
13718 link_static_flag=$lt_lt_prog_compiler_static_CXX
13719
13720 # Compiler flag to turn off builtin functions.
13721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13722
13723 # Compiler flag to allow reflexive dlopens.
13724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13725
13726 # Compiler flag to generate shared objects directly from archives.
13727 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13728
13729 # Compiler flag to generate thread-safe objects.
13730 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13731
13732 # Library versioning type.
13733 version_type=$version_type
13734
13735 # Format of library name prefix.
13736 libname_spec=$lt_libname_spec
13737
13738 # List of archive names. First name is the real one, the rest are links.
13739 # The last name is the one that the linker finds with -lNAME.
13740 library_names_spec=$lt_library_names_spec
13741
13742 # The coded name of the library, if different from the real name.
13743 soname_spec=$lt_soname_spec
13744
13745 # Commands used to build and install an old-style archive.
13746 RANLIB=$lt_RANLIB
13747 old_archive_cmds=$lt_old_archive_cmds_CXX
13748 old_postinstall_cmds=$lt_old_postinstall_cmds
13749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13750
13751 # Create an old-style archive from a shared archive.
13752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13753
13754 # Create a temporary old-style archive to link instead of a shared archive.
13755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13756
13757 # Commands used to build and install a shared archive.
13758 archive_cmds=$lt_archive_cmds_CXX
13759 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13760 postinstall_cmds=$lt_postinstall_cmds
13761 postuninstall_cmds=$lt_postuninstall_cmds
13762
13763 # Commands used to build a loadable module (assumed same as above if empty)
13764 module_cmds=$lt_module_cmds_CXX
13765 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13766
13767 # Commands to strip libraries.
13768 old_striplib=$lt_old_striplib
13769 striplib=$lt_striplib
13770
13771 # Dependencies to place before the objects being linked to create a
13772 # shared library.
13773 predep_objects=$lt_predep_objects_CXX
13774
13775 # Dependencies to place after the objects being linked to create a
13776 # shared library.
13777 postdep_objects=$lt_postdep_objects_CXX
13778
13779 # Dependencies to place before the objects being linked to create a
13780 # shared library.
13781 predeps=$lt_predeps_CXX
13782
13783 # Dependencies to place after the objects being linked to create a
13784 # shared library.
13785 postdeps=$lt_postdeps_CXX
13786
13787 # The library search path used internally by the compiler when linking
13788 # a shared library.
13789 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13790
13791 # Method to check whether dependent libraries are shared objects.
13792 deplibs_check_method=$lt_deplibs_check_method
13793
13794 # Command to use when deplibs_check_method == file_magic.
13795 file_magic_cmd=$lt_file_magic_cmd
13796
13797 # Flag that allows shared libraries with undefined symbols to be built.
13798 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13799
13800 # Flag that forces no undefined symbols.
13801 no_undefined_flag=$lt_no_undefined_flag_CXX
13802
13803 # Commands used to finish a libtool library installation in a directory.
13804 finish_cmds=$lt_finish_cmds
13805
13806 # Same as above, but a single script fragment to be evaled but not shown.
13807 finish_eval=$lt_finish_eval
13808
13809 # Take the output of nm and produce a listing of raw symbols and C names.
13810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13811
13812 # Transform the output of nm in a proper C declaration
13813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13814
13815 # Transform the output of nm in a C name address pair
13816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13817
13818 # This is the shared library runtime path variable.
13819 runpath_var=$runpath_var
13820
13821 # This is the shared library path variable.
13822 shlibpath_var=$shlibpath_var
13823
13824 # Is shlibpath searched before the hard-coded library search path?
13825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13826
13827 # How to hardcode a shared library path into an executable.
13828 hardcode_action=$hardcode_action_CXX
13829
13830 # Whether we should hardcode library paths into libraries.
13831 hardcode_into_libs=$hardcode_into_libs
13832
13833 # Flag to hardcode \$libdir into a binary during linking.
13834 # This must work even if \$libdir does not exist.
13835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13836
13837 # If ld is used when linking, flag to hardcode \$libdir into
13838 # a binary during linking. This must work even if \$libdir does
13839 # not exist.
13840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13841
13842 # Whether we need a single -rpath flag with a separated argument.
13843 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13844
13845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13846 # resulting binary.
13847 hardcode_direct=$hardcode_direct_CXX
13848
13849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13850 # resulting binary.
13851 hardcode_minus_L=$hardcode_minus_L_CXX
13852
13853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13854 # the resulting binary.
13855 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13856
13857 # Set to yes if building a shared library automatically hardcodes DIR into the library
13858 # and all subsequent libraries and executables linked against it.
13859 hardcode_automatic=$hardcode_automatic_CXX
13860
13861 # Variables whose values should be saved in libtool wrapper scripts and
13862 # restored at relink time.
13863 variables_saved_for_relink="$variables_saved_for_relink"
13864
13865 # Whether libtool must link a program against all its dependency libraries.
13866 link_all_deplibs=$link_all_deplibs_CXX
13867
13868 # Compile-time system search path for libraries
13869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13870
13871 # Run-time system search path for libraries
13872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13873
13874 # Fix the shell variable \$srcfile for the compiler.
13875 fix_srcfile_path="$fix_srcfile_path_CXX"
13876
13877 # Set to yes if exported symbols are required.
13878 always_export_symbols=$always_export_symbols_CXX
13879
13880 # The commands to list exported symbols.
13881 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13882
13883 # The commands to extract the exported symbol list from a shared archive.
13884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13885
13886 # Symbols that should not be listed in the preloaded symbols.
13887 exclude_expsyms=$lt_exclude_expsyms_CXX
13888
13889 # Symbols that must always be exported.
13890 include_expsyms=$lt_include_expsyms_CXX
13891
13892 # ### END LIBTOOL TAG CONFIG: $tagname
13893
13894 __EOF__
13895
13896
13897 else
13898 # If there is no Makefile yet, we rely on a make rule to execute
13899 # `config.status --recheck' to rerun these tests and create the
13900 # libtool script then.
13901 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13902 if test -f "$ltmain_in"; then
13903 test -f Makefile && make "$ltmain"
13904 fi
13905 fi
13906
13907
13908 ac_ext=c
13909 ac_cpp='$CPP $CPPFLAGS'
13910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13913
13914 CC=$lt_save_CC
13915 LDCXX=$LD
13916 LD=$lt_save_LD
13917 GCC=$lt_save_GCC
13918 with_gnu_ldcxx=$with_gnu_ld
13919 with_gnu_ld=$lt_save_with_gnu_ld
13920 lt_cv_path_LDCXX=$lt_cv_path_LD
13921 lt_cv_path_LD=$lt_save_path_LD
13922 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13923 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13924
13925 else
13926 tagname=""
13927 fi
13928 ;;
13929
13930 F77)
13931 if test -n "$F77" && test "X$F77" != "Xno"; then
13932
13933 ac_ext=f
13934 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13935 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13936 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13937
13938
13939 archive_cmds_need_lc_F77=no
13940 allow_undefined_flag_F77=
13941 always_export_symbols_F77=no
13942 archive_expsym_cmds_F77=
13943 export_dynamic_flag_spec_F77=
13944 hardcode_direct_F77=no
13945 hardcode_libdir_flag_spec_F77=
13946 hardcode_libdir_flag_spec_ld_F77=
13947 hardcode_libdir_separator_F77=
13948 hardcode_minus_L_F77=no
13949 hardcode_automatic_F77=no
13950 module_cmds_F77=
13951 module_expsym_cmds_F77=
13952 link_all_deplibs_F77=unknown
13953 old_archive_cmds_F77=$old_archive_cmds
13954 no_undefined_flag_F77=
13955 whole_archive_flag_spec_F77=
13956 enable_shared_with_static_runtimes_F77=no
13957
13958 # Source file extension for f77 test sources.
13959 ac_ext=f
13960
13961 # Object file extension for compiled f77 test sources.
13962 objext=o
13963 objext_F77=$objext
13964
13965 # Code to be used in simple compile tests
13966 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13967
13968 # Code to be used in simple link tests
13969 lt_simple_link_test_code=" program t\n end\n"
13970
13971 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13972
13973 # If no C compiler was specified, use CC.
13974 LTCC=${LTCC-"$CC"}
13975
13976 # If no C compiler flags were specified, use CFLAGS.
13977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13978
13979 # Allow CC to be a program name with arguments.
13980 compiler=$CC
13981
13982
13983 # save warnings/boilerplate of simple test code
13984 ac_outfile=conftest.$ac_objext
13985 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13986 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13987 _lt_compiler_boilerplate=`cat conftest.err`
13988 $rm conftest*
13989
13990 ac_outfile=conftest.$ac_objext
13991 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13992 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13993 _lt_linker_boilerplate=`cat conftest.err`
13994 $rm conftest*
13995
13996
13997 # Allow CC to be a program name with arguments.
13998 lt_save_CC="$CC"
13999 CC=${F77-"f77"}
14000 compiler=$CC
14001 compiler_F77=$CC
14002 for cc_temp in $compiler""; do
14003 case $cc_temp in
14004 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14005 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14006 \-*) ;;
14007 *) break;;
14008 esac
14009 done
14010 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14011
14012
14013 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14014 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14015 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14016 echo "${ECHO_T}$can_build_shared" >&6; }
14017
14018 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14019 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14020 test "$can_build_shared" = "no" && enable_shared=no
14021
14022 # On AIX, shared libraries and static libraries use the same namespace, and
14023 # are all built from PIC.
14024 case $host_os in
14025 aix3*)
14026 test "$enable_shared" = yes && enable_static=no
14027 if test -n "$RANLIB"; then
14028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14029 postinstall_cmds='$RANLIB $lib'
14030 fi
14031 ;;
14032 aix4* | aix5*)
14033 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14034 test "$enable_shared" = yes && enable_static=no
14035 fi
14036 ;;
14037 esac
14038 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14039 echo "${ECHO_T}$enable_shared" >&6; }
14040
14041 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14042 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14043 # Make sure either enable_shared or enable_static is yes.
14044 test "$enable_shared" = yes || enable_static=yes
14045 { echo "$as_me:$LINENO: result: $enable_static" >&5
14046 echo "${ECHO_T}$enable_static" >&6; }
14047
14048 GCC_F77="$G77"
14049 LD_F77="$LD"
14050
14051 lt_prog_compiler_wl_F77=
14052 lt_prog_compiler_pic_F77=
14053 lt_prog_compiler_static_F77=
14054
14055 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14056 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14057
14058 if test "$GCC" = yes; then
14059 lt_prog_compiler_wl_F77='-Wl,'
14060 lt_prog_compiler_static_F77='-static'
14061
14062 case $host_os in
14063 aix*)
14064 # All AIX code is PIC.
14065 if test "$host_cpu" = ia64; then
14066 # AIX 5 now supports IA64 processor
14067 lt_prog_compiler_static_F77='-Bstatic'
14068 fi
14069 ;;
14070
14071 amigaos*)
14072 # FIXME: we need at least 68020 code to build shared libraries, but
14073 # adding the `-m68020' flag to GCC prevents building anything better,
14074 # like `-m68040'.
14075 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14076 ;;
14077
14078 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14079 # PIC is the default for these OSes.
14080 ;;
14081
14082 mingw* | pw32* | os2*)
14083 # This hack is so that the source file can tell whether it is being
14084 # built for inclusion in a dll (and should export symbols for example).
14085 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14086 ;;
14087
14088 darwin* | rhapsody*)
14089 # PIC is the default on this platform
14090 # Common symbols not allowed in MH_DYLIB files
14091 lt_prog_compiler_pic_F77='-fno-common'
14092 ;;
14093
14094 interix3*)
14095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14096 # Instead, we relocate shared libraries at runtime.
14097 ;;
14098
14099 msdosdjgpp*)
14100 # Just because we use GCC doesn't mean we suddenly get shared libraries
14101 # on systems that don't support them.
14102 lt_prog_compiler_can_build_shared_F77=no
14103 enable_shared=no
14104 ;;
14105
14106 sysv4*MP*)
14107 if test -d /usr/nec; then
14108 lt_prog_compiler_pic_F77=-Kconform_pic
14109 fi
14110 ;;
14111
14112 hpux*)
14113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14114 # not for PA HP-UX.
14115 case $host_cpu in
14116 hppa*64*|ia64*)
14117 # +Z the default
14118 ;;
14119 *)
14120 lt_prog_compiler_pic_F77='-fPIC'
14121 ;;
14122 esac
14123 ;;
14124
14125 *)
14126 lt_prog_compiler_pic_F77='-fPIC'
14127 ;;
14128 esac
14129 else
14130 # PORTME Check for flag to pass linker flags through the system compiler.
14131 case $host_os in
14132 aix*)
14133 lt_prog_compiler_wl_F77='-Wl,'
14134 if test "$host_cpu" = ia64; then
14135 # AIX 5 now supports IA64 processor
14136 lt_prog_compiler_static_F77='-Bstatic'
14137 else
14138 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14139 fi
14140 ;;
14141 darwin*)
14142 # PIC is the default on this platform
14143 # Common symbols not allowed in MH_DYLIB files
14144 case $cc_basename in
14145 xlc*)
14146 lt_prog_compiler_pic_F77='-qnocommon'
14147 lt_prog_compiler_wl_F77='-Wl,'
14148 ;;
14149 esac
14150 ;;
14151
14152 mingw* | pw32* | os2*)
14153 # This hack is so that the source file can tell whether it is being
14154 # built for inclusion in a dll (and should export symbols for example).
14155 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14156 ;;
14157
14158 hpux9* | hpux10* | hpux11*)
14159 lt_prog_compiler_wl_F77='-Wl,'
14160 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14161 # not for PA HP-UX.
14162 case $host_cpu in
14163 hppa*64*|ia64*)
14164 # +Z the default
14165 ;;
14166 *)
14167 lt_prog_compiler_pic_F77='+Z'
14168 ;;
14169 esac
14170 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14171 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14172 ;;
14173
14174 irix5* | irix6* | nonstopux*)
14175 lt_prog_compiler_wl_F77='-Wl,'
14176 # PIC (with -KPIC) is the default.
14177 lt_prog_compiler_static_F77='-non_shared'
14178 ;;
14179
14180 newsos6)
14181 lt_prog_compiler_pic_F77='-KPIC'
14182 lt_prog_compiler_static_F77='-Bstatic'
14183 ;;
14184
14185 linux* | k*bsd*-gnu)
14186 case $cc_basename in
14187 icc* | ecc*)
14188 lt_prog_compiler_wl_F77='-Wl,'
14189 lt_prog_compiler_pic_F77='-KPIC'
14190 lt_prog_compiler_static_F77='-static'
14191 ;;
14192 pgcc* | pgf77* | pgf90* | pgf95*)
14193 # Portland Group compilers (*not* the Pentium gcc compiler,
14194 # which looks to be a dead project)
14195 lt_prog_compiler_wl_F77='-Wl,'
14196 lt_prog_compiler_pic_F77='-fpic'
14197 lt_prog_compiler_static_F77='-Bstatic'
14198 ;;
14199 ccc*)
14200 lt_prog_compiler_wl_F77='-Wl,'
14201 # All Alpha code is PIC.
14202 lt_prog_compiler_static_F77='-non_shared'
14203 ;;
14204 esac
14205 ;;
14206
14207 osf3* | osf4* | osf5*)
14208 lt_prog_compiler_wl_F77='-Wl,'
14209 # All OSF/1 code is PIC.
14210 lt_prog_compiler_static_F77='-non_shared'
14211 ;;
14212
14213 solaris*)
14214 lt_prog_compiler_pic_F77='-KPIC'
14215 lt_prog_compiler_static_F77='-Bstatic'
14216 case $cc_basename in
14217 f77* | f90* | f95*)
14218 lt_prog_compiler_wl_F77='-Qoption ld ';;
14219 *)
14220 lt_prog_compiler_wl_F77='-Wl,';;
14221 esac
14222 ;;
14223
14224 sunos4*)
14225 lt_prog_compiler_wl_F77='-Qoption ld '
14226 lt_prog_compiler_pic_F77='-PIC'
14227 lt_prog_compiler_static_F77='-Bstatic'
14228 ;;
14229
14230 sysv4 | sysv4.2uw2* | sysv4.3*)
14231 lt_prog_compiler_wl_F77='-Wl,'
14232 lt_prog_compiler_pic_F77='-KPIC'
14233 lt_prog_compiler_static_F77='-Bstatic'
14234 ;;
14235
14236 sysv4*MP*)
14237 if test -d /usr/nec ;then
14238 lt_prog_compiler_pic_F77='-Kconform_pic'
14239 lt_prog_compiler_static_F77='-Bstatic'
14240 fi
14241 ;;
14242
14243 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14244 lt_prog_compiler_wl_F77='-Wl,'
14245 lt_prog_compiler_pic_F77='-KPIC'
14246 lt_prog_compiler_static_F77='-Bstatic'
14247 ;;
14248
14249 unicos*)
14250 lt_prog_compiler_wl_F77='-Wl,'
14251 lt_prog_compiler_can_build_shared_F77=no
14252 ;;
14253
14254 uts4*)
14255 lt_prog_compiler_pic_F77='-pic'
14256 lt_prog_compiler_static_F77='-Bstatic'
14257 ;;
14258
14259 *)
14260 lt_prog_compiler_can_build_shared_F77=no
14261 ;;
14262 esac
14263 fi
14264
14265 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14266 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14267
14268 #
14269 # Check to make sure the PIC flag actually works.
14270 #
14271 if test -n "$lt_prog_compiler_pic_F77"; then
14272
14273 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14274 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14275 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278 lt_prog_compiler_pic_works_F77=no
14279 ac_outfile=conftest.$ac_objext
14280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14281 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14282 # Insert the option either (1) after the last *FLAGS variable, or
14283 # (2) before a word containing "conftest.", or (3) at the end.
14284 # Note that $ac_compile itself does not contain backslashes and begins
14285 # with a dollar sign (not a hyphen), so the echo should work correctly.
14286 # The option is referenced via a variable to avoid confusing sed.
14287 lt_compile=`echo "$ac_compile" | $SED \
14288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14290 -e 's:$: $lt_compiler_flag:'`
14291 (eval echo "\"\$as_me:14291: $lt_compile\"" >&5)
14292 (eval "$lt_compile" 2>conftest.err)
14293 ac_status=$?
14294 cat conftest.err >&5
14295 echo "$as_me:14295: \$? = $ac_status" >&5
14296 if (exit $ac_status) && test -s "$ac_outfile"; then
14297 # The compiler can only warn and ignore the option if not recognized
14298 # So say no if there are warnings other than the usual output.
14299 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14302 lt_prog_compiler_pic_works_F77=yes
14303 fi
14304 fi
14305 $rm conftest*
14306
14307 fi
14308 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14309 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14310
14311 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14312 case $lt_prog_compiler_pic_F77 in
14313 "" | " "*) ;;
14314 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14315 esac
14316 else
14317 lt_prog_compiler_pic_F77=
14318 lt_prog_compiler_can_build_shared_F77=no
14319 fi
14320
14321 fi
14322 case $host_os in
14323 # For platforms which do not support PIC, -DPIC is meaningless:
14324 *djgpp*)
14325 lt_prog_compiler_pic_F77=
14326 ;;
14327 *)
14328 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14329 ;;
14330 esac
14331
14332 #
14333 # Check to make sure the static flag actually works.
14334 #
14335 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14336 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14337 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14338 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341 lt_prog_compiler_static_works_F77=no
14342 save_LDFLAGS="$LDFLAGS"
14343 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14344 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14346 # The linker can only warn and ignore the option if not recognized
14347 # So say no if there are warnings
14348 if test -s conftest.err; then
14349 # Append any errors to the config.log.
14350 cat conftest.err 1>&5
14351 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14353 if diff conftest.exp conftest.er2 >/dev/null; then
14354 lt_prog_compiler_static_works_F77=yes
14355 fi
14356 else
14357 lt_prog_compiler_static_works_F77=yes
14358 fi
14359 fi
14360 $rm conftest*
14361 LDFLAGS="$save_LDFLAGS"
14362
14363 fi
14364 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14365 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14366
14367 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14368 :
14369 else
14370 lt_prog_compiler_static_F77=
14371 fi
14372
14373
14374 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14375 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14376 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379 lt_cv_prog_compiler_c_o_F77=no
14380 $rm -r conftest 2>/dev/null
14381 mkdir conftest
14382 cd conftest
14383 mkdir out
14384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14385
14386 lt_compiler_flag="-o out/conftest2.$ac_objext"
14387 # Insert the option either (1) after the last *FLAGS variable, or
14388 # (2) before a word containing "conftest.", or (3) at the end.
14389 # Note that $ac_compile itself does not contain backslashes and begins
14390 # with a dollar sign (not a hyphen), so the echo should work correctly.
14391 lt_compile=`echo "$ac_compile" | $SED \
14392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14394 -e 's:$: $lt_compiler_flag:'`
14395 (eval echo "\"\$as_me:14395: $lt_compile\"" >&5)
14396 (eval "$lt_compile" 2>out/conftest.err)
14397 ac_status=$?
14398 cat out/conftest.err >&5
14399 echo "$as_me:14399: \$? = $ac_status" >&5
14400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14401 then
14402 # The compiler can only warn and ignore the option if not recognized
14403 # So say no if there are warnings
14404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14407 lt_cv_prog_compiler_c_o_F77=yes
14408 fi
14409 fi
14410 chmod u+w . 2>&5
14411 $rm conftest*
14412 # SGI C++ compiler will create directory out/ii_files/ for
14413 # template instantiation
14414 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14415 $rm out/* && rmdir out
14416 cd ..
14417 rmdir conftest
14418 $rm conftest*
14419
14420 fi
14421 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14422 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14423
14424
14425 hard_links="nottested"
14426 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14427 # do not overwrite the value of need_locks provided by the user
14428 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14429 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14430 hard_links=yes
14431 $rm conftest*
14432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14433 touch conftest.a
14434 ln conftest.a conftest.b 2>&5 || hard_links=no
14435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14436 { echo "$as_me:$LINENO: result: $hard_links" >&5
14437 echo "${ECHO_T}$hard_links" >&6; }
14438 if test "$hard_links" = no; then
14439 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14440 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14441 need_locks=warn
14442 fi
14443 else
14444 need_locks=no
14445 fi
14446
14447 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14448 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14449
14450 runpath_var=
14451 allow_undefined_flag_F77=
14452 enable_shared_with_static_runtimes_F77=no
14453 archive_cmds_F77=
14454 archive_expsym_cmds_F77=
14455 old_archive_From_new_cmds_F77=
14456 old_archive_from_expsyms_cmds_F77=
14457 export_dynamic_flag_spec_F77=
14458 whole_archive_flag_spec_F77=
14459 thread_safe_flag_spec_F77=
14460 hardcode_libdir_flag_spec_F77=
14461 hardcode_libdir_flag_spec_ld_F77=
14462 hardcode_libdir_separator_F77=
14463 hardcode_direct_F77=no
14464 hardcode_minus_L_F77=no
14465 hardcode_shlibpath_var_F77=unsupported
14466 link_all_deplibs_F77=unknown
14467 hardcode_automatic_F77=no
14468 module_cmds_F77=
14469 module_expsym_cmds_F77=
14470 always_export_symbols_F77=no
14471 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14472 # include_expsyms should be a list of space-separated symbols to be *always*
14473 # included in the symbol list
14474 include_expsyms_F77=
14475 # exclude_expsyms can be an extended regexp of symbols to exclude
14476 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14477 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14478 # as well as any symbol that contains `d'.
14479 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14480 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14481 # platforms (ab)use it in PIC code, but their linkers get confused if
14482 # the symbol is explicitly referenced. Since portable code cannot
14483 # rely on this symbol name, it's probably fine to never include it in
14484 # preloaded symbol tables.
14485 extract_expsyms_cmds=
14486 # Just being paranoid about ensuring that cc_basename is set.
14487 for cc_temp in $compiler""; do
14488 case $cc_temp in
14489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14491 \-*) ;;
14492 *) break;;
14493 esac
14494 done
14495 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14496
14497 case $host_os in
14498 cygwin* | mingw* | pw32*)
14499 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14500 # When not using gcc, we currently assume that we are using
14501 # Microsoft Visual C++.
14502 if test "$GCC" != yes; then
14503 with_gnu_ld=no
14504 fi
14505 ;;
14506 interix*)
14507 # we just hope/assume this is gcc and not c89 (= MSVC++)
14508 with_gnu_ld=yes
14509 ;;
14510 openbsd*)
14511 with_gnu_ld=no
14512 ;;
14513 esac
14514
14515 ld_shlibs_F77=yes
14516 if test "$with_gnu_ld" = yes; then
14517 # If archive_cmds runs LD, not CC, wlarc should be empty
14518 wlarc='${wl}'
14519
14520 # Set some defaults for GNU ld with shared library support. These
14521 # are reset later if shared libraries are not supported. Putting them
14522 # here allows them to be overridden if necessary.
14523 runpath_var=LD_RUN_PATH
14524 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14525 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14526 # ancient GNU ld didn't support --whole-archive et. al.
14527 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14528 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14529 else
14530 whole_archive_flag_spec_F77=
14531 fi
14532 supports_anon_versioning=no
14533 case `$LD -v 2>/dev/null` in
14534 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14535 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14536 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14537 *\ 2.11.*) ;; # other 2.11 versions
14538 *) supports_anon_versioning=yes ;;
14539 esac
14540
14541 # See if GNU ld supports shared libraries.
14542 case $host_os in
14543 aix3* | aix4* | aix5*)
14544 # On AIX/PPC, the GNU linker is very broken
14545 if test "$host_cpu" != ia64; then
14546 ld_shlibs_F77=no
14547 cat <<EOF 1>&2
14548
14549 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14550 *** to be unable to reliably create shared libraries on AIX.
14551 *** Therefore, libtool is disabling shared libraries support. If you
14552 *** really care for shared libraries, you may want to modify your PATH
14553 *** so that a non-GNU linker is found, and then restart.
14554
14555 EOF
14556 fi
14557 ;;
14558
14559 amigaos*)
14560 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)'
14561 hardcode_libdir_flag_spec_F77='-L$libdir'
14562 hardcode_minus_L_F77=yes
14563
14564 # Samuel A. Falvo II <[email protected]> reports
14565 # that the semantics of dynamic libraries on AmigaOS, at least up
14566 # to version 4, is to share data among multiple programs linked
14567 # with the same dynamic library. Since this doesn't match the
14568 # behavior of shared libraries on other platforms, we can't use
14569 # them.
14570 ld_shlibs_F77=no
14571 ;;
14572
14573 beos*)
14574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14575 allow_undefined_flag_F77=unsupported
14576 # Joseph Beckenbach <[email protected]> says some releases of gcc
14577 # support --undefined. This deserves some investigation. FIXME
14578 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14579 else
14580 ld_shlibs_F77=no
14581 fi
14582 ;;
14583
14584 cygwin* | mingw* | pw32*)
14585 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14586 # as there is no search path for DLLs.
14587 hardcode_libdir_flag_spec_F77='-L$libdir'
14588 allow_undefined_flag_F77=unsupported
14589 always_export_symbols_F77=no
14590 enable_shared_with_static_runtimes_F77=yes
14591 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14592
14593 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14594 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14595 # If the export-symbols file already is a .def file (1st line
14596 # is EXPORTS), use it as is; otherwise, prepend...
14597 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14598 cp $export_symbols $output_objdir/$soname.def;
14599 else
14600 echo EXPORTS > $output_objdir/$soname.def;
14601 cat $export_symbols >> $output_objdir/$soname.def;
14602 fi~
14603 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14604 else
14605 ld_shlibs_F77=no
14606 fi
14607 ;;
14608
14609 interix3*)
14610 hardcode_direct_F77=no
14611 hardcode_shlibpath_var_F77=no
14612 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14613 export_dynamic_flag_spec_F77='${wl}-E'
14614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14615 # Instead, shared libraries are loaded at an image base (0x10000000 by
14616 # default) and relocated if they conflict, which is a slow very memory
14617 # consuming and fragmenting process. To avoid this, we pick a random,
14618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14619 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14620 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'
14621 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'
14622 ;;
14623
14624 linux* | k*bsd*-gnu)
14625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14626 tmp_addflag=
14627 case $cc_basename,$host_cpu in
14628 pgcc*) # Portland Group C compiler
14629 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'
14630 tmp_addflag=' $pic_flag'
14631 ;;
14632 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14633 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'
14634 tmp_addflag=' $pic_flag -Mnomain' ;;
14635 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14636 tmp_addflag=' -i_dynamic' ;;
14637 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14638 tmp_addflag=' -i_dynamic -nofor_main' ;;
14639 ifc* | ifort*) # Intel Fortran compiler
14640 tmp_addflag=' -nofor_main' ;;
14641 esac
14642 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14643
14644 if test $supports_anon_versioning = yes; then
14645 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14647 $echo "local: *; };" >> $output_objdir/$libname.ver~
14648 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14649 fi
14650 link_all_deplibs_F77=no
14651 else
14652 ld_shlibs_F77=no
14653 fi
14654 ;;
14655
14656 netbsd* | netbsdelf*-gnu)
14657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14658 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14659 wlarc=
14660 else
14661 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14662 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14663 fi
14664 ;;
14665
14666 solaris*)
14667 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14668 ld_shlibs_F77=no
14669 cat <<EOF 1>&2
14670
14671 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14672 *** create shared libraries on Solaris systems. Therefore, libtool
14673 *** is disabling shared libraries support. We urge you to upgrade GNU
14674 *** binutils to release 2.9.1 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 EOF
14679 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14680 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14681 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14682 else
14683 ld_shlibs_F77=no
14684 fi
14685 ;;
14686
14687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14688 case `$LD -v 2>&1` in
14689 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14690 ld_shlibs_F77=no
14691 cat <<_LT_EOF 1>&2
14692
14693 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14694 *** reliably create shared libraries on SCO systems. Therefore, libtool
14695 *** is disabling shared libraries support. We urge you to upgrade GNU
14696 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14697 *** your PATH or compiler configuration so that the native linker is
14698 *** used, and then restart.
14699
14700 _LT_EOF
14701 ;;
14702 *)
14703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14704 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14706 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14707 else
14708 ld_shlibs_F77=no
14709 fi
14710 ;;
14711 esac
14712 ;;
14713
14714 sunos4*)
14715 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14716 wlarc=
14717 hardcode_direct_F77=yes
14718 hardcode_shlibpath_var_F77=no
14719 ;;
14720
14721 *)
14722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14723 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14724 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14725 else
14726 ld_shlibs_F77=no
14727 fi
14728 ;;
14729 esac
14730
14731 if test "$ld_shlibs_F77" = no; then
14732 runpath_var=
14733 hardcode_libdir_flag_spec_F77=
14734 export_dynamic_flag_spec_F77=
14735 whole_archive_flag_spec_F77=
14736 fi
14737 else
14738 # PORTME fill in a description of your system's linker (not GNU ld)
14739 case $host_os in
14740 aix3*)
14741 allow_undefined_flag_F77=unsupported
14742 always_export_symbols_F77=yes
14743 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'
14744 # Note: this linker hardcodes the directories in LIBPATH if there
14745 # are no directories specified by -L.
14746 hardcode_minus_L_F77=yes
14747 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14748 # Neither direct hardcoding nor static linking is supported with a
14749 # broken collect2.
14750 hardcode_direct_F77=unsupported
14751 fi
14752 ;;
14753
14754 aix4* | aix5*)
14755 if test "$host_cpu" = ia64; then
14756 # On IA64, the linker does run time linking by default, so we don't
14757 # have to do anything special.
14758 aix_use_runtimelinking=no
14759 exp_sym_flag='-Bexport'
14760 no_entry_flag=""
14761 else
14762 # If we're using GNU nm, then we don't want the "-C" option.
14763 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14764 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14765 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'
14766 else
14767 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'
14768 fi
14769 aix_use_runtimelinking=no
14770
14771 # Test if we are trying to use run time linking or normal
14772 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14773 # need to do runtime linking.
14774 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14775 for ld_flag in $LDFLAGS; do
14776 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14777 aix_use_runtimelinking=yes
14778 break
14779 fi
14780 done
14781 ;;
14782 esac
14783
14784 exp_sym_flag='-bexport'
14785 no_entry_flag='-bnoentry'
14786 fi
14787
14788 # When large executables or shared objects are built, AIX ld can
14789 # have problems creating the table of contents. If linking a library
14790 # or program results in "error TOC overflow" add -mminimal-toc to
14791 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14792 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14793
14794 archive_cmds_F77=''
14795 hardcode_direct_F77=yes
14796 hardcode_libdir_separator_F77=':'
14797 link_all_deplibs_F77=yes
14798
14799 if test "$GCC" = yes; then
14800 case $host_os in aix4.[012]|aix4.[012].*)
14801 # We only want to do this on AIX 4.2 and lower, the check
14802 # below for broken collect2 doesn't work under 4.3+
14803 collect2name=`${CC} -print-prog-name=collect2`
14804 if test -f "$collect2name" && \
14805 strings "$collect2name" | grep resolve_lib_name >/dev/null
14806 then
14807 # We have reworked collect2
14808 hardcode_direct_F77=yes
14809 else
14810 # We have old collect2
14811 hardcode_direct_F77=unsupported
14812 # It fails to find uninstalled libraries when the uninstalled
14813 # path is not listed in the libpath. Setting hardcode_minus_L
14814 # to unsupported forces relinking
14815 hardcode_minus_L_F77=yes
14816 hardcode_libdir_flag_spec_F77='-L$libdir'
14817 hardcode_libdir_separator_F77=
14818 fi
14819 ;;
14820 esac
14821 shared_flag='-shared'
14822 if test "$aix_use_runtimelinking" = yes; then
14823 shared_flag="$shared_flag "'${wl}-G'
14824 fi
14825 else
14826 # not using gcc
14827 if test "$host_cpu" = ia64; then
14828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14829 # chokes on -Wl,-G. The following line is correct:
14830 shared_flag='-G'
14831 else
14832 if test "$aix_use_runtimelinking" = yes; then
14833 shared_flag='${wl}-G'
14834 else
14835 shared_flag='${wl}-bM:SRE'
14836 fi
14837 fi
14838 fi
14839
14840 # It seems that -bexpall does not export symbols beginning with
14841 # underscore (_), so it is better to generate a list of symbols to export.
14842 always_export_symbols_F77=yes
14843 if test "$aix_use_runtimelinking" = yes; then
14844 # Warning - without using the other runtime loading flags (-brtl),
14845 # -berok will link without error, but may produce a broken library.
14846 allow_undefined_flag_F77='-berok'
14847 # Determine the default libpath from the value encoded in an empty executable.
14848 cat >conftest.$ac_ext <<_ACEOF
14849 program main
14850
14851 end
14852 _ACEOF
14853 rm -f conftest.$ac_objext conftest$ac_exeext
14854 if { (ac_try="$ac_link"
14855 case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14858 esac
14859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14860 (eval "$ac_link") 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14868 { (case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_try") 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; } &&
14877 { ac_try='test -s conftest$ac_exeext'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887
14888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14889 }'`
14890 # Check for a 64-bit object if we didn't find anything.
14891 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; }
14892 }'`; fi
14893 else
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897
14898 fi
14899
14900 rm -f core conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14903
14904 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14905 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"
14906 else
14907 if test "$host_cpu" = ia64; then
14908 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14909 allow_undefined_flag_F77="-z nodefs"
14910 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"
14911 else
14912 # Determine the default libpath from the value encoded in an empty executable.
14913 cat >conftest.$ac_ext <<_ACEOF
14914 program main
14915
14916 end
14917 _ACEOF
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (ac_try="$ac_link"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_link") 2>conftest.er1
14926 ac_status=$?
14927 grep -v '^ *+' conftest.er1 >conftest.err
14928 rm -f conftest.er1
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } &&
14932 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14933 { (case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_try") 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; } &&
14942 { ac_try='test -s conftest$ac_exeext'
14943 { (case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_try") 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952
14953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14954 }'`
14955 # Check for a 64-bit object if we didn't find anything.
14956 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; }
14957 }'`; fi
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962
14963 fi
14964
14965 rm -f core conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
14967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14968
14969 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14970 # Warning - without using the other run time loading flags,
14971 # -berok will link without error, but may produce a broken library.
14972 no_undefined_flag_F77=' ${wl}-bernotok'
14973 allow_undefined_flag_F77=' ${wl}-berok'
14974 # Exported symbols can be pulled into shared objects from archives
14975 whole_archive_flag_spec_F77='$convenience'
14976 archive_cmds_need_lc_F77=yes
14977 # This is similar to how AIX traditionally builds its shared libraries.
14978 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'
14979 fi
14980 fi
14981 ;;
14982
14983 amigaos*)
14984 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)'
14985 hardcode_libdir_flag_spec_F77='-L$libdir'
14986 hardcode_minus_L_F77=yes
14987 # see comment about different semantics on the GNU ld section
14988 ld_shlibs_F77=no
14989 ;;
14990
14991 bsdi[45]*)
14992 export_dynamic_flag_spec_F77=-rdynamic
14993 ;;
14994
14995 cygwin* | mingw* | pw32*)
14996 # When not using gcc, we currently assume that we are using
14997 # Microsoft Visual C++.
14998 # hardcode_libdir_flag_spec is actually meaningless, as there is
14999 # no search path for DLLs.
15000 hardcode_libdir_flag_spec_F77=' '
15001 allow_undefined_flag_F77=unsupported
15002 # Tell ltmain to make .lib files, not .a files.
15003 libext=lib
15004 # Tell ltmain to make .dll files, not .so files.
15005 shrext_cmds=".dll"
15006 # FIXME: Setting linknames here is a bad hack.
15007 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15008 # The linker will automatically build a .lib file if we build a DLL.
15009 old_archive_From_new_cmds_F77='true'
15010 # FIXME: Should let the user specify the lib program.
15011 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15012 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15013 enable_shared_with_static_runtimes_F77=yes
15014 ;;
15015
15016 darwin* | rhapsody*)
15017 case $host_os in
15018 rhapsody* | darwin1.[012])
15019 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15020 ;;
15021 *) # Darwin 1.3 on
15022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15023 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15024 else
15025 case ${MACOSX_DEPLOYMENT_TARGET} in
15026 10.[012])
15027 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15028 ;;
15029 10.*)
15030 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15031 ;;
15032 esac
15033 fi
15034 ;;
15035 esac
15036 archive_cmds_need_lc_F77=no
15037 hardcode_direct_F77=no
15038 hardcode_automatic_F77=yes
15039 hardcode_shlibpath_var_F77=unsupported
15040 whole_archive_flag_spec_F77=''
15041 link_all_deplibs_F77=yes
15042 if test "$GCC" = yes ; then
15043 output_verbose_link_cmd='echo'
15044 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15045 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15047 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}'
15048 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}'
15049 else
15050 case $cc_basename in
15051 xlc*)
15052 output_verbose_link_cmd='echo'
15053 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15054 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15056 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}'
15057 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}'
15058 ;;
15059 *)
15060 ld_shlibs_F77=no
15061 ;;
15062 esac
15063 fi
15064 ;;
15065
15066 dgux*)
15067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068 hardcode_libdir_flag_spec_F77='-L$libdir'
15069 hardcode_shlibpath_var_F77=no
15070 ;;
15071
15072 freebsd1*)
15073 ld_shlibs_F77=no
15074 ;;
15075
15076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15077 # support. Future versions do this automatically, but an explicit c++rt0.o
15078 # does not break anything, and helps significantly (at the cost of a little
15079 # extra space).
15080 freebsd2.2*)
15081 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15082 hardcode_libdir_flag_spec_F77='-R$libdir'
15083 hardcode_direct_F77=yes
15084 hardcode_shlibpath_var_F77=no
15085 ;;
15086
15087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15088 freebsd2*)
15089 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090 hardcode_direct_F77=yes
15091 hardcode_minus_L_F77=yes
15092 hardcode_shlibpath_var_F77=no
15093 ;;
15094
15095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15096 freebsd* | dragonfly*)
15097 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15098 hardcode_libdir_flag_spec_F77='-R$libdir'
15099 hardcode_direct_F77=yes
15100 hardcode_shlibpath_var_F77=no
15101 ;;
15102
15103 hpux9*)
15104 if test "$GCC" = yes; then
15105 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'
15106 else
15107 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'
15108 fi
15109 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15110 hardcode_libdir_separator_F77=:
15111 hardcode_direct_F77=yes
15112
15113 # hardcode_minus_L: Not really in the search PATH,
15114 # but as the default location of the library.
15115 hardcode_minus_L_F77=yes
15116 export_dynamic_flag_spec_F77='${wl}-E'
15117 ;;
15118
15119 hpux10*)
15120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15121 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15122 else
15123 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15124 fi
15125 if test "$with_gnu_ld" = no; then
15126 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15127 hardcode_libdir_separator_F77=:
15128
15129 hardcode_direct_F77=yes
15130 export_dynamic_flag_spec_F77='${wl}-E'
15131
15132 # hardcode_minus_L: Not really in the search PATH,
15133 # but as the default location of the library.
15134 hardcode_minus_L_F77=yes
15135 fi
15136 ;;
15137
15138 hpux11*)
15139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15140 case $host_cpu in
15141 hppa*64*)
15142 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15143 ;;
15144 ia64*)
15145 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15146 ;;
15147 *)
15148 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15149 ;;
15150 esac
15151 else
15152 case $host_cpu in
15153 hppa*64*)
15154 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 ;;
15156 ia64*)
15157 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15158 ;;
15159 *)
15160 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15161 ;;
15162 esac
15163 fi
15164 if test "$with_gnu_ld" = no; then
15165 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15166 hardcode_libdir_separator_F77=:
15167
15168 case $host_cpu in
15169 hppa*64*|ia64*)
15170 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15171 hardcode_direct_F77=no
15172 hardcode_shlibpath_var_F77=no
15173 ;;
15174 *)
15175 hardcode_direct_F77=yes
15176 export_dynamic_flag_spec_F77='${wl}-E'
15177
15178 # hardcode_minus_L: Not really in the search PATH,
15179 # but as the default location of the library.
15180 hardcode_minus_L_F77=yes
15181 ;;
15182 esac
15183 fi
15184 ;;
15185
15186 irix5* | irix6* | nonstopux*)
15187 if test "$GCC" = yes; then
15188 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'
15189 else
15190 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'
15191 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15192 fi
15193 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15194 hardcode_libdir_separator_F77=:
15195 link_all_deplibs_F77=yes
15196 ;;
15197
15198 netbsd* | netbsdelf*-gnu)
15199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15201 else
15202 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15203 fi
15204 hardcode_libdir_flag_spec_F77='-R$libdir'
15205 hardcode_direct_F77=yes
15206 hardcode_shlibpath_var_F77=no
15207 ;;
15208
15209 newsos6)
15210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15211 hardcode_direct_F77=yes
15212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15213 hardcode_libdir_separator_F77=:
15214 hardcode_shlibpath_var_F77=no
15215 ;;
15216
15217 openbsd*)
15218 hardcode_direct_F77=yes
15219 hardcode_shlibpath_var_F77=no
15220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15221 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15222 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15223 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15224 export_dynamic_flag_spec_F77='${wl}-E'
15225 else
15226 case $host_os in
15227 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15228 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15229 hardcode_libdir_flag_spec_F77='-R$libdir'
15230 ;;
15231 *)
15232 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15233 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15234 ;;
15235 esac
15236 fi
15237 ;;
15238
15239 os2*)
15240 hardcode_libdir_flag_spec_F77='-L$libdir'
15241 hardcode_minus_L_F77=yes
15242 allow_undefined_flag_F77=unsupported
15243 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'
15244 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15245 ;;
15246
15247 osf3*)
15248 if test "$GCC" = yes; then
15249 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15250 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'
15251 else
15252 allow_undefined_flag_F77=' -expect_unresolved \*'
15253 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'
15254 fi
15255 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15256 hardcode_libdir_separator_F77=:
15257 ;;
15258
15259 osf4* | osf5*) # as osf3* with the addition of -msym flag
15260 if test "$GCC" = yes; then
15261 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15262 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'
15263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264 else
15265 allow_undefined_flag_F77=' -expect_unresolved \*'
15266 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'
15267 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~
15268 $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'
15269
15270 # Both c and cxx compiler support -rpath directly
15271 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15272 fi
15273 hardcode_libdir_separator_F77=:
15274 ;;
15275
15276 solaris*)
15277 no_undefined_flag_F77=' -z text'
15278 if test "$GCC" = yes; then
15279 wlarc='${wl}'
15280 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15281 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15282 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15283 else
15284 wlarc=''
15285 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15286 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15288 fi
15289 hardcode_libdir_flag_spec_F77='-R$libdir'
15290 hardcode_shlibpath_var_F77=no
15291 case $host_os in
15292 solaris2.[0-5] | solaris2.[0-5].*) ;;
15293 *)
15294 # The compiler driver will combine linker options so we
15295 # cannot just pass the convience library names through
15296 # without $wl, iff we do not link with $LD.
15297 # Luckily, gcc supports the same syntax we need for Sun Studio.
15298 # Supported since Solaris 2.6 (maybe 2.5.1?)
15299 case $wlarc in
15300 '')
15301 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15302 *)
15303 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' ;;
15304 esac ;;
15305 esac
15306 link_all_deplibs_F77=yes
15307 ;;
15308
15309 sunos4*)
15310 if test "x$host_vendor" = xsequent; then
15311 # Use $CC to link under sequent, because it throws in some extra .o
15312 # files that make .init and .fini sections work.
15313 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15314 else
15315 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15316 fi
15317 hardcode_libdir_flag_spec_F77='-L$libdir'
15318 hardcode_direct_F77=yes
15319 hardcode_minus_L_F77=yes
15320 hardcode_shlibpath_var_F77=no
15321 ;;
15322
15323 sysv4)
15324 case $host_vendor in
15325 sni)
15326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327 hardcode_direct_F77=yes # is this really true???
15328 ;;
15329 siemens)
15330 ## LD is ld it makes a PLAMLIB
15331 ## CC just makes a GrossModule.
15332 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15333 reload_cmds_F77='$CC -r -o $output$reload_objs'
15334 hardcode_direct_F77=no
15335 ;;
15336 motorola)
15337 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15338 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15339 ;;
15340 esac
15341 runpath_var='LD_RUN_PATH'
15342 hardcode_shlibpath_var_F77=no
15343 ;;
15344
15345 sysv4.3*)
15346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347 hardcode_shlibpath_var_F77=no
15348 export_dynamic_flag_spec_F77='-Bexport'
15349 ;;
15350
15351 sysv4*MP*)
15352 if test -d /usr/nec; then
15353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15354 hardcode_shlibpath_var_F77=no
15355 runpath_var=LD_RUN_PATH
15356 hardcode_runpath_var=yes
15357 ld_shlibs_F77=yes
15358 fi
15359 ;;
15360
15361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15362 no_undefined_flag_F77='${wl}-z,text'
15363 archive_cmds_need_lc_F77=no
15364 hardcode_shlibpath_var_F77=no
15365 runpath_var='LD_RUN_PATH'
15366
15367 if test "$GCC" = yes; then
15368 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15369 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 else
15371 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15372 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 fi
15374 ;;
15375
15376 sysv5* | sco3.2v5* | sco5v6*)
15377 # Note: We can NOT use -z defs as we might desire, because we do not
15378 # link with -lc, and that would cause any symbols used from libc to
15379 # always be unresolved, which means just about no library would
15380 # ever link correctly. If we're not using GNU ld we use -z text
15381 # though, which does catch some bad symbols but isn't as heavy-handed
15382 # as -z defs.
15383 no_undefined_flag_F77='${wl}-z,text'
15384 allow_undefined_flag_F77='${wl}-z,nodefs'
15385 archive_cmds_need_lc_F77=no
15386 hardcode_shlibpath_var_F77=no
15387 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15388 hardcode_libdir_separator_F77=':'
15389 link_all_deplibs_F77=yes
15390 export_dynamic_flag_spec_F77='${wl}-Bexport'
15391 runpath_var='LD_RUN_PATH'
15392
15393 if test "$GCC" = yes; then
15394 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15395 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15396 else
15397 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15398 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 fi
15400 ;;
15401
15402 uts4*)
15403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15404 hardcode_libdir_flag_spec_F77='-L$libdir'
15405 hardcode_shlibpath_var_F77=no
15406 ;;
15407
15408 *)
15409 ld_shlibs_F77=no
15410 ;;
15411 esac
15412 fi
15413
15414 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15415 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15416 test "$ld_shlibs_F77" = no && can_build_shared=no
15417
15418 #
15419 # Do we need to explicitly link libc?
15420 #
15421 case "x$archive_cmds_need_lc_F77" in
15422 x|xyes)
15423 # Assume -lc should be added
15424 archive_cmds_need_lc_F77=yes
15425
15426 if test "$enable_shared" = yes && test "$GCC" = yes; then
15427 case $archive_cmds_F77 in
15428 *'~'*)
15429 # FIXME: we may have to deal with multi-command sequences.
15430 ;;
15431 '$CC '*)
15432 # Test whether the compiler implicitly links with -lc since on some
15433 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15434 # to ld, don't add -lc before -lgcc.
15435 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15436 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15437 $rm conftest*
15438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15439
15440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441 (eval $ac_compile) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } 2>conftest.err; then
15445 soname=conftest
15446 lib=conftest
15447 libobjs=conftest.$ac_objext
15448 deplibs=
15449 wl=$lt_prog_compiler_wl_F77
15450 pic_flag=$lt_prog_compiler_pic_F77
15451 compiler_flags=-v
15452 linker_flags=-v
15453 verstring=
15454 output_objdir=.
15455 libname=conftest
15456 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15457 allow_undefined_flag_F77=
15458 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15459 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }
15463 then
15464 archive_cmds_need_lc_F77=no
15465 else
15466 archive_cmds_need_lc_F77=yes
15467 fi
15468 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15469 else
15470 cat conftest.err 1>&5
15471 fi
15472 $rm conftest*
15473 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15474 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15475 ;;
15476 esac
15477 fi
15478 ;;
15479 esac
15480
15481 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15482 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15483 library_names_spec=
15484 libname_spec='lib$name'
15485 soname_spec=
15486 shrext_cmds=".so"
15487 postinstall_cmds=
15488 postuninstall_cmds=
15489 finish_cmds=
15490 finish_eval=
15491 shlibpath_var=
15492 shlibpath_overrides_runpath=unknown
15493 version_type=none
15494 dynamic_linker="$host_os ld.so"
15495 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15496 if test "$GCC" = yes; then
15497 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15498 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15499 # if the path contains ";" then we assume it to be the separator
15500 # otherwise default to the standard path separator (i.e. ":") - it is
15501 # assumed that no part of a normal pathname contains ";" but that should
15502 # okay in the real world where ";" in dirpaths is itself problematic.
15503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15504 else
15505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15506 fi
15507 else
15508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15509 fi
15510 need_lib_prefix=unknown
15511 hardcode_into_libs=no
15512
15513 # when you set need_version to no, make sure it does not cause -set_version
15514 # flags to be left without arguments
15515 need_version=unknown
15516
15517 case $host_os in
15518 aix3*)
15519 version_type=linux
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15521 shlibpath_var=LIBPATH
15522
15523 # AIX 3 has no versioning support, so we append a major version to the name.
15524 soname_spec='${libname}${release}${shared_ext}$major'
15525 ;;
15526
15527 aix4* | aix5*)
15528 version_type=linux
15529 need_lib_prefix=no
15530 need_version=no
15531 hardcode_into_libs=yes
15532 if test "$host_cpu" = ia64; then
15533 # AIX 5 supports IA64
15534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 else
15537 # With GCC up to 2.95.x, collect2 would create an import file
15538 # for dependence libraries. The import file would start with
15539 # the line `#! .'. This would cause the generated library to
15540 # depend on `.', always an invalid library. This was fixed in
15541 # development snapshots of GCC prior to 3.0.
15542 case $host_os in
15543 aix4 | aix4.[01] | aix4.[01].*)
15544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15545 echo ' yes '
15546 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15547 :
15548 else
15549 can_build_shared=no
15550 fi
15551 ;;
15552 esac
15553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15554 # soname into executable. Probably we can add versioning support to
15555 # collect2, so additional links can be useful in future.
15556 if test "$aix_use_runtimelinking" = yes; then
15557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15558 # instead of lib<name>.a to let people know that these are not
15559 # typical AIX shared libraries.
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 else
15562 # We preserve .a as extension for shared libraries through AIX4.2
15563 # and later when we are not doing run time linking.
15564 library_names_spec='${libname}${release}.a $libname.a'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 fi
15567 shlibpath_var=LIBPATH
15568 fi
15569 ;;
15570
15571 amigaos*)
15572 library_names_spec='$libname.ixlibrary $libname.a'
15573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15574 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'
15575 ;;
15576
15577 beos*)
15578 library_names_spec='${libname}${shared_ext}'
15579 dynamic_linker="$host_os ld.so"
15580 shlibpath_var=LIBRARY_PATH
15581 ;;
15582
15583 bsdi[45]*)
15584 version_type=linux
15585 need_version=no
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15589 shlibpath_var=LD_LIBRARY_PATH
15590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15592 # the default ld.so.conf also contains /usr/contrib/lib and
15593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15594 # libtool to hard-code these into programs
15595 ;;
15596
15597 cygwin* | mingw* | pw32*)
15598 version_type=windows
15599 shrext_cmds=".dll"
15600 need_version=no
15601 need_lib_prefix=no
15602
15603 case $GCC,$host_os in
15604 yes,cygwin* | yes,mingw* | yes,pw32*)
15605 library_names_spec='$libname.dll.a'
15606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15607 postinstall_cmds='base_file=`basename \${file}`~
15608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15609 dldir=$destdir/`dirname \$dlpath`~
15610 test -d \$dldir || mkdir -p \$dldir~
15611 $install_prog $dir/$dlname \$dldir/$dlname~
15612 chmod a+x \$dldir/$dlname'
15613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15614 dlpath=$dir/\$dldll~
15615 $rm \$dlpath'
15616 shlibpath_overrides_runpath=yes
15617
15618 case $host_os in
15619 cygwin*)
15620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15622 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15623 ;;
15624 mingw*)
15625 # MinGW DLLs use traditional 'lib' prefix
15626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15628 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15629 # It is most probably a Windows format PATH printed by
15630 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15631 # path with ; separators, and with drive letters. We can handle the
15632 # drive letters (cygwin fileutils understands them), so leave them,
15633 # especially as we might pass files found there to a mingw objdump,
15634 # which wouldn't understand a cygwinified path. Ahh.
15635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15636 else
15637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15638 fi
15639 ;;
15640 pw32*)
15641 # pw32 DLLs use 'pw' prefix rather than 'lib'
15642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15643 ;;
15644 esac
15645 ;;
15646
15647 *)
15648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15649 ;;
15650 esac
15651 dynamic_linker='Win32 ld.exe'
15652 # FIXME: first we should search . and the directory the executable is in
15653 shlibpath_var=PATH
15654 ;;
15655
15656 darwin* | rhapsody*)
15657 dynamic_linker="$host_os dyld"
15658 version_type=darwin
15659 need_lib_prefix=no
15660 need_version=no
15661 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15662 soname_spec='${libname}${release}${major}$shared_ext'
15663 shlibpath_overrides_runpath=yes
15664 shlibpath_var=DYLD_LIBRARY_PATH
15665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15666 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15667 if test "$GCC" = yes; then
15668 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"`
15669 else
15670 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15671 fi
15672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15673 ;;
15674
15675 dgux*)
15676 version_type=linux
15677 need_lib_prefix=no
15678 need_version=no
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 ;;
15683
15684 freebsd1*)
15685 dynamic_linker=no
15686 ;;
15687
15688 freebsd* | dragonfly*)
15689 # DragonFly does not have aout. When/if they implement a new
15690 # versioning mechanism, adjust this.
15691 if test -x /usr/bin/objformat; then
15692 objformat=`/usr/bin/objformat`
15693 else
15694 case $host_os in
15695 freebsd[123]*) objformat=aout ;;
15696 *) objformat=elf ;;
15697 esac
15698 fi
15699 version_type=freebsd-$objformat
15700 case $version_type in
15701 freebsd-elf*)
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15703 need_version=no
15704 need_lib_prefix=no
15705 ;;
15706 freebsd-*)
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15708 need_version=yes
15709 ;;
15710 esac
15711 shlibpath_var=LD_LIBRARY_PATH
15712 case $host_os in
15713 freebsd2*)
15714 shlibpath_overrides_runpath=yes
15715 ;;
15716 freebsd3.[01]* | freebsdelf3.[01]*)
15717 shlibpath_overrides_runpath=yes
15718 hardcode_into_libs=yes
15719 ;;
15720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15722 shlibpath_overrides_runpath=no
15723 hardcode_into_libs=yes
15724 ;;
15725 freebsd*) # from 4.6 on
15726 shlibpath_overrides_runpath=yes
15727 hardcode_into_libs=yes
15728 ;;
15729 esac
15730 ;;
15731
15732 gnu*)
15733 version_type=linux
15734 need_lib_prefix=no
15735 need_version=no
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 hardcode_into_libs=yes
15740 ;;
15741
15742 hpux9* | hpux10* | hpux11*)
15743 # Give a soname corresponding to the major version so that dld.sl refuses to
15744 # link against other versions.
15745 version_type=sunos
15746 need_lib_prefix=no
15747 need_version=no
15748 case $host_cpu in
15749 ia64*)
15750 shrext_cmds='.so'
15751 hardcode_into_libs=yes
15752 dynamic_linker="$host_os dld.so"
15753 shlibpath_var=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 if test "X$HPUX_IA64_MODE" = X32; then
15758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15759 else
15760 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15761 fi
15762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15763 ;;
15764 hppa*64*)
15765 shrext_cmds='.sl'
15766 hardcode_into_libs=yes
15767 dynamic_linker="$host_os dld.sl"
15768 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15774 ;;
15775 *)
15776 shrext_cmds='.sl'
15777 dynamic_linker="$host_os dld.sl"
15778 shlibpath_var=SHLIB_PATH
15779 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 soname_spec='${libname}${release}${shared_ext}$major'
15782 ;;
15783 esac
15784 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15785 postinstall_cmds='chmod 555 $lib'
15786 ;;
15787
15788 interix3*)
15789 version_type=linux
15790 need_lib_prefix=no
15791 need_version=no
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15793 soname_spec='${libname}${release}${shared_ext}$major'
15794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 shlibpath_overrides_runpath=no
15797 hardcode_into_libs=yes
15798 ;;
15799
15800 irix5* | irix6* | nonstopux*)
15801 case $host_os in
15802 nonstopux*) version_type=nonstopux ;;
15803 *)
15804 if test "$lt_cv_prog_gnu_ld" = yes; then
15805 version_type=linux
15806 else
15807 version_type=irix
15808 fi ;;
15809 esac
15810 need_lib_prefix=no
15811 need_version=no
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15814 case $host_os in
15815 irix5* | nonstopux*)
15816 libsuff= shlibsuff=
15817 ;;
15818 *)
15819 case $LD in # libtool.m4 will add one of these switches to LD
15820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15821 libsuff= shlibsuff= libmagic=32-bit;;
15822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15823 libsuff=32 shlibsuff=N32 libmagic=N32;;
15824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15826 *) libsuff= shlibsuff= libmagic=never-match;;
15827 esac
15828 ;;
15829 esac
15830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15831 shlibpath_overrides_runpath=no
15832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15834 hardcode_into_libs=yes
15835 ;;
15836
15837 # No shared lib support for Linux oldld, aout, or coff.
15838 linux*oldld* | linux*aout* | linux*coff*)
15839 dynamic_linker=no
15840 ;;
15841
15842 # This must be Linux ELF.
15843 linux* | k*bsd*-gnu)
15844 version_type=linux
15845 need_lib_prefix=no
15846 need_version=no
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15850 shlibpath_var=LD_LIBRARY_PATH
15851 shlibpath_overrides_runpath=no
15852 # This implies no fast_install, which is unacceptable.
15853 # Some rework will be needed to allow for fast_install
15854 # before this can be enabled.
15855 hardcode_into_libs=yes
15856
15857 # Append ld.so.conf contents to the search path
15858 if test -f /etc/ld.so.conf; then
15859 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' ' '`
15860 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15861 fi
15862
15863 # We used to test for /lib/ld.so.1 and disable shared libraries on
15864 # powerpc, because MkLinux only supported shared libraries with the
15865 # GNU dynamic linker. Since this was broken with cross compilers,
15866 # most powerpc-linux boxes support dynamic linking these days and
15867 # people can always --disable-shared, the test was removed, and we
15868 # assume the GNU/Linux dynamic linker is in use.
15869 dynamic_linker='GNU/Linux ld.so'
15870 ;;
15871
15872 netbsdelf*-gnu)
15873 version_type=linux
15874 need_lib_prefix=no
15875 need_version=no
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 shlibpath_overrides_runpath=no
15880 hardcode_into_libs=yes
15881 dynamic_linker='NetBSD ld.elf_so'
15882 ;;
15883
15884 netbsd*)
15885 version_type=sunos
15886 need_lib_prefix=no
15887 need_version=no
15888 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15891 dynamic_linker='NetBSD (a.out) ld.so'
15892 else
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 dynamic_linker='NetBSD ld.elf_so'
15896 fi
15897 shlibpath_var=LD_LIBRARY_PATH
15898 shlibpath_overrides_runpath=yes
15899 hardcode_into_libs=yes
15900 ;;
15901
15902 newsos6)
15903 version_type=linux
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15907 ;;
15908
15909 nto-qnx*)
15910 version_type=linux
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=yes
15917 ;;
15918
15919 openbsd*)
15920 version_type=sunos
15921 sys_lib_dlsearch_path_spec="/usr/lib"
15922 need_lib_prefix=no
15923 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15924 case $host_os in
15925 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15926 *) need_version=no ;;
15927 esac
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15932 case $host_os in
15933 openbsd2.[89] | openbsd2.[89].*)
15934 shlibpath_overrides_runpath=no
15935 ;;
15936 *)
15937 shlibpath_overrides_runpath=yes
15938 ;;
15939 esac
15940 else
15941 shlibpath_overrides_runpath=yes
15942 fi
15943 ;;
15944
15945 os2*)
15946 libname_spec='$name'
15947 shrext_cmds=".dll"
15948 need_lib_prefix=no
15949 library_names_spec='$libname${shared_ext} $libname.a'
15950 dynamic_linker='OS/2 ld.exe'
15951 shlibpath_var=LIBPATH
15952 ;;
15953
15954 osf3* | osf4* | osf5*)
15955 version_type=osf
15956 need_lib_prefix=no
15957 need_version=no
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 shlibpath_var=LD_LIBRARY_PATH
15961 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15962 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15963 ;;
15964
15965 solaris*)
15966 version_type=linux
15967 need_lib_prefix=no
15968 need_version=no
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 shlibpath_overrides_runpath=yes
15973 hardcode_into_libs=yes
15974 # ldd complains unless libraries are executable
15975 postinstall_cmds='chmod +x $lib'
15976 ;;
15977
15978 sunos4*)
15979 version_type=sunos
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15982 shlibpath_var=LD_LIBRARY_PATH
15983 shlibpath_overrides_runpath=yes
15984 if test "$with_gnu_ld" = yes; then
15985 need_lib_prefix=no
15986 fi
15987 need_version=yes
15988 ;;
15989
15990 sysv4 | sysv4.3*)
15991 version_type=linux
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 case $host_vendor in
15996 sni)
15997 shlibpath_overrides_runpath=no
15998 need_lib_prefix=no
15999 export_dynamic_flag_spec='${wl}-Blargedynsym'
16000 runpath_var=LD_RUN_PATH
16001 ;;
16002 siemens)
16003 need_lib_prefix=no
16004 ;;
16005 motorola)
16006 need_lib_prefix=no
16007 need_version=no
16008 shlibpath_overrides_runpath=no
16009 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16010 ;;
16011 esac
16012 ;;
16013
16014 sysv4*MP*)
16015 if test -d /usr/nec ;then
16016 version_type=linux
16017 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16018 soname_spec='$libname${shared_ext}.$major'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 fi
16021 ;;
16022
16023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16024 version_type=freebsd-elf
16025 need_lib_prefix=no
16026 need_version=no
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 hardcode_into_libs=yes
16031 if test "$with_gnu_ld" = yes; then
16032 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16033 shlibpath_overrides_runpath=no
16034 else
16035 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16036 shlibpath_overrides_runpath=yes
16037 case $host_os in
16038 sco3.2v5*)
16039 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16040 ;;
16041 esac
16042 fi
16043 sys_lib_dlsearch_path_spec='/usr/lib'
16044 ;;
16045
16046 uts4*)
16047 version_type=linux
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 ;;
16052
16053 *)
16054 dynamic_linker=no
16055 ;;
16056 esac
16057 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16058 echo "${ECHO_T}$dynamic_linker" >&6; }
16059 test "$dynamic_linker" = no && can_build_shared=no
16060
16061 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16062 if test "$GCC" = yes; then
16063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16064 fi
16065
16066 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16068 hardcode_action_F77=
16069 if test -n "$hardcode_libdir_flag_spec_F77" || \
16070 test -n "$runpath_var_F77" || \
16071 test "X$hardcode_automatic_F77" = "Xyes" ; then
16072
16073 # We can hardcode non-existant directories.
16074 if test "$hardcode_direct_F77" != no &&
16075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16076 # have to relink, otherwise we might link with an installed library
16077 # when we should be linking with a yet-to-be-installed one
16078 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16079 test "$hardcode_minus_L_F77" != no; then
16080 # Linking always hardcodes the temporary library directory.
16081 hardcode_action_F77=relink
16082 else
16083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16084 hardcode_action_F77=immediate
16085 fi
16086 else
16087 # We cannot hardcode anything, or else we can only hardcode existing
16088 # directories.
16089 hardcode_action_F77=unsupported
16090 fi
16091 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16092 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16093
16094 if test "$hardcode_action_F77" = relink; then
16095 # Fast installation is not supported
16096 enable_fast_install=no
16097 elif test "$shlibpath_overrides_runpath" = yes ||
16098 test "$enable_shared" = no; then
16099 # Fast installation is not necessary
16100 enable_fast_install=needless
16101 fi
16102
16103
16104 # The else clause should only fire when bootstrapping the
16105 # libtool distribution, otherwise you forgot to ship ltmain.sh
16106 # with your package, and you will get complaints that there are
16107 # no rules to generate ltmain.sh.
16108 if test -f "$ltmain"; then
16109 # See if we are running on zsh, and set the options which allow our commands through
16110 # without removal of \ escapes.
16111 if test -n "${ZSH_VERSION+set}" ; then
16112 setopt NO_GLOB_SUBST
16113 fi
16114 # Now quote all the things that may contain metacharacters while being
16115 # careful not to overquote the AC_SUBSTed values. We take copies of the
16116 # variables and quote the copies for generation of the libtool script.
16117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16118 SED SHELL STRIP \
16119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16121 deplibs_check_method reload_flag reload_cmds need_locks \
16122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16123 lt_cv_sys_global_symbol_to_c_name_address \
16124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16125 old_postinstall_cmds old_postuninstall_cmds \
16126 compiler_F77 \
16127 CC_F77 \
16128 LD_F77 \
16129 lt_prog_compiler_wl_F77 \
16130 lt_prog_compiler_pic_F77 \
16131 lt_prog_compiler_static_F77 \
16132 lt_prog_compiler_no_builtin_flag_F77 \
16133 export_dynamic_flag_spec_F77 \
16134 thread_safe_flag_spec_F77 \
16135 whole_archive_flag_spec_F77 \
16136 enable_shared_with_static_runtimes_F77 \
16137 old_archive_cmds_F77 \
16138 old_archive_from_new_cmds_F77 \
16139 predep_objects_F77 \
16140 postdep_objects_F77 \
16141 predeps_F77 \
16142 postdeps_F77 \
16143 compiler_lib_search_path_F77 \
16144 archive_cmds_F77 \
16145 archive_expsym_cmds_F77 \
16146 postinstall_cmds_F77 \
16147 postuninstall_cmds_F77 \
16148 old_archive_from_expsyms_cmds_F77 \
16149 allow_undefined_flag_F77 \
16150 no_undefined_flag_F77 \
16151 export_symbols_cmds_F77 \
16152 hardcode_libdir_flag_spec_F77 \
16153 hardcode_libdir_flag_spec_ld_F77 \
16154 hardcode_libdir_separator_F77 \
16155 hardcode_automatic_F77 \
16156 module_cmds_F77 \
16157 module_expsym_cmds_F77 \
16158 lt_cv_prog_compiler_c_o_F77 \
16159 exclude_expsyms_F77 \
16160 include_expsyms_F77; do
16161
16162 case $var in
16163 old_archive_cmds_F77 | \
16164 old_archive_from_new_cmds_F77 | \
16165 archive_cmds_F77 | \
16166 archive_expsym_cmds_F77 | \
16167 module_cmds_F77 | \
16168 module_expsym_cmds_F77 | \
16169 old_archive_from_expsyms_cmds_F77 | \
16170 export_symbols_cmds_F77 | \
16171 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16172 postinstall_cmds | postuninstall_cmds | \
16173 old_postinstall_cmds | old_postuninstall_cmds | \
16174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16175 # Double-quote double-evaled strings.
16176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16177 ;;
16178 *)
16179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16180 ;;
16181 esac
16182 done
16183
16184 case $lt_echo in
16185 *'\$0 --fallback-echo"')
16186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16187 ;;
16188 esac
16189
16190 cfgfile="$ofile"
16191
16192 cat <<__EOF__ >> "$cfgfile"
16193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16194
16195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16196
16197 # Shell to use when invoking shell scripts.
16198 SHELL=$lt_SHELL
16199
16200 # Whether or not to build shared libraries.
16201 build_libtool_libs=$enable_shared
16202
16203 # Whether or not to build static libraries.
16204 build_old_libs=$enable_static
16205
16206 # Whether or not to add -lc for building shared libraries.
16207 build_libtool_need_lc=$archive_cmds_need_lc_F77
16208
16209 # Whether or not to disallow shared libs when runtime libs are static
16210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16211
16212 # Whether or not to optimize for fast installation.
16213 fast_install=$enable_fast_install
16214
16215 # The host system.
16216 host_alias=$host_alias
16217 host=$host
16218 host_os=$host_os
16219
16220 # The build system.
16221 build_alias=$build_alias
16222 build=$build
16223 build_os=$build_os
16224
16225 # An echo program that does not interpret backslashes.
16226 echo=$lt_echo
16227
16228 # The archiver.
16229 AR=$lt_AR
16230 AR_FLAGS=$lt_AR_FLAGS
16231
16232 # A C compiler.
16233 LTCC=$lt_LTCC
16234
16235 # LTCC compiler flags.
16236 LTCFLAGS=$lt_LTCFLAGS
16237
16238 # A language-specific compiler.
16239 CC=$lt_compiler_F77
16240
16241 # Is the compiler the GNU C compiler?
16242 with_gcc=$GCC_F77
16243
16244 # An ERE matcher.
16245 EGREP=$lt_EGREP
16246
16247 # The linker used to build libraries.
16248 LD=$lt_LD_F77
16249
16250 # Whether we need hard or soft links.
16251 LN_S=$lt_LN_S
16252
16253 # A BSD-compatible nm program.
16254 NM=$lt_NM
16255
16256 # A symbol stripping program
16257 STRIP=$lt_STRIP
16258
16259 # Used to examine libraries when file_magic_cmd begins "file"
16260 MAGIC_CMD=$MAGIC_CMD
16261
16262 # Used on cygwin: DLL creation program.
16263 DLLTOOL="$DLLTOOL"
16264
16265 # Used on cygwin: object dumper.
16266 OBJDUMP="$OBJDUMP"
16267
16268 # Used on cygwin: assembler.
16269 AS="$AS"
16270
16271 # The name of the directory that contains temporary libtool files.
16272 objdir=$objdir
16273
16274 # How to create reloadable object files.
16275 reload_flag=$lt_reload_flag
16276 reload_cmds=$lt_reload_cmds
16277
16278 # How to pass a linker flag through the compiler.
16279 wl=$lt_lt_prog_compiler_wl_F77
16280
16281 # Object file suffix (normally "o").
16282 objext="$ac_objext"
16283
16284 # Old archive suffix (normally "a").
16285 libext="$libext"
16286
16287 # Shared library suffix (normally ".so").
16288 shrext_cmds='$shrext_cmds'
16289
16290 # Executable file suffix (normally "").
16291 exeext="$exeext"
16292
16293 # Additional compiler flags for building library objects.
16294 pic_flag=$lt_lt_prog_compiler_pic_F77
16295 pic_mode=$pic_mode
16296
16297 # What is the maximum length of a command?
16298 max_cmd_len=$lt_cv_sys_max_cmd_len
16299
16300 # Does compiler simultaneously support -c and -o options?
16301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16302
16303 # Must we lock files when doing compilation?
16304 need_locks=$lt_need_locks
16305
16306 # Do we need the lib prefix for modules?
16307 need_lib_prefix=$need_lib_prefix
16308
16309 # Do we need a version for libraries?
16310 need_version=$need_version
16311
16312 # Whether dlopen is supported.
16313 dlopen_support=$enable_dlopen
16314
16315 # Whether dlopen of programs is supported.
16316 dlopen_self=$enable_dlopen_self
16317
16318 # Whether dlopen of statically linked programs is supported.
16319 dlopen_self_static=$enable_dlopen_self_static
16320
16321 # Compiler flag to prevent dynamic linking.
16322 link_static_flag=$lt_lt_prog_compiler_static_F77
16323
16324 # Compiler flag to turn off builtin functions.
16325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16326
16327 # Compiler flag to allow reflexive dlopens.
16328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16329
16330 # Compiler flag to generate shared objects directly from archives.
16331 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16332
16333 # Compiler flag to generate thread-safe objects.
16334 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16335
16336 # Library versioning type.
16337 version_type=$version_type
16338
16339 # Format of library name prefix.
16340 libname_spec=$lt_libname_spec
16341
16342 # List of archive names. First name is the real one, the rest are links.
16343 # The last name is the one that the linker finds with -lNAME.
16344 library_names_spec=$lt_library_names_spec
16345
16346 # The coded name of the library, if different from the real name.
16347 soname_spec=$lt_soname_spec
16348
16349 # Commands used to build and install an old-style archive.
16350 RANLIB=$lt_RANLIB
16351 old_archive_cmds=$lt_old_archive_cmds_F77
16352 old_postinstall_cmds=$lt_old_postinstall_cmds
16353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16354
16355 # Create an old-style archive from a shared archive.
16356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16357
16358 # Create a temporary old-style archive to link instead of a shared archive.
16359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16360
16361 # Commands used to build and install a shared archive.
16362 archive_cmds=$lt_archive_cmds_F77
16363 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16364 postinstall_cmds=$lt_postinstall_cmds
16365 postuninstall_cmds=$lt_postuninstall_cmds
16366
16367 # Commands used to build a loadable module (assumed same as above if empty)
16368 module_cmds=$lt_module_cmds_F77
16369 module_expsym_cmds=$lt_module_expsym_cmds_F77
16370
16371 # Commands to strip libraries.
16372 old_striplib=$lt_old_striplib
16373 striplib=$lt_striplib
16374
16375 # Dependencies to place before the objects being linked to create a
16376 # shared library.
16377 predep_objects=$lt_predep_objects_F77
16378
16379 # Dependencies to place after the objects being linked to create a
16380 # shared library.
16381 postdep_objects=$lt_postdep_objects_F77
16382
16383 # Dependencies to place before the objects being linked to create a
16384 # shared library.
16385 predeps=$lt_predeps_F77
16386
16387 # Dependencies to place after the objects being linked to create a
16388 # shared library.
16389 postdeps=$lt_postdeps_F77
16390
16391 # The library search path used internally by the compiler when linking
16392 # a shared library.
16393 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16394
16395 # Method to check whether dependent libraries are shared objects.
16396 deplibs_check_method=$lt_deplibs_check_method
16397
16398 # Command to use when deplibs_check_method == file_magic.
16399 file_magic_cmd=$lt_file_magic_cmd
16400
16401 # Flag that allows shared libraries with undefined symbols to be built.
16402 allow_undefined_flag=$lt_allow_undefined_flag_F77
16403
16404 # Flag that forces no undefined symbols.
16405 no_undefined_flag=$lt_no_undefined_flag_F77
16406
16407 # Commands used to finish a libtool library installation in a directory.
16408 finish_cmds=$lt_finish_cmds
16409
16410 # Same as above, but a single script fragment to be evaled but not shown.
16411 finish_eval=$lt_finish_eval
16412
16413 # Take the output of nm and produce a listing of raw symbols and C names.
16414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16415
16416 # Transform the output of nm in a proper C declaration
16417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16418
16419 # Transform the output of nm in a C name address pair
16420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16421
16422 # This is the shared library runtime path variable.
16423 runpath_var=$runpath_var
16424
16425 # This is the shared library path variable.
16426 shlibpath_var=$shlibpath_var
16427
16428 # Is shlibpath searched before the hard-coded library search path?
16429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16430
16431 # How to hardcode a shared library path into an executable.
16432 hardcode_action=$hardcode_action_F77
16433
16434 # Whether we should hardcode library paths into libraries.
16435 hardcode_into_libs=$hardcode_into_libs
16436
16437 # Flag to hardcode \$libdir into a binary during linking.
16438 # This must work even if \$libdir does not exist.
16439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16440
16441 # If ld is used when linking, flag to hardcode \$libdir into
16442 # a binary during linking. This must work even if \$libdir does
16443 # not exist.
16444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16445
16446 # Whether we need a single -rpath flag with a separated argument.
16447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16448
16449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16450 # resulting binary.
16451 hardcode_direct=$hardcode_direct_F77
16452
16453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16454 # resulting binary.
16455 hardcode_minus_L=$hardcode_minus_L_F77
16456
16457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16458 # the resulting binary.
16459 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16460
16461 # Set to yes if building a shared library automatically hardcodes DIR into the library
16462 # and all subsequent libraries and executables linked against it.
16463 hardcode_automatic=$hardcode_automatic_F77
16464
16465 # Variables whose values should be saved in libtool wrapper scripts and
16466 # restored at relink time.
16467 variables_saved_for_relink="$variables_saved_for_relink"
16468
16469 # Whether libtool must link a program against all its dependency libraries.
16470 link_all_deplibs=$link_all_deplibs_F77
16471
16472 # Compile-time system search path for libraries
16473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16474
16475 # Run-time system search path for libraries
16476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16477
16478 # Fix the shell variable \$srcfile for the compiler.
16479 fix_srcfile_path="$fix_srcfile_path_F77"
16480
16481 # Set to yes if exported symbols are required.
16482 always_export_symbols=$always_export_symbols_F77
16483
16484 # The commands to list exported symbols.
16485 export_symbols_cmds=$lt_export_symbols_cmds_F77
16486
16487 # The commands to extract the exported symbol list from a shared archive.
16488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16489
16490 # Symbols that should not be listed in the preloaded symbols.
16491 exclude_expsyms=$lt_exclude_expsyms_F77
16492
16493 # Symbols that must always be exported.
16494 include_expsyms=$lt_include_expsyms_F77
16495
16496 # ### END LIBTOOL TAG CONFIG: $tagname
16497
16498 __EOF__
16499
16500
16501 else
16502 # If there is no Makefile yet, we rely on a make rule to execute
16503 # `config.status --recheck' to rerun these tests and create the
16504 # libtool script then.
16505 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16506 if test -f "$ltmain_in"; then
16507 test -f Makefile && make "$ltmain"
16508 fi
16509 fi
16510
16511
16512 ac_ext=c
16513 ac_cpp='$CPP $CPPFLAGS'
16514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16517
16518 CC="$lt_save_CC"
16519
16520 else
16521 tagname=""
16522 fi
16523 ;;
16524
16525 GCJ)
16526 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16527
16528
16529 # Source file extension for Java test sources.
16530 ac_ext=java
16531
16532 # Object file extension for compiled Java test sources.
16533 objext=o
16534 objext_GCJ=$objext
16535
16536 # Code to be used in simple compile tests
16537 lt_simple_compile_test_code="class foo {}\n"
16538
16539 # Code to be used in simple link tests
16540 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16541
16542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16543
16544 # If no C compiler was specified, use CC.
16545 LTCC=${LTCC-"$CC"}
16546
16547 # If no C compiler flags were specified, use CFLAGS.
16548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16549
16550 # Allow CC to be a program name with arguments.
16551 compiler=$CC
16552
16553
16554 # save warnings/boilerplate of simple test code
16555 ac_outfile=conftest.$ac_objext
16556 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16558 _lt_compiler_boilerplate=`cat conftest.err`
16559 $rm conftest*
16560
16561 ac_outfile=conftest.$ac_objext
16562 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16564 _lt_linker_boilerplate=`cat conftest.err`
16565 $rm conftest*
16566
16567
16568 # Allow CC to be a program name with arguments.
16569 lt_save_CC="$CC"
16570 CC=${GCJ-"gcj"}
16571 compiler=$CC
16572 compiler_GCJ=$CC
16573 for cc_temp in $compiler""; do
16574 case $cc_temp in
16575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16577 \-*) ;;
16578 *) break;;
16579 esac
16580 done
16581 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16582
16583
16584 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16585 archive_cmds_need_lc_GCJ=no
16586
16587 old_archive_cmds_GCJ=$old_archive_cmds
16588
16589
16590 lt_prog_compiler_no_builtin_flag_GCJ=
16591
16592 if test "$GCC" = yes; then
16593 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16594
16595
16596 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16597 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16598 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601 lt_cv_prog_compiler_rtti_exceptions=no
16602 ac_outfile=conftest.$ac_objext
16603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16604 lt_compiler_flag="-fno-rtti -fno-exceptions"
16605 # Insert the option either (1) after the last *FLAGS variable, or
16606 # (2) before a word containing "conftest.", or (3) at the end.
16607 # Note that $ac_compile itself does not contain backslashes and begins
16608 # with a dollar sign (not a hyphen), so the echo should work correctly.
16609 # The option is referenced via a variable to avoid confusing sed.
16610 lt_compile=`echo "$ac_compile" | $SED \
16611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16613 -e 's:$: $lt_compiler_flag:'`
16614 (eval echo "\"\$as_me:16614: $lt_compile\"" >&5)
16615 (eval "$lt_compile" 2>conftest.err)
16616 ac_status=$?
16617 cat conftest.err >&5
16618 echo "$as_me:16618: \$? = $ac_status" >&5
16619 if (exit $ac_status) && test -s "$ac_outfile"; then
16620 # The compiler can only warn and ignore the option if not recognized
16621 # So say no if there are warnings other than the usual output.
16622 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16625 lt_cv_prog_compiler_rtti_exceptions=yes
16626 fi
16627 fi
16628 $rm conftest*
16629
16630 fi
16631 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16632 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16633
16634 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16635 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16636 else
16637 :
16638 fi
16639
16640 fi
16641
16642 lt_prog_compiler_wl_GCJ=
16643 lt_prog_compiler_pic_GCJ=
16644 lt_prog_compiler_static_GCJ=
16645
16646 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16647 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16648
16649 if test "$GCC" = yes; then
16650 lt_prog_compiler_wl_GCJ='-Wl,'
16651 lt_prog_compiler_static_GCJ='-static'
16652
16653 case $host_os in
16654 aix*)
16655 # All AIX code is PIC.
16656 if test "$host_cpu" = ia64; then
16657 # AIX 5 now supports IA64 processor
16658 lt_prog_compiler_static_GCJ='-Bstatic'
16659 fi
16660 ;;
16661
16662 amigaos*)
16663 # FIXME: we need at least 68020 code to build shared libraries, but
16664 # adding the `-m68020' flag to GCC prevents building anything better,
16665 # like `-m68040'.
16666 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16667 ;;
16668
16669 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16670 # PIC is the default for these OSes.
16671 ;;
16672
16673 mingw* | pw32* | os2*)
16674 # This hack is so that the source file can tell whether it is being
16675 # built for inclusion in a dll (and should export symbols for example).
16676 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16677 ;;
16678
16679 darwin* | rhapsody*)
16680 # PIC is the default on this platform
16681 # Common symbols not allowed in MH_DYLIB files
16682 lt_prog_compiler_pic_GCJ='-fno-common'
16683 ;;
16684
16685 interix3*)
16686 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16687 # Instead, we relocate shared libraries at runtime.
16688 ;;
16689
16690 msdosdjgpp*)
16691 # Just because we use GCC doesn't mean we suddenly get shared libraries
16692 # on systems that don't support them.
16693 lt_prog_compiler_can_build_shared_GCJ=no
16694 enable_shared=no
16695 ;;
16696
16697 sysv4*MP*)
16698 if test -d /usr/nec; then
16699 lt_prog_compiler_pic_GCJ=-Kconform_pic
16700 fi
16701 ;;
16702
16703 hpux*)
16704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16705 # not for PA HP-UX.
16706 case $host_cpu in
16707 hppa*64*|ia64*)
16708 # +Z the default
16709 ;;
16710 *)
16711 lt_prog_compiler_pic_GCJ='-fPIC'
16712 ;;
16713 esac
16714 ;;
16715
16716 *)
16717 lt_prog_compiler_pic_GCJ='-fPIC'
16718 ;;
16719 esac
16720 else
16721 # PORTME Check for flag to pass linker flags through the system compiler.
16722 case $host_os in
16723 aix*)
16724 lt_prog_compiler_wl_GCJ='-Wl,'
16725 if test "$host_cpu" = ia64; then
16726 # AIX 5 now supports IA64 processor
16727 lt_prog_compiler_static_GCJ='-Bstatic'
16728 else
16729 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16730 fi
16731 ;;
16732 darwin*)
16733 # PIC is the default on this platform
16734 # Common symbols not allowed in MH_DYLIB files
16735 case $cc_basename in
16736 xlc*)
16737 lt_prog_compiler_pic_GCJ='-qnocommon'
16738 lt_prog_compiler_wl_GCJ='-Wl,'
16739 ;;
16740 esac
16741 ;;
16742
16743 mingw* | pw32* | os2*)
16744 # This hack is so that the source file can tell whether it is being
16745 # built for inclusion in a dll (and should export symbols for example).
16746 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16747 ;;
16748
16749 hpux9* | hpux10* | hpux11*)
16750 lt_prog_compiler_wl_GCJ='-Wl,'
16751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16752 # not for PA HP-UX.
16753 case $host_cpu in
16754 hppa*64*|ia64*)
16755 # +Z the default
16756 ;;
16757 *)
16758 lt_prog_compiler_pic_GCJ='+Z'
16759 ;;
16760 esac
16761 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16762 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16763 ;;
16764
16765 irix5* | irix6* | nonstopux*)
16766 lt_prog_compiler_wl_GCJ='-Wl,'
16767 # PIC (with -KPIC) is the default.
16768 lt_prog_compiler_static_GCJ='-non_shared'
16769 ;;
16770
16771 newsos6)
16772 lt_prog_compiler_pic_GCJ='-KPIC'
16773 lt_prog_compiler_static_GCJ='-Bstatic'
16774 ;;
16775
16776 linux* | k*bsd*-gnu)
16777 case $cc_basename in
16778 icc* | ecc*)
16779 lt_prog_compiler_wl_GCJ='-Wl,'
16780 lt_prog_compiler_pic_GCJ='-KPIC'
16781 lt_prog_compiler_static_GCJ='-static'
16782 ;;
16783 pgcc* | pgf77* | pgf90* | pgf95*)
16784 # Portland Group compilers (*not* the Pentium gcc compiler,
16785 # which looks to be a dead project)
16786 lt_prog_compiler_wl_GCJ='-Wl,'
16787 lt_prog_compiler_pic_GCJ='-fpic'
16788 lt_prog_compiler_static_GCJ='-Bstatic'
16789 ;;
16790 ccc*)
16791 lt_prog_compiler_wl_GCJ='-Wl,'
16792 # All Alpha code is PIC.
16793 lt_prog_compiler_static_GCJ='-non_shared'
16794 ;;
16795 esac
16796 ;;
16797
16798 osf3* | osf4* | osf5*)
16799 lt_prog_compiler_wl_GCJ='-Wl,'
16800 # All OSF/1 code is PIC.
16801 lt_prog_compiler_static_GCJ='-non_shared'
16802 ;;
16803
16804 solaris*)
16805 lt_prog_compiler_pic_GCJ='-KPIC'
16806 lt_prog_compiler_static_GCJ='-Bstatic'
16807 case $cc_basename in
16808 f77* | f90* | f95*)
16809 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16810 *)
16811 lt_prog_compiler_wl_GCJ='-Wl,';;
16812 esac
16813 ;;
16814
16815 sunos4*)
16816 lt_prog_compiler_wl_GCJ='-Qoption ld '
16817 lt_prog_compiler_pic_GCJ='-PIC'
16818 lt_prog_compiler_static_GCJ='-Bstatic'
16819 ;;
16820
16821 sysv4 | sysv4.2uw2* | sysv4.3*)
16822 lt_prog_compiler_wl_GCJ='-Wl,'
16823 lt_prog_compiler_pic_GCJ='-KPIC'
16824 lt_prog_compiler_static_GCJ='-Bstatic'
16825 ;;
16826
16827 sysv4*MP*)
16828 if test -d /usr/nec ;then
16829 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16830 lt_prog_compiler_static_GCJ='-Bstatic'
16831 fi
16832 ;;
16833
16834 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16835 lt_prog_compiler_wl_GCJ='-Wl,'
16836 lt_prog_compiler_pic_GCJ='-KPIC'
16837 lt_prog_compiler_static_GCJ='-Bstatic'
16838 ;;
16839
16840 unicos*)
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 lt_prog_compiler_can_build_shared_GCJ=no
16843 ;;
16844
16845 uts4*)
16846 lt_prog_compiler_pic_GCJ='-pic'
16847 lt_prog_compiler_static_GCJ='-Bstatic'
16848 ;;
16849
16850 *)
16851 lt_prog_compiler_can_build_shared_GCJ=no
16852 ;;
16853 esac
16854 fi
16855
16856 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16857 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16858
16859 #
16860 # Check to make sure the PIC flag actually works.
16861 #
16862 if test -n "$lt_prog_compiler_pic_GCJ"; then
16863
16864 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16865 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16866 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869 lt_prog_compiler_pic_works_GCJ=no
16870 ac_outfile=conftest.$ac_objext
16871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16872 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16873 # Insert the option either (1) after the last *FLAGS variable, or
16874 # (2) before a word containing "conftest.", or (3) at the end.
16875 # Note that $ac_compile itself does not contain backslashes and begins
16876 # with a dollar sign (not a hyphen), so the echo should work correctly.
16877 # The option is referenced via a variable to avoid confusing sed.
16878 lt_compile=`echo "$ac_compile" | $SED \
16879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16881 -e 's:$: $lt_compiler_flag:'`
16882 (eval echo "\"\$as_me:16882: $lt_compile\"" >&5)
16883 (eval "$lt_compile" 2>conftest.err)
16884 ac_status=$?
16885 cat conftest.err >&5
16886 echo "$as_me:16886: \$? = $ac_status" >&5
16887 if (exit $ac_status) && test -s "$ac_outfile"; then
16888 # The compiler can only warn and ignore the option if not recognized
16889 # So say no if there are warnings other than the usual output.
16890 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16893 lt_prog_compiler_pic_works_GCJ=yes
16894 fi
16895 fi
16896 $rm conftest*
16897
16898 fi
16899 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16900 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16901
16902 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16903 case $lt_prog_compiler_pic_GCJ in
16904 "" | " "*) ;;
16905 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16906 esac
16907 else
16908 lt_prog_compiler_pic_GCJ=
16909 lt_prog_compiler_can_build_shared_GCJ=no
16910 fi
16911
16912 fi
16913 case $host_os in
16914 # For platforms which do not support PIC, -DPIC is meaningless:
16915 *djgpp*)
16916 lt_prog_compiler_pic_GCJ=
16917 ;;
16918 *)
16919 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16920 ;;
16921 esac
16922
16923 #
16924 # Check to make sure the static flag actually works.
16925 #
16926 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16927 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16928 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16929 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 else
16932 lt_prog_compiler_static_works_GCJ=no
16933 save_LDFLAGS="$LDFLAGS"
16934 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16935 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16937 # The linker can only warn and ignore the option if not recognized
16938 # So say no if there are warnings
16939 if test -s conftest.err; then
16940 # Append any errors to the config.log.
16941 cat conftest.err 1>&5
16942 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16944 if diff conftest.exp conftest.er2 >/dev/null; then
16945 lt_prog_compiler_static_works_GCJ=yes
16946 fi
16947 else
16948 lt_prog_compiler_static_works_GCJ=yes
16949 fi
16950 fi
16951 $rm conftest*
16952 LDFLAGS="$save_LDFLAGS"
16953
16954 fi
16955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16956 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16957
16958 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16959 :
16960 else
16961 lt_prog_compiler_static_GCJ=
16962 fi
16963
16964
16965 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16966 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16967 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970 lt_cv_prog_compiler_c_o_GCJ=no
16971 $rm -r conftest 2>/dev/null
16972 mkdir conftest
16973 cd conftest
16974 mkdir out
16975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16976
16977 lt_compiler_flag="-o out/conftest2.$ac_objext"
16978 # Insert the option either (1) after the last *FLAGS variable, or
16979 # (2) before a word containing "conftest.", or (3) at the end.
16980 # Note that $ac_compile itself does not contain backslashes and begins
16981 # with a dollar sign (not a hyphen), so the echo should work correctly.
16982 lt_compile=`echo "$ac_compile" | $SED \
16983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16985 -e 's:$: $lt_compiler_flag:'`
16986 (eval echo "\"\$as_me:16986: $lt_compile\"" >&5)
16987 (eval "$lt_compile" 2>out/conftest.err)
16988 ac_status=$?
16989 cat out/conftest.err >&5
16990 echo "$as_me:16990: \$? = $ac_status" >&5
16991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16992 then
16993 # The compiler can only warn and ignore the option if not recognized
16994 # So say no if there are warnings
16995 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16998 lt_cv_prog_compiler_c_o_GCJ=yes
16999 fi
17000 fi
17001 chmod u+w . 2>&5
17002 $rm conftest*
17003 # SGI C++ compiler will create directory out/ii_files/ for
17004 # template instantiation
17005 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17006 $rm out/* && rmdir out
17007 cd ..
17008 rmdir conftest
17009 $rm conftest*
17010
17011 fi
17012 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17013 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17014
17015
17016 hard_links="nottested"
17017 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17018 # do not overwrite the value of need_locks provided by the user
17019 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17020 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17021 hard_links=yes
17022 $rm conftest*
17023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17024 touch conftest.a
17025 ln conftest.a conftest.b 2>&5 || hard_links=no
17026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17027 { echo "$as_me:$LINENO: result: $hard_links" >&5
17028 echo "${ECHO_T}$hard_links" >&6; }
17029 if test "$hard_links" = no; then
17030 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17031 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17032 need_locks=warn
17033 fi
17034 else
17035 need_locks=no
17036 fi
17037
17038 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17039 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17040
17041 runpath_var=
17042 allow_undefined_flag_GCJ=
17043 enable_shared_with_static_runtimes_GCJ=no
17044 archive_cmds_GCJ=
17045 archive_expsym_cmds_GCJ=
17046 old_archive_From_new_cmds_GCJ=
17047 old_archive_from_expsyms_cmds_GCJ=
17048 export_dynamic_flag_spec_GCJ=
17049 whole_archive_flag_spec_GCJ=
17050 thread_safe_flag_spec_GCJ=
17051 hardcode_libdir_flag_spec_GCJ=
17052 hardcode_libdir_flag_spec_ld_GCJ=
17053 hardcode_libdir_separator_GCJ=
17054 hardcode_direct_GCJ=no
17055 hardcode_minus_L_GCJ=no
17056 hardcode_shlibpath_var_GCJ=unsupported
17057 link_all_deplibs_GCJ=unknown
17058 hardcode_automatic_GCJ=no
17059 module_cmds_GCJ=
17060 module_expsym_cmds_GCJ=
17061 always_export_symbols_GCJ=no
17062 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17063 # include_expsyms should be a list of space-separated symbols to be *always*
17064 # included in the symbol list
17065 include_expsyms_GCJ=
17066 # exclude_expsyms can be an extended regexp of symbols to exclude
17067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17069 # as well as any symbol that contains `d'.
17070 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17072 # platforms (ab)use it in PIC code, but their linkers get confused if
17073 # the symbol is explicitly referenced. Since portable code cannot
17074 # rely on this symbol name, it's probably fine to never include it in
17075 # preloaded symbol tables.
17076 extract_expsyms_cmds=
17077 # Just being paranoid about ensuring that cc_basename is set.
17078 for cc_temp in $compiler""; do
17079 case $cc_temp in
17080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17082 \-*) ;;
17083 *) break;;
17084 esac
17085 done
17086 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17087
17088 case $host_os in
17089 cygwin* | mingw* | pw32*)
17090 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17091 # When not using gcc, we currently assume that we are using
17092 # Microsoft Visual C++.
17093 if test "$GCC" != yes; then
17094 with_gnu_ld=no
17095 fi
17096 ;;
17097 interix*)
17098 # we just hope/assume this is gcc and not c89 (= MSVC++)
17099 with_gnu_ld=yes
17100 ;;
17101 openbsd*)
17102 with_gnu_ld=no
17103 ;;
17104 esac
17105
17106 ld_shlibs_GCJ=yes
17107 if test "$with_gnu_ld" = yes; then
17108 # If archive_cmds runs LD, not CC, wlarc should be empty
17109 wlarc='${wl}'
17110
17111 # Set some defaults for GNU ld with shared library support. These
17112 # are reset later if shared libraries are not supported. Putting them
17113 # here allows them to be overridden if necessary.
17114 runpath_var=LD_RUN_PATH
17115 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17116 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17117 # ancient GNU ld didn't support --whole-archive et. al.
17118 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17119 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17120 else
17121 whole_archive_flag_spec_GCJ=
17122 fi
17123 supports_anon_versioning=no
17124 case `$LD -v 2>/dev/null` in
17125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17128 *\ 2.11.*) ;; # other 2.11 versions
17129 *) supports_anon_versioning=yes ;;
17130 esac
17131
17132 # See if GNU ld supports shared libraries.
17133 case $host_os in
17134 aix3* | aix4* | aix5*)
17135 # On AIX/PPC, the GNU linker is very broken
17136 if test "$host_cpu" != ia64; then
17137 ld_shlibs_GCJ=no
17138 cat <<EOF 1>&2
17139
17140 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17141 *** to be unable to reliably create shared libraries on AIX.
17142 *** Therefore, libtool is disabling shared libraries support. If you
17143 *** really care for shared libraries, you may want to modify your PATH
17144 *** so that a non-GNU linker is found, and then restart.
17145
17146 EOF
17147 fi
17148 ;;
17149
17150 amigaos*)
17151 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)'
17152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17153 hardcode_minus_L_GCJ=yes
17154
17155 # Samuel A. Falvo II <[email protected]> reports
17156 # that the semantics of dynamic libraries on AmigaOS, at least up
17157 # to version 4, is to share data among multiple programs linked
17158 # with the same dynamic library. Since this doesn't match the
17159 # behavior of shared libraries on other platforms, we can't use
17160 # them.
17161 ld_shlibs_GCJ=no
17162 ;;
17163
17164 beos*)
17165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17166 allow_undefined_flag_GCJ=unsupported
17167 # Joseph Beckenbach <[email protected]> says some releases of gcc
17168 # support --undefined. This deserves some investigation. FIXME
17169 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17170 else
17171 ld_shlibs_GCJ=no
17172 fi
17173 ;;
17174
17175 cygwin* | mingw* | pw32*)
17176 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17177 # as there is no search path for DLLs.
17178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17179 allow_undefined_flag_GCJ=unsupported
17180 always_export_symbols_GCJ=no
17181 enable_shared_with_static_runtimes_GCJ=yes
17182 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17183
17184 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17185 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17186 # If the export-symbols file already is a .def file (1st line
17187 # is EXPORTS), use it as is; otherwise, prepend...
17188 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17189 cp $export_symbols $output_objdir/$soname.def;
17190 else
17191 echo EXPORTS > $output_objdir/$soname.def;
17192 cat $export_symbols >> $output_objdir/$soname.def;
17193 fi~
17194 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17195 else
17196 ld_shlibs_GCJ=no
17197 fi
17198 ;;
17199
17200 interix3*)
17201 hardcode_direct_GCJ=no
17202 hardcode_shlibpath_var_GCJ=no
17203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17204 export_dynamic_flag_spec_GCJ='${wl}-E'
17205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17206 # Instead, shared libraries are loaded at an image base (0x10000000 by
17207 # default) and relocated if they conflict, which is a slow very memory
17208 # consuming and fragmenting process. To avoid this, we pick a random,
17209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17211 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'
17212 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'
17213 ;;
17214
17215 linux* | k*bsd*-gnu)
17216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17217 tmp_addflag=
17218 case $cc_basename,$host_cpu in
17219 pgcc*) # Portland Group C compiler
17220 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'
17221 tmp_addflag=' $pic_flag'
17222 ;;
17223 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17224 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'
17225 tmp_addflag=' $pic_flag -Mnomain' ;;
17226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17227 tmp_addflag=' -i_dynamic' ;;
17228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17229 tmp_addflag=' -i_dynamic -nofor_main' ;;
17230 ifc* | ifort*) # Intel Fortran compiler
17231 tmp_addflag=' -nofor_main' ;;
17232 esac
17233 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17234
17235 if test $supports_anon_versioning = yes; then
17236 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17238 $echo "local: *; };" >> $output_objdir/$libname.ver~
17239 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17240 fi
17241 link_all_deplibs_GCJ=no
17242 else
17243 ld_shlibs_GCJ=no
17244 fi
17245 ;;
17246
17247 netbsd* | netbsdelf*-gnu)
17248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17249 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17250 wlarc=
17251 else
17252 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17253 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17254 fi
17255 ;;
17256
17257 solaris*)
17258 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17259 ld_shlibs_GCJ=no
17260 cat <<EOF 1>&2
17261
17262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17263 *** create shared libraries on Solaris systems. Therefore, libtool
17264 *** is disabling shared libraries support. We urge you to upgrade GNU
17265 *** binutils to release 2.9.1 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 EOF
17270 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17271 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17272 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17273 else
17274 ld_shlibs_GCJ=no
17275 fi
17276 ;;
17277
17278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17279 case `$LD -v 2>&1` in
17280 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17281 ld_shlibs_GCJ=no
17282 cat <<_LT_EOF 1>&2
17283
17284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17285 *** reliably create shared libraries on SCO systems. Therefore, libtool
17286 *** is disabling shared libraries support. We urge you to upgrade GNU
17287 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17288 *** your PATH or compiler configuration so that the native linker is
17289 *** used, and then restart.
17290
17291 _LT_EOF
17292 ;;
17293 *)
17294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17295 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17296 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17297 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17298 else
17299 ld_shlibs_GCJ=no
17300 fi
17301 ;;
17302 esac
17303 ;;
17304
17305 sunos4*)
17306 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17307 wlarc=
17308 hardcode_direct_GCJ=yes
17309 hardcode_shlibpath_var_GCJ=no
17310 ;;
17311
17312 *)
17313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17316 else
17317 ld_shlibs_GCJ=no
17318 fi
17319 ;;
17320 esac
17321
17322 if test "$ld_shlibs_GCJ" = no; then
17323 runpath_var=
17324 hardcode_libdir_flag_spec_GCJ=
17325 export_dynamic_flag_spec_GCJ=
17326 whole_archive_flag_spec_GCJ=
17327 fi
17328 else
17329 # PORTME fill in a description of your system's linker (not GNU ld)
17330 case $host_os in
17331 aix3*)
17332 allow_undefined_flag_GCJ=unsupported
17333 always_export_symbols_GCJ=yes
17334 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'
17335 # Note: this linker hardcodes the directories in LIBPATH if there
17336 # are no directories specified by -L.
17337 hardcode_minus_L_GCJ=yes
17338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17339 # Neither direct hardcoding nor static linking is supported with a
17340 # broken collect2.
17341 hardcode_direct_GCJ=unsupported
17342 fi
17343 ;;
17344
17345 aix4* | aix5*)
17346 if test "$host_cpu" = ia64; then
17347 # On IA64, the linker does run time linking by default, so we don't
17348 # have to do anything special.
17349 aix_use_runtimelinking=no
17350 exp_sym_flag='-Bexport'
17351 no_entry_flag=""
17352 else
17353 # If we're using GNU nm, then we don't want the "-C" option.
17354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17355 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17356 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'
17357 else
17358 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'
17359 fi
17360 aix_use_runtimelinking=no
17361
17362 # Test if we are trying to use run time linking or normal
17363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17364 # need to do runtime linking.
17365 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17366 for ld_flag in $LDFLAGS; do
17367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17368 aix_use_runtimelinking=yes
17369 break
17370 fi
17371 done
17372 ;;
17373 esac
17374
17375 exp_sym_flag='-bexport'
17376 no_entry_flag='-bnoentry'
17377 fi
17378
17379 # When large executables or shared objects are built, AIX ld can
17380 # have problems creating the table of contents. If linking a library
17381 # or program results in "error TOC overflow" add -mminimal-toc to
17382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17384
17385 archive_cmds_GCJ=''
17386 hardcode_direct_GCJ=yes
17387 hardcode_libdir_separator_GCJ=':'
17388 link_all_deplibs_GCJ=yes
17389
17390 if test "$GCC" = yes; then
17391 case $host_os in aix4.[012]|aix4.[012].*)
17392 # We only want to do this on AIX 4.2 and lower, the check
17393 # below for broken collect2 doesn't work under 4.3+
17394 collect2name=`${CC} -print-prog-name=collect2`
17395 if test -f "$collect2name" && \
17396 strings "$collect2name" | grep resolve_lib_name >/dev/null
17397 then
17398 # We have reworked collect2
17399 hardcode_direct_GCJ=yes
17400 else
17401 # We have old collect2
17402 hardcode_direct_GCJ=unsupported
17403 # It fails to find uninstalled libraries when the uninstalled
17404 # path is not listed in the libpath. Setting hardcode_minus_L
17405 # to unsupported forces relinking
17406 hardcode_minus_L_GCJ=yes
17407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17408 hardcode_libdir_separator_GCJ=
17409 fi
17410 ;;
17411 esac
17412 shared_flag='-shared'
17413 if test "$aix_use_runtimelinking" = yes; then
17414 shared_flag="$shared_flag "'${wl}-G'
17415 fi
17416 else
17417 # not using gcc
17418 if test "$host_cpu" = ia64; then
17419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17420 # chokes on -Wl,-G. The following line is correct:
17421 shared_flag='-G'
17422 else
17423 if test "$aix_use_runtimelinking" = yes; then
17424 shared_flag='${wl}-G'
17425 else
17426 shared_flag='${wl}-bM:SRE'
17427 fi
17428 fi
17429 fi
17430
17431 # It seems that -bexpall does not export symbols beginning with
17432 # underscore (_), so it is better to generate a list of symbols to export.
17433 always_export_symbols_GCJ=yes
17434 if test "$aix_use_runtimelinking" = yes; then
17435 # Warning - without using the other runtime loading flags (-brtl),
17436 # -berok will link without error, but may produce a broken library.
17437 allow_undefined_flag_GCJ='-berok'
17438 # Determine the default libpath from the value encoded in an empty executable.
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445
17446 int
17447 main ()
17448 {
17449
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_link") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469 { (case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_try") 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest$ac_exeext'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488
17489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17490 }'`
17491 # Check for a 64-bit object if we didn't find anything.
17492 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; }
17493 }'`; fi
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498
17499 fi
17500
17501 rm -f core conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17504
17505 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17506 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"
17507 else
17508 if test "$host_cpu" = ia64; then
17509 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17510 allow_undefined_flag_GCJ="-z nodefs"
17511 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"
17512 else
17513 # Determine the default libpath from the value encoded in an empty executable.
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520
17521 int
17522 main ()
17523 {
17524
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (ac_try="$ac_link"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest$ac_exeext'
17554 { (case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_try") 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563
17564 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17565 }'`
17566 # Check for a 64-bit object if we didn't find anything.
17567 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; }
17568 }'`; fi
17569 else
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573
17574 fi
17575
17576 rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17579
17580 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17581 # Warning - without using the other run time loading flags,
17582 # -berok will link without error, but may produce a broken library.
17583 no_undefined_flag_GCJ=' ${wl}-bernotok'
17584 allow_undefined_flag_GCJ=' ${wl}-berok'
17585 # Exported symbols can be pulled into shared objects from archives
17586 whole_archive_flag_spec_GCJ='$convenience'
17587 archive_cmds_need_lc_GCJ=yes
17588 # This is similar to how AIX traditionally builds its shared libraries.
17589 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'
17590 fi
17591 fi
17592 ;;
17593
17594 amigaos*)
17595 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)'
17596 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17597 hardcode_minus_L_GCJ=yes
17598 # see comment about different semantics on the GNU ld section
17599 ld_shlibs_GCJ=no
17600 ;;
17601
17602 bsdi[45]*)
17603 export_dynamic_flag_spec_GCJ=-rdynamic
17604 ;;
17605
17606 cygwin* | mingw* | pw32*)
17607 # When not using gcc, we currently assume that we are using
17608 # Microsoft Visual C++.
17609 # hardcode_libdir_flag_spec is actually meaningless, as there is
17610 # no search path for DLLs.
17611 hardcode_libdir_flag_spec_GCJ=' '
17612 allow_undefined_flag_GCJ=unsupported
17613 # Tell ltmain to make .lib files, not .a files.
17614 libext=lib
17615 # Tell ltmain to make .dll files, not .so files.
17616 shrext_cmds=".dll"
17617 # FIXME: Setting linknames here is a bad hack.
17618 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17619 # The linker will automatically build a .lib file if we build a DLL.
17620 old_archive_From_new_cmds_GCJ='true'
17621 # FIXME: Should let the user specify the lib program.
17622 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17623 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17624 enable_shared_with_static_runtimes_GCJ=yes
17625 ;;
17626
17627 darwin* | rhapsody*)
17628 case $host_os in
17629 rhapsody* | darwin1.[012])
17630 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17631 ;;
17632 *) # Darwin 1.3 on
17633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17634 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17635 else
17636 case ${MACOSX_DEPLOYMENT_TARGET} in
17637 10.[012])
17638 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17639 ;;
17640 10.*)
17641 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17642 ;;
17643 esac
17644 fi
17645 ;;
17646 esac
17647 archive_cmds_need_lc_GCJ=no
17648 hardcode_direct_GCJ=no
17649 hardcode_automatic_GCJ=yes
17650 hardcode_shlibpath_var_GCJ=unsupported
17651 whole_archive_flag_spec_GCJ=''
17652 link_all_deplibs_GCJ=yes
17653 if test "$GCC" = yes ; then
17654 output_verbose_link_cmd='echo'
17655 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17656 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17658 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}'
17659 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}'
17660 else
17661 case $cc_basename in
17662 xlc*)
17663 output_verbose_link_cmd='echo'
17664 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17665 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17667 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}'
17668 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}'
17669 ;;
17670 *)
17671 ld_shlibs_GCJ=no
17672 ;;
17673 esac
17674 fi
17675 ;;
17676
17677 dgux*)
17678 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17680 hardcode_shlibpath_var_GCJ=no
17681 ;;
17682
17683 freebsd1*)
17684 ld_shlibs_GCJ=no
17685 ;;
17686
17687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17688 # support. Future versions do this automatically, but an explicit c++rt0.o
17689 # does not break anything, and helps significantly (at the cost of a little
17690 # extra space).
17691 freebsd2.2*)
17692 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17693 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17694 hardcode_direct_GCJ=yes
17695 hardcode_shlibpath_var_GCJ=no
17696 ;;
17697
17698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17699 freebsd2*)
17700 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_direct_GCJ=yes
17702 hardcode_minus_L_GCJ=yes
17703 hardcode_shlibpath_var_GCJ=no
17704 ;;
17705
17706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17707 freebsd* | dragonfly*)
17708 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17710 hardcode_direct_GCJ=yes
17711 hardcode_shlibpath_var_GCJ=no
17712 ;;
17713
17714 hpux9*)
17715 if test "$GCC" = yes; then
17716 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'
17717 else
17718 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'
17719 fi
17720 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17721 hardcode_libdir_separator_GCJ=:
17722 hardcode_direct_GCJ=yes
17723
17724 # hardcode_minus_L: Not really in the search PATH,
17725 # but as the default location of the library.
17726 hardcode_minus_L_GCJ=yes
17727 export_dynamic_flag_spec_GCJ='${wl}-E'
17728 ;;
17729
17730 hpux10*)
17731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17732 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17733 else
17734 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17735 fi
17736 if test "$with_gnu_ld" = no; then
17737 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17738 hardcode_libdir_separator_GCJ=:
17739
17740 hardcode_direct_GCJ=yes
17741 export_dynamic_flag_spec_GCJ='${wl}-E'
17742
17743 # hardcode_minus_L: Not really in the search PATH,
17744 # but as the default location of the library.
17745 hardcode_minus_L_GCJ=yes
17746 fi
17747 ;;
17748
17749 hpux11*)
17750 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17751 case $host_cpu in
17752 hppa*64*)
17753 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17754 ;;
17755 ia64*)
17756 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17757 ;;
17758 *)
17759 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17760 ;;
17761 esac
17762 else
17763 case $host_cpu in
17764 hppa*64*)
17765 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17766 ;;
17767 ia64*)
17768 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17769 ;;
17770 *)
17771 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17772 ;;
17773 esac
17774 fi
17775 if test "$with_gnu_ld" = no; then
17776 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17777 hardcode_libdir_separator_GCJ=:
17778
17779 case $host_cpu in
17780 hppa*64*|ia64*)
17781 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17782 hardcode_direct_GCJ=no
17783 hardcode_shlibpath_var_GCJ=no
17784 ;;
17785 *)
17786 hardcode_direct_GCJ=yes
17787 export_dynamic_flag_spec_GCJ='${wl}-E'
17788
17789 # hardcode_minus_L: Not really in the search PATH,
17790 # but as the default location of the library.
17791 hardcode_minus_L_GCJ=yes
17792 ;;
17793 esac
17794 fi
17795 ;;
17796
17797 irix5* | irix6* | nonstopux*)
17798 if test "$GCC" = yes; then
17799 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'
17800 else
17801 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'
17802 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17803 fi
17804 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17805 hardcode_libdir_separator_GCJ=:
17806 link_all_deplibs_GCJ=yes
17807 ;;
17808
17809 netbsd* | netbsdelf*-gnu)
17810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17811 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17812 else
17813 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17814 fi
17815 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17816 hardcode_direct_GCJ=yes
17817 hardcode_shlibpath_var_GCJ=no
17818 ;;
17819
17820 newsos6)
17821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17822 hardcode_direct_GCJ=yes
17823 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17824 hardcode_libdir_separator_GCJ=:
17825 hardcode_shlibpath_var_GCJ=no
17826 ;;
17827
17828 openbsd*)
17829 hardcode_direct_GCJ=yes
17830 hardcode_shlibpath_var_GCJ=no
17831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17832 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17833 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17834 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17835 export_dynamic_flag_spec_GCJ='${wl}-E'
17836 else
17837 case $host_os in
17838 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17839 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17840 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17841 ;;
17842 *)
17843 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17845 ;;
17846 esac
17847 fi
17848 ;;
17849
17850 os2*)
17851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17852 hardcode_minus_L_GCJ=yes
17853 allow_undefined_flag_GCJ=unsupported
17854 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'
17855 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17856 ;;
17857
17858 osf3*)
17859 if test "$GCC" = yes; then
17860 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17861 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'
17862 else
17863 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17864 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'
17865 fi
17866 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17867 hardcode_libdir_separator_GCJ=:
17868 ;;
17869
17870 osf4* | osf5*) # as osf3* with the addition of -msym flag
17871 if test "$GCC" = yes; then
17872 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17873 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'
17874 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17875 else
17876 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17877 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'
17878 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~
17879 $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'
17880
17881 # Both c and cxx compiler support -rpath directly
17882 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17883 fi
17884 hardcode_libdir_separator_GCJ=:
17885 ;;
17886
17887 solaris*)
17888 no_undefined_flag_GCJ=' -z text'
17889 if test "$GCC" = yes; then
17890 wlarc='${wl}'
17891 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17892 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17893 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17894 else
17895 wlarc=''
17896 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17897 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17899 fi
17900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17901 hardcode_shlibpath_var_GCJ=no
17902 case $host_os in
17903 solaris2.[0-5] | solaris2.[0-5].*) ;;
17904 *)
17905 # The compiler driver will combine linker options so we
17906 # cannot just pass the convience library names through
17907 # without $wl, iff we do not link with $LD.
17908 # Luckily, gcc supports the same syntax we need for Sun Studio.
17909 # Supported since Solaris 2.6 (maybe 2.5.1?)
17910 case $wlarc in
17911 '')
17912 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17913 *)
17914 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' ;;
17915 esac ;;
17916 esac
17917 link_all_deplibs_GCJ=yes
17918 ;;
17919
17920 sunos4*)
17921 if test "x$host_vendor" = xsequent; then
17922 # Use $CC to link under sequent, because it throws in some extra .o
17923 # files that make .init and .fini sections work.
17924 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17925 else
17926 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17927 fi
17928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929 hardcode_direct_GCJ=yes
17930 hardcode_minus_L_GCJ=yes
17931 hardcode_shlibpath_var_GCJ=no
17932 ;;
17933
17934 sysv4)
17935 case $host_vendor in
17936 sni)
17937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17938 hardcode_direct_GCJ=yes # is this really true???
17939 ;;
17940 siemens)
17941 ## LD is ld it makes a PLAMLIB
17942 ## CC just makes a GrossModule.
17943 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17944 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17945 hardcode_direct_GCJ=no
17946 ;;
17947 motorola)
17948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17949 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17950 ;;
17951 esac
17952 runpath_var='LD_RUN_PATH'
17953 hardcode_shlibpath_var_GCJ=no
17954 ;;
17955
17956 sysv4.3*)
17957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958 hardcode_shlibpath_var_GCJ=no
17959 export_dynamic_flag_spec_GCJ='-Bexport'
17960 ;;
17961
17962 sysv4*MP*)
17963 if test -d /usr/nec; then
17964 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17965 hardcode_shlibpath_var_GCJ=no
17966 runpath_var=LD_RUN_PATH
17967 hardcode_runpath_var=yes
17968 ld_shlibs_GCJ=yes
17969 fi
17970 ;;
17971
17972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17973 no_undefined_flag_GCJ='${wl}-z,text'
17974 archive_cmds_need_lc_GCJ=no
17975 hardcode_shlibpath_var_GCJ=no
17976 runpath_var='LD_RUN_PATH'
17977
17978 if test "$GCC" = yes; then
17979 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17980 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17981 else
17982 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17983 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17984 fi
17985 ;;
17986
17987 sysv5* | sco3.2v5* | sco5v6*)
17988 # Note: We can NOT use -z defs as we might desire, because we do not
17989 # link with -lc, and that would cause any symbols used from libc to
17990 # always be unresolved, which means just about no library would
17991 # ever link correctly. If we're not using GNU ld we use -z text
17992 # though, which does catch some bad symbols but isn't as heavy-handed
17993 # as -z defs.
17994 no_undefined_flag_GCJ='${wl}-z,text'
17995 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17996 archive_cmds_need_lc_GCJ=no
17997 hardcode_shlibpath_var_GCJ=no
17998 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17999 hardcode_libdir_separator_GCJ=':'
18000 link_all_deplibs_GCJ=yes
18001 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18002 runpath_var='LD_RUN_PATH'
18003
18004 if test "$GCC" = yes; then
18005 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 else
18008 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18009 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18010 fi
18011 ;;
18012
18013 uts4*)
18014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18016 hardcode_shlibpath_var_GCJ=no
18017 ;;
18018
18019 *)
18020 ld_shlibs_GCJ=no
18021 ;;
18022 esac
18023 fi
18024
18025 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18026 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18027 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18028
18029 #
18030 # Do we need to explicitly link libc?
18031 #
18032 case "x$archive_cmds_need_lc_GCJ" in
18033 x|xyes)
18034 # Assume -lc should be added
18035 archive_cmds_need_lc_GCJ=yes
18036
18037 if test "$enable_shared" = yes && test "$GCC" = yes; then
18038 case $archive_cmds_GCJ in
18039 *'~'*)
18040 # FIXME: we may have to deal with multi-command sequences.
18041 ;;
18042 '$CC '*)
18043 # Test whether the compiler implicitly links with -lc since on some
18044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18045 # to ld, don't add -lc before -lgcc.
18046 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18047 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18048 $rm conftest*
18049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18050
18051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18052 (eval $ac_compile) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } 2>conftest.err; then
18056 soname=conftest
18057 lib=conftest
18058 libobjs=conftest.$ac_objext
18059 deplibs=
18060 wl=$lt_prog_compiler_wl_GCJ
18061 pic_flag=$lt_prog_compiler_pic_GCJ
18062 compiler_flags=-v
18063 linker_flags=-v
18064 verstring=
18065 output_objdir=.
18066 libname=conftest
18067 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18068 allow_undefined_flag_GCJ=
18069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18070 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }
18074 then
18075 archive_cmds_need_lc_GCJ=no
18076 else
18077 archive_cmds_need_lc_GCJ=yes
18078 fi
18079 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18080 else
18081 cat conftest.err 1>&5
18082 fi
18083 $rm conftest*
18084 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18085 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18086 ;;
18087 esac
18088 fi
18089 ;;
18090 esac
18091
18092 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18094 library_names_spec=
18095 libname_spec='lib$name'
18096 soname_spec=
18097 shrext_cmds=".so"
18098 postinstall_cmds=
18099 postuninstall_cmds=
18100 finish_cmds=
18101 finish_eval=
18102 shlibpath_var=
18103 shlibpath_overrides_runpath=unknown
18104 version_type=none
18105 dynamic_linker="$host_os ld.so"
18106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18107 if test "$GCC" = yes; then
18108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18110 # if the path contains ";" then we assume it to be the separator
18111 # otherwise default to the standard path separator (i.e. ":") - it is
18112 # assumed that no part of a normal pathname contains ";" but that should
18113 # okay in the real world where ";" in dirpaths is itself problematic.
18114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18115 else
18116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18117 fi
18118 else
18119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18120 fi
18121 need_lib_prefix=unknown
18122 hardcode_into_libs=no
18123
18124 # when you set need_version to no, make sure it does not cause -set_version
18125 # flags to be left without arguments
18126 need_version=unknown
18127
18128 case $host_os in
18129 aix3*)
18130 version_type=linux
18131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18132 shlibpath_var=LIBPATH
18133
18134 # AIX 3 has no versioning support, so we append a major version to the name.
18135 soname_spec='${libname}${release}${shared_ext}$major'
18136 ;;
18137
18138 aix4* | aix5*)
18139 version_type=linux
18140 need_lib_prefix=no
18141 need_version=no
18142 hardcode_into_libs=yes
18143 if test "$host_cpu" = ia64; then
18144 # AIX 5 supports IA64
18145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 else
18148 # With GCC up to 2.95.x, collect2 would create an import file
18149 # for dependence libraries. The import file would start with
18150 # the line `#! .'. This would cause the generated library to
18151 # depend on `.', always an invalid library. This was fixed in
18152 # development snapshots of GCC prior to 3.0.
18153 case $host_os in
18154 aix4 | aix4.[01] | aix4.[01].*)
18155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18156 echo ' yes '
18157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18158 :
18159 else
18160 can_build_shared=no
18161 fi
18162 ;;
18163 esac
18164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18165 # soname into executable. Probably we can add versioning support to
18166 # collect2, so additional links can be useful in future.
18167 if test "$aix_use_runtimelinking" = yes; then
18168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18169 # instead of lib<name>.a to let people know that these are not
18170 # typical AIX shared libraries.
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 else
18173 # We preserve .a as extension for shared libraries through AIX4.2
18174 # and later when we are not doing run time linking.
18175 library_names_spec='${libname}${release}.a $libname.a'
18176 soname_spec='${libname}${release}${shared_ext}$major'
18177 fi
18178 shlibpath_var=LIBPATH
18179 fi
18180 ;;
18181
18182 amigaos*)
18183 library_names_spec='$libname.ixlibrary $libname.a'
18184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18185 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'
18186 ;;
18187
18188 beos*)
18189 library_names_spec='${libname}${shared_ext}'
18190 dynamic_linker="$host_os ld.so"
18191 shlibpath_var=LIBRARY_PATH
18192 ;;
18193
18194 bsdi[45]*)
18195 version_type=linux
18196 need_version=no
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18200 shlibpath_var=LD_LIBRARY_PATH
18201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18203 # the default ld.so.conf also contains /usr/contrib/lib and
18204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18205 # libtool to hard-code these into programs
18206 ;;
18207
18208 cygwin* | mingw* | pw32*)
18209 version_type=windows
18210 shrext_cmds=".dll"
18211 need_version=no
18212 need_lib_prefix=no
18213
18214 case $GCC,$host_os in
18215 yes,cygwin* | yes,mingw* | yes,pw32*)
18216 library_names_spec='$libname.dll.a'
18217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18218 postinstall_cmds='base_file=`basename \${file}`~
18219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18220 dldir=$destdir/`dirname \$dlpath`~
18221 test -d \$dldir || mkdir -p \$dldir~
18222 $install_prog $dir/$dlname \$dldir/$dlname~
18223 chmod a+x \$dldir/$dlname'
18224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18225 dlpath=$dir/\$dldll~
18226 $rm \$dlpath'
18227 shlibpath_overrides_runpath=yes
18228
18229 case $host_os in
18230 cygwin*)
18231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18233 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18234 ;;
18235 mingw*)
18236 # MinGW DLLs use traditional 'lib' prefix
18237 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18239 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18240 # It is most probably a Windows format PATH printed by
18241 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18242 # path with ; separators, and with drive letters. We can handle the
18243 # drive letters (cygwin fileutils understands them), so leave them,
18244 # especially as we might pass files found there to a mingw objdump,
18245 # which wouldn't understand a cygwinified path. Ahh.
18246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18247 else
18248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18249 fi
18250 ;;
18251 pw32*)
18252 # pw32 DLLs use 'pw' prefix rather than 'lib'
18253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18254 ;;
18255 esac
18256 ;;
18257
18258 *)
18259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18260 ;;
18261 esac
18262 dynamic_linker='Win32 ld.exe'
18263 # FIXME: first we should search . and the directory the executable is in
18264 shlibpath_var=PATH
18265 ;;
18266
18267 darwin* | rhapsody*)
18268 dynamic_linker="$host_os dyld"
18269 version_type=darwin
18270 need_lib_prefix=no
18271 need_version=no
18272 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18273 soname_spec='${libname}${release}${major}$shared_ext'
18274 shlibpath_overrides_runpath=yes
18275 shlibpath_var=DYLD_LIBRARY_PATH
18276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18277 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18278 if test "$GCC" = yes; then
18279 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"`
18280 else
18281 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18282 fi
18283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18284 ;;
18285
18286 dgux*)
18287 version_type=linux
18288 need_lib_prefix=no
18289 need_version=no
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 ;;
18294
18295 freebsd1*)
18296 dynamic_linker=no
18297 ;;
18298
18299 freebsd* | dragonfly*)
18300 # DragonFly does not have aout. When/if they implement a new
18301 # versioning mechanism, adjust this.
18302 if test -x /usr/bin/objformat; then
18303 objformat=`/usr/bin/objformat`
18304 else
18305 case $host_os in
18306 freebsd[123]*) objformat=aout ;;
18307 *) objformat=elf ;;
18308 esac
18309 fi
18310 version_type=freebsd-$objformat
18311 case $version_type in
18312 freebsd-elf*)
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18314 need_version=no
18315 need_lib_prefix=no
18316 ;;
18317 freebsd-*)
18318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18319 need_version=yes
18320 ;;
18321 esac
18322 shlibpath_var=LD_LIBRARY_PATH
18323 case $host_os in
18324 freebsd2*)
18325 shlibpath_overrides_runpath=yes
18326 ;;
18327 freebsd3.[01]* | freebsdelf3.[01]*)
18328 shlibpath_overrides_runpath=yes
18329 hardcode_into_libs=yes
18330 ;;
18331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18333 shlibpath_overrides_runpath=no
18334 hardcode_into_libs=yes
18335 ;;
18336 freebsd*) # from 4.6 on
18337 shlibpath_overrides_runpath=yes
18338 hardcode_into_libs=yes
18339 ;;
18340 esac
18341 ;;
18342
18343 gnu*)
18344 version_type=linux
18345 need_lib_prefix=no
18346 need_version=no
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 hardcode_into_libs=yes
18351 ;;
18352
18353 hpux9* | hpux10* | hpux11*)
18354 # Give a soname corresponding to the major version so that dld.sl refuses to
18355 # link against other versions.
18356 version_type=sunos
18357 need_lib_prefix=no
18358 need_version=no
18359 case $host_cpu in
18360 ia64*)
18361 shrext_cmds='.so'
18362 hardcode_into_libs=yes
18363 dynamic_linker="$host_os dld.so"
18364 shlibpath_var=LD_LIBRARY_PATH
18365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 if test "X$HPUX_IA64_MODE" = X32; then
18369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18370 else
18371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18372 fi
18373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18374 ;;
18375 hppa*64*)
18376 shrext_cmds='.sl'
18377 hardcode_into_libs=yes
18378 dynamic_linker="$host_os dld.sl"
18379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18385 ;;
18386 *)
18387 shrext_cmds='.sl'
18388 dynamic_linker="$host_os dld.sl"
18389 shlibpath_var=SHLIB_PATH
18390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 ;;
18394 esac
18395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18396 postinstall_cmds='chmod 555 $lib'
18397 ;;
18398
18399 interix3*)
18400 version_type=linux
18401 need_lib_prefix=no
18402 need_version=no
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18404 soname_spec='${libname}${release}${shared_ext}$major'
18405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 shlibpath_overrides_runpath=no
18408 hardcode_into_libs=yes
18409 ;;
18410
18411 irix5* | irix6* | nonstopux*)
18412 case $host_os in
18413 nonstopux*) version_type=nonstopux ;;
18414 *)
18415 if test "$lt_cv_prog_gnu_ld" = yes; then
18416 version_type=linux
18417 else
18418 version_type=irix
18419 fi ;;
18420 esac
18421 need_lib_prefix=no
18422 need_version=no
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18425 case $host_os in
18426 irix5* | nonstopux*)
18427 libsuff= shlibsuff=
18428 ;;
18429 *)
18430 case $LD in # libtool.m4 will add one of these switches to LD
18431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18432 libsuff= shlibsuff= libmagic=32-bit;;
18433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18434 libsuff=32 shlibsuff=N32 libmagic=N32;;
18435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18437 *) libsuff= shlibsuff= libmagic=never-match;;
18438 esac
18439 ;;
18440 esac
18441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18442 shlibpath_overrides_runpath=no
18443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18445 hardcode_into_libs=yes
18446 ;;
18447
18448 # No shared lib support for Linux oldld, aout, or coff.
18449 linux*oldld* | linux*aout* | linux*coff*)
18450 dynamic_linker=no
18451 ;;
18452
18453 # This must be Linux ELF.
18454 linux* | k*bsd*-gnu)
18455 version_type=linux
18456 need_lib_prefix=no
18457 need_version=no
18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18459 soname_spec='${libname}${release}${shared_ext}$major'
18460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18461 shlibpath_var=LD_LIBRARY_PATH
18462 shlibpath_overrides_runpath=no
18463 # This implies no fast_install, which is unacceptable.
18464 # Some rework will be needed to allow for fast_install
18465 # before this can be enabled.
18466 hardcode_into_libs=yes
18467
18468 # Append ld.so.conf contents to the search path
18469 if test -f /etc/ld.so.conf; then
18470 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' ' '`
18471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18472 fi
18473
18474 # We used to test for /lib/ld.so.1 and disable shared libraries on
18475 # powerpc, because MkLinux only supported shared libraries with the
18476 # GNU dynamic linker. Since this was broken with cross compilers,
18477 # most powerpc-linux boxes support dynamic linking these days and
18478 # people can always --disable-shared, the test was removed, and we
18479 # assume the GNU/Linux dynamic linker is in use.
18480 dynamic_linker='GNU/Linux ld.so'
18481 ;;
18482
18483 netbsdelf*-gnu)
18484 version_type=linux
18485 need_lib_prefix=no
18486 need_version=no
18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18488 soname_spec='${libname}${release}${shared_ext}$major'
18489 shlibpath_var=LD_LIBRARY_PATH
18490 shlibpath_overrides_runpath=no
18491 hardcode_into_libs=yes
18492 dynamic_linker='NetBSD ld.elf_so'
18493 ;;
18494
18495 netbsd*)
18496 version_type=sunos
18497 need_lib_prefix=no
18498 need_version=no
18499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18502 dynamic_linker='NetBSD (a.out) ld.so'
18503 else
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18505 soname_spec='${libname}${release}${shared_ext}$major'
18506 dynamic_linker='NetBSD ld.elf_so'
18507 fi
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=yes
18510 hardcode_into_libs=yes
18511 ;;
18512
18513 newsos6)
18514 version_type=linux
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516 shlibpath_var=LD_LIBRARY_PATH
18517 shlibpath_overrides_runpath=yes
18518 ;;
18519
18520 nto-qnx*)
18521 version_type=linux
18522 need_lib_prefix=no
18523 need_version=no
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 shlibpath_var=LD_LIBRARY_PATH
18527 shlibpath_overrides_runpath=yes
18528 ;;
18529
18530 openbsd*)
18531 version_type=sunos
18532 sys_lib_dlsearch_path_spec="/usr/lib"
18533 need_lib_prefix=no
18534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18535 case $host_os in
18536 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18537 *) need_version=no ;;
18538 esac
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18543 case $host_os in
18544 openbsd2.[89] | openbsd2.[89].*)
18545 shlibpath_overrides_runpath=no
18546 ;;
18547 *)
18548 shlibpath_overrides_runpath=yes
18549 ;;
18550 esac
18551 else
18552 shlibpath_overrides_runpath=yes
18553 fi
18554 ;;
18555
18556 os2*)
18557 libname_spec='$name'
18558 shrext_cmds=".dll"
18559 need_lib_prefix=no
18560 library_names_spec='$libname${shared_ext} $libname.a'
18561 dynamic_linker='OS/2 ld.exe'
18562 shlibpath_var=LIBPATH
18563 ;;
18564
18565 osf3* | osf4* | osf5*)
18566 version_type=osf
18567 need_lib_prefix=no
18568 need_version=no
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571 shlibpath_var=LD_LIBRARY_PATH
18572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18574 ;;
18575
18576 solaris*)
18577 version_type=linux
18578 need_lib_prefix=no
18579 need_version=no
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581 soname_spec='${libname}${release}${shared_ext}$major'
18582 shlibpath_var=LD_LIBRARY_PATH
18583 shlibpath_overrides_runpath=yes
18584 hardcode_into_libs=yes
18585 # ldd complains unless libraries are executable
18586 postinstall_cmds='chmod +x $lib'
18587 ;;
18588
18589 sunos4*)
18590 version_type=sunos
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=yes
18595 if test "$with_gnu_ld" = yes; then
18596 need_lib_prefix=no
18597 fi
18598 need_version=yes
18599 ;;
18600
18601 sysv4 | sysv4.3*)
18602 version_type=linux
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18604 soname_spec='${libname}${release}${shared_ext}$major'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 case $host_vendor in
18607 sni)
18608 shlibpath_overrides_runpath=no
18609 need_lib_prefix=no
18610 export_dynamic_flag_spec='${wl}-Blargedynsym'
18611 runpath_var=LD_RUN_PATH
18612 ;;
18613 siemens)
18614 need_lib_prefix=no
18615 ;;
18616 motorola)
18617 need_lib_prefix=no
18618 need_version=no
18619 shlibpath_overrides_runpath=no
18620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18621 ;;
18622 esac
18623 ;;
18624
18625 sysv4*MP*)
18626 if test -d /usr/nec ;then
18627 version_type=linux
18628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18629 soname_spec='$libname${shared_ext}.$major'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 fi
18632 ;;
18633
18634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18635 version_type=freebsd-elf
18636 need_lib_prefix=no
18637 need_version=no
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18639 soname_spec='${libname}${release}${shared_ext}$major'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 hardcode_into_libs=yes
18642 if test "$with_gnu_ld" = yes; then
18643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18644 shlibpath_overrides_runpath=no
18645 else
18646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18647 shlibpath_overrides_runpath=yes
18648 case $host_os in
18649 sco3.2v5*)
18650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18651 ;;
18652 esac
18653 fi
18654 sys_lib_dlsearch_path_spec='/usr/lib'
18655 ;;
18656
18657 uts4*)
18658 version_type=linux
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 shlibpath_var=LD_LIBRARY_PATH
18662 ;;
18663
18664 *)
18665 dynamic_linker=no
18666 ;;
18667 esac
18668 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18669 echo "${ECHO_T}$dynamic_linker" >&6; }
18670 test "$dynamic_linker" = no && can_build_shared=no
18671
18672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18673 if test "$GCC" = yes; then
18674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18675 fi
18676
18677 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18678 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18679 hardcode_action_GCJ=
18680 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18681 test -n "$runpath_var_GCJ" || \
18682 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18683
18684 # We can hardcode non-existant directories.
18685 if test "$hardcode_direct_GCJ" != no &&
18686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18687 # have to relink, otherwise we might link with an installed library
18688 # when we should be linking with a yet-to-be-installed one
18689 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18690 test "$hardcode_minus_L_GCJ" != no; then
18691 # Linking always hardcodes the temporary library directory.
18692 hardcode_action_GCJ=relink
18693 else
18694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18695 hardcode_action_GCJ=immediate
18696 fi
18697 else
18698 # We cannot hardcode anything, or else we can only hardcode existing
18699 # directories.
18700 hardcode_action_GCJ=unsupported
18701 fi
18702 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18703 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18704
18705 if test "$hardcode_action_GCJ" = relink; then
18706 # Fast installation is not supported
18707 enable_fast_install=no
18708 elif test "$shlibpath_overrides_runpath" = yes ||
18709 test "$enable_shared" = no; then
18710 # Fast installation is not necessary
18711 enable_fast_install=needless
18712 fi
18713
18714
18715 # The else clause should only fire when bootstrapping the
18716 # libtool distribution, otherwise you forgot to ship ltmain.sh
18717 # with your package, and you will get complaints that there are
18718 # no rules to generate ltmain.sh.
18719 if test -f "$ltmain"; then
18720 # See if we are running on zsh, and set the options which allow our commands through
18721 # without removal of \ escapes.
18722 if test -n "${ZSH_VERSION+set}" ; then
18723 setopt NO_GLOB_SUBST
18724 fi
18725 # Now quote all the things that may contain metacharacters while being
18726 # careful not to overquote the AC_SUBSTed values. We take copies of the
18727 # variables and quote the copies for generation of the libtool script.
18728 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18729 SED SHELL STRIP \
18730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18732 deplibs_check_method reload_flag reload_cmds need_locks \
18733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18734 lt_cv_sys_global_symbol_to_c_name_address \
18735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18736 old_postinstall_cmds old_postuninstall_cmds \
18737 compiler_GCJ \
18738 CC_GCJ \
18739 LD_GCJ \
18740 lt_prog_compiler_wl_GCJ \
18741 lt_prog_compiler_pic_GCJ \
18742 lt_prog_compiler_static_GCJ \
18743 lt_prog_compiler_no_builtin_flag_GCJ \
18744 export_dynamic_flag_spec_GCJ \
18745 thread_safe_flag_spec_GCJ \
18746 whole_archive_flag_spec_GCJ \
18747 enable_shared_with_static_runtimes_GCJ \
18748 old_archive_cmds_GCJ \
18749 old_archive_from_new_cmds_GCJ \
18750 predep_objects_GCJ \
18751 postdep_objects_GCJ \
18752 predeps_GCJ \
18753 postdeps_GCJ \
18754 compiler_lib_search_path_GCJ \
18755 archive_cmds_GCJ \
18756 archive_expsym_cmds_GCJ \
18757 postinstall_cmds_GCJ \
18758 postuninstall_cmds_GCJ \
18759 old_archive_from_expsyms_cmds_GCJ \
18760 allow_undefined_flag_GCJ \
18761 no_undefined_flag_GCJ \
18762 export_symbols_cmds_GCJ \
18763 hardcode_libdir_flag_spec_GCJ \
18764 hardcode_libdir_flag_spec_ld_GCJ \
18765 hardcode_libdir_separator_GCJ \
18766 hardcode_automatic_GCJ \
18767 module_cmds_GCJ \
18768 module_expsym_cmds_GCJ \
18769 lt_cv_prog_compiler_c_o_GCJ \
18770 exclude_expsyms_GCJ \
18771 include_expsyms_GCJ; do
18772
18773 case $var in
18774 old_archive_cmds_GCJ | \
18775 old_archive_from_new_cmds_GCJ | \
18776 archive_cmds_GCJ | \
18777 archive_expsym_cmds_GCJ | \
18778 module_cmds_GCJ | \
18779 module_expsym_cmds_GCJ | \
18780 old_archive_from_expsyms_cmds_GCJ | \
18781 export_symbols_cmds_GCJ | \
18782 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18783 postinstall_cmds | postuninstall_cmds | \
18784 old_postinstall_cmds | old_postuninstall_cmds | \
18785 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18786 # Double-quote double-evaled strings.
18787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18788 ;;
18789 *)
18790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18791 ;;
18792 esac
18793 done
18794
18795 case $lt_echo in
18796 *'\$0 --fallback-echo"')
18797 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18798 ;;
18799 esac
18800
18801 cfgfile="$ofile"
18802
18803 cat <<__EOF__ >> "$cfgfile"
18804 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18805
18806 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18807
18808 # Shell to use when invoking shell scripts.
18809 SHELL=$lt_SHELL
18810
18811 # Whether or not to build shared libraries.
18812 build_libtool_libs=$enable_shared
18813
18814 # Whether or not to build static libraries.
18815 build_old_libs=$enable_static
18816
18817 # Whether or not to add -lc for building shared libraries.
18818 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18819
18820 # Whether or not to disallow shared libs when runtime libs are static
18821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18822
18823 # Whether or not to optimize for fast installation.
18824 fast_install=$enable_fast_install
18825
18826 # The host system.
18827 host_alias=$host_alias
18828 host=$host
18829 host_os=$host_os
18830
18831 # The build system.
18832 build_alias=$build_alias
18833 build=$build
18834 build_os=$build_os
18835
18836 # An echo program that does not interpret backslashes.
18837 echo=$lt_echo
18838
18839 # The archiver.
18840 AR=$lt_AR
18841 AR_FLAGS=$lt_AR_FLAGS
18842
18843 # A C compiler.
18844 LTCC=$lt_LTCC
18845
18846 # LTCC compiler flags.
18847 LTCFLAGS=$lt_LTCFLAGS
18848
18849 # A language-specific compiler.
18850 CC=$lt_compiler_GCJ
18851
18852 # Is the compiler the GNU C compiler?
18853 with_gcc=$GCC_GCJ
18854
18855 # An ERE matcher.
18856 EGREP=$lt_EGREP
18857
18858 # The linker used to build libraries.
18859 LD=$lt_LD_GCJ
18860
18861 # Whether we need hard or soft links.
18862 LN_S=$lt_LN_S
18863
18864 # A BSD-compatible nm program.
18865 NM=$lt_NM
18866
18867 # A symbol stripping program
18868 STRIP=$lt_STRIP
18869
18870 # Used to examine libraries when file_magic_cmd begins "file"
18871 MAGIC_CMD=$MAGIC_CMD
18872
18873 # Used on cygwin: DLL creation program.
18874 DLLTOOL="$DLLTOOL"
18875
18876 # Used on cygwin: object dumper.
18877 OBJDUMP="$OBJDUMP"
18878
18879 # Used on cygwin: assembler.
18880 AS="$AS"
18881
18882 # The name of the directory that contains temporary libtool files.
18883 objdir=$objdir
18884
18885 # How to create reloadable object files.
18886 reload_flag=$lt_reload_flag
18887 reload_cmds=$lt_reload_cmds
18888
18889 # How to pass a linker flag through the compiler.
18890 wl=$lt_lt_prog_compiler_wl_GCJ
18891
18892 # Object file suffix (normally "o").
18893 objext="$ac_objext"
18894
18895 # Old archive suffix (normally "a").
18896 libext="$libext"
18897
18898 # Shared library suffix (normally ".so").
18899 shrext_cmds='$shrext_cmds'
18900
18901 # Executable file suffix (normally "").
18902 exeext="$exeext"
18903
18904 # Additional compiler flags for building library objects.
18905 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18906 pic_mode=$pic_mode
18907
18908 # What is the maximum length of a command?
18909 max_cmd_len=$lt_cv_sys_max_cmd_len
18910
18911 # Does compiler simultaneously support -c and -o options?
18912 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18913
18914 # Must we lock files when doing compilation?
18915 need_locks=$lt_need_locks
18916
18917 # Do we need the lib prefix for modules?
18918 need_lib_prefix=$need_lib_prefix
18919
18920 # Do we need a version for libraries?
18921 need_version=$need_version
18922
18923 # Whether dlopen is supported.
18924 dlopen_support=$enable_dlopen
18925
18926 # Whether dlopen of programs is supported.
18927 dlopen_self=$enable_dlopen_self
18928
18929 # Whether dlopen of statically linked programs is supported.
18930 dlopen_self_static=$enable_dlopen_self_static
18931
18932 # Compiler flag to prevent dynamic linking.
18933 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18934
18935 # Compiler flag to turn off builtin functions.
18936 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18937
18938 # Compiler flag to allow reflexive dlopens.
18939 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18940
18941 # Compiler flag to generate shared objects directly from archives.
18942 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18943
18944 # Compiler flag to generate thread-safe objects.
18945 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18946
18947 # Library versioning type.
18948 version_type=$version_type
18949
18950 # Format of library name prefix.
18951 libname_spec=$lt_libname_spec
18952
18953 # List of archive names. First name is the real one, the rest are links.
18954 # The last name is the one that the linker finds with -lNAME.
18955 library_names_spec=$lt_library_names_spec
18956
18957 # The coded name of the library, if different from the real name.
18958 soname_spec=$lt_soname_spec
18959
18960 # Commands used to build and install an old-style archive.
18961 RANLIB=$lt_RANLIB
18962 old_archive_cmds=$lt_old_archive_cmds_GCJ
18963 old_postinstall_cmds=$lt_old_postinstall_cmds
18964 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18965
18966 # Create an old-style archive from a shared archive.
18967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18968
18969 # Create a temporary old-style archive to link instead of a shared archive.
18970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18971
18972 # Commands used to build and install a shared archive.
18973 archive_cmds=$lt_archive_cmds_GCJ
18974 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18975 postinstall_cmds=$lt_postinstall_cmds
18976 postuninstall_cmds=$lt_postuninstall_cmds
18977
18978 # Commands used to build a loadable module (assumed same as above if empty)
18979 module_cmds=$lt_module_cmds_GCJ
18980 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18981
18982 # Commands to strip libraries.
18983 old_striplib=$lt_old_striplib
18984 striplib=$lt_striplib
18985
18986 # Dependencies to place before the objects being linked to create a
18987 # shared library.
18988 predep_objects=$lt_predep_objects_GCJ
18989
18990 # Dependencies to place after the objects being linked to create a
18991 # shared library.
18992 postdep_objects=$lt_postdep_objects_GCJ
18993
18994 # Dependencies to place before the objects being linked to create a
18995 # shared library.
18996 predeps=$lt_predeps_GCJ
18997
18998 # Dependencies to place after the objects being linked to create a
18999 # shared library.
19000 postdeps=$lt_postdeps_GCJ
19001
19002 # The library search path used internally by the compiler when linking
19003 # a shared library.
19004 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19005
19006 # Method to check whether dependent libraries are shared objects.
19007 deplibs_check_method=$lt_deplibs_check_method
19008
19009 # Command to use when deplibs_check_method == file_magic.
19010 file_magic_cmd=$lt_file_magic_cmd
19011
19012 # Flag that allows shared libraries with undefined symbols to be built.
19013 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19014
19015 # Flag that forces no undefined symbols.
19016 no_undefined_flag=$lt_no_undefined_flag_GCJ
19017
19018 # Commands used to finish a libtool library installation in a directory.
19019 finish_cmds=$lt_finish_cmds
19020
19021 # Same as above, but a single script fragment to be evaled but not shown.
19022 finish_eval=$lt_finish_eval
19023
19024 # Take the output of nm and produce a listing of raw symbols and C names.
19025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19026
19027 # Transform the output of nm in a proper C declaration
19028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19029
19030 # Transform the output of nm in a C name address pair
19031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19032
19033 # This is the shared library runtime path variable.
19034 runpath_var=$runpath_var
19035
19036 # This is the shared library path variable.
19037 shlibpath_var=$shlibpath_var
19038
19039 # Is shlibpath searched before the hard-coded library search path?
19040 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19041
19042 # How to hardcode a shared library path into an executable.
19043 hardcode_action=$hardcode_action_GCJ
19044
19045 # Whether we should hardcode library paths into libraries.
19046 hardcode_into_libs=$hardcode_into_libs
19047
19048 # Flag to hardcode \$libdir into a binary during linking.
19049 # This must work even if \$libdir does not exist.
19050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19051
19052 # If ld is used when linking, flag to hardcode \$libdir into
19053 # a binary during linking. This must work even if \$libdir does
19054 # not exist.
19055 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19056
19057 # Whether we need a single -rpath flag with a separated argument.
19058 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19059
19060 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19061 # resulting binary.
19062 hardcode_direct=$hardcode_direct_GCJ
19063
19064 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19065 # resulting binary.
19066 hardcode_minus_L=$hardcode_minus_L_GCJ
19067
19068 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19069 # the resulting binary.
19070 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19071
19072 # Set to yes if building a shared library automatically hardcodes DIR into the library
19073 # and all subsequent libraries and executables linked against it.
19074 hardcode_automatic=$hardcode_automatic_GCJ
19075
19076 # Variables whose values should be saved in libtool wrapper scripts and
19077 # restored at relink time.
19078 variables_saved_for_relink="$variables_saved_for_relink"
19079
19080 # Whether libtool must link a program against all its dependency libraries.
19081 link_all_deplibs=$link_all_deplibs_GCJ
19082
19083 # Compile-time system search path for libraries
19084 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19085
19086 # Run-time system search path for libraries
19087 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19088
19089 # Fix the shell variable \$srcfile for the compiler.
19090 fix_srcfile_path="$fix_srcfile_path_GCJ"
19091
19092 # Set to yes if exported symbols are required.
19093 always_export_symbols=$always_export_symbols_GCJ
19094
19095 # The commands to list exported symbols.
19096 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19097
19098 # The commands to extract the exported symbol list from a shared archive.
19099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19100
19101 # Symbols that should not be listed in the preloaded symbols.
19102 exclude_expsyms=$lt_exclude_expsyms_GCJ
19103
19104 # Symbols that must always be exported.
19105 include_expsyms=$lt_include_expsyms_GCJ
19106
19107 # ### END LIBTOOL TAG CONFIG: $tagname
19108
19109 __EOF__
19110
19111
19112 else
19113 # If there is no Makefile yet, we rely on a make rule to execute
19114 # `config.status --recheck' to rerun these tests and create the
19115 # libtool script then.
19116 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19117 if test -f "$ltmain_in"; then
19118 test -f Makefile && make "$ltmain"
19119 fi
19120 fi
19121
19122
19123 ac_ext=c
19124 ac_cpp='$CPP $CPPFLAGS'
19125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19128
19129 CC="$lt_save_CC"
19130
19131 else
19132 tagname=""
19133 fi
19134 ;;
19135
19136 RC)
19137
19138
19139 # Source file extension for RC test sources.
19140 ac_ext=rc
19141
19142 # Object file extension for compiled RC test sources.
19143 objext=o
19144 objext_RC=$objext
19145
19146 # Code to be used in simple compile tests
19147 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19148
19149 # Code to be used in simple link tests
19150 lt_simple_link_test_code="$lt_simple_compile_test_code"
19151
19152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19153
19154 # If no C compiler was specified, use CC.
19155 LTCC=${LTCC-"$CC"}
19156
19157 # If no C compiler flags were specified, use CFLAGS.
19158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19159
19160 # Allow CC to be a program name with arguments.
19161 compiler=$CC
19162
19163
19164 # save warnings/boilerplate of simple test code
19165 ac_outfile=conftest.$ac_objext
19166 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19168 _lt_compiler_boilerplate=`cat conftest.err`
19169 $rm conftest*
19170
19171 ac_outfile=conftest.$ac_objext
19172 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19174 _lt_linker_boilerplate=`cat conftest.err`
19175 $rm conftest*
19176
19177
19178 # Allow CC to be a program name with arguments.
19179 lt_save_CC="$CC"
19180 CC=${RC-"windres"}
19181 compiler=$CC
19182 compiler_RC=$CC
19183 for cc_temp in $compiler""; do
19184 case $cc_temp in
19185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19187 \-*) ;;
19188 *) break;;
19189 esac
19190 done
19191 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19192
19193 lt_cv_prog_compiler_c_o_RC=yes
19194
19195 # The else clause should only fire when bootstrapping the
19196 # libtool distribution, otherwise you forgot to ship ltmain.sh
19197 # with your package, and you will get complaints that there are
19198 # no rules to generate ltmain.sh.
19199 if test -f "$ltmain"; then
19200 # See if we are running on zsh, and set the options which allow our commands through
19201 # without removal of \ escapes.
19202 if test -n "${ZSH_VERSION+set}" ; then
19203 setopt NO_GLOB_SUBST
19204 fi
19205 # Now quote all the things that may contain metacharacters while being
19206 # careful not to overquote the AC_SUBSTed values. We take copies of the
19207 # variables and quote the copies for generation of the libtool script.
19208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19209 SED SHELL STRIP \
19210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19212 deplibs_check_method reload_flag reload_cmds need_locks \
19213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19214 lt_cv_sys_global_symbol_to_c_name_address \
19215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19216 old_postinstall_cmds old_postuninstall_cmds \
19217 compiler_RC \
19218 CC_RC \
19219 LD_RC \
19220 lt_prog_compiler_wl_RC \
19221 lt_prog_compiler_pic_RC \
19222 lt_prog_compiler_static_RC \
19223 lt_prog_compiler_no_builtin_flag_RC \
19224 export_dynamic_flag_spec_RC \
19225 thread_safe_flag_spec_RC \
19226 whole_archive_flag_spec_RC \
19227 enable_shared_with_static_runtimes_RC \
19228 old_archive_cmds_RC \
19229 old_archive_from_new_cmds_RC \
19230 predep_objects_RC \
19231 postdep_objects_RC \
19232 predeps_RC \
19233 postdeps_RC \
19234 compiler_lib_search_path_RC \
19235 archive_cmds_RC \
19236 archive_expsym_cmds_RC \
19237 postinstall_cmds_RC \
19238 postuninstall_cmds_RC \
19239 old_archive_from_expsyms_cmds_RC \
19240 allow_undefined_flag_RC \
19241 no_undefined_flag_RC \
19242 export_symbols_cmds_RC \
19243 hardcode_libdir_flag_spec_RC \
19244 hardcode_libdir_flag_spec_ld_RC \
19245 hardcode_libdir_separator_RC \
19246 hardcode_automatic_RC \
19247 module_cmds_RC \
19248 module_expsym_cmds_RC \
19249 lt_cv_prog_compiler_c_o_RC \
19250 exclude_expsyms_RC \
19251 include_expsyms_RC; do
19252
19253 case $var in
19254 old_archive_cmds_RC | \
19255 old_archive_from_new_cmds_RC | \
19256 archive_cmds_RC | \
19257 archive_expsym_cmds_RC | \
19258 module_cmds_RC | \
19259 module_expsym_cmds_RC | \
19260 old_archive_from_expsyms_cmds_RC | \
19261 export_symbols_cmds_RC | \
19262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19263 postinstall_cmds | postuninstall_cmds | \
19264 old_postinstall_cmds | old_postuninstall_cmds | \
19265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19266 # Double-quote double-evaled strings.
19267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19268 ;;
19269 *)
19270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19271 ;;
19272 esac
19273 done
19274
19275 case $lt_echo in
19276 *'\$0 --fallback-echo"')
19277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19278 ;;
19279 esac
19280
19281 cfgfile="$ofile"
19282
19283 cat <<__EOF__ >> "$cfgfile"
19284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19285
19286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19287
19288 # Shell to use when invoking shell scripts.
19289 SHELL=$lt_SHELL
19290
19291 # Whether or not to build shared libraries.
19292 build_libtool_libs=$enable_shared
19293
19294 # Whether or not to build static libraries.
19295 build_old_libs=$enable_static
19296
19297 # Whether or not to add -lc for building shared libraries.
19298 build_libtool_need_lc=$archive_cmds_need_lc_RC
19299
19300 # Whether or not to disallow shared libs when runtime libs are static
19301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19302
19303 # Whether or not to optimize for fast installation.
19304 fast_install=$enable_fast_install
19305
19306 # The host system.
19307 host_alias=$host_alias
19308 host=$host
19309 host_os=$host_os
19310
19311 # The build system.
19312 build_alias=$build_alias
19313 build=$build
19314 build_os=$build_os
19315
19316 # An echo program that does not interpret backslashes.
19317 echo=$lt_echo
19318
19319 # The archiver.
19320 AR=$lt_AR
19321 AR_FLAGS=$lt_AR_FLAGS
19322
19323 # A C compiler.
19324 LTCC=$lt_LTCC
19325
19326 # LTCC compiler flags.
19327 LTCFLAGS=$lt_LTCFLAGS
19328
19329 # A language-specific compiler.
19330 CC=$lt_compiler_RC
19331
19332 # Is the compiler the GNU C compiler?
19333 with_gcc=$GCC_RC
19334
19335 # An ERE matcher.
19336 EGREP=$lt_EGREP
19337
19338 # The linker used to build libraries.
19339 LD=$lt_LD_RC
19340
19341 # Whether we need hard or soft links.
19342 LN_S=$lt_LN_S
19343
19344 # A BSD-compatible nm program.
19345 NM=$lt_NM
19346
19347 # A symbol stripping program
19348 STRIP=$lt_STRIP
19349
19350 # Used to examine libraries when file_magic_cmd begins "file"
19351 MAGIC_CMD=$MAGIC_CMD
19352
19353 # Used on cygwin: DLL creation program.
19354 DLLTOOL="$DLLTOOL"
19355
19356 # Used on cygwin: object dumper.
19357 OBJDUMP="$OBJDUMP"
19358
19359 # Used on cygwin: assembler.
19360 AS="$AS"
19361
19362 # The name of the directory that contains temporary libtool files.
19363 objdir=$objdir
19364
19365 # How to create reloadable object files.
19366 reload_flag=$lt_reload_flag
19367 reload_cmds=$lt_reload_cmds
19368
19369 # How to pass a linker flag through the compiler.
19370 wl=$lt_lt_prog_compiler_wl_RC
19371
19372 # Object file suffix (normally "o").
19373 objext="$ac_objext"
19374
19375 # Old archive suffix (normally "a").
19376 libext="$libext"
19377
19378 # Shared library suffix (normally ".so").
19379 shrext_cmds='$shrext_cmds'
19380
19381 # Executable file suffix (normally "").
19382 exeext="$exeext"
19383
19384 # Additional compiler flags for building library objects.
19385 pic_flag=$lt_lt_prog_compiler_pic_RC
19386 pic_mode=$pic_mode
19387
19388 # What is the maximum length of a command?
19389 max_cmd_len=$lt_cv_sys_max_cmd_len
19390
19391 # Does compiler simultaneously support -c and -o options?
19392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19393
19394 # Must we lock files when doing compilation?
19395 need_locks=$lt_need_locks
19396
19397 # Do we need the lib prefix for modules?
19398 need_lib_prefix=$need_lib_prefix
19399
19400 # Do we need a version for libraries?
19401 need_version=$need_version
19402
19403 # Whether dlopen is supported.
19404 dlopen_support=$enable_dlopen
19405
19406 # Whether dlopen of programs is supported.
19407 dlopen_self=$enable_dlopen_self
19408
19409 # Whether dlopen of statically linked programs is supported.
19410 dlopen_self_static=$enable_dlopen_self_static
19411
19412 # Compiler flag to prevent dynamic linking.
19413 link_static_flag=$lt_lt_prog_compiler_static_RC
19414
19415 # Compiler flag to turn off builtin functions.
19416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19417
19418 # Compiler flag to allow reflexive dlopens.
19419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19420
19421 # Compiler flag to generate shared objects directly from archives.
19422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19423
19424 # Compiler flag to generate thread-safe objects.
19425 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19426
19427 # Library versioning type.
19428 version_type=$version_type
19429
19430 # Format of library name prefix.
19431 libname_spec=$lt_libname_spec
19432
19433 # List of archive names. First name is the real one, the rest are links.
19434 # The last name is the one that the linker finds with -lNAME.
19435 library_names_spec=$lt_library_names_spec
19436
19437 # The coded name of the library, if different from the real name.
19438 soname_spec=$lt_soname_spec
19439
19440 # Commands used to build and install an old-style archive.
19441 RANLIB=$lt_RANLIB
19442 old_archive_cmds=$lt_old_archive_cmds_RC
19443 old_postinstall_cmds=$lt_old_postinstall_cmds
19444 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19445
19446 # Create an old-style archive from a shared archive.
19447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19448
19449 # Create a temporary old-style archive to link instead of a shared archive.
19450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19451
19452 # Commands used to build and install a shared archive.
19453 archive_cmds=$lt_archive_cmds_RC
19454 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19455 postinstall_cmds=$lt_postinstall_cmds
19456 postuninstall_cmds=$lt_postuninstall_cmds
19457
19458 # Commands used to build a loadable module (assumed same as above if empty)
19459 module_cmds=$lt_module_cmds_RC
19460 module_expsym_cmds=$lt_module_expsym_cmds_RC
19461
19462 # Commands to strip libraries.
19463 old_striplib=$lt_old_striplib
19464 striplib=$lt_striplib
19465
19466 # Dependencies to place before the objects being linked to create a
19467 # shared library.
19468 predep_objects=$lt_predep_objects_RC
19469
19470 # Dependencies to place after the objects being linked to create a
19471 # shared library.
19472 postdep_objects=$lt_postdep_objects_RC
19473
19474 # Dependencies to place before the objects being linked to create a
19475 # shared library.
19476 predeps=$lt_predeps_RC
19477
19478 # Dependencies to place after the objects being linked to create a
19479 # shared library.
19480 postdeps=$lt_postdeps_RC
19481
19482 # The library search path used internally by the compiler when linking
19483 # a shared library.
19484 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19485
19486 # Method to check whether dependent libraries are shared objects.
19487 deplibs_check_method=$lt_deplibs_check_method
19488
19489 # Command to use when deplibs_check_method == file_magic.
19490 file_magic_cmd=$lt_file_magic_cmd
19491
19492 # Flag that allows shared libraries with undefined symbols to be built.
19493 allow_undefined_flag=$lt_allow_undefined_flag_RC
19494
19495 # Flag that forces no undefined symbols.
19496 no_undefined_flag=$lt_no_undefined_flag_RC
19497
19498 # Commands used to finish a libtool library installation in a directory.
19499 finish_cmds=$lt_finish_cmds
19500
19501 # Same as above, but a single script fragment to be evaled but not shown.
19502 finish_eval=$lt_finish_eval
19503
19504 # Take the output of nm and produce a listing of raw symbols and C names.
19505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19506
19507 # Transform the output of nm in a proper C declaration
19508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19509
19510 # Transform the output of nm in a C name address pair
19511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19512
19513 # This is the shared library runtime path variable.
19514 runpath_var=$runpath_var
19515
19516 # This is the shared library path variable.
19517 shlibpath_var=$shlibpath_var
19518
19519 # Is shlibpath searched before the hard-coded library search path?
19520 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19521
19522 # How to hardcode a shared library path into an executable.
19523 hardcode_action=$hardcode_action_RC
19524
19525 # Whether we should hardcode library paths into libraries.
19526 hardcode_into_libs=$hardcode_into_libs
19527
19528 # Flag to hardcode \$libdir into a binary during linking.
19529 # This must work even if \$libdir does not exist.
19530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19531
19532 # If ld is used when linking, flag to hardcode \$libdir into
19533 # a binary during linking. This must work even if \$libdir does
19534 # not exist.
19535 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19536
19537 # Whether we need a single -rpath flag with a separated argument.
19538 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19539
19540 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19541 # resulting binary.
19542 hardcode_direct=$hardcode_direct_RC
19543
19544 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19545 # resulting binary.
19546 hardcode_minus_L=$hardcode_minus_L_RC
19547
19548 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19549 # the resulting binary.
19550 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19551
19552 # Set to yes if building a shared library automatically hardcodes DIR into the library
19553 # and all subsequent libraries and executables linked against it.
19554 hardcode_automatic=$hardcode_automatic_RC
19555
19556 # Variables whose values should be saved in libtool wrapper scripts and
19557 # restored at relink time.
19558 variables_saved_for_relink="$variables_saved_for_relink"
19559
19560 # Whether libtool must link a program against all its dependency libraries.
19561 link_all_deplibs=$link_all_deplibs_RC
19562
19563 # Compile-time system search path for libraries
19564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19565
19566 # Run-time system search path for libraries
19567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19568
19569 # Fix the shell variable \$srcfile for the compiler.
19570 fix_srcfile_path="$fix_srcfile_path_RC"
19571
19572 # Set to yes if exported symbols are required.
19573 always_export_symbols=$always_export_symbols_RC
19574
19575 # The commands to list exported symbols.
19576 export_symbols_cmds=$lt_export_symbols_cmds_RC
19577
19578 # The commands to extract the exported symbol list from a shared archive.
19579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19580
19581 # Symbols that should not be listed in the preloaded symbols.
19582 exclude_expsyms=$lt_exclude_expsyms_RC
19583
19584 # Symbols that must always be exported.
19585 include_expsyms=$lt_include_expsyms_RC
19586
19587 # ### END LIBTOOL TAG CONFIG: $tagname
19588
19589 __EOF__
19590
19591
19592 else
19593 # If there is no Makefile yet, we rely on a make rule to execute
19594 # `config.status --recheck' to rerun these tests and create the
19595 # libtool script then.
19596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19597 if test -f "$ltmain_in"; then
19598 test -f Makefile && make "$ltmain"
19599 fi
19600 fi
19601
19602
19603 ac_ext=c
19604 ac_cpp='$CPP $CPPFLAGS'
19605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19608
19609 CC="$lt_save_CC"
19610
19611 ;;
19612
19613 *)
19614 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19615 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19616 { (exit 1); exit 1; }; }
19617 ;;
19618 esac
19619
19620 # Append the new tag name to the list of available tags.
19621 if test -n "$tagname" ; then
19622 available_tags="$available_tags $tagname"
19623 fi
19624 fi
19625 done
19626 IFS="$lt_save_ifs"
19627
19628 # Now substitute the updated list of available tags.
19629 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19630 mv "${ofile}T" "$ofile"
19631 chmod +x "$ofile"
19632 else
19633 rm -f "${ofile}T"
19634 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19635 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19636 { (exit 1); exit 1; }; }
19637 fi
19638 fi
19639
19640
19641
19642 # This can be used to rebuild libtool when needed
19643 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19644
19645 # Always use our own libtool.
19646 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19647
19648 # Prevent multiple expansion
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19672 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19673 if test "${ac_cv_header_stdc+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <stdlib.h>
19683 #include <stdarg.h>
19684 #include <string.h>
19685 #include <float.h>
19686
19687 int
19688 main ()
19689 {
19690
19691 ;
19692 return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest.$ac_objext'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_header_stdc=yes
19730 else
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 ac_cv_header_stdc=no
19735 fi
19736
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738
19739 if test $ac_cv_header_stdc = yes; then
19740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h. */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19747 #include <string.h>
19748
19749 _ACEOF
19750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19751 $EGREP "memchr" >/dev/null 2>&1; then
19752 :
19753 else
19754 ac_cv_header_stdc=no
19755 fi
19756 rm -f conftest*
19757
19758 fi
19759
19760 if test $ac_cv_header_stdc = yes; then
19761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <stdlib.h>
19769
19770 _ACEOF
19771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19772 $EGREP "free" >/dev/null 2>&1; then
19773 :
19774 else
19775 ac_cv_header_stdc=no
19776 fi
19777 rm -f conftest*
19778
19779 fi
19780
19781 if test $ac_cv_header_stdc = yes; then
19782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19783 if test "$cross_compiling" = yes; then
19784 :
19785 else
19786 cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h. */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 #include <ctype.h>
19793 #include <stdlib.h>
19794 #if ((' ' & 0x0FF) == 0x020)
19795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19797 #else
19798 # define ISLOWER(c) \
19799 (('a' <= (c) && (c) <= 'i') \
19800 || ('j' <= (c) && (c) <= 'r') \
19801 || ('s' <= (c) && (c) <= 'z'))
19802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19803 #endif
19804
19805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19806 int
19807 main ()
19808 {
19809 int i;
19810 for (i = 0; i < 256; i++)
19811 if (XOR (islower (i), ISLOWER (i))
19812 || toupper (i) != TOUPPER (i))
19813 return 2;
19814 return 0;
19815 }
19816 _ACEOF
19817 rm -f conftest$ac_exeext
19818 if { (ac_try="$ac_link"
19819 case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19822 esac
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_link") 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19828 { (case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_try") 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 :
19838 else
19839 echo "$as_me: program exited with status $ac_status" >&5
19840 echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19842
19843 ( exit $ac_status )
19844 ac_cv_header_stdc=no
19845 fi
19846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19847 fi
19848
19849
19850 fi
19851 fi
19852 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19853 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19854 if test $ac_cv_header_stdc = yes; then
19855
19856 cat >>confdefs.h <<\_ACEOF
19857 #define STDC_HEADERS 1
19858 _ACEOF
19859
19860 fi
19861
19862
19863
19864 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19865 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19866 if test "${ac_cv_c_const+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h. */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875
19876 int
19877 main ()
19878 {
19879 /* FIXME: Include the comments suggested by Paul. */
19880 #ifndef __cplusplus
19881 /* Ultrix mips cc rejects this. */
19882 typedef int charset[2];
19883 const charset x;
19884 /* SunOS 4.1.1 cc rejects this. */
19885 char const *const *ccp;
19886 char **p;
19887 /* NEC SVR4.0.2 mips cc rejects this. */
19888 struct point {int x, y;};
19889 static struct point const zero = {0,0};
19890 /* AIX XL C 1.02.0.0 rejects this.
19891 It does not let you subtract one const X* pointer from another in
19892 an arm of an if-expression whose if-part is not a constant
19893 expression */
19894 const char *g = "string";
19895 ccp = &g + (g ? g-g : 0);
19896 /* HPUX 7.0 cc rejects these. */
19897 ++ccp;
19898 p = (char**) ccp;
19899 ccp = (char const *const *) p;
19900 { /* SCO 3.2v4 cc rejects this. */
19901 char *t;
19902 char const *s = 0 ? (char *) 0 : (char const *) 0;
19903
19904 *t++ = 0;
19905 if (s) return 0;
19906 }
19907 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19908 int x[] = {25, 17};
19909 const int *foo = &x[0];
19910 ++foo;
19911 }
19912 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19913 typedef const int *iptr;
19914 iptr p = 0;
19915 ++p;
19916 }
19917 { /* AIX XL C 1.02.0.0 rejects this saying
19918 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19919 struct s { int j; const int *ap[3]; };
19920 struct s *b; b->j = 5;
19921 }
19922 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19923 const int foo = 10;
19924 if (!foo) return 0;
19925 }
19926 return !x[0] && !zero.x;
19927 #endif
19928
19929 ;
19930 return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext
19934 if { (ac_try="$ac_compile"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_compile") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19948 { (case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_try") 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_cv_c_const=yes
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972 ac_cv_c_const=no
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19976 fi
19977 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19978 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19979 if test $ac_cv_c_const = no; then
19980
19981 cat >>confdefs.h <<\_ACEOF
19982 #define const
19983 _ACEOF
19984
19985 fi
19986
19987
19988
19989 succeeded=no
19990
19991 if test -z "$PKG_CONFIG"; then
19992 # Extract the first word of "pkg-config", so it can be a program name with args.
19993 set dummy pkg-config; ac_word=$2
19994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19996 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999 case $PKG_CONFIG in
20000 [\\/]* | ?:[\\/]*)
20001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20002 ;;
20003 *)
20004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20005 for as_dir in $PATH
20006 do
20007 IFS=$as_save_IFS
20008 test -z "$as_dir" && as_dir=.
20009 for ac_exec_ext in '' $ac_executable_extensions; do
20010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20011 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20013 break 2
20014 fi
20015 done
20016 done
20017 IFS=$as_save_IFS
20018
20019 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20020 ;;
20021 esac
20022 fi
20023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20024 if test -n "$PKG_CONFIG"; then
20025 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20026 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20027 else
20028 { echo "$as_me:$LINENO: result: no" >&5
20029 echo "${ECHO_T}no" >&6; }
20030 fi
20031
20032
20033 fi
20034
20035 if test "$PKG_CONFIG" = "no" ; then
20036 echo "*** The pkg-config script could not be found. Make sure it is"
20037 echo "*** in your path, or set the PKG_CONFIG environment variable"
20038 echo "*** to the full path to pkg-config."
20039 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20040 else
20041 PKG_CONFIG_MIN_VERSION=0.9.0
20042 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20043 { echo "$as_me:$LINENO: checking for glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23" >&5
20044 echo $ECHO_N "checking for glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23... $ECHO_C" >&6; }
20045
20046 if $PKG_CONFIG --exists "glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23" ; then
20047 { echo "$as_me:$LINENO: result: yes" >&5
20048 echo "${ECHO_T}yes" >&6; }
20049 succeeded=yes
20050
20051 { echo "$as_me:$LINENO: checking OTS_CFLAGS" >&5
20052 echo $ECHO_N "checking OTS_CFLAGS... $ECHO_C" >&6; }
20053 OTS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23"`
20054 { echo "$as_me:$LINENO: result: $OTS_CFLAGS" >&5
20055 echo "${ECHO_T}$OTS_CFLAGS" >&6; }
20056
20057 { echo "$as_me:$LINENO: checking OTS_LIBS" >&5
20058 echo $ECHO_N "checking OTS_LIBS... $ECHO_C" >&6; }
20059 OTS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23"`
20060 { echo "$as_me:$LINENO: result: $OTS_LIBS" >&5
20061 echo "${ECHO_T}$OTS_LIBS" >&6; }
20062 else
20063 OTS_CFLAGS=""
20064 OTS_LIBS=""
20065 ## If we have a custom action on failure, don't print errors, but
20066 ## do set a variable so people can do so.
20067 OTS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23"`
20068 echo $OTS_PKG_ERRORS
20069 fi
20070
20071
20072
20073 else
20074 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20075 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20076 fi
20077 fi
20078
20079 if test $succeeded = yes; then
20080 :
20081 else
20082 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20083 echo "$as_me: error: Library requirements (glib-2.0 >= 2.0 libxml-2.0 >= 2.4.23) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20084 { (exit 1); exit 1; }; }
20085 fi
20086
20087
20088
20089
20090
20091 # Check whether --with-popt-prefix was given.
20092 if test "${with_popt_prefix+set}" = set; then
20093 withval=$with_popt_prefix; with_popt_prefix="$withval"
20094 fi
20095
20096
20097 saved_LDFLAGS=$LDFLAGS
20098
20099 if test "x$with_popt_prefix" != "x"; then
20100 LDFLAGS="-L$with_popt_prefix/lib "$LDFLAGS
20101 fi
20102
20103 POPT_LIBS=
20104 { echo "$as_me:$LINENO: checking for poptParseArgvString in -lpopt" >&5
20105 echo $ECHO_N "checking for poptParseArgvString in -lpopt... $ECHO_C" >&6; }
20106 if test "${ac_cv_lib_popt_poptParseArgvString+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109 ac_check_lib_save_LIBS=$LIBS
20110 LIBS="-lpopt $LIBS"
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h. */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char poptParseArgvString ();
20125 int
20126 main ()
20127 {
20128 return poptParseArgvString ();
20129 ;
20130 return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>conftest.er1
20141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_lib_popt_poptParseArgvString=yes
20168 else
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_cv_lib_popt_poptParseArgvString=no
20173 fi
20174
20175 rm -f core conftest.err conftest.$ac_objext \
20176 conftest$ac_exeext conftest.$ac_ext
20177 LIBS=$ac_check_lib_save_LIBS
20178 fi
20179 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptParseArgvString" >&5
20180 echo "${ECHO_T}$ac_cv_lib_popt_poptParseArgvString" >&6; }
20181 if test $ac_cv_lib_popt_poptParseArgvString = yes; then
20182 POPT_LIBS="-lpopt"
20183 else
20184 { { echo "$as_me:$LINENO: error: popt 1.5 or newer is required to build ots.
20185 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/" >&5
20186 echo "$as_me: error: popt 1.5 or newer is required to build ots.
20187 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/" >&2;}
20188 { (exit 1); exit 1; }; }
20189 fi
20190
20191
20192 if test "x$with_popt_prefix" != "x"; then
20193 POPT_LIBS="-L$with_popt_prefix/lib $POPT_LIBS"
20194 CFLAGS="-I$with_popt_prefix/include $CFLAGS"
20195 fi
20196
20197
20198 LDFLAGS=$saved_LDFLAGS
20199
20200 { echo "$as_me:$LINENO: checking for native Win32" >&5
20201 echo $ECHO_N "checking for native Win32... $ECHO_C" >&6; }
20202 case "$host" in
20203 *-*-mingw*)
20204 native_win32=yes
20205 ;;
20206 *)
20207 native_win32=no
20208 ;;
20209 esac
20210 { echo "$as_me:$LINENO: result: $native_win32" >&5
20211 echo "${ECHO_T}$native_win32" >&6; }
20212
20213
20214 if test "$native_win32" = yes; then
20215 OS_WIN32_TRUE=
20216 OS_WIN32_FALSE='#'
20217 else
20218 OS_WIN32_TRUE='#'
20219 OS_WIN32_FALSE=
20220 fi
20221
20222 { echo "$as_me:$LINENO: checking for Win32 platform in general" >&5
20223 echo $ECHO_N "checking for Win32 platform in general... $ECHO_C" >&6; }
20224 case "$host" in
20225 *-*-mingw*|*-*-cygwin*)
20226 platform_win32=yes
20227 ;;
20228 *)
20229 platform_win32=no
20230 ;;
20231 esac
20232 { echo "$as_me:$LINENO: result: $platform_win32" >&5
20233 echo "${ECHO_T}$platform_win32" >&6; }
20234
20235
20236 if test "$platform_win32" = yes; then
20237 PLATFORM_WIN32_TRUE=
20238 PLATFORM_WIN32_FALSE='#'
20239 else
20240 PLATFORM_WIN32_TRUE='#'
20241 PLATFORM_WIN32_FALSE=
20242 fi
20243
20244 ##################################################
20245 # Checks for gtk-doc and docbook-tools
20246 ##################################################
20247
20248
20249 # Check whether --with-html-dir was given.
20250 if test "${with_html_dir+set}" = set; then
20251 withval=$with_html_dir;
20252 fi
20253
20254
20255 if test "x$with_html_dir" = "x" ; then
20256 HTML_DIR='${datadir}/doc/libots/html'
20257 else
20258 HTML_DIR=$with_html_dir
20259 fi
20260
20261
20262
20263 # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
20264 set dummy gtkdoc-mkdb; ac_word=$2
20265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20267 if test "${ac_cv_prog_GTKDOC+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270 if test -n "$GTKDOC"; then
20271 ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
20272 else
20273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20274 for as_dir in $PATH
20275 do
20276 IFS=$as_save_IFS
20277 test -z "$as_dir" && as_dir=.
20278 for ac_exec_ext in '' $ac_executable_extensions; do
20279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20280 ac_cv_prog_GTKDOC="true"
20281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20282 break 2
20283 fi
20284 done
20285 done
20286 IFS=$as_save_IFS
20287
20288 test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
20289 fi
20290 fi
20291 GTKDOC=$ac_cv_prog_GTKDOC
20292 if test -n "$GTKDOC"; then
20293 { echo "$as_me:$LINENO: result: $GTKDOC" >&5
20294 echo "${ECHO_T}$GTKDOC" >&6; }
20295 else
20296 { echo "$as_me:$LINENO: result: no" >&5
20297 echo "${ECHO_T}no" >&6; }
20298 fi
20299
20300
20301
20302 gtk_doc_min_version=0.9
20303 if $GTKDOC ; then
20304 gtk_doc_version=`gtkdoc-mkdb --version`
20305 { echo "$as_me:$LINENO: checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version" >&5
20306 echo $ECHO_N "checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version... $ECHO_C" >&6; }
20307
20308 IFS="${IFS= }"; gtk_save_IFS="$IFS"; IFS="."
20309 set $gtk_doc_version
20310 for min in $gtk_doc_min_version ; do
20311 cur=$1; shift
20312 if test -z $min ; then break; fi
20313 if test -z $cur ; then GTKDOC=false; break; fi
20314 if test $cur -gt $min ; then break ; fi
20315 if test $cur -lt $min ; then GTKDOC=false; break ; fi
20316 done
20317 IFS="$gtk_save_IFS"
20318
20319 if $GTKDOC ; then
20320 { echo "$as_me:$LINENO: result: yes" >&5
20321 echo "${ECHO_T}yes" >&6; }
20322 else
20323 { echo "$as_me:$LINENO: result: no" >&5
20324 echo "${ECHO_T}no" >&6; }
20325 fi
20326 fi
20327
20328 # Extract the first word of "db2html", so it can be a program name with args.
20329 set dummy db2html; ac_word=$2
20330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20332 if test "${ac_cv_prog_DB2HTML+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 if test -n "$DB2HTML"; then
20336 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
20337 else
20338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20339 for as_dir in $PATH
20340 do
20341 IFS=$as_save_IFS
20342 test -z "$as_dir" && as_dir=.
20343 for ac_exec_ext in '' $ac_executable_extensions; do
20344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20345 ac_cv_prog_DB2HTML="true"
20346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20347 break 2
20348 fi
20349 done
20350 done
20351 IFS=$as_save_IFS
20352
20353 test -z "$ac_cv_prog_DB2HTML" && ac_cv_prog_DB2HTML="false"
20354 fi
20355 fi
20356 DB2HTML=$ac_cv_prog_DB2HTML
20357 if test -n "$DB2HTML"; then
20358 { echo "$as_me:$LINENO: result: $DB2HTML" >&5
20359 echo "${ECHO_T}$DB2HTML" >&6; }
20360 else
20361 { echo "$as_me:$LINENO: result: no" >&5
20362 echo "${ECHO_T}no" >&6; }
20363 fi
20364
20365
20366
20367
20368 if $DB2HTML; then
20369 HAVE_DOCBOOK_TRUE=
20370 HAVE_DOCBOOK_FALSE='#'
20371 else
20372 HAVE_DOCBOOK_TRUE='#'
20373 HAVE_DOCBOOK_FALSE=
20374 fi
20375
20376 # Check whether --enable-gtk-doc was given.
20377 if test "${enable_gtk_doc+set}" = set; then
20378 enableval=$enable_gtk_doc; enable_gtk_doc="$enableval"
20379 else
20380 enable_gtk_doc=yes
20381 fi
20382
20383
20384 if test x$enable_gtk_doc = xyes ; then
20385 if test x$GTKDOC != xtrue ; then
20386 enable_gtk_doc=no
20387 fi
20388 fi
20389
20390
20391
20392 if test x$enable_gtk_doc = xyes; then
20393 ENABLE_GTK_DOC_TRUE=
20394 ENABLE_GTK_DOC_FALSE='#'
20395 else
20396 ENABLE_GTK_DOC_TRUE='#'
20397 ENABLE_GTK_DOC_FALSE=
20398 fi
20399
20400 ac_config_files="$ac_config_files Makefile libots-1.pc ots.spec src/Makefile dic/Makefile doc/Makefile articles/Makefile"
20401
20402 cat >confcache <<\_ACEOF
20403 # This file is a shell script that caches the results of configure
20404 # tests run on this system so they can be shared between configure
20405 # scripts and configure runs, see configure's option --config-cache.
20406 # It is not useful on other systems. If it contains results you don't
20407 # want to keep, you may remove or edit it.
20408 #
20409 # config.status only pays attention to the cache file if you give it
20410 # the --recheck option to rerun configure.
20411 #
20412 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20413 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20414 # following values.
20415
20416 _ACEOF
20417
20418 # The following way of writing the cache mishandles newlines in values,
20419 # but we know of no workaround that is simple, portable, and efficient.
20420 # So, we kill variables containing newlines.
20421 # Ultrix sh set writes to stderr and can't be redirected directly,
20422 # and sets the high bit in the cache file unless we assign to the vars.
20423 (
20424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20425 eval ac_val=\$$ac_var
20426 case $ac_val in #(
20427 *${as_nl}*)
20428 case $ac_var in #(
20429 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20430 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20431 esac
20432 case $ac_var in #(
20433 _ | IFS | as_nl) ;; #(
20434 *) $as_unset $ac_var ;;
20435 esac ;;
20436 esac
20437 done
20438
20439 (set) 2>&1 |
20440 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20441 *${as_nl}ac_space=\ *)
20442 # `set' does not quote correctly, so add quotes (double-quote
20443 # substitution turns \\\\ into \\, and sed turns \\ into \).
20444 sed -n \
20445 "s/'/'\\\\''/g;
20446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20447 ;; #(
20448 *)
20449 # `set' quotes correctly as required by POSIX, so do not add quotes.
20450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20451 ;;
20452 esac |
20453 sort
20454 ) |
20455 sed '
20456 /^ac_cv_env_/b end
20457 t clear
20458 :clear
20459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20460 t end
20461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20462 :end' >>confcache
20463 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20464 if test -w "$cache_file"; then
20465 test "x$cache_file" != "x/dev/null" &&
20466 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20467 echo "$as_me: updating cache $cache_file" >&6;}
20468 cat confcache >$cache_file
20469 else
20470 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20471 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20472 fi
20473 fi
20474 rm -f confcache
20475
20476 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20477 # Let make expand exec_prefix.
20478 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20479
20480 DEFS=-DHAVE_CONFIG_H
20481
20482 ac_libobjs=
20483 ac_ltlibobjs=
20484 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20485 # 1. Remove the extension, and $U if already installed.
20486 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20487 ac_i=`echo "$ac_i" | sed "$ac_script"`
20488 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20489 # will be set to the directory where LIBOBJS objects are built.
20490 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20491 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20492 done
20493 LIBOBJS=$ac_libobjs
20494
20495 LTLIBOBJS=$ac_ltlibobjs
20496
20497
20498
20499 : ${CONFIG_STATUS=./config.status}
20500 ac_clean_files_save=$ac_clean_files
20501 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20502 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20503 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20504 cat >$CONFIG_STATUS <<_ACEOF
20505 #! $SHELL
20506 # Generated by $as_me.
20507 # Run this file to recreate the current configuration.
20508 # Compiler output produced by configure, useful for debugging
20509 # configure, is in config.log if it exists.
20510
20511 debug=false
20512 ac_cs_recheck=false
20513 ac_cs_silent=false
20514 SHELL=\${CONFIG_SHELL-$SHELL}
20515 _ACEOF
20516
20517 cat >>$CONFIG_STATUS <<\_ACEOF
20518 ## --------------------- ##
20519 ## M4sh Initialization. ##
20520 ## --------------------- ##
20521
20522 # Be Bourne compatible
20523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20524 emulate sh
20525 NULLCMD=:
20526 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20527 # is contrary to our usage. Disable this feature.
20528 alias -g '${1+"$@"}'='"$@"'
20529 setopt NO_GLOB_SUBST
20530 else
20531 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20532 fi
20533 BIN_SH=xpg4; export BIN_SH # for Tru64
20534 DUALCASE=1; export DUALCASE # for MKS sh
20535
20536
20537 # PATH needs CR
20538 # Avoid depending upon Character Ranges.
20539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20542 as_cr_digits='0123456789'
20543 as_cr_alnum=$as_cr_Letters$as_cr_digits
20544
20545 # The user is always right.
20546 if test "${PATH_SEPARATOR+set}" != set; then
20547 echo "#! /bin/sh" >conf$$.sh
20548 echo "exit 0" >>conf$$.sh
20549 chmod +x conf$$.sh
20550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20551 PATH_SEPARATOR=';'
20552 else
20553 PATH_SEPARATOR=:
20554 fi
20555 rm -f conf$$.sh
20556 fi
20557
20558 # Support unset when possible.
20559 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20560 as_unset=unset
20561 else
20562 as_unset=false
20563 fi
20564
20565
20566 # IFS
20567 # We need space, tab and new line, in precisely that order. Quoting is
20568 # there to prevent editors from complaining about space-tab.
20569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20570 # splitting by setting IFS to empty value.)
20571 as_nl='
20572 '
20573 IFS=" "" $as_nl"
20574
20575 # Find who we are. Look in the path if we contain no directory separator.
20576 case $0 in
20577 *[\\/]* ) as_myself=$0 ;;
20578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20579 for as_dir in $PATH
20580 do
20581 IFS=$as_save_IFS
20582 test -z "$as_dir" && as_dir=.
20583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20584 done
20585 IFS=$as_save_IFS
20586
20587 ;;
20588 esac
20589 # We did not find ourselves, most probably we were run as `sh COMMAND'
20590 # in which case we are not to be found in the path.
20591 if test "x$as_myself" = x; then
20592 as_myself=$0
20593 fi
20594 if test ! -f "$as_myself"; then
20595 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20596 { (exit 1); exit 1; }
20597 fi
20598
20599 # Work around bugs in pre-3.0 UWIN ksh.
20600 for as_var in ENV MAIL MAILPATH
20601 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20602 done
20603 PS1='$ '
20604 PS2='> '
20605 PS4='+ '
20606
20607 # NLS nuisances.
20608 for as_var in \
20609 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20610 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20611 LC_TELEPHONE LC_TIME
20612 do
20613 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20614 eval $as_var=C; export $as_var
20615 else
20616 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20617 fi
20618 done
20619
20620 # Required to use basename.
20621 if expr a : '\(a\)' >/dev/null 2>&1 &&
20622 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20623 as_expr=expr
20624 else
20625 as_expr=false
20626 fi
20627
20628 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20629 as_basename=basename
20630 else
20631 as_basename=false
20632 fi
20633
20634
20635 # Name of the executable.
20636 as_me=`$as_basename -- "$0" ||
20637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20638 X"$0" : 'X\(//\)$' \| \
20639 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20640 echo X/"$0" |
20641 sed '/^.*\/\([^/][^/]*\)\/*$/{
20642 s//\1/
20643 q
20644 }
20645 /^X\/\(\/\/\)$/{
20646 s//\1/
20647 q
20648 }
20649 /^X\/\(\/\).*/{
20650 s//\1/
20651 q
20652 }
20653 s/.*/./; q'`
20654
20655 # CDPATH.
20656 $as_unset CDPATH
20657
20658
20659
20660 as_lineno_1=$LINENO
20661 as_lineno_2=$LINENO
20662 test "x$as_lineno_1" != "x$as_lineno_2" &&
20663 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20664
20665 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20666 # uniformly replaced by the line number. The first 'sed' inserts a
20667 # line-number line after each line using $LINENO; the second 'sed'
20668 # does the real work. The second script uses 'N' to pair each
20669 # line-number line with the line containing $LINENO, and appends
20670 # trailing '-' during substitution so that $LINENO is not a special
20671 # case at line end.
20672 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20673 # scripts with optimization help from Paolo Bonzini. Blame Lee
20674 # E. McMahon (1931-1989) for sed's syntax. :-)
20675 sed -n '
20676 p
20677 /[$]LINENO/=
20678 ' <$as_myself |
20679 sed '
20680 s/[$]LINENO.*/&-/
20681 t lineno
20682 b
20683 :lineno
20684 N
20685 :loop
20686 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20687 t loop
20688 s/-\n.*//
20689 ' >$as_me.lineno &&
20690 chmod +x "$as_me.lineno" ||
20691 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20692 { (exit 1); exit 1; }; }
20693
20694 # Don't try to exec as it changes $[0], causing all sort of problems
20695 # (the dirname of $[0] is not the place where we might find the
20696 # original and so on. Autoconf is especially sensitive to this).
20697 . "./$as_me.lineno"
20698 # Exit status is that of the last command.
20699 exit
20700 }
20701
20702
20703 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20704 as_dirname=dirname
20705 else
20706 as_dirname=false
20707 fi
20708
20709 ECHO_C= ECHO_N= ECHO_T=
20710 case `echo -n x` in
20711 -n*)
20712 case `echo 'x\c'` in
20713 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20714 *) ECHO_C='\c';;
20715 esac;;
20716 *)
20717 ECHO_N='-n';;
20718 esac
20719
20720 if expr a : '\(a\)' >/dev/null 2>&1 &&
20721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20722 as_expr=expr
20723 else
20724 as_expr=false
20725 fi
20726
20727 rm -f conf$$ conf$$.exe conf$$.file
20728 if test -d conf$$.dir; then
20729 rm -f conf$$.dir/conf$$.file
20730 else
20731 rm -f conf$$.dir
20732 mkdir conf$$.dir
20733 fi
20734 echo >conf$$.file
20735 if ln -s conf$$.file conf$$ 2>/dev/null; then
20736 as_ln_s='ln -s'
20737 # ... but there are two gotchas:
20738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20740 # In both cases, we have to default to `cp -p'.
20741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20742 as_ln_s='cp -p'
20743 elif ln conf$$.file conf$$ 2>/dev/null; then
20744 as_ln_s=ln
20745 else
20746 as_ln_s='cp -p'
20747 fi
20748 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20749 rmdir conf$$.dir 2>/dev/null
20750
20751 if mkdir -p . 2>/dev/null; then
20752 as_mkdir_p=:
20753 else
20754 test -d ./-p && rmdir ./-p
20755 as_mkdir_p=false
20756 fi
20757
20758 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20759 # systems may use methods other than mode bits to determine executability.
20760 cat >conf$$.file <<_ASEOF
20761 #! /bin/sh
20762 exit 0
20763 _ASEOF
20764 chmod +x conf$$.file
20765 if test -x conf$$.file >/dev/null 2>&1; then
20766 as_executable_p="test -x"
20767 else
20768 as_executable_p=:
20769 fi
20770 rm -f conf$$.file
20771
20772 # Sed expression to map a string onto a valid CPP name.
20773 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20774
20775 # Sed expression to map a string onto a valid variable name.
20776 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20777
20778
20779 exec 6>&1
20780
20781 # Save the log message, to keep $[0] and so on meaningful, and to
20782 # report actual input values of CONFIG_FILES etc. instead of their
20783 # values after options handling.
20784 ac_log="
20785 This file was extended by ots $as_me 0.4.2, which was
20786 generated by GNU Autoconf 2.60. Invocation command line was
20787
20788 CONFIG_FILES = $CONFIG_FILES
20789 CONFIG_HEADERS = $CONFIG_HEADERS
20790 CONFIG_LINKS = $CONFIG_LINKS
20791 CONFIG_COMMANDS = $CONFIG_COMMANDS
20792 $ $0 $@
20793
20794 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20795 "
20796
20797 _ACEOF
20798
20799 cat >>$CONFIG_STATUS <<_ACEOF
20800 # Files that config.status was made for.
20801 config_files="$ac_config_files"
20802 config_headers="$ac_config_headers"
20803 config_commands="$ac_config_commands"
20804
20805 _ACEOF
20806
20807 cat >>$CONFIG_STATUS <<\_ACEOF
20808 ac_cs_usage="\
20809 \`$as_me' instantiates files from templates according to the
20810 current configuration.
20811
20812 Usage: $0 [OPTIONS] [FILE]...
20813
20814 -h, --help print this help, then exit
20815 -V, --version print version number, then exit
20816 -q, --quiet do not print progress messages
20817 -d, --debug don't remove temporary files
20818 --recheck update $as_me by reconfiguring in the same conditions
20819 --file=FILE[:TEMPLATE]
20820 instantiate the configuration file FILE
20821 --header=FILE[:TEMPLATE]
20822 instantiate the configuration header FILE
20823
20824 Configuration files:
20825 $config_files
20826
20827 Configuration headers:
20828 $config_headers
20829
20830 Configuration commands:
20831 $config_commands
20832
20833 Report bugs to <[email protected]>."
20834
20835 _ACEOF
20836 cat >>$CONFIG_STATUS <<_ACEOF
20837 ac_cs_version="\\
20838 ots config.status 0.4.2
20839 configured by $0, generated by GNU Autoconf 2.60,
20840 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20841
20842 Copyright (C) 2006 Free Software Foundation, Inc.
20843 This config.status script is free software; the Free Software Foundation
20844 gives unlimited permission to copy, distribute and modify it."
20845
20846 ac_pwd='$ac_pwd'
20847 srcdir='$srcdir'
20848 INSTALL='$INSTALL'
20849 _ACEOF
20850
20851 cat >>$CONFIG_STATUS <<\_ACEOF
20852 # If no file are specified by the user, then we need to provide default
20853 # value. By we need to know if files were specified by the user.
20854 ac_need_defaults=:
20855 while test $# != 0
20856 do
20857 case $1 in
20858 --*=*)
20859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20861 ac_shift=:
20862 ;;
20863 *)
20864 ac_option=$1
20865 ac_optarg=$2
20866 ac_shift=shift
20867 ;;
20868 esac
20869
20870 case $ac_option in
20871 # Handling of the options.
20872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20873 ac_cs_recheck=: ;;
20874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20875 echo "$ac_cs_version"; exit ;;
20876 --debug | --debu | --deb | --de | --d | -d )
20877 debug=: ;;
20878 --file | --fil | --fi | --f )
20879 $ac_shift
20880 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20881 ac_need_defaults=false;;
20882 --header | --heade | --head | --hea )
20883 $ac_shift
20884 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20885 ac_need_defaults=false;;
20886 --he | --h)
20887 # Conflict between --help and --header
20888 { echo "$as_me: error: ambiguous option: $1
20889 Try \`$0 --help' for more information." >&2
20890 { (exit 1); exit 1; }; };;
20891 --help | --hel | -h )
20892 echo "$ac_cs_usage"; exit ;;
20893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20894 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20895 ac_cs_silent=: ;;
20896
20897 # This is an error.
20898 -*) { echo "$as_me: error: unrecognized option: $1
20899 Try \`$0 --help' for more information." >&2
20900 { (exit 1); exit 1; }; } ;;
20901
20902 *) ac_config_targets="$ac_config_targets $1"
20903 ac_need_defaults=false ;;
20904
20905 esac
20906 shift
20907 done
20908
20909 ac_configure_extra_args=
20910
20911 if $ac_cs_silent; then
20912 exec 6>/dev/null
20913 ac_configure_extra_args="$ac_configure_extra_args --silent"
20914 fi
20915
20916 _ACEOF
20917 cat >>$CONFIG_STATUS <<_ACEOF
20918 if \$ac_cs_recheck; then
20919 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20920 CONFIG_SHELL=$SHELL
20921 export CONFIG_SHELL
20922 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20923 fi
20924
20925 _ACEOF
20926 cat >>$CONFIG_STATUS <<\_ACEOF
20927 exec 5>>config.log
20928 {
20929 echo
20930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20931 ## Running $as_me. ##
20932 _ASBOX
20933 echo "$ac_log"
20934 } >&5
20935
20936 _ACEOF
20937 cat >>$CONFIG_STATUS <<_ACEOF
20938 #
20939 # INIT-COMMANDS
20940 #
20941
20942
20943 _ACEOF
20944
20945 cat >>$CONFIG_STATUS <<\_ACEOF
20946
20947 # Handling of arguments.
20948 for ac_config_target in $ac_config_targets
20949 do
20950 case $ac_config_target in
20951 "ots-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ots-config.h" ;;
20952 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20954 "libots-1.pc") CONFIG_FILES="$CONFIG_FILES libots-1.pc" ;;
20955 "ots.spec") CONFIG_FILES="$CONFIG_FILES ots.spec" ;;
20956 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20957 "dic/Makefile") CONFIG_FILES="$CONFIG_FILES dic/Makefile" ;;
20958 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20959 "articles/Makefile") CONFIG_FILES="$CONFIG_FILES articles/Makefile" ;;
20960
20961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20963 { (exit 1); exit 1; }; };;
20964 esac
20965 done
20966
20967
20968 # If the user did not use the arguments to specify the items to instantiate,
20969 # then the envvar interface is used. Set only those that are not.
20970 # We use the long form for the default assignment because of an extremely
20971 # bizarre bug on SunOS 4.1.3.
20972 if $ac_need_defaults; then
20973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20976 fi
20977
20978 # Have a temporary directory for convenience. Make it in the build tree
20979 # simply because there is no reason against having it here, and in addition,
20980 # creating and moving files from /tmp can sometimes cause problems.
20981 # Hook for its removal unless debugging.
20982 # Note that there is a small window in which the directory will not be cleaned:
20983 # after its creation but before its name has been assigned to `$tmp'.
20984 $debug ||
20985 {
20986 tmp=
20987 trap 'exit_status=$?
20988 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20989 ' 0
20990 trap '{ (exit 1); exit 1; }' 1 2 13 15
20991 }
20992 # Create a (secure) tmp directory for tmp files.
20993
20994 {
20995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20996 test -n "$tmp" && test -d "$tmp"
20997 } ||
20998 {
20999 tmp=./conf$$-$RANDOM
21000 (umask 077 && mkdir "$tmp")
21001 } ||
21002 {
21003 echo "$me: cannot create a temporary directory in ." >&2
21004 { (exit 1); exit 1; }
21005 }
21006
21007 #
21008 # Set up the sed scripts for CONFIG_FILES section.
21009 #
21010
21011 # No need to generate the scripts if there are no CONFIG_FILES.
21012 # This happens for instance when ./config.status config.h
21013 if test -n "$CONFIG_FILES"; then
21014
21015 _ACEOF
21016
21017
21018
21019 ac_delim='%!_!# '
21020 for ac_last_try in false false false false false :; do
21021 cat >conf$$subs.sed <<_ACEOF
21022 SHELL!$SHELL$ac_delim
21023 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21024 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21025 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21026 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21027 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21028 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21029 exec_prefix!$exec_prefix$ac_delim
21030 prefix!$prefix$ac_delim
21031 program_transform_name!$program_transform_name$ac_delim
21032 bindir!$bindir$ac_delim
21033 sbindir!$sbindir$ac_delim
21034 libexecdir!$libexecdir$ac_delim
21035 datarootdir!$datarootdir$ac_delim
21036 datadir!$datadir$ac_delim
21037 sysconfdir!$sysconfdir$ac_delim
21038 sharedstatedir!$sharedstatedir$ac_delim
21039 localstatedir!$localstatedir$ac_delim
21040 includedir!$includedir$ac_delim
21041 oldincludedir!$oldincludedir$ac_delim
21042 docdir!$docdir$ac_delim
21043 infodir!$infodir$ac_delim
21044 htmldir!$htmldir$ac_delim
21045 dvidir!$dvidir$ac_delim
21046 pdfdir!$pdfdir$ac_delim
21047 psdir!$psdir$ac_delim
21048 libdir!$libdir$ac_delim
21049 localedir!$localedir$ac_delim
21050 mandir!$mandir$ac_delim
21051 DEFS!$DEFS$ac_delim
21052 ECHO_C!$ECHO_C$ac_delim
21053 ECHO_N!$ECHO_N$ac_delim
21054 ECHO_T!$ECHO_T$ac_delim
21055 LIBS!$LIBS$ac_delim
21056 build_alias!$build_alias$ac_delim
21057 host_alias!$host_alias$ac_delim
21058 target_alias!$target_alias$ac_delim
21059 POPT_REQUIRED!$POPT_REQUIRED$ac_delim
21060 OTS_MAJOR_VERSION!$OTS_MAJOR_VERSION$ac_delim
21061 OTS_MINOR_VERSION!$OTS_MINOR_VERSION$ac_delim
21062 OTS_MICRO_VERSION!$OTS_MICRO_VERSION$ac_delim
21063 OTS_VERSION!$OTS_VERSION$ac_delim
21064 VERSION_INFO!$VERSION_INFO$ac_delim
21065 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21066 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21067 INSTALL_DATA!$INSTALL_DATA$ac_delim
21068 PACKAGE!$PACKAGE$ac_delim
21069 VERSION!$VERSION$ac_delim
21070 ACLOCAL!$ACLOCAL$ac_delim
21071 AUTOCONF!$AUTOCONF$ac_delim
21072 AUTOMAKE!$AUTOMAKE$ac_delim
21073 AUTOHEADER!$AUTOHEADER$ac_delim
21074 MAKEINFO!$MAKEINFO$ac_delim
21075 SET_MAKE!$SET_MAKE$ac_delim
21076 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21077 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21078 MAINT!$MAINT$ac_delim
21079 CC!$CC$ac_delim
21080 CFLAGS!$CFLAGS$ac_delim
21081 LDFLAGS!$LDFLAGS$ac_delim
21082 CPPFLAGS!$CPPFLAGS$ac_delim
21083 ac_ct_CC!$ac_ct_CC$ac_delim
21084 EXEEXT!$EXEEXT$ac_delim
21085 OBJEXT!$OBJEXT$ac_delim
21086 ANSI_CFLAGS!$ANSI_CFLAGS$ac_delim
21087 build!$build$ac_delim
21088 build_cpu!$build_cpu$ac_delim
21089 build_vendor!$build_vendor$ac_delim
21090 build_os!$build_os$ac_delim
21091 host!$host$ac_delim
21092 host_cpu!$host_cpu$ac_delim
21093 host_vendor!$host_vendor$ac_delim
21094 host_os!$host_os$ac_delim
21095 GREP!$GREP$ac_delim
21096 EGREP!$EGREP$ac_delim
21097 LN_S!$LN_S$ac_delim
21098 ECHO!$ECHO$ac_delim
21099 AR!$AR$ac_delim
21100 RANLIB!$RANLIB$ac_delim
21101 STRIP!$STRIP$ac_delim
21102 DLLTOOL!$DLLTOOL$ac_delim
21103 AS!$AS$ac_delim
21104 OBJDUMP!$OBJDUMP$ac_delim
21105 CPP!$CPP$ac_delim
21106 CXX!$CXX$ac_delim
21107 CXXFLAGS!$CXXFLAGS$ac_delim
21108 ac_ct_CXX!$ac_ct_CXX$ac_delim
21109 CXXCPP!$CXXCPP$ac_delim
21110 F77!$F77$ac_delim
21111 FFLAGS!$FFLAGS$ac_delim
21112 ac_ct_F77!$ac_ct_F77$ac_delim
21113 LIBTOOL!$LIBTOOL$ac_delim
21114 PKG_CONFIG!$PKG_CONFIG$ac_delim
21115 OTS_CFLAGS!$OTS_CFLAGS$ac_delim
21116 OTS_LIBS!$OTS_LIBS$ac_delim
21117 POPT_LIBS!$POPT_LIBS$ac_delim
21118 OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
21119 _ACEOF
21120
21121 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21122 break
21123 elif $ac_last_try; then
21124 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21125 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21126 { (exit 1); exit 1; }; }
21127 else
21128 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21129 fi
21130 done
21131
21132 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21133 if test -n "$ac_eof"; then
21134 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21135 ac_eof=`expr $ac_eof + 1`
21136 fi
21137
21138 cat >>$CONFIG_STATUS <<_ACEOF
21139 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21141 _ACEOF
21142 sed '
21143 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21144 s/^/s,@/; s/!/@,|#_!!_#|/
21145 :n
21146 t n
21147 s/'"$ac_delim"'$/,g/; t
21148 s/$/\\/; p
21149 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21150 ' >>$CONFIG_STATUS <conf$$subs.sed
21151 rm -f conf$$subs.sed
21152 cat >>$CONFIG_STATUS <<_ACEOF
21153 CEOF$ac_eof
21154 _ACEOF
21155
21156
21157 ac_delim='%!_!# '
21158 for ac_last_try in false false false false false :; do
21159 cat >conf$$subs.sed <<_ACEOF
21160 OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
21161 PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
21162 PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
21163 HTML_DIR!$HTML_DIR$ac_delim
21164 GTKDOC!$GTKDOC$ac_delim
21165 DB2HTML!$DB2HTML$ac_delim
21166 HAVE_DOCBOOK_TRUE!$HAVE_DOCBOOK_TRUE$ac_delim
21167 HAVE_DOCBOOK_FALSE!$HAVE_DOCBOOK_FALSE$ac_delim
21168 ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
21169 ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
21170 LIBOBJS!$LIBOBJS$ac_delim
21171 LTLIBOBJS!$LTLIBOBJS$ac_delim
21172 _ACEOF
21173
21174 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
21175 break
21176 elif $ac_last_try; then
21177 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21178 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21179 { (exit 1); exit 1; }; }
21180 else
21181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21182 fi
21183 done
21184
21185 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21186 if test -n "$ac_eof"; then
21187 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21188 ac_eof=`expr $ac_eof + 1`
21189 fi
21190
21191 cat >>$CONFIG_STATUS <<_ACEOF
21192 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21194 _ACEOF
21195 sed '
21196 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21197 s/^/s,@/; s/!/@,|#_!!_#|/
21198 :n
21199 t n
21200 s/'"$ac_delim"'$/,g/; t
21201 s/$/\\/; p
21202 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21203 ' >>$CONFIG_STATUS <conf$$subs.sed
21204 rm -f conf$$subs.sed
21205 cat >>$CONFIG_STATUS <<_ACEOF
21206 :end
21207 s/|#_!!_#|//g
21208 CEOF$ac_eof
21209 _ACEOF
21210
21211
21212 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21213 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21214 # trailing colons and then remove the whole line if VPATH becomes empty
21215 # (actually we leave an empty line to preserve line numbers).
21216 if test "x$srcdir" = x.; then
21217 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21218 s/:*\$(srcdir):*/:/
21219 s/:*\${srcdir}:*/:/
21220 s/:*@srcdir@:*/:/
21221 s/^\([^=]*=[ ]*\):*/\1/
21222 s/:*$//
21223 s/^[^=]*=[ ]*$//
21224 }'
21225 fi
21226
21227 cat >>$CONFIG_STATUS <<\_ACEOF
21228 fi # test -n "$CONFIG_FILES"
21229
21230
21231 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21232 do
21233 case $ac_tag in
21234 :[FHLC]) ac_mode=$ac_tag; continue;;
21235 esac
21236 case $ac_mode$ac_tag in
21237 :[FHL]*:*);;
21238 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21239 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21240 { (exit 1); exit 1; }; };;
21241 :[FH]-) ac_tag=-:-;;
21242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21243 esac
21244 ac_save_IFS=$IFS
21245 IFS=:
21246 set x $ac_tag
21247 IFS=$ac_save_IFS
21248 shift
21249 ac_file=$1
21250 shift
21251
21252 case $ac_mode in
21253 :L) ac_source=$1;;
21254 :[FH])
21255 ac_file_inputs=
21256 for ac_f
21257 do
21258 case $ac_f in
21259 -) ac_f="$tmp/stdin";;
21260 *) # Look for the file first in the build tree, then in the source tree
21261 # (if the path is not absolute). The absolute path cannot be DOS-style,
21262 # because $ac_f cannot contain `:'.
21263 test -f "$ac_f" ||
21264 case $ac_f in
21265 [\\/$]*) false;;
21266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21267 esac ||
21268 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21269 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21270 { (exit 1); exit 1; }; };;
21271 esac
21272 ac_file_inputs="$ac_file_inputs $ac_f"
21273 done
21274
21275 # Let's still pretend it is `configure' which instantiates (i.e., don't
21276 # use $as_me), people would be surprised to read:
21277 # /* config.h. Generated by config.status. */
21278 configure_input="Generated from "`IFS=:
21279 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21280 if test x"$ac_file" != x-; then
21281 configure_input="$ac_file. $configure_input"
21282 { echo "$as_me:$LINENO: creating $ac_file" >&5
21283 echo "$as_me: creating $ac_file" >&6;}
21284 fi
21285
21286 case $ac_tag in
21287 *:-:* | *:-) cat >"$tmp/stdin";;
21288 esac
21289 ;;
21290 esac
21291
21292 ac_dir=`$as_dirname -- "$ac_file" ||
21293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21294 X"$ac_file" : 'X\(//\)[^/]' \| \
21295 X"$ac_file" : 'X\(//\)$' \| \
21296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21297 echo X"$ac_file" |
21298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21299 s//\1/
21300 q
21301 }
21302 /^X\(\/\/\)[^/].*/{
21303 s//\1/
21304 q
21305 }
21306 /^X\(\/\/\)$/{
21307 s//\1/
21308 q
21309 }
21310 /^X\(\/\).*/{
21311 s//\1/
21312 q
21313 }
21314 s/.*/./; q'`
21315 { as_dir="$ac_dir"
21316 case $as_dir in #(
21317 -*) as_dir=./$as_dir;;
21318 esac
21319 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21320 as_dirs=
21321 while :; do
21322 case $as_dir in #(
21323 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21324 *) as_qdir=$as_dir;;
21325 esac
21326 as_dirs="'$as_qdir' $as_dirs"
21327 as_dir=`$as_dirname -- "$as_dir" ||
21328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21329 X"$as_dir" : 'X\(//\)[^/]' \| \
21330 X"$as_dir" : 'X\(//\)$' \| \
21331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21332 echo X"$as_dir" |
21333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21334 s//\1/
21335 q
21336 }
21337 /^X\(\/\/\)[^/].*/{
21338 s//\1/
21339 q
21340 }
21341 /^X\(\/\/\)$/{
21342 s//\1/
21343 q
21344 }
21345 /^X\(\/\).*/{
21346 s//\1/
21347 q
21348 }
21349 s/.*/./; q'`
21350 test -d "$as_dir" && break
21351 done
21352 test -z "$as_dirs" || eval "mkdir $as_dirs"
21353 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21354 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21355 { (exit 1); exit 1; }; }; }
21356 ac_builddir=.
21357
21358 case "$ac_dir" in
21359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21360 *)
21361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21362 # A ".." for each directory in $ac_dir_suffix.
21363 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21364 case $ac_top_builddir_sub in
21365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21367 esac ;;
21368 esac
21369 ac_abs_top_builddir=$ac_pwd
21370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21371 # for backward compatibility:
21372 ac_top_builddir=$ac_top_build_prefix
21373
21374 case $srcdir in
21375 .) # We are building in place.
21376 ac_srcdir=.
21377 ac_top_srcdir=$ac_top_builddir_sub
21378 ac_abs_top_srcdir=$ac_pwd ;;
21379 [\\/]* | ?:[\\/]* ) # Absolute name.
21380 ac_srcdir=$srcdir$ac_dir_suffix;
21381 ac_top_srcdir=$srcdir
21382 ac_abs_top_srcdir=$srcdir ;;
21383 *) # Relative name.
21384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21385 ac_top_srcdir=$ac_top_build_prefix$srcdir
21386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21387 esac
21388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21389
21390
21391 case $ac_mode in
21392 :F)
21393 #
21394 # CONFIG_FILE
21395 #
21396
21397 case $INSTALL in
21398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21399 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21400 esac
21401 _ACEOF
21402
21403 cat >>$CONFIG_STATUS <<\_ACEOF
21404 # If the template does not know about datarootdir, expand it.
21405 # FIXME: This hack should be removed a few years after 2.60.
21406 ac_datarootdir_hack=; ac_datarootdir_seen=
21407
21408 case `sed -n '/datarootdir/ {
21409 p
21410 q
21411 }
21412 /@datadir@/p
21413 /@docdir@/p
21414 /@infodir@/p
21415 /@localedir@/p
21416 /@mandir@/p
21417 ' $ac_file_inputs` in
21418 *datarootdir*) ac_datarootdir_seen=yes;;
21419 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21420 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21421 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21422 _ACEOF
21423 cat >>$CONFIG_STATUS <<_ACEOF
21424 ac_datarootdir_hack='
21425 s&@datadir@&$datadir&g
21426 s&@docdir@&$docdir&g
21427 s&@infodir@&$infodir&g
21428 s&@localedir@&$localedir&g
21429 s&@mandir@&$mandir&g
21430 s&\\\${datarootdir}&$datarootdir&g' ;;
21431 esac
21432 _ACEOF
21433
21434 # Neutralize VPATH when `$srcdir' = `.'.
21435 # Shell code in configure.ac might set extrasub.
21436 # FIXME: do we really want to maintain this feature?
21437 cat >>$CONFIG_STATUS <<_ACEOF
21438 sed "$ac_vpsub
21439 $extrasub
21440 _ACEOF
21441 cat >>$CONFIG_STATUS <<\_ACEOF
21442 :t
21443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21444 s&@configure_input@&$configure_input&;t t
21445 s&@top_builddir@&$ac_top_builddir_sub&;t t
21446 s&@srcdir@&$ac_srcdir&;t t
21447 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21448 s&@top_srcdir@&$ac_top_srcdir&;t t
21449 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21450 s&@builddir@&$ac_builddir&;t t
21451 s&@abs_builddir@&$ac_abs_builddir&;t t
21452 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21453 s&@INSTALL@&$ac_INSTALL&;t t
21454 $ac_datarootdir_hack
21455 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21456
21457 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21458 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21459 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21460 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21461 which seems to be undefined. Please make sure it is defined." >&5
21462 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21463 which seems to be undefined. Please make sure it is defined." >&2;}
21464
21465 rm -f "$tmp/stdin"
21466 case $ac_file in
21467 -) cat "$tmp/out"; rm -f "$tmp/out";;
21468 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21469 esac
21470 ;;
21471 :H)
21472 #
21473 # CONFIG_HEADER
21474 #
21475 _ACEOF
21476
21477 # Transform confdefs.h into a sed script `conftest.defines', that
21478 # substitutes the proper values into config.h.in to produce config.h.
21479 rm -f conftest.defines conftest.tail
21480 # First, append a space to every undef/define line, to ease matching.
21481 echo 's/$/ /' >conftest.defines
21482 # Then, protect against being on the right side of a sed subst, or in
21483 # an unquoted here document, in config.status. If some macros were
21484 # called several times there might be several #defines for the same
21485 # symbol, which is useless. But do not sort them, since the last
21486 # AC_DEFINE must be honored.
21487 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21488 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21489 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21490 # PARAMS is the parameter list in the macro definition--in most cases, it's
21491 # just an empty string.
21492 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21493 ac_dB='\\)[ (].*,\\1define\\2'
21494 ac_dC=' '
21495 ac_dD=' ,'
21496
21497 uniq confdefs.h |
21498 sed -n '
21499 t rset
21500 :rset
21501 s/^[ ]*#[ ]*define[ ][ ]*//
21502 t ok
21503 d
21504 :ok
21505 s/[\\&,]/\\&/g
21506 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21507 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21508 ' >>conftest.defines
21509
21510 # Remove the space that was appended to ease matching.
21511 # Then replace #undef with comments. This is necessary, for
21512 # example, in the case of _POSIX_SOURCE, which is predefined and required
21513 # on some systems where configure will not decide to define it.
21514 # (The regexp can be short, since the line contains either #define or #undef.)
21515 echo 's/ $//
21516 s,^[ #]*u.*,/* & */,' >>conftest.defines
21517
21518 # Break up conftest.defines:
21519 ac_max_sed_lines=50
21520
21521 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21522 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21523 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21524 # et cetera.
21525 ac_in='$ac_file_inputs'
21526 ac_out='"$tmp/out1"'
21527 ac_nxt='"$tmp/out2"'
21528
21529 while :
21530 do
21531 # Write a here document:
21532 cat >>$CONFIG_STATUS <<_ACEOF
21533 # First, check the format of the line:
21534 cat >"\$tmp/defines.sed" <<\\CEOF
21535 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21536 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21537 b
21538 :def
21539 _ACEOF
21540 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21541 echo 'CEOF
21542 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21543 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21544 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21545 grep . conftest.tail >/dev/null || break
21546 rm -f conftest.defines
21547 mv conftest.tail conftest.defines
21548 done
21549 rm -f conftest.defines conftest.tail
21550
21551 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21552 cat >>$CONFIG_STATUS <<\_ACEOF
21553 if test x"$ac_file" != x-; then
21554 echo "/* $configure_input */" >"$tmp/config.h"
21555 cat "$ac_result" >>"$tmp/config.h"
21556 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21557 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21558 echo "$as_me: $ac_file is unchanged" >&6;}
21559 else
21560 rm -f $ac_file
21561 mv "$tmp/config.h" $ac_file
21562 fi
21563 else
21564 echo "/* $configure_input */"
21565 cat "$ac_result"
21566 fi
21567 rm -f "$tmp/out12"
21568 ;;
21569
21570 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21571 echo "$as_me: executing $ac_file commands" >&6;}
21572 ;;
21573 esac
21574
21575
21576 case $ac_file$ac_mode in
21577 "default-1":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
21578
21579 esac
21580 done # for ac_tag
21581
21582
21583 { (exit 0); exit 0; }
21584 _ACEOF
21585 chmod +x $CONFIG_STATUS
21586 ac_clean_files=$ac_clean_files_save
21587
21588
21589 # configure is writing to config.log, and then calls config.status.
21590 # config.status does its own redirection, appending to config.log.
21591 # Unfortunately, on DOS this fails, as config.log is still kept open
21592 # by configure, so config.status won't be able to write to it; its
21593 # output is simply discarded. So we exec the FD to /dev/null,
21594 # effectively closing config.log, so it can be properly (re)opened and
21595 # appended to by config.status. When coming back to configure, we
21596 # need to make the FD available again.
21597 if test "$no_create" != yes; then
21598 ac_cs_success=:
21599 ac_config_status_args=
21600 test "$silent" = yes &&
21601 ac_config_status_args="$ac_config_status_args --quiet"
21602 exec 5>/dev/null
21603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21604 exec 5>>config.log
21605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21606 # would make configure fail if this is the last instruction.
21607 $ac_cs_success || { (exit 1); exit 1; }
21608 fi
21609
21610
21611 echo "
21612 ots-$OTS_VERSION
21613
21614 prefix: ${prefix}
21615 compiler: ${CC}
21616 "