fix leak, enhance error values
[ltt-control.git] / trunk / lttng-xenomai / ltt-control-0.24-xenoltt / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for FULL-PACKAGE-NAME VERSION.
4 #
5 # Report bugs to <BUG-REPORT-ADDRESS>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" "" $as_nl"
67
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80 ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105 do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
157 fi
158
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
162 }
163 as_func_success () {
164 as_func_return 0
165 }
166 as_func_failure () {
167 as_func_return 1
168 }
169 as_func_ret_success () {
170 return 0
171 }
172 as_func_ret_failure () {
173 return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178 :
179 else
180 exitcode=1
181 echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190 :
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203 else
204 exitcode=1
205 echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216 :
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274 (exit $1)
275 }
276 as_func_success () {
277 as_func_return 0
278 }
279 as_func_failure () {
280 as_func_return 1
281 }
282 as_func_ret_success () {
283 return 0
284 }
285 as_func_ret_failure () {
286 return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291 :
292 else
293 exitcode=1
294 echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303 :
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316 else
317 exitcode=1
318 echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331 break
332 fi
333
334 fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363 (exit \$1)
364 }
365 as_func_success () {
366 as_func_return 0
367 }
368 as_func_failure () {
369 as_func_return 1
370 }
371 as_func_ret_success () {
372 return 0
373 }
374 as_func_ret_failure () {
375 return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380 :
381 else
382 exitcode=1
383 echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392 :
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405 else
406 exitcode=1
407 echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415 }
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475 *)
476 ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$ECHO in
544 X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548 esac
549
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
559 :
560 else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
569 $*
570 EOF
571 exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590 fi
591
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596 else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 tagnames=${tagnames+${tagnames},}CXX
690
691 tagnames=${tagnames+${tagnames},}F77
692
693 exec 7<&0 </dev/null 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
712
713 # Identity of this package.
714 PACKAGE_NAME='FULL-PACKAGE-NAME'
715 PACKAGE_TARNAME='full-package-name'
716 PACKAGE_VERSION='VERSION'
717 PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
718 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
719
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 # include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 # include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
755
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 INSTALL_PROGRAM
794 INSTALL_SCRIPT
795 INSTALL_DATA
796 CYGPATH_W
797 PACKAGE
798 VERSION
799 ACLOCAL
800 AUTOCONF
801 AUTOMAKE
802 AUTOHEADER
803 MAKEINFO
804 AMTAR
805 install_sh
806 STRIP
807 INSTALL_STRIP_PROGRAM
808 AWK
809 SET_MAKE
810 am__leading_dot
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 CC
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 ac_ct_CC
824 EXEEXT
825 OBJEXT
826 DEPDIR
827 am__include
828 am__quote
829 AMDEP_TRUE
830 AMDEP_FALSE
831 AMDEPBACKSLASH
832 CCDEPMODE
833 am__fastdepCC_TRUE
834 am__fastdepCC_FALSE
835 GREP
836 EGREP
837 LN_S
838 ECHO
839 AR
840 RANLIB
841 CPP
842 CXX
843 CXXFLAGS
844 ac_ct_CXX
845 CXXDEPMODE
846 am__fastdepCXX_TRUE
847 am__fastdepCXX_FALSE
848 CXXCPP
849 F77
850 FFLAGS
851 ac_ct_F77
852 LIBTOOL
853 BASH
854 PACKAGE_CFLAGS
855 PACKAGE_LIBS
856 LIBOBJS
857 lttctlincludedir
858 UTIL_LIBS
859 THREAD_LIBS
860 DEFAULT_INCLUDES
861 LTLIBOBJS'
862 ac_subst_files=''
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
870 CPP
871 CXX
872 CXXFLAGS
873 CCC
874 CXXCPP
875 F77
876 FFLAGS'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
934 fi
935
936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
967 -datadir | --datadir | --datadi | --datad)
968 ac_prev=datadir ;;
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
971
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
979 -disable-* | --disable-*)
980 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
983 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984 { (exit 1); exit 1; }; }
985 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
986 eval enable_$ac_feature=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1005 eval enable_$ac_feature=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid package name: $ac_package" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_package=`echo $ac_package| sed 's/-/_/g'`
1202 eval with_$ac_package=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid package name: $ac_package" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_package=`echo $ac_package | sed 's/-/_/g'`
1211 eval with_$ac_package=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) { echo "$as_me: error: unrecognized option: $ac_option
1232 Try \`$0 --help' for more information." >&2
1233 { (exit 1); exit 1; }; }
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241 { (exit 1); exit 1; }; }
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 { echo "$as_me: error: missing argument to $ac_option" >&2
1259 { (exit 1); exit 1; }; }
1260 fi
1261
1262 # Be sure to have absolute directory names.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267 do
1268 eval ac_val=\$$ac_var
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274 { (exit 1); exit 1; }; }
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 { echo "$as_me: error: Working directory cannot be determined" >&2
1305 { (exit 1); exit 1; }; }
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 { echo "$as_me: error: pwd does not report name of working directory" >&2
1308 { (exit 1); exit 1; }; }
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$0" ||
1316 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$0" : 'X\(//\)[^/]' \| \
1318 X"$0" : 'X\(//\)$' \| \
1319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 echo X"$0" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1348 { (exit 1); exit 1; }; }
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1353 { (exit 1); exit 1; }; }
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/full-package-name]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-dependency-tracking Speeds up one-time builds
1461 --enable-dependency-tracking Do not reject slow dependency extractors
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --disable-largefile omit support for large files
1464
1465 Optional Packages:
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1469 --with-pic try to use only PIC/non-PIC objects [default=use
1470 both]
1471 --with-tags[=TAGS] include additional configurations [automatic]
1472
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CPP C preprocessor
1481 CXX C++ compiler command
1482 CXXFLAGS C++ compiler flags
1483 CXXCPP C++ preprocessor
1484 F77 Fortran 77 compiler command
1485 FFLAGS Fortran 77 compiler flags
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to <BUG-REPORT-ADDRESS>.
1491 _ACEOF
1492 ac_status=$?
1493 fi
1494
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" || continue
1499 ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1546 fi
1547
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550 cat <<\_ACEOF
1551 FULL-PACKAGE-NAME configure VERSION
1552 generated by GNU Autoconf 2.60
1553
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1560 fi
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1564
1565 It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
1566 generated by GNU Autoconf 2.60. Invocation command line was
1567
1568 $ $0 $@
1569
1570 _ACEOF
1571 exec 5>>config.log
1572 {
1573 cat <<_ASUNAME
1574 ## --------- ##
1575 ## Platform. ##
1576 ## --------- ##
1577
1578 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1583
1584 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1586
1587 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1590 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1591 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594
1595 _ASUNAME
1596
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1599 do
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 echo "PATH: $as_dir"
1603 done
1604 IFS=$as_save_IFS
1605
1606 } >&5
1607
1608 cat >&5 <<_ACEOF
1609
1610
1611 ## ----------- ##
1612 ## Core tests. ##
1613 ## ----------- ##
1614
1615 _ACEOF
1616
1617
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_configure_args=
1624 ac_configure_args0=
1625 ac_configure_args1=
1626 ac_must_keep_next=false
1627 for ac_pass in 1 2
1628 do
1629 for ac_arg
1630 do
1631 case $ac_arg in
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 continue ;;
1636 *\'*)
1637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1638 esac
1639 case $ac_pass in
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641 2)
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
1644 ac_must_keep_next=false # Got value, back to normal.
1645 else
1646 case $ac_arg in
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 esac
1654 ;;
1655 -* ) ac_must_keep_next=true ;;
1656 esac
1657 fi
1658 ac_configure_args="$ac_configure_args '$ac_arg'"
1659 ;;
1660 esac
1661 done
1662 done
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1665
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log. We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1673 {
1674 echo
1675
1676 cat <<\_ASBOX
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1680 _ASBOX
1681 echo
1682 # The following way of writing the cache mishandles newlines in values,
1683 (
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in #(
1687 *${as_nl}*)
1688 case $ac_var in #(
1689 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1690 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1691 esac
1692 case $ac_var in #(
1693 _ | IFS | as_nl) ;; #(
1694 *) $as_unset $ac_var ;;
1695 esac ;;
1696 esac
1697 done
1698 (set) 2>&1 |
1699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
1701 sed -n \
1702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 ;; #(
1705 *)
1706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1707 ;;
1708 esac |
1709 sort
1710 )
1711 echo
1712
1713 cat <<\_ASBOX
1714 ## ----------------- ##
1715 ## Output variables. ##
1716 ## ----------------- ##
1717 _ASBOX
1718 echo
1719 for ac_var in $ac_subst_vars
1720 do
1721 eval ac_val=\$$ac_var
1722 case $ac_val in
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 esac
1725 echo "$ac_var='\''$ac_val'\''"
1726 done | sort
1727 echo
1728
1729 if test -n "$ac_subst_files"; then
1730 cat <<\_ASBOX
1731 ## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_files
1737 do
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1745 fi
1746
1747 if test -s confdefs.h; then
1748 cat <<\_ASBOX
1749 ## ----------- ##
1750 ## confdefs.h. ##
1751 ## ----------- ##
1752 _ASBOX
1753 echo
1754 cat confdefs.h
1755 echo
1756 fi
1757 test "$ac_signal" != 0 &&
1758 echo "$as_me: caught signal $ac_signal"
1759 echo "$as_me: exit $exit_status"
1760 } >&5
1761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763 exit $exit_status
1764 ' 0
1765 for ac_signal in 1 2 13 15; do
1766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1767 done
1768 ac_signal=0
1769
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1772
1773 # Predefined preprocessor variables.
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_STRING "$PACKAGE_STRING"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 _ACEOF
1798
1799
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer explicitly selected file to automatically selected ones.
1802 if test -n "$CONFIG_SITE"; then
1803 set x "$CONFIG_SITE"
1804 elif test "x$prefix" != xNONE; then
1805 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1806 else
1807 set x "$ac_default_prefix/share/config.site" \
1808 "$ac_default_prefix/etc/config.site"
1809 fi
1810 shift
1811 for ac_site_file
1812 do
1813 if test -r "$ac_site_file"; then
1814 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1815 echo "$as_me: loading site script $ac_site_file" >&6;}
1816 sed 's/^/| /' "$ac_site_file" >&5
1817 . "$ac_site_file"
1818 fi
1819 done
1820
1821 if test -r "$cache_file"; then
1822 # Some versions of bash will fail to source /dev/null (special
1823 # files actually), so we avoid doing that.
1824 if test -f "$cache_file"; then
1825 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1826 echo "$as_me: loading cache $cache_file" >&6;}
1827 case $cache_file in
1828 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1829 *) . "./$cache_file";;
1830 esac
1831 fi
1832 else
1833 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1834 echo "$as_me: creating cache $cache_file" >&6;}
1835 >$cache_file
1836 fi
1837
1838 # Check that the precious variables saved in the cache have kept the same
1839 # value.
1840 ac_cache_corrupted=false
1841 for ac_var in $ac_precious_vars; do
1842 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1843 eval ac_new_set=\$ac_env_${ac_var}_set
1844 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1845 eval ac_new_val=\$ac_env_${ac_var}_value
1846 case $ac_old_set,$ac_new_set in
1847 set,)
1848 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1850 ac_cache_corrupted=: ;;
1851 ,set)
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,);;
1856 *)
1857 if test "x$ac_old_val" != "x$ac_new_val"; then
1858 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1861 echo "$as_me: former value: $ac_old_val" >&2;}
1862 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1863 echo "$as_me: current value: $ac_new_val" >&2;}
1864 ac_cache_corrupted=:
1865 fi;;
1866 esac
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1869 case $ac_new_val in
1870 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 *) ac_arg=$ac_var=$ac_new_val ;;
1872 esac
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876 esac
1877 fi
1878 done
1879 if $ac_cache_corrupted; then
1880 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884 { (exit 1); exit 1; }; }
1885 fi
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911 ac_ext=c
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918 #AC_WITH_LTDL # not needed ?
1919 am__api_version="1.7"
1920 ac_aux_dir=
1921 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
1935 done
1936 if test -z "$ac_aux_dir"; then
1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1939 { (exit 1); exit 1; }; }
1940 fi
1941
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
1950
1951 # Find a good install program. We prefer a C program (faster),
1952 # so one script is as good as another. But avoid the broken or
1953 # incompatible versions:
1954 # SysV /etc/install, /usr/sbin/install
1955 # SunOS /usr/etc/install
1956 # IRIX /sbin/install
1957 # AIX /bin/install
1958 # AmigaOS /C/install, which installs bootblocks on floppy discs
1959 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1960 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1961 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1962 # OS/2's system install, which has a completely different semantic
1963 # ./install, which can be erroneously created by make from ./install.sh.
1964 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1965 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1966 if test -z "$INSTALL"; then
1967 if test "${ac_cv_path_install+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 # Account for people who put trailing slashes in PATH elements.
1976 case $as_dir/ in
1977 ./ | .// | /cC/* | \
1978 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1979 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1980 /usr/ucb/* ) ;;
1981 *)
1982 # OSF1 and SCO ODT 3.0 have their own names for install.
1983 # Don't use installbsd from OSF since it installs stuff as root
1984 # by default.
1985 for ac_prog in ginstall scoinst install; do
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1988 if test $ac_prog = install &&
1989 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1990 # AIX install. It has an incompatible calling convention.
1991 :
1992 elif test $ac_prog = install &&
1993 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1994 # program-specific install script used by HP pwplus--don't use.
1995 :
1996 else
1997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1998 break 3
1999 fi
2000 fi
2001 done
2002 done
2003 ;;
2004 esac
2005 done
2006 IFS=$as_save_IFS
2007
2008
2009 fi
2010 if test "${ac_cv_path_install+set}" = set; then
2011 INSTALL=$ac_cv_path_install
2012 else
2013 # As a last resort, use the slow shell script. Don't cache a
2014 # value for INSTALL within a source directory, because that will
2015 # break other packages using the cache if that directory is
2016 # removed, or if the value is a relative name.
2017 INSTALL=$ac_install_sh
2018 fi
2019 fi
2020 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2021 echo "${ECHO_T}$INSTALL" >&6; }
2022
2023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2024 # It thinks the first close brace ends the variable substitution.
2025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2026
2027 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2028
2029 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2030
2031 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2032 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2033 # Just in case
2034 sleep 1
2035 echo timestamp > conftest.file
2036 # Do `set' in a subshell so we don't clobber the current shell's
2037 # arguments. Must try -L first in case configure is actually a
2038 # symlink; some systems play weird games with the mod time of symlinks
2039 # (eg FreeBSD returns the mod time of the symlink's containing
2040 # directory).
2041 if (
2042 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2043 if test "$*" = "X"; then
2044 # -L didn't work.
2045 set X `ls -t $srcdir/configure conftest.file`
2046 fi
2047 rm -f conftest.file
2048 if test "$*" != "X $srcdir/configure conftest.file" \
2049 && test "$*" != "X conftest.file $srcdir/configure"; then
2050
2051 # If neither matched, then we have a broken ls. This can happen
2052 # if, for instance, CONFIG_SHELL is bash and it inherits a
2053 # broken ls alias from the environment. This has actually
2054 # happened. Such a system could not be considered "sane".
2055 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2056 alias in your environment" >&5
2057 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2058 alias in your environment" >&2;}
2059 { (exit 1); exit 1; }; }
2060 fi
2061
2062 test "$2" = conftest.file
2063 )
2064 then
2065 # Ok.
2066 :
2067 else
2068 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2069 Check your system clock" >&5
2070 echo "$as_me: error: newly created file is older than distributed files!
2071 Check your system clock" >&2;}
2072 { (exit 1); exit 1; }; }
2073 fi
2074 { echo "$as_me:$LINENO: result: yes" >&5
2075 echo "${ECHO_T}yes" >&6; }
2076 test "$program_prefix" != NONE &&
2077 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2078 # Use a double $ so make ignores it.
2079 test "$program_suffix" != NONE &&
2080 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2081 # Double any \ or $. echo might interpret backslashes.
2082 # By default was `s,x,x', remove it if useless.
2083 cat <<\_ACEOF >conftest.sed
2084 s/[\\$]/&&/g;s/;s,x,x,$//
2085 _ACEOF
2086 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2087 rm -f conftest.sed
2088
2089
2090 # expand $ac_aux_dir to an absolute path
2091 am_aux_dir=`cd $ac_aux_dir && pwd`
2092
2093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2094 # Use eval to expand $SHELL
2095 if eval "$MISSING --run true"; then
2096 am_missing_run="$MISSING --run "
2097 else
2098 am_missing_run=
2099 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2101 fi
2102
2103 for ac_prog in gawk mawk nawk awk
2104 do
2105 # Extract the first word of "$ac_prog", so it can be a program name with args.
2106 set dummy $ac_prog; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_AWK+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 if test -n "$AWK"; then
2113 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_AWK="$ac_prog"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 break 2
2125 fi
2126 done
2127 done
2128 IFS=$as_save_IFS
2129
2130 fi
2131 fi
2132 AWK=$ac_cv_prog_AWK
2133 if test -n "$AWK"; then
2134 { echo "$as_me:$LINENO: result: $AWK" >&5
2135 echo "${ECHO_T}$AWK" >&6; }
2136 else
2137 { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2139 fi
2140
2141
2142 test -n "$AWK" && break
2143 done
2144
2145 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2146 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2147 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2148 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 cat >conftest.make <<\_ACEOF
2152 SHELL = /bin/sh
2153 all:
2154 @echo '@@@%%%=$(MAKE)=@@@%%%'
2155 _ACEOF
2156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2158 *@@@%%%=?*=@@@%%%*)
2159 eval ac_cv_prog_make_${ac_make}_set=yes;;
2160 *)
2161 eval ac_cv_prog_make_${ac_make}_set=no;;
2162 esac
2163 rm -f conftest.make
2164 fi
2165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2166 { echo "$as_me:$LINENO: result: yes" >&5
2167 echo "${ECHO_T}yes" >&6; }
2168 SET_MAKE=
2169 else
2170 { echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6; }
2172 SET_MAKE="MAKE=${MAKE-make}"
2173 fi
2174
2175 rm -rf .tst 2>/dev/null
2176 mkdir .tst 2>/dev/null
2177 if test -d .tst; then
2178 am__leading_dot=.
2179 else
2180 am__leading_dot=_
2181 fi
2182 rmdir .tst 2>/dev/null
2183
2184 # test to see if srcdir already configured
2185 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2186 test -f $srcdir/config.status; then
2187 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2188 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2189 { (exit 1); exit 1; }; }
2190 fi
2191
2192 # test whether we have cygpath
2193 if test -z "$CYGPATH_W"; then
2194 if (cygpath --version) >/dev/null 2>/dev/null; then
2195 CYGPATH_W='cygpath -w'
2196 else
2197 CYGPATH_W=echo
2198 fi
2199 fi
2200
2201
2202 # Define the identity of the package.
2203 PACKAGE=ltt-control
2204 VERSION=0.24-17092006
2205
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE "$PACKAGE"
2209 _ACEOF
2210
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define VERSION "$VERSION"
2214 _ACEOF
2215
2216 # Some tools Automake needs.
2217
2218 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2219
2220
2221 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2222
2223
2224 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2225
2226
2227 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2228
2229
2230 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2231
2232
2233 AMTAR=${AMTAR-"${am_missing_run}tar"}
2234
2235 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2236
2237 # Installed binaries are usually stripped using `strip' when the user
2238 # run `make install-strip'. However `strip' might not be the right
2239 # tool to use in cross-compilation environments, therefore Automake
2240 # will honor the `STRIP' environment variable to overrule this program.
2241 if test "$cross_compiling" != no; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}strip; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_STRIP+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test -n "$STRIP"; then
2251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2263 fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 STRIP=$ac_cv_prog_STRIP
2271 if test -n "$STRIP"; then
2272 { echo "$as_me:$LINENO: result: $STRIP" >&5
2273 echo "${ECHO_T}$STRIP" >&6; }
2274 else
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2277 fi
2278
2279
2280 fi
2281 if test -z "$ac_cv_prog_STRIP"; then
2282 ac_ct_STRIP=$STRIP
2283 # Extract the first word of "strip", so it can be a program name with args.
2284 set dummy strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$ac_ct_STRIP"; then
2291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_ac_ct_STRIP="strip"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2311 if test -n "$ac_ct_STRIP"; then
2312 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2313 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2314 else
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2317 fi
2318
2319 if test "x$ac_ct_STRIP" = x; then
2320 STRIP=":"
2321 else
2322 case $cross_compiling:$ac_tool_warned in
2323 yes:)
2324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&5
2327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2328 whose name does not start with the host triplet. If you think this
2329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2330 ac_tool_warned=yes ;;
2331 esac
2332 STRIP=$ac_ct_STRIP
2333 fi
2334 else
2335 STRIP="$ac_cv_prog_STRIP"
2336 fi
2337
2338 fi
2339 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2340
2341 # We need awk for the "check" target. The system "awk" is bad on
2342 # some platforms.
2343
2344
2345
2346 ac_config_headers="$ac_config_headers config.h"
2347
2348 # Check whether --enable-shared was given.
2349 if test "${enable_shared+set}" = set; then
2350 enableval=$enable_shared; p=${PACKAGE-default}
2351 case $enableval in
2352 yes) enable_shared=yes ;;
2353 no) enable_shared=no ;;
2354 *)
2355 enable_shared=no
2356 # Look at the argument we got. We use all the common list separators.
2357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2358 for pkg in $enableval; do
2359 IFS="$lt_save_ifs"
2360 if test "X$pkg" = "X$p"; then
2361 enable_shared=yes
2362 fi
2363 done
2364 IFS="$lt_save_ifs"
2365 ;;
2366 esac
2367 else
2368 enable_shared=yes
2369 fi
2370
2371
2372 # Check whether --enable-static was given.
2373 if test "${enable_static+set}" = set; then
2374 enableval=$enable_static; p=${PACKAGE-default}
2375 case $enableval in
2376 yes) enable_static=yes ;;
2377 no) enable_static=no ;;
2378 *)
2379 enable_static=no
2380 # Look at the argument we got. We use all the common list separators.
2381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2382 for pkg in $enableval; do
2383 IFS="$lt_save_ifs"
2384 if test "X$pkg" = "X$p"; then
2385 enable_static=yes
2386 fi
2387 done
2388 IFS="$lt_save_ifs"
2389 ;;
2390 esac
2391 else
2392 enable_static=yes
2393 fi
2394
2395
2396 # Check whether --enable-fast-install was given.
2397 if test "${enable_fast_install+set}" = set; then
2398 enableval=$enable_fast_install; p=${PACKAGE-default}
2399 case $enableval in
2400 yes) enable_fast_install=yes ;;
2401 no) enable_fast_install=no ;;
2402 *)
2403 enable_fast_install=no
2404 # Look at the argument we got. We use all the common list separators.
2405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2406 for pkg in $enableval; do
2407 IFS="$lt_save_ifs"
2408 if test "X$pkg" = "X$p"; then
2409 enable_fast_install=yes
2410 fi
2411 done
2412 IFS="$lt_save_ifs"
2413 ;;
2414 esac
2415 else
2416 enable_fast_install=yes
2417 fi
2418
2419
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2424 { (exit 1); exit 1; }; }
2425
2426 { echo "$as_me:$LINENO: checking build system type" >&5
2427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_build+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2437 { (exit 1); exit 1; }; }
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2441 { (exit 1); exit 1; }; }
2442
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2445 echo "${ECHO_T}$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2447 *-*-*) ;;
2448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2449 echo "$as_me: error: invalid value of canonical build" >&2;}
2450 { (exit 1); exit 1; }; };;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2464
2465
2466 { echo "$as_me:$LINENO: checking host system type" >&5
2467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2468 if test "${ac_cv_host+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if test "x$host_alias" = x; then
2472 ac_cv_host=$ac_cv_build
2473 else
2474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2477 { (exit 1); exit 1; }; }
2478 fi
2479
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2482 echo "${ECHO_T}$ac_cv_host" >&6; }
2483 case $ac_cv_host in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2486 echo "$as_me: error: invalid value of canonical host" >&2;}
2487 { (exit 1); exit 1; }; };;
2488 esac
2489 host=$ac_cv_host
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_host
2492 shift
2493 host_cpu=$1
2494 host_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 host_os=$*
2499 IFS=$ac_save_IFS
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 DEPDIR="${am__leading_dot}deps"
2504
2505 ac_config_commands="$ac_config_commands depfiles"
2506
2507
2508 am_make=${MAKE-make}
2509 cat > confinc << 'END'
2510 am__doit:
2511 @echo done
2512 .PHONY: am__doit
2513 END
2514 # If we don't find an include directive, just comment out the code.
2515 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2516 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2517 am__include="#"
2518 am__quote=
2519 _am_result=none
2520 # First try GNU make style include.
2521 echo "include confinc" > confmf
2522 # We grep out `Entering directory' and `Leaving directory'
2523 # messages which can occur if `w' ends up in MAKEFLAGS.
2524 # In particular we don't look at `^make:' because GNU make might
2525 # be invoked under some other name (usually "gmake"), in which
2526 # case it prints its new name instead of `make'.
2527 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2528 am__include=include
2529 am__quote=
2530 _am_result=GNU
2531 fi
2532 # Now try BSD make style include.
2533 if test "$am__include" = "#"; then
2534 echo '.include "confinc"' > confmf
2535 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2536 am__include=.include
2537 am__quote="\""
2538 _am_result=BSD
2539 fi
2540 fi
2541
2542
2543 { echo "$as_me:$LINENO: result: $_am_result" >&5
2544 echo "${ECHO_T}$_am_result" >&6; }
2545 rm -f confinc confmf
2546
2547 # Check whether --enable-dependency-tracking was given.
2548 if test "${enable_dependency_tracking+set}" = set; then
2549 enableval=$enable_dependency_tracking;
2550 fi
2551
2552 if test "x$enable_dependency_tracking" != xno; then
2553 am_depcomp="$ac_aux_dir/depcomp"
2554 AMDEPBACKSLASH='\'
2555 fi
2556
2557
2558 if test "x$enable_dependency_tracking" != xno; then
2559 AMDEP_TRUE=
2560 AMDEP_FALSE='#'
2561 else
2562 AMDEP_TRUE='#'
2563 AMDEP_FALSE=
2564 fi
2565
2566
2567
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 CC=$ac_cv_prog_CC
2602 if test -n "$CC"; then
2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2605 else
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610
2611 fi
2612 if test -z "$ac_cv_prog_CC"; then
2613 ac_ct_CC=$CC
2614 # Extract the first word of "gcc", so it can be a program name with args.
2615 set dummy gcc; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 if test -n "$ac_ct_CC"; then
2622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_ac_ct_CC="gcc"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2642 if test -n "$ac_ct_CC"; then
2643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2644 echo "${ECHO_T}$ac_ct_CC" >&6; }
2645 else
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2648 fi
2649
2650 if test "x$ac_ct_CC" = x; then
2651 CC=""
2652 else
2653 case $cross_compiling:$ac_tool_warned in
2654 yes:)
2655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet. If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&5
2658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2659 whose name does not start with the host triplet. If you think this
2660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2661 ac_tool_warned=yes ;;
2662 esac
2663 CC=$ac_ct_CC
2664 fi
2665 else
2666 CC="$ac_cv_prog_CC"
2667 fi
2668
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}cc; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_CC="${ac_tool_prefix}cc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { echo "$as_me:$LINENO: result: $CC" >&5
2701 echo "${ECHO_T}$CC" >&6; }
2702 else
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707
2708 fi
2709 fi
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 ac_prog_rejected=no
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected=yes
2731 continue
2732 fi
2733 ac_cv_prog_CC="cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 if test $ac_prog_rejected = yes; then
2742 # We found a bogon in the path, so make sure we never use it.
2743 set dummy $ac_cv_prog_CC
2744 shift
2745 if test $# != 0; then
2746 # We chose a different compiler from the bogus one.
2747 # However, it has the same basename, so the bogon will be chosen
2748 # first if we set CC to just the basename; use the full file name.
2749 shift
2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2751 fi
2752 fi
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2759 else
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765 fi
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in cl.exe
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6; }
2801 else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2804 fi
2805
2806
2807 test -n "$CC" && break
2808 done
2809 fi
2810 if test -z "$CC"; then
2811 ac_ct_CC=$CC
2812 for ac_prog in cl.exe
2813 do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CC="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2844 echo "${ECHO_T}$ac_ct_CC" >&6; }
2845 else
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2849
2850
2851 test -n "$ac_ct_CC" && break
2852 done
2853
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867 CC=$ac_ct_CC
2868 fi
2869 fi
2870
2871 fi
2872
2873
2874 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: no acceptable C compiler found in \$PATH
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
2879
2880 # Provide some information about the compiler.
2881 echo "$as_me:$LINENO: checking for C compiler version" >&5
2882 ac_compiler=`set X $ac_compile; echo $2`
2883 { (ac_try="$ac_compiler --version >&5"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler --version >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try="$ac_compiler -V >&5"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -V >&5") 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920
2921 int
2922 main ()
2923 {
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 ac_clean_files_save=$ac_clean_files
2930 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2931 # Try to create an executable without -o first, disregard a.out.
2932 # It will help us diagnose broken compilers, and finding out an intuition
2933 # of exeext.
2934 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2935 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2936 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2937 #
2938 # List of possible output files, starting from the most likely.
2939 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2940 # only as a last resort. b.out is created by i960 compilers.
2941 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2942 #
2943 # The IRIX 6 linker writes into existing files which may not be
2944 # executable, retaining their permissions. Remove them first so a
2945 # subsequent execution test works.
2946 ac_rmfiles=
2947 for ac_file in $ac_files
2948 do
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2951 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2952 esac
2953 done
2954 rm -f $ac_rmfiles
2955
2956 if { (ac_try="$ac_link_default"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_link_default") 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2967 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2968 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2969 # so that the user can short-circuit this test for compilers unknown to
2970 # Autoconf.
2971 for ac_file in $ac_files
2972 do
2973 test -f "$ac_file" || continue
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2976 ;;
2977 [ab].out )
2978 # We found the default executable, but exeext='' is most
2979 # certainly right.
2980 break;;
2981 *.* )
2982 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2983 then :; else
2984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985 fi
2986 # We set ac_cv_exeext here because the later test for it is not
2987 # safe: cross compilers may not add the suffix if given an `-o'
2988 # argument, so we may need to know it at that point already.
2989 # Even if this section looks crufty: it has the advantage of
2990 # actually working.
2991 break;;
2992 * )
2993 break;;
2994 esac
2995 done
2996 test "$ac_cv_exeext" = no && ac_cv_exeext=
2997
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&2;}
3006 { (exit 77); exit 77; }; }
3007 fi
3008
3009 ac_exeext=$ac_cv_exeext
3010 { echo "$as_me:$LINENO: result: $ac_file" >&5
3011 echo "${ECHO_T}$ac_file" >&6; }
3012
3013 # Check that the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020 if { ac_try='./$ac_file'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 cross_compiling=no
3031 else
3032 if test "$cross_compiling" = maybe; then
3033 cross_compiling=yes
3034 else
3035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043 fi
3044 fi
3045 { echo "$as_me:$LINENO: result: yes" >&5
3046 echo "${ECHO_T}yes" >&6; }
3047
3048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check that the compiler produces executables we can run. If not, either
3051 # the compiler is broken, or we cross compile.
3052 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3054 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 echo "${ECHO_T}$cross_compiling" >&6; }
3056
3057 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3059 if { (ac_try="$ac_link"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_link") 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; then
3069 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3070 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3071 # work properly (i.e., refer to `conftest.exe'), while it won't with
3072 # `rm'.
3073 for ac_file in conftest.exe conftest conftest.*; do
3074 test -f "$ac_file" || continue
3075 case $ac_file in
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3077 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 break;;
3079 * ) break;;
3080 esac
3081 done
3082 else
3083 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3088 fi
3089
3090 rm -f conftest$ac_cv_exeext
3091 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3092 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3093
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3098 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3099 if test "${ac_cv_objext+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.o conftest.obj
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 break;;
3134 esac
3135 done
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." >&2;}
3144 { (exit 1); exit 1; }; }
3145 fi
3146
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3148 fi
3149 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3150 echo "${ECHO_T}$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3152 ac_objext=$OBJEXT
3153 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164
3165 int
3166 main ()
3167 {
3168 #ifndef __GNUC__
3169 choke me
3170 #endif
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191 { (case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_compiler_gnu=yes
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 ac_compiler_gnu=no
3216 fi
3217
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220
3221 fi
3222 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3224 GCC=`test $ac_compiler_gnu = yes && echo yes`
3225 ac_test_CFLAGS=${CFLAGS+set}
3226 ac_save_CFLAGS=$CFLAGS
3227 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_g+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 ac_save_c_werror_flag=$ac_c_werror_flag
3233 ac_c_werror_flag=yes
3234 ac_cv_prog_cc_g=no
3235 CFLAGS="-g"
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3266 { (case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_try") 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; } &&
3275 { ac_try='test -s conftest.$ac_objext'
3276 { (case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_cv_prog_cc_g=yes
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 CFLAGS=""
3291 cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297
3298 int
3299 main ()
3300 {
3301
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compile") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3321 { (case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_try") 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 :
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 ac_c_werror_flag=$ac_save_c_werror_flag
3346 CFLAGS="-g"
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353
3354 int
3355 main ()
3356 {
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_prog_cc_g=yes
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401
3402 fi
3403
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 fi
3406
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 fi
3409
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_c_werror_flag=$ac_save_c_werror_flag
3412 fi
3413 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3414 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3415 if test "$ac_test_CFLAGS" = set; then
3416 CFLAGS=$ac_save_CFLAGS
3417 elif test $ac_cv_prog_cc_g = yes; then
3418 if test "$GCC" = yes; then
3419 CFLAGS="-g -O2"
3420 else
3421 CFLAGS="-g"
3422 fi
3423 else
3424 if test "$GCC" = yes; then
3425 CFLAGS="-O2"
3426 else
3427 CFLAGS=
3428 fi
3429 fi
3430 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3431 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3432 if test "${ac_cv_prog_cc_c89+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 ac_cv_prog_cc_c89=no
3436 ac_save_CC=$CC
3437 cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 #include <stdarg.h>
3444 #include <stdio.h>
3445 #include <sys/types.h>
3446 #include <sys/stat.h>
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3451 char **p;
3452 int i;
3453 {
3454 return p[i];
3455 }
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3457 {
3458 char *s;
3459 va_list v;
3460 va_start (v,p);
3461 s = g (p, va_arg (v,int));
3462 va_end (v);
3463 return s;
3464 }
3465
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3474
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476 inside strings and character constants. */
3477 #define FOO(x) 'x'
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3479
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3484 int argc;
3485 char **argv;
3486 int
3487 main ()
3488 {
3489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496 do
3497 CC="$ac_save_CC $ac_arg"
3498 rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3513 { (case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_try") 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_try") 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 ac_cv_prog_cc_c89=$ac_arg
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537
3538 fi
3539
3540 rm -f core conftest.err conftest.$ac_objext
3541 test "x$ac_cv_prog_cc_c89" != "xno" && break
3542 done
3543 rm -f conftest.$ac_ext
3544 CC=$ac_save_CC
3545
3546 fi
3547 # AC_CACHE_VAL
3548 case "x$ac_cv_prog_cc_c89" in
3549 x)
3550 { echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6; } ;;
3552 xno)
3553 { echo "$as_me:$LINENO: result: unsupported" >&5
3554 echo "${ECHO_T}unsupported" >&6; } ;;
3555 *)
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3558 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3559 esac
3560
3561
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568 depcc="$CC" am_compiler_list=
3569
3570 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3571 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3572 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576 # We make a subdir and do the tests there. Otherwise we can end up
3577 # making bogus files that we don't know about and never remove. For
3578 # instance it was reported that on HP-UX the gcc test will end up
3579 # making a dummy file named `D' -- because `-MD' means `put the output
3580 # in D'.
3581 mkdir conftest.dir
3582 # Copy depcomp to subdir because otherwise we won't find it if we're
3583 # using a relative directory.
3584 cp "$am_depcomp" conftest.dir
3585 cd conftest.dir
3586 # We will build objects and dependencies in a subdirectory because
3587 # it helps to detect inapplicable dependency modes. For instance
3588 # both Tru64's cc and ICC support -MD to output dependencies as a
3589 # side effect of compilation, but ICC will put the dependencies in
3590 # the current directory while Tru64 will put them in the object
3591 # directory.
3592 mkdir sub
3593
3594 am_cv_CC_dependencies_compiler_type=none
3595 if test "$am_compiler_list" = ""; then
3596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597 fi
3598 for depmode in $am_compiler_list; do
3599 # Setup a source with many dependencies, because some compilers
3600 # like to wrap large dependency lists on column 80 (with \), and
3601 # we should not choose a depcomp mode which is confused by this.
3602 #
3603 # We need to recreate these files for each test, as the compiler may
3604 # overwrite some of them when testing with obscure command lines.
3605 # This happens at least with the AIX C compiler.
3606 : > sub/conftest.c
3607 for i in 1 2 3 4 5 6; do
3608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3609 : > sub/conftst$i.h
3610 done
3611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3612
3613 case $depmode in
3614 nosideeffect)
3615 # after this tag, mechanisms are not by side-effect, so they'll
3616 # only be used when explicitly requested
3617 if test "x$enable_dependency_tracking" = xyes; then
3618 continue
3619 else
3620 break
3621 fi
3622 ;;
3623 none) break ;;
3624 esac
3625 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626 # mode. It turns out that the SunPro C++ compiler does not properly
3627 # handle `-M -o', and we need to detect this.
3628 if depmode=$depmode \
3629 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3632 >/dev/null 2>conftest.err &&
3633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored.
3639 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3640 am_cv_CC_dependencies_compiler_type=$depmode
3641 break
3642 fi
3643 fi
3644 done
3645
3646 cd ..
3647 rm -rf conftest.dir
3648 else
3649 am_cv_CC_dependencies_compiler_type=none
3650 fi
3651
3652 fi
3653 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3654 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3655 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3656
3657
3658
3659 if
3660 test "x$enable_dependency_tracking" != xno \
3661 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3662 am__fastdepCC_TRUE=
3663 am__fastdepCC_FALSE='#'
3664 else
3665 am__fastdepCC_TRUE='#'
3666 am__fastdepCC_FALSE=
3667 fi
3668
3669
3670 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3672 if test "${lt_cv_path_SED+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 # Loop through the user's path and test for sed and gsed.
3676 # Then use that list of sed's as ones to test for truncation.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for lt_ac_prog in sed gsed; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3685 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3686 fi
3687 done
3688 done
3689 done
3690 lt_ac_max=0
3691 lt_ac_count=0
3692 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3693 # along with /bin/sed that truncates output.
3694 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3695 test ! -f $lt_ac_sed && continue
3696 cat /dev/null > conftest.in
3697 lt_ac_count=0
3698 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3699 # Check for GNU sed and select it if it is found.
3700 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3701 lt_cv_path_SED=$lt_ac_sed
3702 break
3703 fi
3704 while true; do
3705 cat conftest.in conftest.in >conftest.tmp
3706 mv conftest.tmp conftest.in
3707 cp conftest.in conftest.nl
3708 echo >>conftest.nl
3709 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3710 cmp -s conftest.out conftest.nl || break
3711 # 10000 chars as input seems more than enough
3712 test $lt_ac_count -gt 10 && break
3713 lt_ac_count=`expr $lt_ac_count + 1`
3714 if test $lt_ac_count -gt $lt_ac_max; then
3715 lt_ac_max=$lt_ac_count
3716 lt_cv_path_SED=$lt_ac_sed
3717 fi
3718 done
3719 done
3720
3721 fi
3722
3723 SED=$lt_cv_path_SED
3724 { echo "$as_me:$LINENO: result: $SED" >&5
3725 echo "${ECHO_T}$SED" >&6; }
3726
3727 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3728 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3729 if test "${ac_cv_path_GREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 # Extract the first word of "grep ggrep" to use in msg output
3733 if test -z "$GREP"; then
3734 set dummy grep ggrep; ac_prog_name=$2
3735 if test "${ac_cv_path_GREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_path_GREP_found=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_prog in grep ggrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3749 # Check for GNU ac_path_GREP and select it if it is found.
3750 # Check for GNU $ac_path_GREP
3751 case `"$ac_path_GREP" --version 2>&1` in
3752 *GNU*)
3753 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3754 *)
3755 ac_count=0
3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3757 while :
3758 do
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
3762 echo 'GREP' >> "conftest.nl"
3763 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3765 ac_count=`expr $ac_count + 1`
3766 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_GREP="$ac_path_GREP"
3769 ac_path_GREP_max=$ac_count
3770 fi
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3773 done
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775 esac
3776
3777
3778 $ac_path_GREP_found && break 3
3779 done
3780 done
3781
3782 done
3783 IFS=$as_save_IFS
3784
3785
3786 fi
3787
3788 GREP="$ac_cv_path_GREP"
3789 if test -z "$GREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3793 fi
3794
3795 else
3796 ac_cv_path_GREP=$GREP
3797 fi
3798
3799
3800 fi
3801 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3802 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3803 GREP="$ac_cv_path_GREP"
3804
3805
3806 { echo "$as_me:$LINENO: checking for egrep" >&5
3807 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3808 if test "${ac_cv_path_EGREP+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3812 then ac_cv_path_EGREP="$GREP -E"
3813 else
3814 # Extract the first word of "egrep" to use in msg output
3815 if test -z "$EGREP"; then
3816 set dummy egrep; ac_prog_name=$2
3817 if test "${ac_cv_path_EGREP+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 ac_path_EGREP_found=false
3821 # Loop through the user's path and test for each of PROGNAME-LIST
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_prog in egrep; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3830 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3831 # Check for GNU ac_path_EGREP and select it if it is found.
3832 # Check for GNU $ac_path_EGREP
3833 case `"$ac_path_EGREP" --version 2>&1` in
3834 *GNU*)
3835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3836 *)
3837 ac_count=0
3838 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3839 while :
3840 do
3841 cat "conftest.in" "conftest.in" >"conftest.tmp"
3842 mv "conftest.tmp" "conftest.in"
3843 cp "conftest.in" "conftest.nl"
3844 echo 'EGREP' >> "conftest.nl"
3845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3847 ac_count=`expr $ac_count + 1`
3848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3849 # Best one so far, save it but keep looking for a better one
3850 ac_cv_path_EGREP="$ac_path_EGREP"
3851 ac_path_EGREP_max=$ac_count
3852 fi
3853 # 10*(2^10) chars as input seems more than enough
3854 test $ac_count -gt 10 && break
3855 done
3856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3857 esac
3858
3859
3860 $ac_path_EGREP_found && break 3
3861 done
3862 done
3863
3864 done
3865 IFS=$as_save_IFS
3866
3867
3868 fi
3869
3870 EGREP="$ac_cv_path_EGREP"
3871 if test -z "$EGREP"; then
3872 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3873 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3874 { (exit 1); exit 1; }; }
3875 fi
3876
3877 else
3878 ac_cv_path_EGREP=$EGREP
3879 fi
3880
3881
3882 fi
3883 fi
3884 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3885 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3886 EGREP="$ac_cv_path_EGREP"
3887
3888
3889
3890 # Check whether --with-gnu-ld was given.
3891 if test "${with_gnu_ld+set}" = set; then
3892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3893 else
3894 with_gnu_ld=no
3895 fi
3896
3897 ac_prog=ld
3898 if test "$GCC" = yes; then
3899 # Check if gcc -print-prog-name=ld gives a path.
3900 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3901 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3902 case $host in
3903 *-*-mingw*)
3904 # gcc leaves a trailing carriage return which upsets mingw
3905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3906 *)
3907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3908 esac
3909 case $ac_prog in
3910 # Accept absolute paths.
3911 [\\/]* | ?:[\\/]*)
3912 re_direlt='/[^/][^/]*/\.\./'
3913 # Canonicalize the pathname of ld
3914 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3915 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3916 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3917 done
3918 test -z "$LD" && LD="$ac_prog"
3919 ;;
3920 "")
3921 # If it fails, then pretend we aren't using GCC.
3922 ac_prog=ld
3923 ;;
3924 *)
3925 # If it is relative, then search for the first ld in PATH.
3926 with_gnu_ld=unknown
3927 ;;
3928 esac
3929 elif test "$with_gnu_ld" = yes; then
3930 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3931 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3932 else
3933 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3934 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3935 fi
3936 if test "${lt_cv_path_LD+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 if test -z "$LD"; then
3940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3941 for ac_dir in $PATH; do
3942 IFS="$lt_save_ifs"
3943 test -z "$ac_dir" && ac_dir=.
3944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3945 lt_cv_path_LD="$ac_dir/$ac_prog"
3946 # Check to see if the program is GNU ld. I'd rather use --version,
3947 # but apparently some variants of GNU ld only accept -v.
3948 # Break only if it was the GNU/non-GNU ld that we prefer.
3949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3950 *GNU* | *'with BFD'*)
3951 test "$with_gnu_ld" != no && break
3952 ;;
3953 *)
3954 test "$with_gnu_ld" != yes && break
3955 ;;
3956 esac
3957 fi
3958 done
3959 IFS="$lt_save_ifs"
3960 else
3961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3962 fi
3963 fi
3964
3965 LD="$lt_cv_path_LD"
3966 if test -n "$LD"; then
3967 { echo "$as_me:$LINENO: result: $LD" >&5
3968 echo "${ECHO_T}$LD" >&6; }
3969 else
3970 { echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6; }
3972 fi
3973 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3974 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3975 { (exit 1); exit 1; }; }
3976 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3977 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3978 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3982 case `$LD -v 2>&1 </dev/null` in
3983 *GNU* | *'with BFD'*)
3984 lt_cv_prog_gnu_ld=yes
3985 ;;
3986 *)
3987 lt_cv_prog_gnu_ld=no
3988 ;;
3989 esac
3990 fi
3991 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3992 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3993 with_gnu_ld=$lt_cv_prog_gnu_ld
3994
3995
3996 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3997 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3998 if test "${lt_cv_ld_reload_flag+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 lt_cv_ld_reload_flag='-r'
4002 fi
4003 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4004 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4005 reload_flag=$lt_cv_ld_reload_flag
4006 case $reload_flag in
4007 "" | " "*) ;;
4008 *) reload_flag=" $reload_flag" ;;
4009 esac
4010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4011 case $host_os in
4012 darwin*)
4013 if test "$GCC" = yes; then
4014 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4015 else
4016 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4017 fi
4018 ;;
4019 esac
4020
4021 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4022 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4023 if test "${lt_cv_path_NM+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 if test -n "$NM"; then
4027 # Let the user override the test.
4028 lt_cv_path_NM="$NM"
4029 else
4030 lt_nm_to_check="${ac_tool_prefix}nm"
4031 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4032 lt_nm_to_check="$lt_nm_to_check nm"
4033 fi
4034 for lt_tmp_nm in $lt_nm_to_check; do
4035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4036 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4037 IFS="$lt_save_ifs"
4038 test -z "$ac_dir" && ac_dir=.
4039 tmp_nm="$ac_dir/$lt_tmp_nm"
4040 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4041 # Check to see if the nm accepts a BSD-compat flag.
4042 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4043 # nm: unknown option "B" ignored
4044 # Tru64's nm complains that /dev/null is an invalid object file
4045 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4046 */dev/null* | *'Invalid file or object type'*)
4047 lt_cv_path_NM="$tmp_nm -B"
4048 break
4049 ;;
4050 *)
4051 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4052 */dev/null*)
4053 lt_cv_path_NM="$tmp_nm -p"
4054 break
4055 ;;
4056 *)
4057 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4058 continue # so that we can try to find one that supports BSD flags
4059 ;;
4060 esac
4061 ;;
4062 esac
4063 fi
4064 done
4065 IFS="$lt_save_ifs"
4066 done
4067 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4068 fi
4069 fi
4070 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4071 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4072 NM="$lt_cv_path_NM"
4073
4074 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4075 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4076 LN_S=$as_ln_s
4077 if test "$LN_S" = "ln -s"; then
4078 { echo "$as_me:$LINENO: result: yes" >&5
4079 echo "${ECHO_T}yes" >&6; }
4080 else
4081 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4082 echo "${ECHO_T}no, using $LN_S" >&6; }
4083 fi
4084
4085 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4086 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4087 if test "${lt_cv_deplibs_check_method+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 lt_cv_file_magic_cmd='$MAGIC_CMD'
4091 lt_cv_file_magic_test_file=
4092 lt_cv_deplibs_check_method='unknown'
4093 # Need to set the preceding variable on all platforms that support
4094 # interlibrary dependencies.
4095 # 'none' -- dependencies not supported.
4096 # `unknown' -- same as none, but documents that we really don't know.
4097 # 'pass_all' -- all dependencies passed with no checks.
4098 # 'test_compile' -- check by making test program.
4099 # 'file_magic [[regex]]' -- check by looking for files in library path
4100 # which responds to the $file_magic_cmd with a given extended regex.
4101 # If you have `file' or equivalent on your system and you're not sure
4102 # whether `pass_all' will *always* work, you probably want this one.
4103
4104 case $host_os in
4105 aix4* | aix5*)
4106 lt_cv_deplibs_check_method=pass_all
4107 ;;
4108
4109 beos*)
4110 lt_cv_deplibs_check_method=pass_all
4111 ;;
4112
4113 bsdi[45]*)
4114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4115 lt_cv_file_magic_cmd='/usr/bin/file -L'
4116 lt_cv_file_magic_test_file=/shlib/libc.so
4117 ;;
4118
4119 cygwin*)
4120 # func_win32_libid is a shell function defined in ltmain.sh
4121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4122 lt_cv_file_magic_cmd='func_win32_libid'
4123 ;;
4124
4125 mingw* | pw32*)
4126 # Base MSYS/MinGW do not provide the 'file' command needed by
4127 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4128 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4129 lt_cv_file_magic_cmd='$OBJDUMP -f'
4130 ;;
4131
4132 darwin* | rhapsody*)
4133 lt_cv_deplibs_check_method=pass_all
4134 ;;
4135
4136 freebsd* | dragonfly*)
4137 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4138 case $host_cpu in
4139 i*86 )
4140 # Not sure whether the presence of OpenBSD here was a mistake.
4141 # Let's accept both of them until this is cleared up.
4142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4143 lt_cv_file_magic_cmd=/usr/bin/file
4144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4145 ;;
4146 esac
4147 else
4148 lt_cv_deplibs_check_method=pass_all
4149 fi
4150 ;;
4151
4152 gnu*)
4153 lt_cv_deplibs_check_method=pass_all
4154 ;;
4155
4156 hpux10.20* | hpux11*)
4157 lt_cv_file_magic_cmd=/usr/bin/file
4158 case $host_cpu in
4159 ia64*)
4160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4162 ;;
4163 hppa*64*)
4164 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]'
4165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4166 ;;
4167 *)
4168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4170 ;;
4171 esac
4172 ;;
4173
4174 interix3*)
4175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4177 ;;
4178
4179 irix5* | irix6* | nonstopux*)
4180 case $LD in
4181 *-32|*"-32 ") libmagic=32-bit;;
4182 *-n32|*"-n32 ") libmagic=N32;;
4183 *-64|*"-64 ") libmagic=64-bit;;
4184 *) libmagic=never-match;;
4185 esac
4186 lt_cv_deplibs_check_method=pass_all
4187 ;;
4188
4189 # This must be Linux ELF.
4190 linux* | k*bsd*-gnu)
4191 lt_cv_deplibs_check_method=pass_all
4192 ;;
4193
4194 netbsd* | netbsdelf*-gnu)
4195 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4197 else
4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4199 fi
4200 ;;
4201
4202 newos6*)
4203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4204 lt_cv_file_magic_cmd=/usr/bin/file
4205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4206 ;;
4207
4208 nto-qnx*)
4209 lt_cv_deplibs_check_method=unknown
4210 ;;
4211
4212 openbsd*)
4213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4215 else
4216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4217 fi
4218 ;;
4219
4220 osf3* | osf4* | osf5*)
4221 lt_cv_deplibs_check_method=pass_all
4222 ;;
4223
4224 solaris*)
4225 lt_cv_deplibs_check_method=pass_all
4226 ;;
4227
4228 sysv4 | sysv4.3*)
4229 case $host_vendor in
4230 motorola)
4231 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]'
4232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4233 ;;
4234 ncr)
4235 lt_cv_deplibs_check_method=pass_all
4236 ;;
4237 sequent)
4238 lt_cv_file_magic_cmd='/bin/file'
4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4240 ;;
4241 sni)
4242 lt_cv_file_magic_cmd='/bin/file'
4243 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4244 lt_cv_file_magic_test_file=/lib/libc.so
4245 ;;
4246 siemens)
4247 lt_cv_deplibs_check_method=pass_all
4248 ;;
4249 pc)
4250 lt_cv_deplibs_check_method=pass_all
4251 ;;
4252 esac
4253 ;;
4254
4255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4256 lt_cv_deplibs_check_method=pass_all
4257 ;;
4258 esac
4259
4260 fi
4261 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4262 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4263 file_magic_cmd=$lt_cv_file_magic_cmd
4264 deplibs_check_method=$lt_cv_deplibs_check_method
4265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4266
4267
4268
4269
4270 # If no C compiler was specified, use CC.
4271 LTCC=${LTCC-"$CC"}
4272
4273 # If no C compiler flags were specified, use CFLAGS.
4274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4275
4276 # Allow CC to be a program name with arguments.
4277 compiler=$CC
4278
4279
4280 # Check whether --enable-libtool-lock was given.
4281 if test "${enable_libtool_lock+set}" = set; then
4282 enableval=$enable_libtool_lock;
4283 fi
4284
4285 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4286
4287 # Some flags need to be propagated to the compiler or linker for good
4288 # libtool support.
4289 case $host in
4290 ia64-*-hpux*)
4291 # Find out which ABI we are using.
4292 echo 'int i;' > conftest.$ac_ext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; then
4298 case `/usr/bin/file conftest.$ac_objext` in
4299 *ELF-32*)
4300 HPUX_IA64_MODE="32"
4301 ;;
4302 *ELF-64*)
4303 HPUX_IA64_MODE="64"
4304 ;;
4305 esac
4306 fi
4307 rm -rf conftest*
4308 ;;
4309 *-*-irix6*)
4310 # Find out which ABI we are using.
4311 echo '#line 4311 "configure"' > conftest.$ac_ext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; then
4317 if test "$lt_cv_prog_gnu_ld" = yes; then
4318 case `/usr/bin/file conftest.$ac_objext` in
4319 *32-bit*)
4320 LD="${LD-ld} -melf32bsmip"
4321 ;;
4322 *N32*)
4323 LD="${LD-ld} -melf32bmipn32"
4324 ;;
4325 *64-bit*)
4326 LD="${LD-ld} -melf64bmip"
4327 ;;
4328 esac
4329 else
4330 case `/usr/bin/file conftest.$ac_objext` in
4331 *32-bit*)
4332 LD="${LD-ld} -32"
4333 ;;
4334 *N32*)
4335 LD="${LD-ld} -n32"
4336 ;;
4337 *64-bit*)
4338 LD="${LD-ld} -64"
4339 ;;
4340 esac
4341 fi
4342 fi
4343 rm -rf conftest*
4344 ;;
4345
4346 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4347 # Find out which ABI we are using.
4348 echo 'int i;' > conftest.$ac_ext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; then
4354 case `/usr/bin/file conftest.o` in
4355 *32-bit*)
4356 case $host in
4357 x86_64-*linux*)
4358 LD="${LD-ld} -m elf_i386"
4359 ;;
4360 ppc64-*linux*|powerpc64-*linux*)
4361 LD="${LD-ld} -m elf32ppclinux"
4362 ;;
4363 s390x-*linux*)
4364 LD="${LD-ld} -m elf_s390"
4365 ;;
4366 sparc64-*linux*)
4367 LD="${LD-ld} -m elf32_sparc"
4368 ;;
4369 esac
4370 ;;
4371 *64-bit*)
4372 case $host in
4373 x86_64-*linux*)
4374 LD="${LD-ld} -m elf_x86_64"
4375 ;;
4376 ppc*-*linux*|powerpc*-*linux*)
4377 LD="${LD-ld} -m elf64ppc"
4378 ;;
4379 s390*-*linux*)
4380 LD="${LD-ld} -m elf64_s390"
4381 ;;
4382 sparc*-*linux*)
4383 LD="${LD-ld} -m elf64_sparc"
4384 ;;
4385 esac
4386 ;;
4387 esac
4388 fi
4389 rm -rf conftest*
4390 ;;
4391
4392 *-*-sco3.2v5*)
4393 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4394 SAVE_CFLAGS="$CFLAGS"
4395 CFLAGS="$CFLAGS -belf"
4396 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4397 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4398 if test "${lt_cv_cc_needs_belf+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext conftest$ac_exeext
4423 if { (ac_try="$ac_link"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_link") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest$ac_exeext'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 lt_cv_cc_needs_belf=yes
4457 else
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461 lt_cv_cc_needs_belf=no
4462 fi
4463
4464 rm -f core conftest.err conftest.$ac_objext \
4465 conftest$ac_exeext conftest.$ac_ext
4466 ac_ext=c
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471
4472 fi
4473 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4474 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4477 CFLAGS="$SAVE_CFLAGS"
4478 fi
4479 ;;
4480 sparc*-*solaris*)
4481 # Find out which ABI we are using.
4482 echo 'int i;' > conftest.$ac_ext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; then
4488 case `/usr/bin/file conftest.o` in
4489 *64-bit*)
4490 case $lt_cv_prog_gnu_ld in
4491 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4492 *) LD="${LD-ld} -64" ;;
4493 esac
4494 ;;
4495 esac
4496 fi
4497 rm -rf conftest*
4498 ;;
4499
4500
4501 esac
4502
4503 need_locks="$enable_libtool_lock"
4504
4505
4506 ac_ext=c
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4512 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4513 # On Suns, sometimes $CPP names a directory.
4514 if test -n "$CPP" && test -d "$CPP"; then
4515 CPP=
4516 fi
4517 if test -z "$CPP"; then
4518 if test "${ac_cv_prog_CPP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 # Double quotes because CPP needs to be expanded
4522 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4523 do
4524 ac_preproc_ok=false
4525 for ac_c_preproc_warn_flag in '' yes
4526 do
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544 Syntax error
4545 _ACEOF
4546 if { (ac_try="$ac_cpp conftest.$ac_ext"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null; then
4559 if test -s conftest.err; then
4560 ac_cpp_err=$ac_c_preproc_warn_flag
4561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4562 else
4563 ac_cpp_err=
4564 fi
4565 else
4566 ac_cpp_err=yes
4567 fi
4568 if test -z "$ac_cpp_err"; then
4569 :
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 # Broken: fails on valid input.
4575 continue
4576 fi
4577
4578 rm -f conftest.err conftest.$ac_ext
4579
4580 # OK, works on sane cases. Now check whether nonexistent headers
4581 # can be detected and how.
4582 cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h. */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 #include <ac_nonexistent.h>
4589 _ACEOF
4590 if { (ac_try="$ac_cpp conftest.$ac_ext"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } >/dev/null; then
4603 if test -s conftest.err; then
4604 ac_cpp_err=$ac_c_preproc_warn_flag
4605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4606 else
4607 ac_cpp_err=
4608 fi
4609 else
4610 ac_cpp_err=yes
4611 fi
4612 if test -z "$ac_cpp_err"; then
4613 # Broken: success on invalid input.
4614 continue
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 # Passes both tests.
4620 ac_preproc_ok=:
4621 break
4622 fi
4623
4624 rm -f conftest.err conftest.$ac_ext
4625
4626 done
4627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628 rm -f conftest.err conftest.$ac_ext
4629 if $ac_preproc_ok; then
4630 break
4631 fi
4632
4633 done
4634 ac_cv_prog_CPP=$CPP
4635
4636 fi
4637 CPP=$ac_cv_prog_CPP
4638 else
4639 ac_cv_prog_CPP=$CPP
4640 fi
4641 { echo "$as_me:$LINENO: result: $CPP" >&5
4642 echo "${ECHO_T}$CPP" >&6; }
4643 ac_preproc_ok=false
4644 for ac_c_preproc_warn_flag in '' yes
4645 do
4646 # Use a header file that comes with gcc, so configuring glibc
4647 # with a fresh cross-compiler works.
4648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4649 # <limits.h> exists even on freestanding compilers.
4650 # On the NeXT, cc -E runs the code through the compiler's parser,
4651 # not just through cpp. "Syntax error" is here to catch this case.
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #ifdef __STDC__
4659 # include <limits.h>
4660 #else
4661 # include <assert.h>
4662 #endif
4663 Syntax error
4664 _ACEOF
4665 if { (ac_try="$ac_cpp conftest.$ac_ext"
4666 case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } >/dev/null; then
4678 if test -s conftest.err; then
4679 ac_cpp_err=$ac_c_preproc_warn_flag
4680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4681 else
4682 ac_cpp_err=
4683 fi
4684 else
4685 ac_cpp_err=yes
4686 fi
4687 if test -z "$ac_cpp_err"; then
4688 :
4689 else
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 # Broken: fails on valid input.
4694 continue
4695 fi
4696
4697 rm -f conftest.err conftest.$ac_ext
4698
4699 # OK, works on sane cases. Now check whether nonexistent headers
4700 # can be detected and how.
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 #include <ac_nonexistent.h>
4708 _ACEOF
4709 if { (ac_try="$ac_cpp conftest.$ac_ext"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null; then
4722 if test -s conftest.err; then
4723 ac_cpp_err=$ac_c_preproc_warn_flag
4724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4725 else
4726 ac_cpp_err=
4727 fi
4728 else
4729 ac_cpp_err=yes
4730 fi
4731 if test -z "$ac_cpp_err"; then
4732 # Broken: success on invalid input.
4733 continue
4734 else
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 # Passes both tests.
4739 ac_preproc_ok=:
4740 break
4741 fi
4742
4743 rm -f conftest.err conftest.$ac_ext
4744
4745 done
4746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747 rm -f conftest.err conftest.$ac_ext
4748 if $ac_preproc_ok; then
4749 :
4750 else
4751 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4752 See \`config.log' for more details." >&5
4753 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4754 See \`config.log' for more details." >&2;}
4755 { (exit 1); exit 1; }; }
4756 fi
4757
4758 ac_ext=c
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763
4764
4765 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4766 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4767 if test "${ac_cv_header_stdc+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 #include <stdlib.h>
4777 #include <stdarg.h>
4778 #include <string.h>
4779 #include <float.h>
4780
4781 int
4782 main ()
4783 {
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4804 { (case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_try") 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try='test -s conftest.$ac_objext'
4814 { (case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_try") 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_header_stdc=yes
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 ac_cv_header_stdc=no
4829 fi
4830
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832
4833 if test $ac_cv_header_stdc = yes; then
4834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <string.h>
4842
4843 _ACEOF
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 $EGREP "memchr" >/dev/null 2>&1; then
4846 :
4847 else
4848 ac_cv_header_stdc=no
4849 fi
4850 rm -f conftest*
4851
4852 fi
4853
4854 if test $ac_cv_header_stdc = yes; then
4855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <stdlib.h>
4863
4864 _ACEOF
4865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866 $EGREP "free" >/dev/null 2>&1; then
4867 :
4868 else
4869 ac_cv_header_stdc=no
4870 fi
4871 rm -f conftest*
4872
4873 fi
4874
4875 if test $ac_cv_header_stdc = yes; then
4876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4877 if test "$cross_compiling" = yes; then
4878 :
4879 else
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 <ctype.h>
4887 #include <stdlib.h>
4888 #if ((' ' & 0x0FF) == 0x020)
4889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4891 #else
4892 # define ISLOWER(c) \
4893 (('a' <= (c) && (c) <= 'i') \
4894 || ('j' <= (c) && (c) <= 'r') \
4895 || ('s' <= (c) && (c) <= 'z'))
4896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4897 #endif
4898
4899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4900 int
4901 main ()
4902 {
4903 int i;
4904 for (i = 0; i < 256; i++)
4905 if (XOR (islower (i), ISLOWER (i))
4906 || toupper (i) != TOUPPER (i))
4907 return 2;
4908 return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest$ac_exeext
4912 if { (ac_try="$ac_link"
4913 case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_link") 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4922 { (case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_try") 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 :
4932 else
4933 echo "$as_me: program exited with status $ac_status" >&5
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 ( exit $ac_status )
4938 ac_cv_header_stdc=no
4939 fi
4940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4941 fi
4942
4943
4944 fi
4945 fi
4946 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4948 if test $ac_cv_header_stdc = yes; then
4949
4950 cat >>confdefs.h <<\_ACEOF
4951 #define STDC_HEADERS 1
4952 _ACEOF
4953
4954 fi
4955
4956 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4967 inttypes.h stdint.h unistd.h
4968 do
4969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4982
4983 #include <$ac_header>
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (ac_try="$ac_compile"
4987 case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990 esac
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_compile") 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5000 { (case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003 esac
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_try") 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_try") 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 eval "$as_ac_Header=yes"
5020 else
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024 eval "$as_ac_Header=no"
5025 fi
5026
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 ac_res=`eval echo '${'$as_ac_Header'}'`
5030 { echo "$as_me:$LINENO: result: $ac_res" >&5
5031 echo "${ECHO_T}$ac_res" >&6; }
5032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5033 cat >>confdefs.h <<_ACEOF
5034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035 _ACEOF
5036
5037 fi
5038
5039 done
5040
5041
5042
5043 for ac_header in dlfcn.h
5044 do
5045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 fi
5052 ac_res=`eval echo '${'$as_ac_Header'}'`
5053 { echo "$as_me:$LINENO: result: $ac_res" >&5
5054 echo "${ECHO_T}$ac_res" >&6; }
5055 else
5056 # Is the header compilable?
5057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
5066 #include <$ac_header>
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (ac_try="$ac_compile"
5070 case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_compile") 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_try") 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_try") 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_header_compiler=yes
5103 else
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 ac_header_compiler=no
5108 fi
5109
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5112 echo "${ECHO_T}$ac_header_compiler" >&6; }
5113
5114 # Is the header present?
5115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <$ac_header>
5124 _ACEOF
5125 if { (ac_try="$ac_cpp conftest.$ac_ext"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } >/dev/null; then
5138 if test -s conftest.err; then
5139 ac_cpp_err=$ac_c_preproc_warn_flag
5140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5141 else
5142 ac_cpp_err=
5143 fi
5144 else
5145 ac_cpp_err=yes
5146 fi
5147 if test -z "$ac_cpp_err"; then
5148 ac_header_preproc=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_header_preproc=no
5154 fi
5155
5156 rm -f conftest.err conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158 echo "${ECHO_T}$ac_header_preproc" >&6; }
5159
5160 # So? What about this header?
5161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5162 yes:no: )
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5167 ac_header_preproc=yes
5168 ;;
5169 no:yes:* )
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5182 ( cat <<\_ASBOX
5183 ## --------------------------------- ##
5184 ## Report this to BUG-REPORT-ADDRESS ##
5185 ## --------------------------------- ##
5186 _ASBOX
5187 ) | sed "s/^/$as_me: WARNING: /" >&2
5188 ;;
5189 esac
5190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 eval "$as_ac_Header=\$ac_header_preproc"
5196 fi
5197 ac_res=`eval echo '${'$as_ac_Header'}'`
5198 { echo "$as_me:$LINENO: result: $ac_res" >&5
5199 echo "${ECHO_T}$ac_res" >&6; }
5200
5201 fi
5202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h <<_ACEOF
5204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205 _ACEOF
5206
5207 fi
5208
5209 done
5210
5211 ac_ext=cpp
5212 ac_cpp='$CXXCPP $CPPFLAGS'
5213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5216 if test -z "$CXX"; then
5217 if test -n "$CCC"; then
5218 CXX=$CCC
5219 else
5220 if test -n "$ac_tool_prefix"; then
5221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 do
5223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_prog_CXX+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 if test -n "$CXX"; then
5231 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 CXX=$ac_cv_prog_CXX
5251 if test -n "$CXX"; then
5252 { echo "$as_me:$LINENO: result: $CXX" >&5
5253 echo "${ECHO_T}$CXX" >&6; }
5254 else
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5257 fi
5258
5259
5260 test -n "$CXX" && break
5261 done
5262 fi
5263 if test -z "$CXX"; then
5264 ac_ct_CXX=$CXX
5265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 do
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 if test -n "$ac_ct_CXX"; then
5275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_prog_ac_ct_CXX="$ac_prog"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5295 if test -n "$ac_ct_CXX"; then
5296 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5297 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5298 else
5299 { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5301 fi
5302
5303
5304 test -n "$ac_ct_CXX" && break
5305 done
5306
5307 if test "x$ac_ct_CXX" = x; then
5308 CXX="g++"
5309 else
5310 case $cross_compiling:$ac_tool_warned in
5311 yes:)
5312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5313 whose name does not start with the host triplet. If you think this
5314 configuration is useful to you, please write to autoconf@gnu.org." >&5
5315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5316 whose name does not start with the host triplet. If you think this
5317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5318 ac_tool_warned=yes ;;
5319 esac
5320 CXX=$ac_ct_CXX
5321 fi
5322 fi
5323
5324 fi
5325 fi
5326 # Provide some information about the compiler.
5327 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5328 ac_compiler=`set X $ac_compile; echo $2`
5329 { (ac_try="$ac_compiler --version >&5"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler --version >&5") 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5339 { (ac_try="$ac_compiler -v >&5"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compiler -v >&5") 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }
5349 { (ac_try="$ac_compiler -V >&5"
5350 case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353 esac
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_compiler -V >&5") 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }
5359
5360 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5361 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5362 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371
5372 int
5373 main ()
5374 {
5375 #ifndef __GNUC__
5376 choke me
5377 #endif
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (ac_try="$ac_compile"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_compile") 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5398 { (case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_try") 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_try") 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_compiler_gnu=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_compiler_gnu=no
5423 fi
5424
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5427
5428 fi
5429 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5430 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5431 GXX=`test $ac_compiler_gnu = yes && echo yes`
5432 ac_test_CXXFLAGS=${CXXFLAGS+set}
5433 ac_save_CXXFLAGS=$CXXFLAGS
5434 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5435 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5436 if test "${ac_cv_prog_cxx_g+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5440 ac_cxx_werror_flag=yes
5441 ac_cv_prog_cxx_g=no
5442 CXXFLAGS="-g"
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449
5450 int
5451 main ()
5452 {
5453
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 rm -f conftest.$ac_objext
5459 if { (ac_try="$ac_compile"
5460 case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_compile") 2>conftest.er1
5466 ac_status=$?
5467 grep -v '^ *+' conftest.er1 >conftest.err
5468 rm -f conftest.er1
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5473 { (case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_try") 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486 esac
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_try") 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_prog_cxx_g=yes
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 CXXFLAGS=""
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504
5505 int
5506 main ()
5507 {
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5528 { (case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_try") 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_try") 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 :
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5553 CXXFLAGS="-g"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560
5561 int
5562 main ()
5563 {
5564
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5584 { (case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_try") 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } &&
5593 { ac_try='test -s conftest.$ac_objext'
5594 { (case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_try") 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_prog_cxx_g=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608
5609 fi
5610
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5619 fi
5620 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5621 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5622 if test "$ac_test_CXXFLAGS" = set; then
5623 CXXFLAGS=$ac_save_CXXFLAGS
5624 elif test $ac_cv_prog_cxx_g = yes; then
5625 if test "$GXX" = yes; then
5626 CXXFLAGS="-g -O2"
5627 else
5628 CXXFLAGS="-g"
5629 fi
5630 else
5631 if test "$GXX" = yes; then
5632 CXXFLAGS="-O2"
5633 else
5634 CXXFLAGS=
5635 fi
5636 fi
5637 ac_ext=cpp
5638 ac_cpp='$CXXCPP $CPPFLAGS'
5639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5642
5643 depcc="$CXX" am_compiler_list=
5644
5645 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5646 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5647 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5651 # We make a subdir and do the tests there. Otherwise we can end up
5652 # making bogus files that we don't know about and never remove. For
5653 # instance it was reported that on HP-UX the gcc test will end up
5654 # making a dummy file named `D' -- because `-MD' means `put the output
5655 # in D'.
5656 mkdir conftest.dir
5657 # Copy depcomp to subdir because otherwise we won't find it if we're
5658 # using a relative directory.
5659 cp "$am_depcomp" conftest.dir
5660 cd conftest.dir
5661 # We will build objects and dependencies in a subdirectory because
5662 # it helps to detect inapplicable dependency modes. For instance
5663 # both Tru64's cc and ICC support -MD to output dependencies as a
5664 # side effect of compilation, but ICC will put the dependencies in
5665 # the current directory while Tru64 will put them in the object
5666 # directory.
5667 mkdir sub
5668
5669 am_cv_CXX_dependencies_compiler_type=none
5670 if test "$am_compiler_list" = ""; then
5671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5672 fi
5673 for depmode in $am_compiler_list; do
5674 # Setup a source with many dependencies, because some compilers
5675 # like to wrap large dependency lists on column 80 (with \), and
5676 # we should not choose a depcomp mode which is confused by this.
5677 #
5678 # We need to recreate these files for each test, as the compiler may
5679 # overwrite some of them when testing with obscure command lines.
5680 # This happens at least with the AIX C compiler.
5681 : > sub/conftest.c
5682 for i in 1 2 3 4 5 6; do
5683 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5684 : > sub/conftst$i.h
5685 done
5686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5687
5688 case $depmode in
5689 nosideeffect)
5690 # after this tag, mechanisms are not by side-effect, so they'll
5691 # only be used when explicitly requested
5692 if test "x$enable_dependency_tracking" = xyes; then
5693 continue
5694 else
5695 break
5696 fi
5697 ;;
5698 none) break ;;
5699 esac
5700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5701 # mode. It turns out that the SunPro C++ compiler does not properly
5702 # handle `-M -o', and we need to detect this.
5703 if depmode=$depmode \
5704 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5706 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5707 >/dev/null 2>conftest.err &&
5708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5709 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5711 # icc doesn't choke on unknown options, it will just issue warnings
5712 # (even with -Werror). So we grep stderr for any message
5713 # that says an option was ignored.
5714 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5715 am_cv_CXX_dependencies_compiler_type=$depmode
5716 break
5717 fi
5718 fi
5719 done
5720
5721 cd ..
5722 rm -rf conftest.dir
5723 else
5724 am_cv_CXX_dependencies_compiler_type=none
5725 fi
5726
5727 fi
5728 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5729 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5730 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5731
5732
5733
5734 if
5735 test "x$enable_dependency_tracking" != xno \
5736 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5737 am__fastdepCXX_TRUE=
5738 am__fastdepCXX_FALSE='#'
5739 else
5740 am__fastdepCXX_TRUE='#'
5741 am__fastdepCXX_FALSE=
5742 fi
5743
5744
5745
5746
5747 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5748 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5749 (test "X$CXX" != "Xg++"))) ; then
5750 ac_ext=cpp
5751 ac_cpp='$CXXCPP $CPPFLAGS'
5752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5755 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5756 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5757 if test -z "$CXXCPP"; then
5758 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 # Double quotes because CXXCPP needs to be expanded
5762 for CXXCPP in "$CXX -E" "/lib/cpp"
5763 do
5764 ac_preproc_ok=false
5765 for ac_cxx_preproc_warn_flag in '' yes
5766 do
5767 # Use a header file that comes with gcc, so configuring glibc
5768 # with a fresh cross-compiler works.
5769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5770 # <limits.h> exists even on freestanding compilers.
5771 # On the NeXT, cc -E runs the code through the compiler's parser,
5772 # not just through cpp. "Syntax error" is here to catch this case.
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #ifdef __STDC__
5780 # include <limits.h>
5781 #else
5782 # include <assert.h>
5783 #endif
5784 Syntax error
5785 _ACEOF
5786 if { (ac_try="$ac_cpp conftest.$ac_ext"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } >/dev/null; then
5799 if test -s conftest.err; then
5800 ac_cpp_err=$ac_cxx_preproc_warn_flag
5801 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5802 else
5803 ac_cpp_err=
5804 fi
5805 else
5806 ac_cpp_err=yes
5807 fi
5808 if test -z "$ac_cpp_err"; then
5809 :
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 # Broken: fails on valid input.
5815 continue
5816 fi
5817
5818 rm -f conftest.err conftest.$ac_ext
5819
5820 # OK, works on sane cases. Now check whether nonexistent headers
5821 # can be detected and how.
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <ac_nonexistent.h>
5829 _ACEOF
5830 if { (ac_try="$ac_cpp conftest.$ac_ext"
5831 case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } >/dev/null; then
5843 if test -s conftest.err; then
5844 ac_cpp_err=$ac_cxx_preproc_warn_flag
5845 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5846 else
5847 ac_cpp_err=
5848 fi
5849 else
5850 ac_cpp_err=yes
5851 fi
5852 if test -z "$ac_cpp_err"; then
5853 # Broken: success on invalid input.
5854 continue
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 # Passes both tests.
5860 ac_preproc_ok=:
5861 break
5862 fi
5863
5864 rm -f conftest.err conftest.$ac_ext
5865
5866 done
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok; then
5870 break
5871 fi
5872
5873 done
5874 ac_cv_prog_CXXCPP=$CXXCPP
5875
5876 fi
5877 CXXCPP=$ac_cv_prog_CXXCPP
5878 else
5879 ac_cv_prog_CXXCPP=$CXXCPP
5880 fi
5881 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5882 echo "${ECHO_T}$CXXCPP" >&6; }
5883 ac_preproc_ok=false
5884 for ac_cxx_preproc_warn_flag in '' yes
5885 do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #ifdef __STDC__
5899 # include <limits.h>
5900 #else
5901 # include <assert.h>
5902 #endif
5903 Syntax error
5904 _ACEOF
5905 if { (ac_try="$ac_cpp conftest.$ac_ext"
5906 case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } >/dev/null; then
5918 if test -s conftest.err; then
5919 ac_cpp_err=$ac_cxx_preproc_warn_flag
5920 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5921 else
5922 ac_cpp_err=
5923 fi
5924 else
5925 ac_cpp_err=yes
5926 fi
5927 if test -z "$ac_cpp_err"; then
5928 :
5929 else
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933 # Broken: fails on valid input.
5934 continue
5935 fi
5936
5937 rm -f conftest.err conftest.$ac_ext
5938
5939 # OK, works on sane cases. Now check whether nonexistent headers
5940 # can be detected and how.
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 #include <ac_nonexistent.h>
5948 _ACEOF
5949 if { (ac_try="$ac_cpp conftest.$ac_ext"
5950 case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_cxx_preproc_warn_flag
5964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5965 else
5966 ac_cpp_err=
5967 fi
5968 else
5969 ac_cpp_err=yes
5970 fi
5971 if test -z "$ac_cpp_err"; then
5972 # Broken: success on invalid input.
5973 continue
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 # Passes both tests.
5979 ac_preproc_ok=:
5980 break
5981 fi
5982
5983 rm -f conftest.err conftest.$ac_ext
5984
5985 done
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.err conftest.$ac_ext
5988 if $ac_preproc_ok; then
5989 :
5990 else
5991 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5992 See \`config.log' for more details." >&5
5993 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5994 See \`config.log' for more details." >&2;}
5995 { (exit 1); exit 1; }; }
5996 fi
5997
5998 ac_ext=cpp
5999 ac_cpp='$CXXCPP $CPPFLAGS'
6000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6003
6004 fi
6005
6006
6007 ac_ext=f
6008 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6009 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6011 if test -n "$ac_tool_prefix"; then
6012 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
6013 do
6014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_F77+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 if test -n "$F77"; then
6022 ac_cv_prog_F77="$F77" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 F77=$ac_cv_prog_F77
6042 if test -n "$F77"; then
6043 { echo "$as_me:$LINENO: result: $F77" >&5
6044 echo "${ECHO_T}$F77" >&6; }
6045 else
6046 { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6048 fi
6049
6050
6051 test -n "$F77" && break
6052 done
6053 fi
6054 if test -z "$F77"; then
6055 ac_ct_F77=$F77
6056 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
6057 do
6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
6059 set dummy $ac_prog; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 if test -n "$ac_ct_F77"; then
6066 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_ac_ct_F77="$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6086 if test -n "$ac_ct_F77"; then
6087 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6088 echo "${ECHO_T}$ac_ct_F77" >&6; }
6089 else
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6093
6094
6095 test -n "$ac_ct_F77" && break
6096 done
6097
6098 if test "x$ac_ct_F77" = x; then
6099 F77=""
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6104 whose name does not start with the host triplet. If you think this
6105 configuration is useful to you, please write to autoconf@gnu.org." >&5
6106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6107 whose name does not start with the host triplet. If you think this
6108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 F77=$ac_ct_F77
6112 fi
6113 fi
6114
6115
6116 # Provide some information about the compiler.
6117 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6118 ac_compiler=`set X $ac_compile; echo $2`
6119 { (ac_try="$ac_compiler --version >&5"
6120 case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compiler --version >&5") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }
6129 { (ac_try="$ac_compiler -v >&5"
6130 case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compiler -v >&5") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }
6139 { (ac_try="$ac_compiler -V >&5"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compiler -V >&5") 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }
6149 rm -f a.out
6150
6151 # If we don't use `.F' as extension, the preprocessor is not run on the
6152 # input file. (Note that this only needs to work for GNU compilers.)
6153 ac_save_ext=$ac_ext
6154 ac_ext=F
6155 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6156 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6157 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160 cat >conftest.$ac_ext <<_ACEOF
6161 program main
6162 #ifndef __GNUC__
6163 choke me
6164 #endif
6165
6166 end
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6170 case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compile") 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6183 { (case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_try") 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_try") 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_compiler_gnu=yes
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 ac_compiler_gnu=no
6208 fi
6209
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6212
6213 fi
6214 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6215 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6216 ac_ext=$ac_save_ext
6217 ac_test_FFLAGS=${FFLAGS+set}
6218 ac_save_FFLAGS=$FFLAGS
6219 FFLAGS=
6220 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6221 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6222 if test "${ac_cv_prog_f77_g+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 FFLAGS=-g
6226 cat >conftest.$ac_ext <<_ACEOF
6227 program main
6228
6229 end
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (ac_try="$ac_compile"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_compile") 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6246 { (case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_try") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest.$ac_objext'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_prog_f77_g=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_cv_prog_f77_g=no
6271 fi
6272
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274
6275 fi
6276 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6277 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6278 if test "$ac_test_FFLAGS" = set; then
6279 FFLAGS=$ac_save_FFLAGS
6280 elif test $ac_cv_prog_f77_g = yes; then
6281 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6282 FFLAGS="-g -O2"
6283 else
6284 FFLAGS="-g"
6285 fi
6286 else
6287 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6288 FFLAGS="-O2"
6289 else
6290 FFLAGS=
6291 fi
6292 fi
6293
6294 G77=`test $ac_compiler_gnu = yes && echo yes`
6295 ac_ext=c
6296 ac_cpp='$CPP $CPPFLAGS'
6297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6300
6301
6302
6303 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6304
6305 # find the maximum length of command line arguments
6306 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6307 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6308 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 i=0
6312 teststring="ABCD"
6313
6314 case $build_os in
6315 msdosdjgpp*)
6316 # On DJGPP, this test can blow up pretty badly due to problems in libc
6317 # (any single argument exceeding 2000 bytes causes a buffer overrun
6318 # during glob expansion). Even if it were fixed, the result of this
6319 # check would be larger than it should be.
6320 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6321 ;;
6322
6323 gnu*)
6324 # Under GNU Hurd, this test is not required because there is
6325 # no limit to the length of command line arguments.
6326 # Libtool will interpret -1 as no limit whatsoever
6327 lt_cv_sys_max_cmd_len=-1;
6328 ;;
6329
6330 cygwin* | mingw*)
6331 # On Win9x/ME, this test blows up -- it succeeds, but takes
6332 # about 5 minutes as the teststring grows exponentially.
6333 # Worse, since 9x/ME are not pre-emptively multitasking,
6334 # you end up with a "frozen" computer, even though with patience
6335 # the test eventually succeeds (with a max line length of 256k).
6336 # Instead, let's just punt: use the minimum linelength reported by
6337 # all of the supported platforms: 8192 (on NT/2K/XP).
6338 lt_cv_sys_max_cmd_len=8192;
6339 ;;
6340
6341 amigaos*)
6342 # On AmigaOS with pdksh, this test takes hours, literally.
6343 # So we just punt and use a minimum line length of 8192.
6344 lt_cv_sys_max_cmd_len=8192;
6345 ;;
6346
6347 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6348 # This has been around since 386BSD, at least. Likely further.
6349 if test -x /sbin/sysctl; then
6350 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6351 elif test -x /usr/sbin/sysctl; then
6352 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6353 else
6354 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6355 fi
6356 # And add a safety zone
6357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6359 ;;
6360
6361 interix*)
6362 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6363 lt_cv_sys_max_cmd_len=196608
6364 ;;
6365
6366 osf*)
6367 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6368 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6369 # nice to cause kernel panics so lets avoid the loop below.
6370 # First set a reasonable default.
6371 lt_cv_sys_max_cmd_len=16384
6372 #
6373 if test -x /sbin/sysconfig; then
6374 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6375 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6376 esac
6377 fi
6378 ;;
6379 sco3.2v5*)
6380 lt_cv_sys_max_cmd_len=102400
6381 ;;
6382 sysv5* | sco5v6* | sysv4.2uw2*)
6383 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6384 if test -n "$kargmax"; then
6385 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6386 else
6387 lt_cv_sys_max_cmd_len=32768
6388 fi
6389 ;;
6390 *)
6391 # If test is not a shell built-in, we'll probably end up computing a
6392 # maximum length that is only half of the actual maximum length, but
6393 # we can't tell.
6394 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6395 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6396 = "XX$teststring") >/dev/null 2>&1 &&
6397 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6398 lt_cv_sys_max_cmd_len=$new_result &&
6399 test $i != 17 # 1/2 MB should be enough
6400 do
6401 i=`expr $i + 1`
6402 teststring=$teststring$teststring
6403 done
6404 teststring=
6405 # Add a significant safety factor because C++ compilers can tack on massive
6406 # amounts of additional arguments before passing them to the linker.
6407 # It appears as though 1/2 is a usable value.
6408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6409 ;;
6410 esac
6411
6412 fi
6413
6414 if test -n $lt_cv_sys_max_cmd_len ; then
6415 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6416 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6417 else
6418 { echo "$as_me:$LINENO: result: none" >&5
6419 echo "${ECHO_T}none" >&6; }
6420 fi
6421
6422
6423
6424
6425 # Check for command to grab the raw symbol name followed by C symbol from nm.
6426 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6427 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6428 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431
6432 # These are sane defaults that work on at least a few old systems.
6433 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6434
6435 # Character class describing NM global symbol codes.
6436 symcode='[BCDEGRST]'
6437
6438 # Regexp to match symbols that can be accessed directly from C.
6439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6440
6441 # Transform an extracted symbol line into a proper C declaration
6442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6443
6444 # Transform an extracted symbol line into symbol name and symbol address
6445 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'"
6446
6447 # Define system-specific variables.
6448 case $host_os in
6449 aix*)
6450 symcode='[BCDT]'
6451 ;;
6452 cygwin* | mingw* | pw32*)
6453 symcode='[ABCDGISTW]'
6454 ;;
6455 hpux*) # Its linker distinguishes data from code symbols
6456 if test "$host_cpu" = ia64; then
6457 symcode='[ABCDEGRST]'
6458 fi
6459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6460 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'"
6461 ;;
6462 linux* | k*bsd*-gnu)
6463 if test "$host_cpu" = ia64; then
6464 symcode='[ABCDGIRSTW]'
6465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6466 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'"
6467 fi
6468 ;;
6469 irix* | nonstopux*)
6470 symcode='[BCDEGRST]'
6471 ;;
6472 osf*)
6473 symcode='[BCDEGQRST]'
6474 ;;
6475 solaris*)
6476 symcode='[BDRT]'
6477 ;;
6478 sco3.2v5*)
6479 symcode='[DT]'
6480 ;;
6481 sysv4.2uw2*)
6482 symcode='[DT]'
6483 ;;
6484 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6485 symcode='[ABDT]'
6486 ;;
6487 sysv4)
6488 symcode='[DFNSTU]'
6489 ;;
6490 esac
6491
6492 # Handle CRLF in mingw tool chain
6493 opt_cr=
6494 case $build_os in
6495 mingw*)
6496 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6497 ;;
6498 esac
6499
6500 # If we're using GNU nm, then use its standard symbol codes.
6501 case `$NM -V 2>&1` in
6502 *GNU* | *'with BFD'*)
6503 symcode='[ABCDGIRSTW]' ;;
6504 esac
6505
6506 # Try without a prefix undercore, then with it.
6507 for ac_symprfx in "" "_"; do
6508
6509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6510 symxfrm="\\1 $ac_symprfx\\2 \\2"
6511
6512 # Write the raw and C identifiers.
6513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6514
6515 # Check to see that the pipe works correctly.
6516 pipe_works=no
6517
6518 rm -f conftest*
6519 cat > conftest.$ac_ext <<EOF
6520 #ifdef __cplusplus
6521 extern "C" {
6522 #endif
6523 char nm_test_var;
6524 void nm_test_func(){}
6525 #ifdef __cplusplus
6526 }
6527 #endif
6528 int main(){nm_test_var='a';nm_test_func();return(0);}
6529 EOF
6530
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; then
6536 # Now try to grab the symbols.
6537 nlist=conftest.nm
6538 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6539 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && test -s "$nlist"; then
6543 # Try sorting and uniquifying the output.
6544 if sort "$nlist" | uniq > "$nlist"T; then
6545 mv -f "$nlist"T "$nlist"
6546 else
6547 rm -f "$nlist"T
6548 fi
6549
6550 # Make sure that we snagged all the symbols we need.
6551 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6552 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6553 cat <<EOF > conftest.$ac_ext
6554 #ifdef __cplusplus
6555 extern "C" {
6556 #endif
6557
6558 EOF
6559 # Now generate the symbol file.
6560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6561
6562 cat <<EOF >> conftest.$ac_ext
6563 #if defined (__STDC__) && __STDC__
6564 # define lt_ptr_t void *
6565 #else
6566 # define lt_ptr_t char *
6567 # define const
6568 #endif
6569
6570 /* The mapping between symbol names and symbols. */
6571 const struct {
6572 const char *name;
6573 lt_ptr_t address;
6574 }
6575 lt_preloaded_symbols[] =
6576 {
6577 EOF
6578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6579 cat <<\EOF >> conftest.$ac_ext
6580 {0, (lt_ptr_t) 0}
6581 };
6582
6583 #ifdef __cplusplus
6584 }
6585 #endif
6586 EOF
6587 # Now try linking the two files.
6588 mv conftest.$ac_objext conftstm.$ac_objext
6589 lt_save_LIBS="$LIBS"
6590 lt_save_CFLAGS="$CFLAGS"
6591 LIBS="conftstm.$ac_objext"
6592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6598 pipe_works=yes
6599 fi
6600 LIBS="$lt_save_LIBS"
6601 CFLAGS="$lt_save_CFLAGS"
6602 else
6603 echo "cannot find nm_test_func in $nlist" >&5
6604 fi
6605 else
6606 echo "cannot find nm_test_var in $nlist" >&5
6607 fi
6608 else
6609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6610 fi
6611 else
6612 echo "$progname: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 fi
6615 rm -f conftest* conftst*
6616
6617 # Do not use the global_symbol_pipe unless it works.
6618 if test "$pipe_works" = yes; then
6619 break
6620 else
6621 lt_cv_sys_global_symbol_pipe=
6622 fi
6623 done
6624
6625 fi
6626
6627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6628 lt_cv_sys_global_symbol_to_cdecl=
6629 fi
6630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6631 { echo "$as_me:$LINENO: result: failed" >&5
6632 echo "${ECHO_T}failed" >&6; }
6633 else
6634 { echo "$as_me:$LINENO: result: ok" >&5
6635 echo "${ECHO_T}ok" >&6; }
6636 fi
6637
6638 { echo "$as_me:$LINENO: checking for objdir" >&5
6639 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6640 if test "${lt_cv_objdir+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 rm -f .libs 2>/dev/null
6644 mkdir .libs 2>/dev/null
6645 if test -d .libs; then
6646 lt_cv_objdir=.libs
6647 else
6648 # MS-DOS does not allow filenames that begin with a dot.
6649 lt_cv_objdir=_libs
6650 fi
6651 rmdir .libs 2>/dev/null
6652 fi
6653 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6654 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6655 objdir=$lt_cv_objdir
6656
6657
6658
6659
6660
6661 case $host_os in
6662 aix3*)
6663 # AIX sometimes has problems with the GCC collect2 program. For some
6664 # reason, if we set the COLLECT_NAMES environment variable, the problems
6665 # vanish in a puff of smoke.
6666 if test "X${COLLECT_NAMES+set}" != Xset; then
6667 COLLECT_NAMES=
6668 export COLLECT_NAMES
6669 fi
6670 ;;
6671 esac
6672
6673 # Sed substitution that helps us do robust quoting. It backslashifies
6674 # metacharacters that are still active within double-quoted strings.
6675 Xsed='sed -e 1s/^X//'
6676 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6677
6678 # Same as above, but do not quote variable references.
6679 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6680
6681 # Sed substitution to delay expansion of an escaped shell variable in a
6682 # double_quote_subst'ed string.
6683 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6684
6685 # Sed substitution to avoid accidental globbing in evaled expressions
6686 no_glob_subst='s/\*/\\\*/g'
6687
6688 # Constants:
6689 rm="rm -f"
6690
6691 # Global variables:
6692 default_ofile=libtool
6693 can_build_shared=yes
6694
6695 # All known linkers require a `.a' archive for static linking (except MSVC,
6696 # which needs '.lib').
6697 libext=a
6698 ltmain="$ac_aux_dir/ltmain.sh"
6699 ofile="$default_ofile"
6700 with_gnu_ld="$lt_cv_prog_gnu_ld"
6701
6702 if test -n "$ac_tool_prefix"; then
6703 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6704 set dummy ${ac_tool_prefix}ar; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_prog_AR+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 if test -n "$AR"; then
6711 ac_cv_prog_AR="$AR" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_AR="${ac_tool_prefix}ar"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 AR=$ac_cv_prog_AR
6731 if test -n "$AR"; then
6732 { echo "$as_me:$LINENO: result: $AR" >&5
6733 echo "${ECHO_T}$AR" >&6; }
6734 else
6735 { echo "$as_me:$LINENO: result: no" >&5
6736 echo "${ECHO_T}no" >&6; }
6737 fi
6738
6739
6740 fi
6741 if test -z "$ac_cv_prog_AR"; then
6742 ac_ct_AR=$AR
6743 # Extract the first word of "ar", so it can be a program name with args.
6744 set dummy ar; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750 if test -n "$ac_ct_AR"; then
6751 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6752 else
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_prog_ac_ct_AR="ar"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768 fi
6769 fi
6770 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6771 if test -n "$ac_ct_AR"; then
6772 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6773 echo "${ECHO_T}$ac_ct_AR" >&6; }
6774 else
6775 { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6777 fi
6778
6779 if test "x$ac_ct_AR" = x; then
6780 AR="false"
6781 else
6782 case $cross_compiling:$ac_tool_warned in
6783 yes:)
6784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6785 whose name does not start with the host triplet. If you think this
6786 configuration is useful to you, please write to autoconf@gnu.org." >&5
6787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6788 whose name does not start with the host triplet. If you think this
6789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6790 ac_tool_warned=yes ;;
6791 esac
6792 AR=$ac_ct_AR
6793 fi
6794 else
6795 AR="$ac_cv_prog_AR"
6796 fi
6797
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_prog_RANLIB+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 if test -n "$RANLIB"; then
6807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 RANLIB=$ac_cv_prog_RANLIB
6827 if test -n "$RANLIB"; then
6828 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6829 echo "${ECHO_T}$RANLIB" >&6; }
6830 else
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6833 fi
6834
6835
6836 fi
6837 if test -z "$ac_cv_prog_RANLIB"; then
6838 ac_ct_RANLIB=$RANLIB
6839 # Extract the first word of "ranlib", so it can be a program name with args.
6840 set dummy ranlib; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846 if test -n "$ac_ct_RANLIB"; then
6847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_ac_ct_RANLIB="ranlib"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6867 if test -n "$ac_ct_RANLIB"; then
6868 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6869 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6870 else
6871 { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6873 fi
6874
6875 if test "x$ac_ct_RANLIB" = x; then
6876 RANLIB=":"
6877 else
6878 case $cross_compiling:$ac_tool_warned in
6879 yes:)
6880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6881 whose name does not start with the host triplet. If you think this
6882 configuration is useful to you, please write to autoconf@gnu.org." >&5
6883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6884 whose name does not start with the host triplet. If you think this
6885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6886 ac_tool_warned=yes ;;
6887 esac
6888 RANLIB=$ac_ct_RANLIB
6889 fi
6890 else
6891 RANLIB="$ac_cv_prog_RANLIB"
6892 fi
6893
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}strip; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_prog_STRIP+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 if test -n "$STRIP"; then
6903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 STRIP=$ac_cv_prog_STRIP
6923 if test -n "$STRIP"; then
6924 { echo "$as_me:$LINENO: result: $STRIP" >&5
6925 echo "${ECHO_T}$STRIP" >&6; }
6926 else
6927 { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6929 fi
6930
6931
6932 fi
6933 if test -z "$ac_cv_prog_STRIP"; then
6934 ac_ct_STRIP=$STRIP
6935 # Extract the first word of "strip", so it can be a program name with args.
6936 set dummy strip; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 if test -n "$ac_ct_STRIP"; then
6943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_prog_ac_ct_STRIP="strip"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6963 if test -n "$ac_ct_STRIP"; then
6964 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6965 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6966 else
6967 { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6969 fi
6970
6971 if test "x$ac_ct_STRIP" = x; then
6972 STRIP=":"
6973 else
6974 case $cross_compiling:$ac_tool_warned in
6975 yes:)
6976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6977 whose name does not start with the host triplet. If you think this
6978 configuration is useful to you, please write to autoconf@gnu.org." >&5
6979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6980 whose name does not start with the host triplet. If you think this
6981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 STRIP=$ac_ct_STRIP
6985 fi
6986 else
6987 STRIP="$ac_cv_prog_STRIP"
6988 fi
6989
6990
6991 old_CC="$CC"
6992 old_CFLAGS="$CFLAGS"
6993
6994 # Set sane defaults for various variables
6995 test -z "$AR" && AR=ar
6996 test -z "$AR_FLAGS" && AR_FLAGS=cru
6997 test -z "$AS" && AS=as
6998 test -z "$CC" && CC=cc
6999 test -z "$LTCC" && LTCC=$CC
7000 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7001 test -z "$DLLTOOL" && DLLTOOL=dlltool
7002 test -z "$LD" && LD=ld
7003 test -z "$LN_S" && LN_S="ln -s"
7004 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7005 test -z "$NM" && NM=nm
7006 test -z "$SED" && SED=sed
7007 test -z "$OBJDUMP" && OBJDUMP=objdump
7008 test -z "$RANLIB" && RANLIB=:
7009 test -z "$STRIP" && STRIP=:
7010 test -z "$ac_objext" && ac_objext=o
7011
7012 # Determine commands to create old-style static archives.
7013 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7014 old_postinstall_cmds='chmod 644 $oldlib'
7015 old_postuninstall_cmds=
7016
7017 if test -n "$RANLIB"; then
7018 case $host_os in
7019 openbsd*)
7020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7021 ;;
7022 *)
7023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7024 ;;
7025 esac
7026 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7027 fi
7028
7029 for cc_temp in $compiler""; do
7030 case $cc_temp in
7031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7033 \-*) ;;
7034 *) break;;
7035 esac
7036 done
7037 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7038
7039
7040 # Only perform the check for file, if the check method requires it
7041 case $deplibs_check_method in
7042 file_magic*)
7043 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7044 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7045 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7046 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 case $MAGIC_CMD in
7050 [\\/*] | ?:[\\/]*)
7051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7052 ;;
7053 *)
7054 lt_save_MAGIC_CMD="$MAGIC_CMD"
7055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7057 for ac_dir in $ac_dummy; do
7058 IFS="$lt_save_ifs"
7059 test -z "$ac_dir" && ac_dir=.
7060 if test -f $ac_dir/${ac_tool_prefix}file; then
7061 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7062 if test -n "$file_magic_test_file"; then
7063 case $deplibs_check_method in
7064 "file_magic "*)
7065 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7068 $EGREP "$file_magic_regex" > /dev/null; then
7069 :
7070 else
7071 cat <<EOF 1>&2
7072
7073 *** Warning: the command libtool uses to detect shared libraries,
7074 *** $file_magic_cmd, produces output that libtool cannot recognize.
7075 *** The result is that libtool may fail to recognize shared libraries
7076 *** as such. This will affect the creation of libtool libraries that
7077 *** depend on shared libraries, but programs linked with such libtool
7078 *** libraries will work regardless of this problem. Nevertheless, you
7079 *** may want to report the problem to your system manager and/or to
7080 *** bug-libtool@gnu.org
7081
7082 EOF
7083 fi ;;
7084 esac
7085 fi
7086 break
7087 fi
7088 done
7089 IFS="$lt_save_ifs"
7090 MAGIC_CMD="$lt_save_MAGIC_CMD"
7091 ;;
7092 esac
7093 fi
7094
7095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7096 if test -n "$MAGIC_CMD"; then
7097 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7098 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7099 else
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7102 fi
7103
7104 if test -z "$lt_cv_path_MAGIC_CMD"; then
7105 if test -n "$ac_tool_prefix"; then
7106 { echo "$as_me:$LINENO: checking for file" >&5
7107 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 case $MAGIC_CMD in
7112 [\\/*] | ?:[\\/]*)
7113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7114 ;;
7115 *)
7116 lt_save_MAGIC_CMD="$MAGIC_CMD"
7117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7119 for ac_dir in $ac_dummy; do
7120 IFS="$lt_save_ifs"
7121 test -z "$ac_dir" && ac_dir=.
7122 if test -f $ac_dir/file; then
7123 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7124 if test -n "$file_magic_test_file"; then
7125 case $deplibs_check_method in
7126 "file_magic "*)
7127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7130 $EGREP "$file_magic_regex" > /dev/null; then
7131 :
7132 else
7133 cat <<EOF 1>&2
7134
7135 *** Warning: the command libtool uses to detect shared libraries,
7136 *** $file_magic_cmd, produces output that libtool cannot recognize.
7137 *** The result is that libtool may fail to recognize shared libraries
7138 *** as such. This will affect the creation of libtool libraries that
7139 *** depend on shared libraries, but programs linked with such libtool
7140 *** libraries will work regardless of this problem. Nevertheless, you
7141 *** may want to report the problem to your system manager and/or to
7142 *** bug-libtool@gnu.org
7143
7144 EOF
7145 fi ;;
7146 esac
7147 fi
7148 break
7149 fi
7150 done
7151 IFS="$lt_save_ifs"
7152 MAGIC_CMD="$lt_save_MAGIC_CMD"
7153 ;;
7154 esac
7155 fi
7156
7157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7158 if test -n "$MAGIC_CMD"; then
7159 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7160 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7161 else
7162 { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7164 fi
7165
7166 else
7167 MAGIC_CMD=:
7168 fi
7169 fi
7170
7171 fi
7172 ;;
7173 esac
7174
7175 enable_dlopen=no
7176 enable_win32_dll=no
7177
7178 # Check whether --enable-libtool-lock was given.
7179 if test "${enable_libtool_lock+set}" = set; then
7180 enableval=$enable_libtool_lock;
7181 fi
7182
7183 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7184
7185
7186 # Check whether --with-pic was given.
7187 if test "${with_pic+set}" = set; then
7188 withval=$with_pic; pic_mode="$withval"
7189 else
7190 pic_mode=default
7191 fi
7192
7193 test -z "$pic_mode" && pic_mode=default
7194
7195 # Use C for the default configuration in the libtool script
7196 tagname=
7197 lt_save_CC="$CC"
7198 ac_ext=c
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203
7204
7205 # Source file extension for C test sources.
7206 ac_ext=c
7207
7208 # Object file extension for compiled C test sources.
7209 objext=o
7210 objext=$objext
7211
7212 # Code to be used in simple compile tests
7213 lt_simple_compile_test_code="int some_variable = 0;\n"
7214
7215 # Code to be used in simple link tests
7216 lt_simple_link_test_code='int main(){return(0);}\n'
7217
7218
7219 # If no C compiler was specified, use CC.
7220 LTCC=${LTCC-"$CC"}
7221
7222 # If no C compiler flags were specified, use CFLAGS.
7223 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7224
7225 # Allow CC to be a program name with arguments.
7226 compiler=$CC
7227
7228
7229 # save warnings/boilerplate of simple test code
7230 ac_outfile=conftest.$ac_objext
7231 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7233 _lt_compiler_boilerplate=`cat conftest.err`
7234 $rm conftest*
7235
7236 ac_outfile=conftest.$ac_objext
7237 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7239 _lt_linker_boilerplate=`cat conftest.err`
7240 $rm conftest*
7241
7242
7243
7244 lt_prog_compiler_no_builtin_flag=
7245
7246 if test "$GCC" = yes; then
7247 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7248
7249
7250 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7251 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7252 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255 lt_cv_prog_compiler_rtti_exceptions=no
7256 ac_outfile=conftest.$ac_objext
7257 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7258 lt_compiler_flag="-fno-rtti -fno-exceptions"
7259 # Insert the option either (1) after the last *FLAGS variable, or
7260 # (2) before a word containing "conftest.", or (3) at the end.
7261 # Note that $ac_compile itself does not contain backslashes and begins
7262 # with a dollar sign (not a hyphen), so the echo should work correctly.
7263 # The option is referenced via a variable to avoid confusing sed.
7264 lt_compile=`echo "$ac_compile" | $SED \
7265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7267 -e 's:$: $lt_compiler_flag:'`
7268 (eval echo "\"\$as_me:7268: $lt_compile\"" >&5)
7269 (eval "$lt_compile" 2>conftest.err)
7270 ac_status=$?
7271 cat conftest.err >&5
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 if (exit $ac_status) && test -s "$ac_outfile"; then
7274 # The compiler can only warn and ignore the option if not recognized
7275 # So say no if there are warnings other than the usual output.
7276 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7279 lt_cv_prog_compiler_rtti_exceptions=yes
7280 fi
7281 fi
7282 $rm conftest*
7283
7284 fi
7285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7286 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7287
7288 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7289 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7290 else
7291 :
7292 fi
7293
7294 fi
7295
7296 lt_prog_compiler_wl=
7297 lt_prog_compiler_pic=
7298 lt_prog_compiler_static=
7299
7300 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7301 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7302
7303 if test "$GCC" = yes; then
7304 lt_prog_compiler_wl='-Wl,'
7305 lt_prog_compiler_static='-static'
7306
7307 case $host_os in
7308 aix*)
7309 # All AIX code is PIC.
7310 if test "$host_cpu" = ia64; then
7311 # AIX 5 now supports IA64 processor
7312 lt_prog_compiler_static='-Bstatic'
7313 fi
7314 ;;
7315
7316 amigaos*)
7317 # FIXME: we need at least 68020 code to build shared libraries, but
7318 # adding the `-m68020' flag to GCC prevents building anything better,
7319 # like `-m68040'.
7320 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7321 ;;
7322
7323 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7324 # PIC is the default for these OSes.
7325 ;;
7326
7327 mingw* | pw32* | os2*)
7328 # This hack is so that the source file can tell whether it is being
7329 # built for inclusion in a dll (and should export symbols for example).
7330 lt_prog_compiler_pic='-DDLL_EXPORT'
7331 ;;
7332
7333 darwin* | rhapsody*)
7334 # PIC is the default on this platform
7335 # Common symbols not allowed in MH_DYLIB files
7336 lt_prog_compiler_pic='-fno-common'
7337 ;;
7338
7339 interix3*)
7340 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7341 # Instead, we relocate shared libraries at runtime.
7342 ;;
7343
7344 msdosdjgpp*)
7345 # Just because we use GCC doesn't mean we suddenly get shared libraries
7346 # on systems that don't support them.
7347 lt_prog_compiler_can_build_shared=no
7348 enable_shared=no
7349 ;;
7350
7351 sysv4*MP*)
7352 if test -d /usr/nec; then
7353 lt_prog_compiler_pic=-Kconform_pic
7354 fi
7355 ;;
7356
7357 hpux*)
7358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7359 # not for PA HP-UX.
7360 case $host_cpu in
7361 hppa*64*|ia64*)
7362 # +Z the default
7363 ;;
7364 *)
7365 lt_prog_compiler_pic='-fPIC'
7366 ;;
7367 esac
7368 ;;
7369
7370 *)
7371 lt_prog_compiler_pic='-fPIC'
7372 ;;
7373 esac
7374 else
7375 # PORTME Check for flag to pass linker flags through the system compiler.
7376 case $host_os in
7377 aix*)
7378 lt_prog_compiler_wl='-Wl,'
7379 if test "$host_cpu" = ia64; then
7380 # AIX 5 now supports IA64 processor
7381 lt_prog_compiler_static='-Bstatic'
7382 else
7383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7384 fi
7385 ;;
7386 darwin*)
7387 # PIC is the default on this platform
7388 # Common symbols not allowed in MH_DYLIB files
7389 case $cc_basename in
7390 xlc*)
7391 lt_prog_compiler_pic='-qnocommon'
7392 lt_prog_compiler_wl='-Wl,'
7393 ;;
7394 esac
7395 ;;
7396
7397 mingw* | pw32* | os2*)
7398 # This hack is so that the source file can tell whether it is being
7399 # built for inclusion in a dll (and should export symbols for example).
7400 lt_prog_compiler_pic='-DDLL_EXPORT'
7401 ;;
7402
7403 hpux9* | hpux10* | hpux11*)
7404 lt_prog_compiler_wl='-Wl,'
7405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7406 # not for PA HP-UX.
7407 case $host_cpu in
7408 hppa*64*|ia64*)
7409 # +Z the default
7410 ;;
7411 *)
7412 lt_prog_compiler_pic='+Z'
7413 ;;
7414 esac
7415 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7416 lt_prog_compiler_static='${wl}-a ${wl}archive'
7417 ;;
7418
7419 irix5* | irix6* | nonstopux*)
7420 lt_prog_compiler_wl='-Wl,'
7421 # PIC (with -KPIC) is the default.
7422 lt_prog_compiler_static='-non_shared'
7423 ;;
7424
7425 newsos6)
7426 lt_prog_compiler_pic='-KPIC'
7427 lt_prog_compiler_static='-Bstatic'
7428 ;;
7429
7430 linux* | k*bsd*-gnu)
7431 case $cc_basename in
7432 icc* | ecc*)
7433 lt_prog_compiler_wl='-Wl,'
7434 lt_prog_compiler_pic='-KPIC'
7435 lt_prog_compiler_static='-static'
7436 ;;
7437 pgcc* | pgf77* | pgf90* | pgf95*)
7438 # Portland Group compilers (*not* the Pentium gcc compiler,
7439 # which looks to be a dead project)
7440 lt_prog_compiler_wl='-Wl,'
7441 lt_prog_compiler_pic='-fpic'
7442 lt_prog_compiler_static='-Bstatic'
7443 ;;
7444 ccc*)
7445 lt_prog_compiler_wl='-Wl,'
7446 # All Alpha code is PIC.
7447 lt_prog_compiler_static='-non_shared'
7448 ;;
7449 esac
7450 ;;
7451
7452 osf3* | osf4* | osf5*)
7453 lt_prog_compiler_wl='-Wl,'
7454 # All OSF/1 code is PIC.
7455 lt_prog_compiler_static='-non_shared'
7456 ;;
7457
7458 solaris*)
7459 lt_prog_compiler_pic='-KPIC'
7460 lt_prog_compiler_static='-Bstatic'
7461 case $cc_basename in
7462 f77* | f90* | f95*)
7463 lt_prog_compiler_wl='-Qoption ld ';;
7464 *)
7465 lt_prog_compiler_wl='-Wl,';;
7466 esac
7467 ;;
7468
7469 sunos4*)
7470 lt_prog_compiler_wl='-Qoption ld '
7471 lt_prog_compiler_pic='-PIC'
7472 lt_prog_compiler_static='-Bstatic'
7473 ;;
7474
7475 sysv4 | sysv4.2uw2* | sysv4.3*)
7476 lt_prog_compiler_wl='-Wl,'
7477 lt_prog_compiler_pic='-KPIC'
7478 lt_prog_compiler_static='-Bstatic'
7479 ;;
7480
7481 sysv4*MP*)
7482 if test -d /usr/nec ;then
7483 lt_prog_compiler_pic='-Kconform_pic'
7484 lt_prog_compiler_static='-Bstatic'
7485 fi
7486 ;;
7487
7488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7489 lt_prog_compiler_wl='-Wl,'
7490 lt_prog_compiler_pic='-KPIC'
7491 lt_prog_compiler_static='-Bstatic'
7492 ;;
7493
7494 unicos*)
7495 lt_prog_compiler_wl='-Wl,'
7496 lt_prog_compiler_can_build_shared=no
7497 ;;
7498
7499 uts4*)
7500 lt_prog_compiler_pic='-pic'
7501 lt_prog_compiler_static='-Bstatic'
7502 ;;
7503
7504 *)
7505 lt_prog_compiler_can_build_shared=no
7506 ;;
7507 esac
7508 fi
7509
7510 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7511 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7512
7513 #
7514 # Check to make sure the PIC flag actually works.
7515 #
7516 if test -n "$lt_prog_compiler_pic"; then
7517
7518 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7520 if test "${lt_prog_compiler_pic_works+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523 lt_prog_compiler_pic_works=no
7524 ac_outfile=conftest.$ac_objext
7525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7526 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7527 # Insert the option either (1) after the last *FLAGS variable, or
7528 # (2) before a word containing "conftest.", or (3) at the end.
7529 # Note that $ac_compile itself does not contain backslashes and begins
7530 # with a dollar sign (not a hyphen), so the echo should work correctly.
7531 # The option is referenced via a variable to avoid confusing sed.
7532 lt_compile=`echo "$ac_compile" | $SED \
7533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7535 -e 's:$: $lt_compiler_flag:'`
7536 (eval echo "\"\$as_me:7536: $lt_compile\"" >&5)
7537 (eval "$lt_compile" 2>conftest.err)
7538 ac_status=$?
7539 cat conftest.err >&5
7540 echo "$as_me:7540: \$? = $ac_status" >&5
7541 if (exit $ac_status) && test -s "$ac_outfile"; then
7542 # The compiler can only warn and ignore the option if not recognized
7543 # So say no if there are warnings other than the usual output.
7544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7547 lt_prog_compiler_pic_works=yes
7548 fi
7549 fi
7550 $rm conftest*
7551
7552 fi
7553 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7554 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7555
7556 if test x"$lt_prog_compiler_pic_works" = xyes; then
7557 case $lt_prog_compiler_pic in
7558 "" | " "*) ;;
7559 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7560 esac
7561 else
7562 lt_prog_compiler_pic=
7563 lt_prog_compiler_can_build_shared=no
7564 fi
7565
7566 fi
7567 case $host_os in
7568 # For platforms which do not support PIC, -DPIC is meaningless:
7569 *djgpp*)
7570 lt_prog_compiler_pic=
7571 ;;
7572 *)
7573 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7574 ;;
7575 esac
7576
7577 #
7578 # Check to make sure the static flag actually works.
7579 #
7580 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7581 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7582 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7583 if test "${lt_prog_compiler_static_works+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586 lt_prog_compiler_static_works=no
7587 save_LDFLAGS="$LDFLAGS"
7588 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7589 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7591 # The linker can only warn and ignore the option if not recognized
7592 # So say no if there are warnings
7593 if test -s conftest.err; then
7594 # Append any errors to the config.log.
7595 cat conftest.err 1>&5
7596 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7598 if diff conftest.exp conftest.er2 >/dev/null; then
7599 lt_prog_compiler_static_works=yes
7600 fi
7601 else
7602 lt_prog_compiler_static_works=yes
7603 fi
7604 fi
7605 $rm conftest*
7606 LDFLAGS="$save_LDFLAGS"
7607
7608 fi
7609 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7610 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7611
7612 if test x"$lt_prog_compiler_static_works" = xyes; then
7613 :
7614 else
7615 lt_prog_compiler_static=
7616 fi
7617
7618
7619 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7620 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7621 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 lt_cv_prog_compiler_c_o=no
7625 $rm -r conftest 2>/dev/null
7626 mkdir conftest
7627 cd conftest
7628 mkdir out
7629 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7630
7631 lt_compiler_flag="-o out/conftest2.$ac_objext"
7632 # Insert the option either (1) after the last *FLAGS variable, or
7633 # (2) before a word containing "conftest.", or (3) at the end.
7634 # Note that $ac_compile itself does not contain backslashes and begins
7635 # with a dollar sign (not a hyphen), so the echo should work correctly.
7636 lt_compile=`echo "$ac_compile" | $SED \
7637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7639 -e 's:$: $lt_compiler_flag:'`
7640 (eval echo "\"\$as_me:7640: $lt_compile\"" >&5)
7641 (eval "$lt_compile" 2>out/conftest.err)
7642 ac_status=$?
7643 cat out/conftest.err >&5
7644 echo "$as_me:7644: \$? = $ac_status" >&5
7645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7646 then
7647 # The compiler can only warn and ignore the option if not recognized
7648 # So say no if there are warnings
7649 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7652 lt_cv_prog_compiler_c_o=yes
7653 fi
7654 fi
7655 chmod u+w . 2>&5
7656 $rm conftest*
7657 # SGI C++ compiler will create directory out/ii_files/ for
7658 # template instantiation
7659 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7660 $rm out/* && rmdir out
7661 cd ..
7662 rmdir conftest
7663 $rm conftest*
7664
7665 fi
7666 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7667 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7668
7669
7670 hard_links="nottested"
7671 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7672 # do not overwrite the value of need_locks provided by the user
7673 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7674 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7675 hard_links=yes
7676 $rm conftest*
7677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7678 touch conftest.a
7679 ln conftest.a conftest.b 2>&5 || hard_links=no
7680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7681 { echo "$as_me:$LINENO: result: $hard_links" >&5
7682 echo "${ECHO_T}$hard_links" >&6; }
7683 if test "$hard_links" = no; then
7684 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7685 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7686 need_locks=warn
7687 fi
7688 else
7689 need_locks=no
7690 fi
7691
7692 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7693 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7694
7695 runpath_var=
7696 allow_undefined_flag=
7697 enable_shared_with_static_runtimes=no
7698 archive_cmds=
7699 archive_expsym_cmds=
7700 old_archive_From_new_cmds=
7701 old_archive_from_expsyms_cmds=
7702 export_dynamic_flag_spec=
7703 whole_archive_flag_spec=
7704 thread_safe_flag_spec=
7705 hardcode_libdir_flag_spec=
7706 hardcode_libdir_flag_spec_ld=
7707 hardcode_libdir_separator=
7708 hardcode_direct=no
7709 hardcode_minus_L=no
7710 hardcode_shlibpath_var=unsupported
7711 link_all_deplibs=unknown
7712 hardcode_automatic=no
7713 module_cmds=
7714 module_expsym_cmds=
7715 always_export_symbols=no
7716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7717 # include_expsyms should be a list of space-separated symbols to be *always*
7718 # included in the symbol list
7719 include_expsyms=
7720 # exclude_expsyms can be an extended regexp of symbols to exclude
7721 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7722 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7723 # as well as any symbol that contains `d'.
7724 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7725 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7726 # platforms (ab)use it in PIC code, but their linkers get confused if
7727 # the symbol is explicitly referenced. Since portable code cannot
7728 # rely on this symbol name, it's probably fine to never include it in
7729 # preloaded symbol tables.
7730 extract_expsyms_cmds=
7731 # Just being paranoid about ensuring that cc_basename is set.
7732 for cc_temp in $compiler""; do
7733 case $cc_temp in
7734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7736 \-*) ;;
7737 *) break;;
7738 esac
7739 done
7740 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7741
7742 case $host_os in
7743 cygwin* | mingw* | pw32*)
7744 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7745 # When not using gcc, we currently assume that we are using
7746 # Microsoft Visual C++.
7747 if test "$GCC" != yes; then
7748 with_gnu_ld=no
7749 fi
7750 ;;
7751 interix*)
7752 # we just hope/assume this is gcc and not c89 (= MSVC++)
7753 with_gnu_ld=yes
7754 ;;
7755 openbsd*)
7756 with_gnu_ld=no
7757 ;;
7758 esac
7759
7760 ld_shlibs=yes
7761 if test "$with_gnu_ld" = yes; then
7762 # If archive_cmds runs LD, not CC, wlarc should be empty
7763 wlarc='${wl}'
7764
7765 # Set some defaults for GNU ld with shared library support. These
7766 # are reset later if shared libraries are not supported. Putting them
7767 # here allows them to be overridden if necessary.
7768 runpath_var=LD_RUN_PATH
7769 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7770 export_dynamic_flag_spec='${wl}--export-dynamic'
7771 # ancient GNU ld didn't support --whole-archive et. al.
7772 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7773 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7774 else
7775 whole_archive_flag_spec=
7776 fi
7777 supports_anon_versioning=no
7778 case `$LD -v 2>/dev/null` in
7779 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7780 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7781 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7782 *\ 2.11.*) ;; # other 2.11 versions
7783 *) supports_anon_versioning=yes ;;
7784 esac
7785
7786 # See if GNU ld supports shared libraries.
7787 case $host_os in
7788 aix3* | aix4* | aix5*)
7789 # On AIX/PPC, the GNU linker is very broken
7790 if test "$host_cpu" != ia64; then
7791 ld_shlibs=no
7792 cat <<EOF 1>&2
7793
7794 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7795 *** to be unable to reliably create shared libraries on AIX.
7796 *** Therefore, libtool is disabling shared libraries support. If you
7797 *** really care for shared libraries, you may want to modify your PATH
7798 *** so that a non-GNU linker is found, and then restart.
7799
7800 EOF
7801 fi
7802 ;;
7803
7804 amigaos*)
7805 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)'
7806 hardcode_libdir_flag_spec='-L$libdir'
7807 hardcode_minus_L=yes
7808
7809 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7810 # that the semantics of dynamic libraries on AmigaOS, at least up
7811 # to version 4, is to share data among multiple programs linked
7812 # with the same dynamic library. Since this doesn't match the
7813 # behavior of shared libraries on other platforms, we can't use
7814 # them.
7815 ld_shlibs=no
7816 ;;
7817
7818 beos*)
7819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7820 allow_undefined_flag=unsupported
7821 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7822 # support --undefined. This deserves some investigation. FIXME
7823 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824 else
7825 ld_shlibs=no
7826 fi
7827 ;;
7828
7829 cygwin* | mingw* | pw32*)
7830 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7831 # as there is no search path for DLLs.
7832 hardcode_libdir_flag_spec='-L$libdir'
7833 allow_undefined_flag=unsupported
7834 always_export_symbols=no
7835 enable_shared_with_static_runtimes=yes
7836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7837
7838 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7840 # If the export-symbols file already is a .def file (1st line
7841 # is EXPORTS), use it as is; otherwise, prepend...
7842 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7843 cp $export_symbols $output_objdir/$soname.def;
7844 else
7845 echo EXPORTS > $output_objdir/$soname.def;
7846 cat $export_symbols >> $output_objdir/$soname.def;
7847 fi~
7848 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7849 else
7850 ld_shlibs=no
7851 fi
7852 ;;
7853
7854 interix3*)
7855 hardcode_direct=no
7856 hardcode_shlibpath_var=no
7857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7858 export_dynamic_flag_spec='${wl}-E'
7859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7860 # Instead, shared libraries are loaded at an image base (0x10000000 by
7861 # default) and relocated if they conflict, which is a slow very memory
7862 # consuming and fragmenting process. To avoid this, we pick a random,
7863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7865 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7866 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'
7867 ;;
7868
7869 linux* | k*bsd*-gnu)
7870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7871 tmp_addflag=
7872 case $cc_basename,$host_cpu in
7873 pgcc*) # Portland Group C compiler
7874 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'
7875 tmp_addflag=' $pic_flag'
7876 ;;
7877 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7878 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'
7879 tmp_addflag=' $pic_flag -Mnomain' ;;
7880 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7881 tmp_addflag=' -i_dynamic' ;;
7882 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7883 tmp_addflag=' -i_dynamic -nofor_main' ;;
7884 ifc* | ifort*) # Intel Fortran compiler
7885 tmp_addflag=' -nofor_main' ;;
7886 esac
7887 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888
7889 if test $supports_anon_versioning = yes; then
7890 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7892 $echo "local: *; };" >> $output_objdir/$libname.ver~
7893 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7894 fi
7895 link_all_deplibs=no
7896 else
7897 ld_shlibs=no
7898 fi
7899 ;;
7900
7901 netbsd* | netbsdelf*-gnu)
7902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7903 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7904 wlarc=
7905 else
7906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7908 fi
7909 ;;
7910
7911 solaris*)
7912 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7913 ld_shlibs=no
7914 cat <<EOF 1>&2
7915
7916 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7917 *** create shared libraries on Solaris systems. Therefore, libtool
7918 *** is disabling shared libraries support. We urge you to upgrade GNU
7919 *** binutils to release 2.9.1 or newer. Another option is to modify
7920 *** your PATH or compiler configuration so that the native linker is
7921 *** used, and then restart.
7922
7923 EOF
7924 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7927 else
7928 ld_shlibs=no
7929 fi
7930 ;;
7931
7932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7933 case `$LD -v 2>&1` in
7934 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7935 ld_shlibs=no
7936 cat <<_LT_EOF 1>&2
7937
7938 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7939 *** reliably create shared libraries on SCO systems. Therefore, libtool
7940 *** is disabling shared libraries support. We urge you to upgrade GNU
7941 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7942 *** your PATH or compiler configuration so that the native linker is
7943 *** used, and then restart.
7944
7945 _LT_EOF
7946 ;;
7947 *)
7948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7949 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7952 else
7953 ld_shlibs=no
7954 fi
7955 ;;
7956 esac
7957 ;;
7958
7959 sunos4*)
7960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7961 wlarc=
7962 hardcode_direct=yes
7963 hardcode_shlibpath_var=no
7964 ;;
7965
7966 *)
7967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7970 else
7971 ld_shlibs=no
7972 fi
7973 ;;
7974 esac
7975
7976 if test "$ld_shlibs" = no; then
7977 runpath_var=
7978 hardcode_libdir_flag_spec=
7979 export_dynamic_flag_spec=
7980 whole_archive_flag_spec=
7981 fi
7982 else
7983 # PORTME fill in a description of your system's linker (not GNU ld)
7984 case $host_os in
7985 aix3*)
7986 allow_undefined_flag=unsupported
7987 always_export_symbols=yes
7988 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'
7989 # Note: this linker hardcodes the directories in LIBPATH if there
7990 # are no directories specified by -L.
7991 hardcode_minus_L=yes
7992 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7993 # Neither direct hardcoding nor static linking is supported with a
7994 # broken collect2.
7995 hardcode_direct=unsupported
7996 fi
7997 ;;
7998
7999 aix4* | aix5*)
8000 if test "$host_cpu" = ia64; then
8001 # On IA64, the linker does run time linking by default, so we don't
8002 # have to do anything special.
8003 aix_use_runtimelinking=no
8004 exp_sym_flag='-Bexport'
8005 no_entry_flag=""
8006 else
8007 # If we're using GNU nm, then we don't want the "-C" option.
8008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8009 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8010 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'
8011 else
8012 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'
8013 fi
8014 aix_use_runtimelinking=no
8015
8016 # Test if we are trying to use run time linking or normal
8017 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8018 # need to do runtime linking.
8019 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8020 for ld_flag in $LDFLAGS; do
8021 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8022 aix_use_runtimelinking=yes
8023 break
8024 fi
8025 done
8026 ;;
8027 esac
8028
8029 exp_sym_flag='-bexport'
8030 no_entry_flag='-bnoentry'
8031 fi
8032
8033 # When large executables or shared objects are built, AIX ld can
8034 # have problems creating the table of contents. If linking a library
8035 # or program results in "error TOC overflow" add -mminimal-toc to
8036 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8037 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8038
8039 archive_cmds=''
8040 hardcode_direct=yes
8041 hardcode_libdir_separator=':'
8042 link_all_deplibs=yes
8043
8044 if test "$GCC" = yes; then
8045 case $host_os in aix4.[012]|aix4.[012].*)
8046 # We only want to do this on AIX 4.2 and lower, the check
8047 # below for broken collect2 doesn't work under 4.3+
8048 collect2name=`${CC} -print-prog-name=collect2`
8049 if test -f "$collect2name" && \
8050 strings "$collect2name" | grep resolve_lib_name >/dev/null
8051 then
8052 # We have reworked collect2
8053 hardcode_direct=yes
8054 else
8055 # We have old collect2
8056 hardcode_direct=unsupported
8057 # It fails to find uninstalled libraries when the uninstalled
8058 # path is not listed in the libpath. Setting hardcode_minus_L
8059 # to unsupported forces relinking
8060 hardcode_minus_L=yes
8061 hardcode_libdir_flag_spec='-L$libdir'
8062 hardcode_libdir_separator=
8063 fi
8064 ;;
8065 esac
8066 shared_flag='-shared'
8067 if test "$aix_use_runtimelinking" = yes; then
8068 shared_flag="$shared_flag "'${wl}-G'
8069 fi
8070 else
8071 # not using gcc
8072 if test "$host_cpu" = ia64; then
8073 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8074 # chokes on -Wl,-G. The following line is correct:
8075 shared_flag='-G'
8076 else
8077 if test "$aix_use_runtimelinking" = yes; then
8078 shared_flag='${wl}-G'
8079 else
8080 shared_flag='${wl}-bM:SRE'
8081 fi
8082 fi
8083 fi
8084
8085 # It seems that -bexpall does not export symbols beginning with
8086 # underscore (_), so it is better to generate a list of symbols to export.
8087 always_export_symbols=yes
8088 if test "$aix_use_runtimelinking" = yes; then
8089 # Warning - without using the other runtime loading flags (-brtl),
8090 # -berok will link without error, but may produce a broken library.
8091 allow_undefined_flag='-berok'
8092 # Determine the default libpath from the value encoded in an empty executable.
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099
8100 int
8101 main ()
8102 {
8103
8104 ;
8105 return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8110 case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_link") 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8123 { (case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_try") 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest$ac_exeext'
8133 { (case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_try") 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142
8143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8144 }'`
8145 # Check for a 64-bit object if we didn't find anything.
8146 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; }
8147 }'`; fi
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152
8153 fi
8154
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8158
8159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8160 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"
8161 else
8162 if test "$host_cpu" = ia64; then
8163 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8164 allow_undefined_flag="-z nodefs"
8165 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"
8166 else
8167 # Determine the default libpath from the value encoded in an empty executable.
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174
8175 int
8176 main ()
8177 {
8178
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (ac_try="$ac_link"
8185 case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_link") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8198 { (case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_try") 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest$ac_exeext'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217
8218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8219 }'`
8220 # Check for a 64-bit object if we didn't find anything.
8221 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; }
8222 }'`; fi
8223 else
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227
8228 fi
8229
8230 rm -f core conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8233
8234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8235 # Warning - without using the other run time loading flags,
8236 # -berok will link without error, but may produce a broken library.
8237 no_undefined_flag=' ${wl}-bernotok'
8238 allow_undefined_flag=' ${wl}-berok'
8239 # Exported symbols can be pulled into shared objects from archives
8240 whole_archive_flag_spec='$convenience'
8241 archive_cmds_need_lc=yes
8242 # This is similar to how AIX traditionally builds its shared libraries.
8243 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'
8244 fi
8245 fi
8246 ;;
8247
8248 amigaos*)
8249 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)'
8250 hardcode_libdir_flag_spec='-L$libdir'
8251 hardcode_minus_L=yes
8252 # see comment about different semantics on the GNU ld section
8253 ld_shlibs=no
8254 ;;
8255
8256 bsdi[45]*)
8257 export_dynamic_flag_spec=-rdynamic
8258 ;;
8259
8260 cygwin* | mingw* | pw32*)
8261 # When not using gcc, we currently assume that we are using
8262 # Microsoft Visual C++.
8263 # hardcode_libdir_flag_spec is actually meaningless, as there is
8264 # no search path for DLLs.
8265 hardcode_libdir_flag_spec=' '
8266 allow_undefined_flag=unsupported
8267 # Tell ltmain to make .lib files, not .a files.
8268 libext=lib
8269 # Tell ltmain to make .dll files, not .so files.
8270 shrext_cmds=".dll"
8271 # FIXME: Setting linknames here is a bad hack.
8272 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8273 # The linker will automatically build a .lib file if we build a DLL.
8274 old_archive_From_new_cmds='true'
8275 # FIXME: Should let the user specify the lib program.
8276 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8277 fix_srcfile_path='`cygpath -w "$srcfile"`'
8278 enable_shared_with_static_runtimes=yes
8279 ;;
8280
8281 darwin* | rhapsody*)
8282 case $host_os in
8283 rhapsody* | darwin1.[012])
8284 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8285 ;;
8286 *) # Darwin 1.3 on
8287 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8288 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8289 else
8290 case ${MACOSX_DEPLOYMENT_TARGET} in
8291 10.[012])
8292 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8293 ;;
8294 10.*)
8295 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8296 ;;
8297 esac
8298 fi
8299 ;;
8300 esac
8301 archive_cmds_need_lc=no
8302 hardcode_direct=no
8303 hardcode_automatic=yes
8304 hardcode_shlibpath_var=unsupported
8305 whole_archive_flag_spec=''
8306 link_all_deplibs=yes
8307 if test "$GCC" = yes ; then
8308 output_verbose_link_cmd='echo'
8309 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8310 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8311 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8312 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}'
8313 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}'
8314 else
8315 case $cc_basename in
8316 xlc*)
8317 output_verbose_link_cmd='echo'
8318 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8319 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8320 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8321 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}'
8322 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}'
8323 ;;
8324 *)
8325 ld_shlibs=no
8326 ;;
8327 esac
8328 fi
8329 ;;
8330
8331 dgux*)
8332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333 hardcode_libdir_flag_spec='-L$libdir'
8334 hardcode_shlibpath_var=no
8335 ;;
8336
8337 freebsd1*)
8338 ld_shlibs=no
8339 ;;
8340
8341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8342 # support. Future versions do this automatically, but an explicit c++rt0.o
8343 # does not break anything, and helps significantly (at the cost of a little
8344 # extra space).
8345 freebsd2.2*)
8346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8347 hardcode_libdir_flag_spec='-R$libdir'
8348 hardcode_direct=yes
8349 hardcode_shlibpath_var=no
8350 ;;
8351
8352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8353 freebsd2*)
8354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8355 hardcode_direct=yes
8356 hardcode_minus_L=yes
8357 hardcode_shlibpath_var=no
8358 ;;
8359
8360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8361 freebsd* | dragonfly*)
8362 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8363 hardcode_libdir_flag_spec='-R$libdir'
8364 hardcode_direct=yes
8365 hardcode_shlibpath_var=no
8366 ;;
8367
8368 hpux9*)
8369 if test "$GCC" = yes; then
8370 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'
8371 else
8372 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'
8373 fi
8374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8375 hardcode_libdir_separator=:
8376 hardcode_direct=yes
8377
8378 # hardcode_minus_L: Not really in the search PATH,
8379 # but as the default location of the library.
8380 hardcode_minus_L=yes
8381 export_dynamic_flag_spec='${wl}-E'
8382 ;;
8383
8384 hpux10*)
8385 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8387 else
8388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8389 fi
8390 if test "$with_gnu_ld" = no; then
8391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8392 hardcode_libdir_separator=:
8393
8394 hardcode_direct=yes
8395 export_dynamic_flag_spec='${wl}-E'
8396
8397 # hardcode_minus_L: Not really in the search PATH,
8398 # but as the default location of the library.
8399 hardcode_minus_L=yes
8400 fi
8401 ;;
8402
8403 hpux11*)
8404 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8405 case $host_cpu in
8406 hppa*64*)
8407 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 ;;
8409 ia64*)
8410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8411 ;;
8412 *)
8413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8414 ;;
8415 esac
8416 else
8417 case $host_cpu in
8418 hppa*64*)
8419 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 ;;
8421 ia64*)
8422 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8423 ;;
8424 *)
8425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8426 ;;
8427 esac
8428 fi
8429 if test "$with_gnu_ld" = no; then
8430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8431 hardcode_libdir_separator=:
8432
8433 case $host_cpu in
8434 hppa*64*|ia64*)
8435 hardcode_libdir_flag_spec_ld='+b $libdir'
8436 hardcode_direct=no
8437 hardcode_shlibpath_var=no
8438 ;;
8439 *)
8440 hardcode_direct=yes
8441 export_dynamic_flag_spec='${wl}-E'
8442
8443 # hardcode_minus_L: Not really in the search PATH,
8444 # but as the default location of the library.
8445 hardcode_minus_L=yes
8446 ;;
8447 esac
8448 fi
8449 ;;
8450
8451 irix5* | irix6* | nonstopux*)
8452 if test "$GCC" = yes; then
8453 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'
8454 else
8455 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'
8456 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8457 fi
8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8459 hardcode_libdir_separator=:
8460 link_all_deplibs=yes
8461 ;;
8462
8463 netbsd* | netbsdelf*-gnu)
8464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8466 else
8467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8468 fi
8469 hardcode_libdir_flag_spec='-R$libdir'
8470 hardcode_direct=yes
8471 hardcode_shlibpath_var=no
8472 ;;
8473
8474 newsos6)
8475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8476 hardcode_direct=yes
8477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8478 hardcode_libdir_separator=:
8479 hardcode_shlibpath_var=no
8480 ;;
8481
8482 openbsd*)
8483 hardcode_direct=yes
8484 hardcode_shlibpath_var=no
8485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8487 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8489 export_dynamic_flag_spec='${wl}-E'
8490 else
8491 case $host_os in
8492 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8494 hardcode_libdir_flag_spec='-R$libdir'
8495 ;;
8496 *)
8497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8499 ;;
8500 esac
8501 fi
8502 ;;
8503
8504 os2*)
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_minus_L=yes
8507 allow_undefined_flag=unsupported
8508 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'
8509 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8510 ;;
8511
8512 osf3*)
8513 if test "$GCC" = yes; then
8514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8515 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'
8516 else
8517 allow_undefined_flag=' -expect_unresolved \*'
8518 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'
8519 fi
8520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8521 hardcode_libdir_separator=:
8522 ;;
8523
8524 osf4* | osf5*) # as osf3* with the addition of -msym flag
8525 if test "$GCC" = yes; then
8526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8527 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'
8528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8529 else
8530 allow_undefined_flag=' -expect_unresolved \*'
8531 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'
8532 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8533 $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'
8534
8535 # Both c and cxx compiler support -rpath directly
8536 hardcode_libdir_flag_spec='-rpath $libdir'
8537 fi
8538 hardcode_libdir_separator=:
8539 ;;
8540
8541 solaris*)
8542 no_undefined_flag=' -z text'
8543 if test "$GCC" = yes; then
8544 wlarc='${wl}'
8545 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8546 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8547 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8548 else
8549 wlarc=''
8550 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8551 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8552 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8553 fi
8554 hardcode_libdir_flag_spec='-R$libdir'
8555 hardcode_shlibpath_var=no
8556 case $host_os in
8557 solaris2.[0-5] | solaris2.[0-5].*) ;;
8558 *)
8559 # The compiler driver will combine linker options so we
8560 # cannot just pass the convience library names through
8561 # without $wl, iff we do not link with $LD.
8562 # Luckily, gcc supports the same syntax we need for Sun Studio.
8563 # Supported since Solaris 2.6 (maybe 2.5.1?)
8564 case $wlarc in
8565 '')
8566 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8567 *)
8568 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' ;;
8569 esac ;;
8570 esac
8571 link_all_deplibs=yes
8572 ;;
8573
8574 sunos4*)
8575 if test "x$host_vendor" = xsequent; then
8576 # Use $CC to link under sequent, because it throws in some extra .o
8577 # files that make .init and .fini sections work.
8578 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8579 else
8580 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8581 fi
8582 hardcode_libdir_flag_spec='-L$libdir'
8583 hardcode_direct=yes
8584 hardcode_minus_L=yes
8585 hardcode_shlibpath_var=no
8586 ;;
8587
8588 sysv4)
8589 case $host_vendor in
8590 sni)
8591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592 hardcode_direct=yes # is this really true???
8593 ;;
8594 siemens)
8595 ## LD is ld it makes a PLAMLIB
8596 ## CC just makes a GrossModule.
8597 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8598 reload_cmds='$CC -r -o $output$reload_objs'
8599 hardcode_direct=no
8600 ;;
8601 motorola)
8602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8603 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8604 ;;
8605 esac
8606 runpath_var='LD_RUN_PATH'
8607 hardcode_shlibpath_var=no
8608 ;;
8609
8610 sysv4.3*)
8611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_shlibpath_var=no
8613 export_dynamic_flag_spec='-Bexport'
8614 ;;
8615
8616 sysv4*MP*)
8617 if test -d /usr/nec; then
8618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619 hardcode_shlibpath_var=no
8620 runpath_var=LD_RUN_PATH
8621 hardcode_runpath_var=yes
8622 ld_shlibs=yes
8623 fi
8624 ;;
8625
8626 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8627 no_undefined_flag='${wl}-z,text'
8628 archive_cmds_need_lc=no
8629 hardcode_shlibpath_var=no
8630 runpath_var='LD_RUN_PATH'
8631
8632 if test "$GCC" = yes; then
8633 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8634 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8635 else
8636 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8637 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8638 fi
8639 ;;
8640
8641 sysv5* | sco3.2v5* | sco5v6*)
8642 # Note: We can NOT use -z defs as we might desire, because we do not
8643 # link with -lc, and that would cause any symbols used from libc to
8644 # always be unresolved, which means just about no library would
8645 # ever link correctly. If we're not using GNU ld we use -z text
8646 # though, which does catch some bad symbols but isn't as heavy-handed
8647 # as -z defs.
8648 no_undefined_flag='${wl}-z,text'
8649 allow_undefined_flag='${wl}-z,nodefs'
8650 archive_cmds_need_lc=no
8651 hardcode_shlibpath_var=no
8652 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8653 hardcode_libdir_separator=':'
8654 link_all_deplibs=yes
8655 export_dynamic_flag_spec='${wl}-Bexport'
8656 runpath_var='LD_RUN_PATH'
8657
8658 if test "$GCC" = yes; then
8659 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8661 else
8662 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8664 fi
8665 ;;
8666
8667 uts4*)
8668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669 hardcode_libdir_flag_spec='-L$libdir'
8670 hardcode_shlibpath_var=no
8671 ;;
8672
8673 *)
8674 ld_shlibs=no
8675 ;;
8676 esac
8677 fi
8678
8679 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8680 echo "${ECHO_T}$ld_shlibs" >&6; }
8681 test "$ld_shlibs" = no && can_build_shared=no
8682
8683 #
8684 # Do we need to explicitly link libc?
8685 #
8686 case "x$archive_cmds_need_lc" in
8687 x|xyes)
8688 # Assume -lc should be added
8689 archive_cmds_need_lc=yes
8690
8691 if test "$enable_shared" = yes && test "$GCC" = yes; then
8692 case $archive_cmds in
8693 *'~'*)
8694 # FIXME: we may have to deal with multi-command sequences.
8695 ;;
8696 '$CC '*)
8697 # Test whether the compiler implicitly links with -lc since on some
8698 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8699 # to ld, don't add -lc before -lgcc.
8700 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8701 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8702 $rm conftest*
8703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8704
8705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8706 (eval $ac_compile) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } 2>conftest.err; then
8710 soname=conftest
8711 lib=conftest
8712 libobjs=conftest.$ac_objext
8713 deplibs=
8714 wl=$lt_prog_compiler_wl
8715 pic_flag=$lt_prog_compiler_pic
8716 compiler_flags=-v
8717 linker_flags=-v
8718 verstring=
8719 output_objdir=.
8720 libname=conftest
8721 lt_save_allow_undefined_flag=$allow_undefined_flag
8722 allow_undefined_flag=
8723 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8724 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }
8728 then
8729 archive_cmds_need_lc=no
8730 else
8731 archive_cmds_need_lc=yes
8732 fi
8733 allow_undefined_flag=$lt_save_allow_undefined_flag
8734 else
8735 cat conftest.err 1>&5
8736 fi
8737 $rm conftest*
8738 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8739 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8740 ;;
8741 esac
8742 fi
8743 ;;
8744 esac
8745
8746 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8747 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8748 library_names_spec=
8749 libname_spec='lib$name'
8750 soname_spec=
8751 shrext_cmds=".so"
8752 postinstall_cmds=
8753 postuninstall_cmds=
8754 finish_cmds=
8755 finish_eval=
8756 shlibpath_var=
8757 shlibpath_overrides_runpath=unknown
8758 version_type=none
8759 dynamic_linker="$host_os ld.so"
8760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8761 if test "$GCC" = yes; then
8762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8763 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8764 # if the path contains ";" then we assume it to be the separator
8765 # otherwise default to the standard path separator (i.e. ":") - it is
8766 # assumed that no part of a normal pathname contains ";" but that should
8767 # okay in the real world where ";" in dirpaths is itself problematic.
8768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769 else
8770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8771 fi
8772 else
8773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8774 fi
8775 need_lib_prefix=unknown
8776 hardcode_into_libs=no
8777
8778 # when you set need_version to no, make sure it does not cause -set_version
8779 # flags to be left without arguments
8780 need_version=unknown
8781
8782 case $host_os in
8783 aix3*)
8784 version_type=linux
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8786 shlibpath_var=LIBPATH
8787
8788 # AIX 3 has no versioning support, so we append a major version to the name.
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 ;;
8791
8792 aix4* | aix5*)
8793 version_type=linux
8794 need_lib_prefix=no
8795 need_version=no
8796 hardcode_into_libs=yes
8797 if test "$host_cpu" = ia64; then
8798 # AIX 5 supports IA64
8799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 else
8802 # With GCC up to 2.95.x, collect2 would create an import file
8803 # for dependence libraries. The import file would start with
8804 # the line `#! .'. This would cause the generated library to
8805 # depend on `.', always an invalid library. This was fixed in
8806 # development snapshots of GCC prior to 3.0.
8807 case $host_os in
8808 aix4 | aix4.[01] | aix4.[01].*)
8809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8810 echo ' yes '
8811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8812 :
8813 else
8814 can_build_shared=no
8815 fi
8816 ;;
8817 esac
8818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8819 # soname into executable. Probably we can add versioning support to
8820 # collect2, so additional links can be useful in future.
8821 if test "$aix_use_runtimelinking" = yes; then
8822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8823 # instead of lib<name>.a to let people know that these are not
8824 # typical AIX shared libraries.
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 else
8827 # We preserve .a as extension for shared libraries through AIX4.2
8828 # and later when we are not doing run time linking.
8829 library_names_spec='${libname}${release}.a $libname.a'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 fi
8832 shlibpath_var=LIBPATH
8833 fi
8834 ;;
8835
8836 amigaos*)
8837 library_names_spec='$libname.ixlibrary $libname.a'
8838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8839 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'
8840 ;;
8841
8842 beos*)
8843 library_names_spec='${libname}${shared_ext}'
8844 dynamic_linker="$host_os ld.so"
8845 shlibpath_var=LIBRARY_PATH
8846 ;;
8847
8848 bsdi[45]*)
8849 version_type=linux
8850 need_version=no
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8857 # the default ld.so.conf also contains /usr/contrib/lib and
8858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8859 # libtool to hard-code these into programs
8860 ;;
8861
8862 cygwin* | mingw* | pw32*)
8863 version_type=windows
8864 shrext_cmds=".dll"
8865 need_version=no
8866 need_lib_prefix=no
8867
8868 case $GCC,$host_os in
8869 yes,cygwin* | yes,mingw* | yes,pw32*)
8870 library_names_spec='$libname.dll.a'
8871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8872 postinstall_cmds='base_file=`basename \${file}`~
8873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8874 dldir=$destdir/`dirname \$dlpath`~
8875 test -d \$dldir || mkdir -p \$dldir~
8876 $install_prog $dir/$dlname \$dldir/$dlname~
8877 chmod a+x \$dldir/$dlname'
8878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8879 dlpath=$dir/\$dldll~
8880 $rm \$dlpath'
8881 shlibpath_overrides_runpath=yes
8882
8883 case $host_os in
8884 cygwin*)
8885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8888 ;;
8889 mingw*)
8890 # MinGW DLLs use traditional 'lib' prefix
8891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8893 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8894 # It is most probably a Windows format PATH printed by
8895 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8896 # path with ; separators, and with drive letters. We can handle the
8897 # drive letters (cygwin fileutils understands them), so leave them,
8898 # especially as we might pass files found there to a mingw objdump,
8899 # which wouldn't understand a cygwinified path. Ahh.
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8901 else
8902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8903 fi
8904 ;;
8905 pw32*)
8906 # pw32 DLLs use 'pw' prefix rather than 'lib'
8907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8908 ;;
8909 esac
8910 ;;
8911
8912 *)
8913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8914 ;;
8915 esac
8916 dynamic_linker='Win32 ld.exe'
8917 # FIXME: first we should search . and the directory the executable is in
8918 shlibpath_var=PATH
8919 ;;
8920
8921 darwin* | rhapsody*)
8922 dynamic_linker="$host_os dyld"
8923 version_type=darwin
8924 need_lib_prefix=no
8925 need_version=no
8926 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8927 soname_spec='${libname}${release}${major}$shared_ext'
8928 shlibpath_overrides_runpath=yes
8929 shlibpath_var=DYLD_LIBRARY_PATH
8930 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8931 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8932 if test "$GCC" = yes; then
8933 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"`
8934 else
8935 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8936 fi
8937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8938 ;;
8939
8940 dgux*)
8941 version_type=linux
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 ;;
8948
8949 freebsd1*)
8950 dynamic_linker=no
8951 ;;
8952
8953 freebsd* | dragonfly*)
8954 # DragonFly does not have aout. When/if they implement a new
8955 # versioning mechanism, adjust this.
8956 if test -x /usr/bin/objformat; then
8957 objformat=`/usr/bin/objformat`
8958 else
8959 case $host_os in
8960 freebsd[123]*) objformat=aout ;;
8961 *) objformat=elf ;;
8962 esac
8963 fi
8964 version_type=freebsd-$objformat
8965 case $version_type in
8966 freebsd-elf*)
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8968 need_version=no
8969 need_lib_prefix=no
8970 ;;
8971 freebsd-*)
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8973 need_version=yes
8974 ;;
8975 esac
8976 shlibpath_var=LD_LIBRARY_PATH
8977 case $host_os in
8978 freebsd2*)
8979 shlibpath_overrides_runpath=yes
8980 ;;
8981 freebsd3.[01]* | freebsdelf3.[01]*)
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8984 ;;
8985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8989 ;;
8990 freebsd*) # from 4.6 on
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 ;;
8994 esac
8995 ;;
8996
8997 gnu*)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 hardcode_into_libs=yes
9005 ;;
9006
9007 hpux9* | hpux10* | hpux11*)
9008 # Give a soname corresponding to the major version so that dld.sl refuses to
9009 # link against other versions.
9010 version_type=sunos
9011 need_lib_prefix=no
9012 need_version=no
9013 case $host_cpu in
9014 ia64*)
9015 shrext_cmds='.so'
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.so"
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 if test "X$HPUX_IA64_MODE" = X32; then
9023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9024 else
9025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9026 fi
9027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9028 ;;
9029 hppa*64*)
9030 shrext_cmds='.sl'
9031 hardcode_into_libs=yes
9032 dynamic_linker="$host_os dld.sl"
9033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039 ;;
9040 *)
9041 shrext_cmds='.sl'
9042 dynamic_linker="$host_os dld.sl"
9043 shlibpath_var=SHLIB_PATH
9044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 ;;
9048 esac
9049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9050 postinstall_cmds='chmod 555 $lib'
9051 ;;
9052
9053 interix3*)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9063 ;;
9064
9065 irix5* | irix6* | nonstopux*)
9066 case $host_os in
9067 nonstopux*) version_type=nonstopux ;;
9068 *)
9069 if test "$lt_cv_prog_gnu_ld" = yes; then
9070 version_type=linux
9071 else
9072 version_type=irix
9073 fi ;;
9074 esac
9075 need_lib_prefix=no
9076 need_version=no
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9079 case $host_os in
9080 irix5* | nonstopux*)
9081 libsuff= shlibsuff=
9082 ;;
9083 *)
9084 case $LD in # libtool.m4 will add one of these switches to LD
9085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9086 libsuff= shlibsuff= libmagic=32-bit;;
9087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9088 libsuff=32 shlibsuff=N32 libmagic=N32;;
9089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9091 *) libsuff= shlibsuff= libmagic=never-match;;
9092 esac
9093 ;;
9094 esac
9095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9096 shlibpath_overrides_runpath=no
9097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9099 hardcode_into_libs=yes
9100 ;;
9101
9102 # No shared lib support for Linux oldld, aout, or coff.
9103 linux*oldld* | linux*aout* | linux*coff*)
9104 dynamic_linker=no
9105 ;;
9106
9107 # This must be Linux ELF.
9108 linux* | k*bsd*-gnu)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 # This implies no fast_install, which is unacceptable.
9118 # Some rework will be needed to allow for fast_install
9119 # before this can be enabled.
9120 hardcode_into_libs=yes
9121
9122 # Append ld.so.conf contents to the search path
9123 if test -f /etc/ld.so.conf; then
9124 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' ' '`
9125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9126 fi
9127
9128 # We used to test for /lib/ld.so.1 and disable shared libraries on
9129 # powerpc, because MkLinux only supported shared libraries with the
9130 # GNU dynamic linker. Since this was broken with cross compilers,
9131 # most powerpc-linux boxes support dynamic linking these days and
9132 # people can always --disable-shared, the test was removed, and we
9133 # assume the GNU/Linux dynamic linker is in use.
9134 dynamic_linker='GNU/Linux ld.so'
9135 ;;
9136
9137 netbsdelf*-gnu)
9138 version_type=linux
9139 need_lib_prefix=no
9140 need_version=no
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 shlibpath_overrides_runpath=no
9145 hardcode_into_libs=yes
9146 dynamic_linker='NetBSD ld.elf_so'
9147 ;;
9148
9149 netbsd*)
9150 version_type=sunos
9151 need_lib_prefix=no
9152 need_version=no
9153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156 dynamic_linker='NetBSD (a.out) ld.so'
9157 else
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 dynamic_linker='NetBSD ld.elf_so'
9161 fi
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9164 hardcode_into_libs=yes
9165 ;;
9166
9167 newsos6)
9168 version_type=linux
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 ;;
9173
9174 nto-qnx*)
9175 version_type=linux
9176 need_lib_prefix=no
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9182 ;;
9183
9184 openbsd*)
9185 version_type=sunos
9186 sys_lib_dlsearch_path_spec="/usr/lib"
9187 need_lib_prefix=no
9188 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9189 case $host_os in
9190 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9191 *) need_version=no ;;
9192 esac
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197 case $host_os in
9198 openbsd2.[89] | openbsd2.[89].*)
9199 shlibpath_overrides_runpath=no
9200 ;;
9201 *)
9202 shlibpath_overrides_runpath=yes
9203 ;;
9204 esac
9205 else
9206 shlibpath_overrides_runpath=yes
9207 fi
9208 ;;
9209
9210 os2*)
9211 libname_spec='$name'
9212 shrext_cmds=".dll"
9213 need_lib_prefix=no
9214 library_names_spec='$libname${shared_ext} $libname.a'
9215 dynamic_linker='OS/2 ld.exe'
9216 shlibpath_var=LIBPATH
9217 ;;
9218
9219 osf3* | osf4* | osf5*)
9220 version_type=osf
9221 need_lib_prefix=no
9222 need_version=no
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9228 ;;
9229
9230 solaris*)
9231 version_type=linux
9232 need_lib_prefix=no
9233 need_version=no
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 hardcode_into_libs=yes
9239 # ldd complains unless libraries are executable
9240 postinstall_cmds='chmod +x $lib'
9241 ;;
9242
9243 sunos4*)
9244 version_type=sunos
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 if test "$with_gnu_ld" = yes; then
9250 need_lib_prefix=no
9251 fi
9252 need_version=yes
9253 ;;
9254
9255 sysv4 | sysv4.3*)
9256 version_type=linux
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 case $host_vendor in
9261 sni)
9262 shlibpath_overrides_runpath=no
9263 need_lib_prefix=no
9264 export_dynamic_flag_spec='${wl}-Blargedynsym'
9265 runpath_var=LD_RUN_PATH
9266 ;;
9267 siemens)
9268 need_lib_prefix=no
9269 ;;
9270 motorola)
9271 need_lib_prefix=no
9272 need_version=no
9273 shlibpath_overrides_runpath=no
9274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9275 ;;
9276 esac
9277 ;;
9278
9279 sysv4*MP*)
9280 if test -d /usr/nec ;then
9281 version_type=linux
9282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283 soname_spec='$libname${shared_ext}.$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 fi
9286 ;;
9287
9288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289 version_type=freebsd-elf
9290 need_lib_prefix=no
9291 need_version=no
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 hardcode_into_libs=yes
9296 if test "$with_gnu_ld" = yes; then
9297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9298 shlibpath_overrides_runpath=no
9299 else
9300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301 shlibpath_overrides_runpath=yes
9302 case $host_os in
9303 sco3.2v5*)
9304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9305 ;;
9306 esac
9307 fi
9308 sys_lib_dlsearch_path_spec='/usr/lib'
9309 ;;
9310
9311 uts4*)
9312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 ;;
9317
9318 *)
9319 dynamic_linker=no
9320 ;;
9321 esac
9322 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9323 echo "${ECHO_T}$dynamic_linker" >&6; }
9324 test "$dynamic_linker" = no && can_build_shared=no
9325
9326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9327 if test "$GCC" = yes; then
9328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9329 fi
9330
9331 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9332 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9333 hardcode_action=
9334 if test -n "$hardcode_libdir_flag_spec" || \
9335 test -n "$runpath_var" || \
9336 test "X$hardcode_automatic" = "Xyes" ; then
9337
9338 # We can hardcode non-existant directories.
9339 if test "$hardcode_direct" != no &&
9340 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9341 # have to relink, otherwise we might link with an installed library
9342 # when we should be linking with a yet-to-be-installed one
9343 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9344 test "$hardcode_minus_L" != no; then
9345 # Linking always hardcodes the temporary library directory.
9346 hardcode_action=relink
9347 else
9348 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9349 hardcode_action=immediate
9350 fi
9351 else
9352 # We cannot hardcode anything, or else we can only hardcode existing
9353 # directories.
9354 hardcode_action=unsupported
9355 fi
9356 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9357 echo "${ECHO_T}$hardcode_action" >&6; }
9358
9359 if test "$hardcode_action" = relink; then
9360 # Fast installation is not supported
9361 enable_fast_install=no
9362 elif test "$shlibpath_overrides_runpath" = yes ||
9363 test "$enable_shared" = no; then
9364 # Fast installation is not necessary
9365 enable_fast_install=needless
9366 fi
9367
9368 striplib=
9369 old_striplib=
9370 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9371 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9372 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9373 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9374 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9375 { echo "$as_me:$LINENO: result: yes" >&5
9376 echo "${ECHO_T}yes" >&6; }
9377 else
9378 # FIXME - insert some real tests, host_os isn't really good enough
9379 case $host_os in
9380 darwin*)
9381 if test -n "$STRIP" ; then
9382 striplib="$STRIP -x"
9383 { echo "$as_me:$LINENO: result: yes" >&5
9384 echo "${ECHO_T}yes" >&6; }
9385 else
9386 { echo "$as_me:$LINENO: result: no" >&5
9387 echo "${ECHO_T}no" >&6; }
9388 fi
9389 ;;
9390 *)
9391 { echo "$as_me:$LINENO: result: no" >&5
9392 echo "${ECHO_T}no" >&6; }
9393 ;;
9394 esac
9395 fi
9396
9397 if test "x$enable_dlopen" != xyes; then
9398 enable_dlopen=unknown
9399 enable_dlopen_self=unknown
9400 enable_dlopen_self_static=unknown
9401 else
9402 lt_cv_dlopen=no
9403 lt_cv_dlopen_libs=
9404
9405 case $host_os in
9406 beos*)
9407 lt_cv_dlopen="load_add_on"
9408 lt_cv_dlopen_libs=
9409 lt_cv_dlopen_self=yes
9410 ;;
9411
9412 mingw* | pw32*)
9413 lt_cv_dlopen="LoadLibrary"
9414 lt_cv_dlopen_libs=
9415 ;;
9416
9417 cygwin*)
9418 lt_cv_dlopen="dlopen"
9419 lt_cv_dlopen_libs=
9420 ;;
9421
9422 darwin*)
9423 # if libdl is installed we need to link against it
9424 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9425 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9426 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 ac_check_lib_save_LIBS=$LIBS
9430 LIBS="-ldl $LIBS"
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h. */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437
9438 /* Override any GCC internal prototype to avoid an error.
9439 Use char because int might match the return type of a GCC
9440 builtin and then its argument prototype would still apply. */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 char dlopen ();
9445 int
9446 main ()
9447 {
9448 return dlopen ();
9449 ;
9450 return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (ac_try="$ac_link"
9455 case "(($ac_try" in
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9458 esac
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_link") 2>conftest.er1
9461 ac_status=$?
9462 grep -v '^ *+' conftest.er1 >conftest.err
9463 rm -f conftest.er1
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9468 { (case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_try") 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest$ac_exeext'
9478 { (case "(($ac_try" in
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9481 esac
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483 (eval "$ac_try") 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_cv_lib_dl_dlopen=yes
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 ac_cv_lib_dl_dlopen=no
9493 fi
9494
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 LIBS=$ac_check_lib_save_LIBS
9498 fi
9499 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9500 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9501 if test $ac_cv_lib_dl_dlopen = yes; then
9502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9503 else
9504
9505 lt_cv_dlopen="dyld"
9506 lt_cv_dlopen_libs=
9507 lt_cv_dlopen_self=yes
9508
9509 fi
9510
9511 ;;
9512
9513 *)
9514 { echo "$as_me:$LINENO: checking for shl_load" >&5
9515 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9516 if test "${ac_cv_func_shl_load+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9527 #define shl_load innocuous_shl_load
9528
9529 /* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char shl_load (); below.
9531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 <limits.h> exists even on freestanding compilers. */
9533
9534 #ifdef __STDC__
9535 # include <limits.h>
9536 #else
9537 # include <assert.h>
9538 #endif
9539
9540 #undef shl_load
9541
9542 /* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 char shl_load ();
9549 /* The GNU C library defines this for functions which it implements
9550 to always fail with ENOSYS. Some functions are actually named
9551 something starting with __ and the normal name is an alias. */
9552 #if defined __stub_shl_load || defined __stub___shl_load
9553 choke me
9554 #endif
9555
9556 int
9557 main ()
9558 {
9559 return shl_load ();
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (ac_try="$ac_link"
9566 case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
9589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_try") 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_func_shl_load=yes
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 ac_cv_func_shl_load=no
9604 fi
9605
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 fi
9609 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9610 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9611 if test $ac_cv_func_shl_load = yes; then
9612 lt_cv_dlopen="shl_load"
9613 else
9614 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9615 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9616 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 ac_check_lib_save_LIBS=$LIBS
9620 LIBS="-ldld $LIBS"
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 char shl_load ();
9635 int
9636 main ()
9637 {
9638 return shl_load ();
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9645 case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_link") 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9658 { (case "(($ac_try" in
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_try") 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; } &&
9667 { ac_try='test -s conftest$ac_exeext'
9668 { (case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_try") 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_lib_dld_shl_load=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_cv_lib_dld_shl_load=no
9683 fi
9684
9685 rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9688 fi
9689 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9690 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9691 if test $ac_cv_lib_dld_shl_load = yes; then
9692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9693 else
9694 { echo "$as_me:$LINENO: checking for dlopen" >&5
9695 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9696 if test "${ac_cv_func_dlopen+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9707 #define dlopen innocuous_dlopen
9708
9709 /* System header to define __stub macros and hopefully few prototypes,
9710 which can conflict with char dlopen (); below.
9711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9712 <limits.h> exists even on freestanding compilers. */
9713
9714 #ifdef __STDC__
9715 # include <limits.h>
9716 #else
9717 # include <assert.h>
9718 #endif
9719
9720 #undef dlopen
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char dlopen ();
9729 /* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732 #if defined __stub_dlopen || defined __stub___dlopen
9733 choke me
9734 #endif
9735
9736 int
9737 main ()
9738 {
9739 return dlopen ();
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9746 case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749 esac
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9759 { (case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_try") 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try='test -s conftest$ac_exeext'
9769 { (case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772 esac
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_try") 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_func_dlopen=yes
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_cv_func_dlopen=no
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9790 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9791 if test $ac_cv_func_dlopen = yes; then
9792 lt_cv_dlopen="dlopen"
9793 else
9794 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799 ac_check_lib_save_LIBS=$LIBS
9800 LIBS="-ldl $LIBS"
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h. */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char dlopen ();
9815 int
9816 main ()
9817 {
9818 return dlopen ();
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_try") 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_lib_dl_dlopen=yes
9858 else
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 ac_cv_lib_dl_dlopen=no
9863 fi
9864
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9868 fi
9869 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9870 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9871 if test $ac_cv_lib_dl_dlopen = yes; then
9872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9873 else
9874 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9875 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-lsvld $LIBS"
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h. */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char dlopen ();
9895 int
9896 main ()
9897 {
9898 return dlopen ();
9899 ;
9900 return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_svld_dlopen=yes
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_lib_svld_dlopen=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9948 fi
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9950 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9951 if test $ac_cv_lib_svld_dlopen = yes; then
9952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9953 else
9954 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9955 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9956 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 ac_check_lib_save_LIBS=$LIBS
9960 LIBS="-ldld $LIBS"
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967
9968 /* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 char dld_link ();
9975 int
9976 main ()
9977 {
9978 return dld_link ();
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9985 case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_link") 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10011 esac
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_try") 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_lib_dld_dld_link=yes
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 ac_cv_lib_dld_dld_link=no
10023 fi
10024
10025 rm -f core conftest.err conftest.$ac_objext \
10026 conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10028 fi
10029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10030 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10031 if test $ac_cv_lib_dld_dld_link = yes; then
10032 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10033 fi
10034
10035
10036 fi
10037
10038
10039 fi
10040
10041
10042 fi
10043
10044
10045 fi
10046
10047
10048 fi
10049
10050 ;;
10051 esac
10052
10053 if test "x$lt_cv_dlopen" != xno; then
10054 enable_dlopen=yes
10055 else
10056 enable_dlopen=no
10057 fi
10058
10059 case $lt_cv_dlopen in
10060 dlopen)
10061 save_CPPFLAGS="$CPPFLAGS"
10062 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10063
10064 save_LDFLAGS="$LDFLAGS"
10065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10066
10067 save_LIBS="$LIBS"
10068 LIBS="$lt_cv_dlopen_libs $LIBS"
10069
10070 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10071 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10072 if test "${lt_cv_dlopen_self+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075 if test "$cross_compiling" = yes; then :
10076 lt_cv_dlopen_self=cross
10077 else
10078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10079 lt_status=$lt_dlunknown
10080 cat > conftest.$ac_ext <<EOF
10081 #line 10081 "configure"
10082 #include "confdefs.h"
10083
10084 #if HAVE_DLFCN_H
10085 #include <dlfcn.h>
10086 #endif
10087
10088 #include <stdio.h>
10089
10090 #ifdef RTLD_GLOBAL
10091 # define LT_DLGLOBAL RTLD_GLOBAL
10092 #else
10093 # ifdef DL_GLOBAL
10094 # define LT_DLGLOBAL DL_GLOBAL
10095 # else
10096 # define LT_DLGLOBAL 0
10097 # endif
10098 #endif
10099
10100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10101 find out it does not work in some platform. */
10102 #ifndef LT_DLLAZY_OR_NOW
10103 # ifdef RTLD_LAZY
10104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10105 # else
10106 # ifdef DL_LAZY
10107 # define LT_DLLAZY_OR_NOW DL_LAZY
10108 # else
10109 # ifdef RTLD_NOW
10110 # define LT_DLLAZY_OR_NOW RTLD_NOW
10111 # else
10112 # ifdef DL_NOW
10113 # define LT_DLLAZY_OR_NOW DL_NOW
10114 # else
10115 # define LT_DLLAZY_OR_NOW 0
10116 # endif
10117 # endif
10118 # endif
10119 # endif
10120 #endif
10121
10122 #ifdef __cplusplus
10123 extern "C" void exit (int);
10124 #endif
10125
10126 void fnord() { int i=42;}
10127 int main ()
10128 {
10129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10130 int status = $lt_dlunknown;
10131
10132 if (self)
10133 {
10134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10136 /* dlclose (self); */
10137 }
10138 else
10139 puts (dlerror ());
10140
10141 exit (status);
10142 }
10143 EOF
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10149 (./conftest; exit; ) >&5 2>/dev/null
10150 lt_status=$?
10151 case x$lt_status in
10152 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10153 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10154 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10155 esac
10156 else :
10157 # compilation failed
10158 lt_cv_dlopen_self=no
10159 fi
10160 fi
10161 rm -fr conftest*
10162
10163
10164 fi
10165 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10166 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10167
10168 if test "x$lt_cv_dlopen_self" = xyes; then
10169 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10170 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10171 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10172 if test "${lt_cv_dlopen_self_static+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175 if test "$cross_compiling" = yes; then :
10176 lt_cv_dlopen_self_static=cross
10177 else
10178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10179 lt_status=$lt_dlunknown
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10181 "configure"
10182 #include "confdefs.h"
10183
10184 #if HAVE_DLFCN_H
10185 #include <dlfcn.h>
10186 #endif
10187
10188 #include <stdio.h>
10189
10190 #ifdef RTLD_GLOBAL
10191 # define LT_DLGLOBAL RTLD_GLOBAL
10192 #else
10193 # ifdef DL_GLOBAL
10194 # define LT_DLGLOBAL DL_GLOBAL
10195 # else
10196 # define LT_DLGLOBAL 0
10197 # endif
10198 #endif
10199
10200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10201 find out it does not work in some platform. */
10202 #ifndef LT_DLLAZY_OR_NOW
10203 # ifdef RTLD_LAZY
10204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10205 # else
10206 # ifdef DL_LAZY
10207 # define LT_DLLAZY_OR_NOW DL_LAZY
10208 # else
10209 # ifdef RTLD_NOW
10210 # define LT_DLLAZY_OR_NOW RTLD_NOW
10211 # else
10212 # ifdef DL_NOW
10213 # define LT_DLLAZY_OR_NOW DL_NOW
10214 # else
10215 # define LT_DLLAZY_OR_NOW 0
10216 # endif
10217 # endif
10218 # endif
10219 # endif
10220 #endif
10221
10222 #ifdef __cplusplus
10223 extern "C" void exit (int);
10224 #endif
10225
10226 void fnord() { int i=42;}
10227 int main ()
10228 {
10229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10230 int status = $lt_dlunknown;
10231
10232 if (self)
10233 {
10234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10236 /* dlclose (self); */
10237 }
10238 else
10239 puts (dlerror ());
10240
10241 exit (status);
10242 }
10243 EOF
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10249 (./conftest; exit; ) >&5 2>/dev/null
10250 lt_status=$?
10251 case x$lt_status in
10252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10255 esac
10256 else :
10257 # compilation failed
10258 lt_cv_dlopen_self_static=no
10259 fi
10260 fi
10261 rm -fr conftest*
10262
10263
10264 fi
10265 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10266 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10267 fi
10268
10269 CPPFLAGS="$save_CPPFLAGS"
10270 LDFLAGS="$save_LDFLAGS"
10271 LIBS="$save_LIBS"
10272 ;;
10273 esac
10274
10275 case $lt_cv_dlopen_self in
10276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10277 *) enable_dlopen_self=unknown ;;
10278 esac
10279
10280 case $lt_cv_dlopen_self_static in
10281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10282 *) enable_dlopen_self_static=unknown ;;
10283 esac
10284 fi
10285
10286
10287 # Report which library types will actually be built
10288 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10289 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10290 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10291 echo "${ECHO_T}$can_build_shared" >&6; }
10292
10293 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10294 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10295 test "$can_build_shared" = "no" && enable_shared=no
10296
10297 # On AIX, shared libraries and static libraries use the same namespace, and
10298 # are all built from PIC.
10299 case $host_os in
10300 aix3*)
10301 test "$enable_shared" = yes && enable_static=no
10302 if test -n "$RANLIB"; then
10303 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10304 postinstall_cmds='$RANLIB $lib'
10305 fi
10306 ;;
10307
10308 aix4* | aix5*)
10309 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10310 test "$enable_shared" = yes && enable_static=no
10311 fi
10312 ;;
10313 esac
10314 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10315 echo "${ECHO_T}$enable_shared" >&6; }
10316
10317 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10318 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10319 # Make sure either enable_shared or enable_static is yes.
10320 test "$enable_shared" = yes || enable_static=yes
10321 { echo "$as_me:$LINENO: result: $enable_static" >&5
10322 echo "${ECHO_T}$enable_static" >&6; }
10323
10324 # The else clause should only fire when bootstrapping the
10325 # libtool distribution, otherwise you forgot to ship ltmain.sh
10326 # with your package, and you will get complaints that there are
10327 # no rules to generate ltmain.sh.
10328 if test -f "$ltmain"; then
10329 # See if we are running on zsh, and set the options which allow our commands through
10330 # without removal of \ escapes.
10331 if test -n "${ZSH_VERSION+set}" ; then
10332 setopt NO_GLOB_SUBST
10333 fi
10334 # Now quote all the things that may contain metacharacters while being
10335 # careful not to overquote the AC_SUBSTed values. We take copies of the
10336 # variables and quote the copies for generation of the libtool script.
10337 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10338 SED SHELL STRIP \
10339 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10340 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10341 deplibs_check_method reload_flag reload_cmds need_locks \
10342 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10343 lt_cv_sys_global_symbol_to_c_name_address \
10344 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10345 old_postinstall_cmds old_postuninstall_cmds \
10346 compiler \
10347 CC \
10348 LD \
10349 lt_prog_compiler_wl \
10350 lt_prog_compiler_pic \
10351 lt_prog_compiler_static \
10352 lt_prog_compiler_no_builtin_flag \
10353 export_dynamic_flag_spec \
10354 thread_safe_flag_spec \
10355 whole_archive_flag_spec \
10356 enable_shared_with_static_runtimes \
10357 old_archive_cmds \
10358 old_archive_from_new_cmds \
10359 predep_objects \
10360 postdep_objects \
10361 predeps \
10362 postdeps \
10363 compiler_lib_search_path \
10364 archive_cmds \
10365 archive_expsym_cmds \
10366 postinstall_cmds \
10367 postuninstall_cmds \
10368 old_archive_from_expsyms_cmds \
10369 allow_undefined_flag \
10370 no_undefined_flag \
10371 export_symbols_cmds \
10372 hardcode_libdir_flag_spec \
10373 hardcode_libdir_flag_spec_ld \
10374 hardcode_libdir_separator \
10375 hardcode_automatic \
10376 module_cmds \
10377 module_expsym_cmds \
10378 lt_cv_prog_compiler_c_o \
10379 exclude_expsyms \
10380 include_expsyms; do
10381
10382 case $var in
10383 old_archive_cmds | \
10384 old_archive_from_new_cmds | \
10385 archive_cmds | \
10386 archive_expsym_cmds | \
10387 module_cmds | \
10388 module_expsym_cmds | \
10389 old_archive_from_expsyms_cmds | \
10390 export_symbols_cmds | \
10391 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10392 postinstall_cmds | postuninstall_cmds | \
10393 old_postinstall_cmds | old_postuninstall_cmds | \
10394 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10395 # Double-quote double-evaled strings.
10396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10397 ;;
10398 *)
10399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10400 ;;
10401 esac
10402 done
10403
10404 case $lt_echo in
10405 *'\$0 --fallback-echo"')
10406 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10407 ;;
10408 esac
10409
10410 cfgfile="${ofile}T"
10411 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10412 $rm -f "$cfgfile"
10413 { echo "$as_me:$LINENO: creating $ofile" >&5
10414 echo "$as_me: creating $ofile" >&6;}
10415
10416 cat <<__EOF__ >> "$cfgfile"
10417 #! $SHELL
10418
10419 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10420 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10421 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10422 #
10423 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10424 # Free Software Foundation, Inc.
10425 #
10426 # This file is part of GNU Libtool:
10427 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10428 #
10429 # This program is free software; you can redistribute it and/or modify
10430 # it under the terms of the GNU General Public License as published by
10431 # the Free Software Foundation; either version 2 of the License, or
10432 # (at your option) any later version.
10433 #
10434 # This program is distributed in the hope that it will be useful, but
10435 # WITHOUT ANY WARRANTY; without even the implied warranty of
10436 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10437 # General Public License for more details.
10438 #
10439 # You should have received a copy of the GNU General Public License
10440 # along with this program; if not, write to the Free Software
10441 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10442 #
10443 # As a special exception to the GNU General Public License, if you
10444 # distribute this file as part of a program that contains a
10445 # configuration script generated by Autoconf, you may include it under
10446 # the same distribution terms that you use for the rest of that program.
10447
10448 # A sed program that does not truncate output.
10449 SED=$lt_SED
10450
10451 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10452 Xsed="$SED -e 1s/^X//"
10453
10454 # The HP-UX ksh and POSIX shell print the target directory to stdout
10455 # if CDPATH is set.
10456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10457
10458 # The names of the tagged configurations supported by this script.
10459 available_tags=
10460
10461 # ### BEGIN LIBTOOL CONFIG
10462
10463 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10464
10465 # Shell to use when invoking shell scripts.
10466 SHELL=$lt_SHELL
10467
10468 # Whether or not to build shared libraries.
10469 build_libtool_libs=$enable_shared
10470
10471 # Whether or not to build static libraries.
10472 build_old_libs=$enable_static
10473
10474 # Whether or not to add -lc for building shared libraries.
10475 build_libtool_need_lc=$archive_cmds_need_lc
10476
10477 # Whether or not to disallow shared libs when runtime libs are static
10478 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10479
10480 # Whether or not to optimize for fast installation.
10481 fast_install=$enable_fast_install
10482
10483 # The host system.
10484 host_alias=$host_alias
10485 host=$host
10486 host_os=$host_os
10487
10488 # The build system.
10489 build_alias=$build_alias
10490 build=$build
10491 build_os=$build_os
10492
10493 # An echo program that does not interpret backslashes.
10494 echo=$lt_echo
10495
10496 # The archiver.
10497 AR=$lt_AR
10498 AR_FLAGS=$lt_AR_FLAGS
10499
10500 # A C compiler.
10501 LTCC=$lt_LTCC
10502
10503 # LTCC compiler flags.
10504 LTCFLAGS=$lt_LTCFLAGS
10505
10506 # A language-specific compiler.
10507 CC=$lt_compiler
10508
10509 # Is the compiler the GNU C compiler?
10510 with_gcc=$GCC
10511
10512 # An ERE matcher.
10513 EGREP=$lt_EGREP
10514
10515 # The linker used to build libraries.
10516 LD=$lt_LD
10517
10518 # Whether we need hard or soft links.
10519 LN_S=$lt_LN_S
10520
10521 # A BSD-compatible nm program.
10522 NM=$lt_NM
10523
10524 # A symbol stripping program
10525 STRIP=$lt_STRIP
10526
10527 # Used to examine libraries when file_magic_cmd begins "file"
10528 MAGIC_CMD=$MAGIC_CMD
10529
10530 # Used on cygwin: DLL creation program.
10531 DLLTOOL="$DLLTOOL"
10532
10533 # Used on cygwin: object dumper.
10534 OBJDUMP="$OBJDUMP"
10535
10536 # Used on cygwin: assembler.
10537 AS="$AS"
10538
10539 # The name of the directory that contains temporary libtool files.
10540 objdir=$objdir
10541
10542 # How to create reloadable object files.
10543 reload_flag=$lt_reload_flag
10544 reload_cmds=$lt_reload_cmds
10545
10546 # How to pass a linker flag through the compiler.
10547 wl=$lt_lt_prog_compiler_wl
10548
10549 # Object file suffix (normally "o").
10550 objext="$ac_objext"
10551
10552 # Old archive suffix (normally "a").
10553 libext="$libext"
10554
10555 # Shared library suffix (normally ".so").
10556 shrext_cmds='$shrext_cmds'
10557
10558 # Executable file suffix (normally "").
10559 exeext="$exeext"
10560
10561 # Additional compiler flags for building library objects.
10562 pic_flag=$lt_lt_prog_compiler_pic
10563 pic_mode=$pic_mode
10564
10565 # What is the maximum length of a command?
10566 max_cmd_len=$lt_cv_sys_max_cmd_len
10567
10568 # Does compiler simultaneously support -c and -o options?
10569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10570
10571 # Must we lock files when doing compilation?
10572 need_locks=$lt_need_locks
10573
10574 # Do we need the lib prefix for modules?
10575 need_lib_prefix=$need_lib_prefix
10576
10577 # Do we need a version for libraries?
10578 need_version=$need_version
10579
10580 # Whether dlopen is supported.
10581 dlopen_support=$enable_dlopen
10582
10583 # Whether dlopen of programs is supported.
10584 dlopen_self=$enable_dlopen_self
10585
10586 # Whether dlopen of statically linked programs is supported.
10587 dlopen_self_static=$enable_dlopen_self_static
10588
10589 # Compiler flag to prevent dynamic linking.
10590 link_static_flag=$lt_lt_prog_compiler_static
10591
10592 # Compiler flag to turn off builtin functions.
10593 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10594
10595 # Compiler flag to allow reflexive dlopens.
10596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10597
10598 # Compiler flag to generate shared objects directly from archives.
10599 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10600
10601 # Compiler flag to generate thread-safe objects.
10602 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10603
10604 # Library versioning type.
10605 version_type=$version_type
10606
10607 # Format of library name prefix.
10608 libname_spec=$lt_libname_spec
10609
10610 # List of archive names. First name is the real one, the rest are links.
10611 # The last name is the one that the linker finds with -lNAME.
10612 library_names_spec=$lt_library_names_spec
10613
10614 # The coded name of the library, if different from the real name.
10615 soname_spec=$lt_soname_spec
10616
10617 # Commands used to build and install an old-style archive.
10618 RANLIB=$lt_RANLIB
10619 old_archive_cmds=$lt_old_archive_cmds
10620 old_postinstall_cmds=$lt_old_postinstall_cmds
10621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10622
10623 # Create an old-style archive from a shared archive.
10624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10625
10626 # Create a temporary old-style archive to link instead of a shared archive.
10627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10628
10629 # Commands used to build and install a shared archive.
10630 archive_cmds=$lt_archive_cmds
10631 archive_expsym_cmds=$lt_archive_expsym_cmds
10632 postinstall_cmds=$lt_postinstall_cmds
10633 postuninstall_cmds=$lt_postuninstall_cmds
10634
10635 # Commands used to build a loadable module (assumed same as above if empty)
10636 module_cmds=$lt_module_cmds
10637 module_expsym_cmds=$lt_module_expsym_cmds
10638
10639 # Commands to strip libraries.
10640 old_striplib=$lt_old_striplib
10641 striplib=$lt_striplib
10642
10643 # Dependencies to place before the objects being linked to create a
10644 # shared library.
10645 predep_objects=$lt_predep_objects
10646
10647 # Dependencies to place after the objects being linked to create a
10648 # shared library.
10649 postdep_objects=$lt_postdep_objects
10650
10651 # Dependencies to place before the objects being linked to create a
10652 # shared library.
10653 predeps=$lt_predeps
10654
10655 # Dependencies to place after the objects being linked to create a
10656 # shared library.
10657 postdeps=$lt_postdeps
10658
10659 # The library search path used internally by the compiler when linking
10660 # a shared library.
10661 compiler_lib_search_path=$lt_compiler_lib_search_path
10662
10663 # Method to check whether dependent libraries are shared objects.
10664 deplibs_check_method=$lt_deplibs_check_method
10665
10666 # Command to use when deplibs_check_method == file_magic.
10667 file_magic_cmd=$lt_file_magic_cmd
10668
10669 # Flag that allows shared libraries with undefined symbols to be built.
10670 allow_undefined_flag=$lt_allow_undefined_flag
10671
10672 # Flag that forces no undefined symbols.
10673 no_undefined_flag=$lt_no_undefined_flag
10674
10675 # Commands used to finish a libtool library installation in a directory.
10676 finish_cmds=$lt_finish_cmds
10677
10678 # Same as above, but a single script fragment to be evaled but not shown.
10679 finish_eval=$lt_finish_eval
10680
10681 # Take the output of nm and produce a listing of raw symbols and C names.
10682 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10683
10684 # Transform the output of nm in a proper C declaration
10685 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10686
10687 # Transform the output of nm in a C name address pair
10688 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10689
10690 # This is the shared library runtime path variable.
10691 runpath_var=$runpath_var
10692
10693 # This is the shared library path variable.
10694 shlibpath_var=$shlibpath_var
10695
10696 # Is shlibpath searched before the hard-coded library search path?
10697 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10698
10699 # How to hardcode a shared library path into an executable.
10700 hardcode_action=$hardcode_action
10701
10702 # Whether we should hardcode library paths into libraries.
10703 hardcode_into_libs=$hardcode_into_libs
10704
10705 # Flag to hardcode \$libdir into a binary during linking.
10706 # This must work even if \$libdir does not exist.
10707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10708
10709 # If ld is used when linking, flag to hardcode \$libdir into
10710 # a binary during linking. This must work even if \$libdir does
10711 # not exist.
10712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10713
10714 # Whether we need a single -rpath flag with a separated argument.
10715 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10716
10717 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10718 # resulting binary.
10719 hardcode_direct=$hardcode_direct
10720
10721 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10722 # resulting binary.
10723 hardcode_minus_L=$hardcode_minus_L
10724
10725 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10726 # the resulting binary.
10727 hardcode_shlibpath_var=$hardcode_shlibpath_var
10728
10729 # Set to yes if building a shared library automatically hardcodes DIR into the library
10730 # and all subsequent libraries and executables linked against it.
10731 hardcode_automatic=$hardcode_automatic
10732
10733 # Variables whose values should be saved in libtool wrapper scripts and
10734 # restored at relink time.
10735 variables_saved_for_relink="$variables_saved_for_relink"
10736
10737 # Whether libtool must link a program against all its dependency libraries.
10738 link_all_deplibs=$link_all_deplibs
10739
10740 # Compile-time system search path for libraries
10741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10742
10743 # Run-time system search path for libraries
10744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10745
10746 # Fix the shell variable \$srcfile for the compiler.
10747 fix_srcfile_path="$fix_srcfile_path"
10748
10749 # Set to yes if exported symbols are required.
10750 always_export_symbols=$always_export_symbols
10751
10752 # The commands to list exported symbols.
10753 export_symbols_cmds=$lt_export_symbols_cmds
10754
10755 # The commands to extract the exported symbol list from a shared archive.
10756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10757
10758 # Symbols that should not be listed in the preloaded symbols.
10759 exclude_expsyms=$lt_exclude_expsyms
10760
10761 # Symbols that must always be exported.
10762 include_expsyms=$lt_include_expsyms
10763
10764 # ### END LIBTOOL CONFIG
10765
10766 __EOF__
10767
10768
10769 case $host_os in
10770 aix3*)
10771 cat <<\EOF >> "$cfgfile"
10772
10773 # AIX sometimes has problems with the GCC collect2 program. For some
10774 # reason, if we set the COLLECT_NAMES environment variable, the problems
10775 # vanish in a puff of smoke.
10776 if test "X${COLLECT_NAMES+set}" != Xset; then
10777 COLLECT_NAMES=
10778 export COLLECT_NAMES
10779 fi
10780 EOF
10781 ;;
10782 esac
10783
10784 # We use sed instead of cat because bash on DJGPP gets confused if
10785 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10786 # text mode, it properly converts lines to CR/LF. This bash problem
10787 # is reportedly fixed, but why not run on old versions too?
10788 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10789
10790 mv -f "$cfgfile" "$ofile" || \
10791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10792 chmod +x "$ofile"
10793
10794 else
10795 # If there is no Makefile yet, we rely on a make rule to execute
10796 # `config.status --recheck' to rerun these tests and create the
10797 # libtool script then.
10798 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10799 if test -f "$ltmain_in"; then
10800 test -f Makefile && make "$ltmain"
10801 fi
10802 fi
10803
10804
10805 ac_ext=c
10806 ac_cpp='$CPP $CPPFLAGS'
10807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10810
10811 CC="$lt_save_CC"
10812
10813
10814 # Check whether --with-tags was given.
10815 if test "${with_tags+set}" = set; then
10816 withval=$with_tags; tagnames="$withval"
10817 fi
10818
10819
10820 if test -f "$ltmain" && test -n "$tagnames"; then
10821 if test ! -f "${ofile}"; then
10822 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10823 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10824 fi
10825
10826 if test -z "$LTCC"; then
10827 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10828 if test -z "$LTCC"; then
10829 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10830 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10831 else
10832 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10833 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10834 fi
10835 fi
10836 if test -z "$LTCFLAGS"; then
10837 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10838 fi
10839
10840 # Extract list of available tagged configurations in $ofile.
10841 # Note that this assumes the entire list is on one line.
10842 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10843
10844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10845 for tagname in $tagnames; do
10846 IFS="$lt_save_ifs"
10847 # Check whether tagname contains only valid characters
10848 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10849 "") ;;
10850 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10851 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10852 { (exit 1); exit 1; }; }
10853 ;;
10854 esac
10855
10856 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10857 then
10858 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10859 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10860 { (exit 1); exit 1; }; }
10861 fi
10862
10863 # Update the list of available tags.
10864 if test -n "$tagname"; then
10865 echo appending configuration tag \"$tagname\" to $ofile
10866
10867 case $tagname in
10868 CXX)
10869 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10870 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10871 (test "X$CXX" != "Xg++"))) ; then
10872 ac_ext=cpp
10873 ac_cpp='$CXXCPP $CPPFLAGS'
10874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10877
10878
10879
10880
10881 archive_cmds_need_lc_CXX=no
10882 allow_undefined_flag_CXX=
10883 always_export_symbols_CXX=no
10884 archive_expsym_cmds_CXX=
10885 export_dynamic_flag_spec_CXX=
10886 hardcode_direct_CXX=no
10887 hardcode_libdir_flag_spec_CXX=
10888 hardcode_libdir_flag_spec_ld_CXX=
10889 hardcode_libdir_separator_CXX=
10890 hardcode_minus_L_CXX=no
10891 hardcode_shlibpath_var_CXX=unsupported
10892 hardcode_automatic_CXX=no
10893 module_cmds_CXX=
10894 module_expsym_cmds_CXX=
10895 link_all_deplibs_CXX=unknown
10896 old_archive_cmds_CXX=$old_archive_cmds
10897 no_undefined_flag_CXX=
10898 whole_archive_flag_spec_CXX=
10899 enable_shared_with_static_runtimes_CXX=no
10900
10901 # Dependencies to place before and after the object being linked:
10902 predep_objects_CXX=
10903 postdep_objects_CXX=
10904 predeps_CXX=
10905 postdeps_CXX=
10906 compiler_lib_search_path_CXX=
10907
10908 # Source file extension for C++ test sources.
10909 ac_ext=cpp
10910
10911 # Object file extension for compiled C++ test sources.
10912 objext=o
10913 objext_CXX=$objext
10914
10915 # Code to be used in simple compile tests
10916 lt_simple_compile_test_code="int some_variable = 0;\n"
10917
10918 # Code to be used in simple link tests
10919 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10920
10921 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10922
10923 # If no C compiler was specified, use CC.
10924 LTCC=${LTCC-"$CC"}
10925
10926 # If no C compiler flags were specified, use CFLAGS.
10927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10928
10929 # Allow CC to be a program name with arguments.
10930 compiler=$CC
10931
10932
10933 # save warnings/boilerplate of simple test code
10934 ac_outfile=conftest.$ac_objext
10935 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10936 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10937 _lt_compiler_boilerplate=`cat conftest.err`
10938 $rm conftest*
10939
10940 ac_outfile=conftest.$ac_objext
10941 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10942 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10943 _lt_linker_boilerplate=`cat conftest.err`
10944 $rm conftest*
10945
10946
10947 # Allow CC to be a program name with arguments.
10948 lt_save_CC=$CC
10949 lt_save_LD=$LD
10950 lt_save_GCC=$GCC
10951 GCC=$GXX
10952 lt_save_with_gnu_ld=$with_gnu_ld
10953 lt_save_path_LD=$lt_cv_path_LD
10954 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10955 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10956 else
10957 $as_unset lt_cv_prog_gnu_ld
10958 fi
10959 if test -n "${lt_cv_path_LDCXX+set}"; then
10960 lt_cv_path_LD=$lt_cv_path_LDCXX
10961 else
10962 $as_unset lt_cv_path_LD
10963 fi
10964 test -z "${LDCXX+set}" || LD=$LDCXX
10965 CC=${CXX-"c++"}
10966 compiler=$CC
10967 compiler_CXX=$CC
10968 for cc_temp in $compiler""; do
10969 case $cc_temp in
10970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10972 \-*) ;;
10973 *) break;;
10974 esac
10975 done
10976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10977
10978
10979 # We don't want -fno-exception wen compiling C++ code, so set the
10980 # no_builtin_flag separately
10981 if test "$GXX" = yes; then
10982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10983 else
10984 lt_prog_compiler_no_builtin_flag_CXX=
10985 fi
10986
10987 if test "$GXX" = yes; then
10988 # Set up default GNU C++ configuration
10989
10990
10991 # Check whether --with-gnu-ld was given.
10992 if test "${with_gnu_ld+set}" = set; then
10993 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10994 else
10995 with_gnu_ld=no
10996 fi
10997
10998 ac_prog=ld
10999 if test "$GCC" = yes; then
11000 # Check if gcc -print-prog-name=ld gives a path.
11001 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11002 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11003 case $host in
11004 *-*-mingw*)
11005 # gcc leaves a trailing carriage return which upsets mingw
11006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11007 *)
11008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11009 esac
11010 case $ac_prog in
11011 # Accept absolute paths.
11012 [\\/]* | ?:[\\/]*)
11013 re_direlt='/[^/][^/]*/\.\./'
11014 # Canonicalize the pathname of ld
11015 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11017 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11018 done
11019 test -z "$LD" && LD="$ac_prog"
11020 ;;
11021 "")
11022 # If it fails, then pretend we aren't using GCC.
11023 ac_prog=ld
11024 ;;
11025 *)
11026 # If it is relative, then search for the first ld in PATH.
11027 with_gnu_ld=unknown
11028 ;;
11029 esac
11030 elif test "$with_gnu_ld" = yes; then
11031 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11032 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11033 else
11034 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11035 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11036 fi
11037 if test "${lt_cv_path_LD+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040 if test -z "$LD"; then
11041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11042 for ac_dir in $PATH; do
11043 IFS="$lt_save_ifs"
11044 test -z "$ac_dir" && ac_dir=.
11045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11046 lt_cv_path_LD="$ac_dir/$ac_prog"
11047 # Check to see if the program is GNU ld. I'd rather use --version,
11048 # but apparently some variants of GNU ld only accept -v.
11049 # Break only if it was the GNU/non-GNU ld that we prefer.
11050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11051 *GNU* | *'with BFD'*)
11052 test "$with_gnu_ld" != no && break
11053 ;;
11054 *)
11055 test "$with_gnu_ld" != yes && break
11056 ;;
11057 esac
11058 fi
11059 done
11060 IFS="$lt_save_ifs"
11061 else
11062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11063 fi
11064 fi
11065
11066 LD="$lt_cv_path_LD"
11067 if test -n "$LD"; then
11068 { echo "$as_me:$LINENO: result: $LD" >&5
11069 echo "${ECHO_T}$LD" >&6; }
11070 else
11071 { echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6; }
11073 fi
11074 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11075 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11076 { (exit 1); exit 1; }; }
11077 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11078 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11079 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11083 case `$LD -v 2>&1 </dev/null` in
11084 *GNU* | *'with BFD'*)
11085 lt_cv_prog_gnu_ld=yes
11086 ;;
11087 *)
11088 lt_cv_prog_gnu_ld=no
11089 ;;
11090 esac
11091 fi
11092 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11093 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11094 with_gnu_ld=$lt_cv_prog_gnu_ld
11095
11096
11097
11098 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11099 # archiving commands below assume that GNU ld is being used.
11100 if test "$with_gnu_ld" = yes; then
11101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11102 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'
11103
11104 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11106
11107 # If archive_cmds runs LD, not CC, wlarc should be empty
11108 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11109 # investigate it a little bit more. (MM)
11110 wlarc='${wl}'
11111
11112 # ancient GNU ld didn't support --whole-archive et. al.
11113 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11114 grep 'no-whole-archive' > /dev/null; then
11115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11116 else
11117 whole_archive_flag_spec_CXX=
11118 fi
11119 else
11120 with_gnu_ld=no
11121 wlarc=
11122
11123 # A generic and very simple default shared library creation
11124 # command for GNU C++ for the case where it uses the native
11125 # linker, instead of GNU ld. If possible, this setting should
11126 # overridden to take advantage of the native linker features on
11127 # the platform it is being used on.
11128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11129 fi
11130
11131 # Commands to make compiler produce verbose output that lists
11132 # what "hidden" libraries, object files and flags are used when
11133 # linking a shared library.
11134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11135
11136 else
11137 GXX=no
11138 with_gnu_ld=no
11139 wlarc=
11140 fi
11141
11142 # PORTME: fill in a description of your system's C++ link characteristics
11143 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11145 ld_shlibs_CXX=yes
11146 case $host_os in
11147 aix3*)
11148 # FIXME: insert proper C++ library support
11149 ld_shlibs_CXX=no
11150 ;;
11151 aix4* | aix5*)
11152 if test "$host_cpu" = ia64; then
11153 # On IA64, the linker does run time linking by default, so we don't
11154 # have to do anything special.
11155 aix_use_runtimelinking=no
11156 exp_sym_flag='-Bexport'
11157 no_entry_flag=""
11158 else
11159 aix_use_runtimelinking=no
11160
11161 # Test if we are trying to use run time linking or normal
11162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11163 # need to do runtime linking.
11164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11165 for ld_flag in $LDFLAGS; do
11166 case $ld_flag in
11167 *-brtl*)
11168 aix_use_runtimelinking=yes
11169 break
11170 ;;
11171 esac
11172 done
11173 ;;
11174 esac
11175
11176 exp_sym_flag='-bexport'
11177 no_entry_flag='-bnoentry'
11178 fi
11179
11180 # When large executables or shared objects are built, AIX ld can
11181 # have problems creating the table of contents. If linking a library
11182 # or program results in "error TOC overflow" add -mminimal-toc to
11183 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11184 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11185
11186 archive_cmds_CXX=''
11187 hardcode_direct_CXX=yes
11188 hardcode_libdir_separator_CXX=':'
11189 link_all_deplibs_CXX=yes
11190
11191 if test "$GXX" = yes; then
11192 case $host_os in aix4.[012]|aix4.[012].*)
11193 # We only want to do this on AIX 4.2 and lower, the check
11194 # below for broken collect2 doesn't work under 4.3+
11195 collect2name=`${CC} -print-prog-name=collect2`
11196 if test -f "$collect2name" && \
11197 strings "$collect2name" | grep resolve_lib_name >/dev/null
11198 then
11199 # We have reworked collect2
11200 hardcode_direct_CXX=yes
11201 else
11202 # We have old collect2
11203 hardcode_direct_CXX=unsupported
11204 # It fails to find uninstalled libraries when the uninstalled
11205 # path is not listed in the libpath. Setting hardcode_minus_L
11206 # to unsupported forces relinking
11207 hardcode_minus_L_CXX=yes
11208 hardcode_libdir_flag_spec_CXX='-L$libdir'
11209 hardcode_libdir_separator_CXX=
11210 fi
11211 ;;
11212 esac
11213 shared_flag='-shared'
11214 if test "$aix_use_runtimelinking" = yes; then
11215 shared_flag="$shared_flag "'${wl}-G'
11216 fi
11217 else
11218 # not using gcc
11219 if test "$host_cpu" = ia64; then
11220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11221 # chokes on -Wl,-G. The following line is correct:
11222 shared_flag='-G'
11223 else
11224 if test "$aix_use_runtimelinking" = yes; then
11225 shared_flag='${wl}-G'
11226 else
11227 shared_flag='${wl}-bM:SRE'
11228 fi
11229 fi
11230 fi
11231
11232 # It seems that -bexpall does not export symbols beginning with
11233 # underscore (_), so it is better to generate a list of symbols to export.
11234 always_export_symbols_CXX=yes
11235 if test "$aix_use_runtimelinking" = yes; then
11236 # Warning - without using the other runtime loading flags (-brtl),
11237 # -berok will link without error, but may produce a broken library.
11238 allow_undefined_flag_CXX='-berok'
11239 # Determine the default libpath from the value encoded in an empty executable.
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246
11247 int
11248 main ()
11249 {
11250
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest$ac_exeext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289
11290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11291 }'`
11292 # Check for a 64-bit object if we didn't find anything.
11293 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; }
11294 }'`; fi
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11305
11306 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11307
11308 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"
11309 else
11310 if test "$host_cpu" = ia64; then
11311 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11312 allow_undefined_flag_CXX="-z nodefs"
11313 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"
11314 else
11315 # Determine the default libpath from the value encoded in an empty executable.
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322
11323 int
11324 main ()
11325 {
11326
11327 ;
11328 return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (ac_try="$ac_link"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_link") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11346 { (case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_try") 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest$ac_exeext'
11356 { (case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_try") 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365
11366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11367 }'`
11368 # Check for a 64-bit object if we didn't find anything.
11369 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; }
11370 }'`; fi
11371 else
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375
11376 fi
11377
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11381
11382 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11383 # Warning - without using the other run time loading flags,
11384 # -berok will link without error, but may produce a broken library.
11385 no_undefined_flag_CXX=' ${wl}-bernotok'
11386 allow_undefined_flag_CXX=' ${wl}-berok'
11387 # Exported symbols can be pulled into shared objects from archives
11388 whole_archive_flag_spec_CXX='$convenience'
11389 archive_cmds_need_lc_CXX=yes
11390 # This is similar to how AIX traditionally builds its shared libraries.
11391 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'
11392 fi
11393 fi
11394 ;;
11395
11396 beos*)
11397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11398 allow_undefined_flag_CXX=unsupported
11399 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11400 # support --undefined. This deserves some investigation. FIXME
11401 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11402 else
11403 ld_shlibs_CXX=no
11404 fi
11405 ;;
11406
11407 chorus*)
11408 case $cc_basename in
11409 *)
11410 # FIXME: insert proper C++ library support
11411 ld_shlibs_CXX=no
11412 ;;
11413 esac
11414 ;;
11415
11416 cygwin* | mingw* | pw32*)
11417 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11418 # as there is no search path for DLLs.
11419 hardcode_libdir_flag_spec_CXX='-L$libdir'
11420 allow_undefined_flag_CXX=unsupported
11421 always_export_symbols_CXX=no
11422 enable_shared_with_static_runtimes_CXX=yes
11423
11424 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11425 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'
11426 # If the export-symbols file already is a .def file (1st line
11427 # is EXPORTS), use it as is; otherwise, prepend...
11428 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11429 cp $export_symbols $output_objdir/$soname.def;
11430 else
11431 echo EXPORTS > $output_objdir/$soname.def;
11432 cat $export_symbols >> $output_objdir/$soname.def;
11433 fi~
11434 $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'
11435 else
11436 ld_shlibs_CXX=no
11437 fi
11438 ;;
11439 darwin* | rhapsody*)
11440 case $host_os in
11441 rhapsody* | darwin1.[012])
11442 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11443 ;;
11444 *) # Darwin 1.3 on
11445 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11446 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11447 else
11448 case ${MACOSX_DEPLOYMENT_TARGET} in
11449 10.[012])
11450 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11451 ;;
11452 10.*)
11453 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11454 ;;
11455 esac
11456 fi
11457 ;;
11458 esac
11459 archive_cmds_need_lc_CXX=no
11460 hardcode_direct_CXX=no
11461 hardcode_automatic_CXX=yes
11462 hardcode_shlibpath_var_CXX=unsupported
11463 whole_archive_flag_spec_CXX=''
11464 link_all_deplibs_CXX=yes
11465
11466 if test "$GXX" = yes ; then
11467 lt_int_apple_cc_single_mod=no
11468 output_verbose_link_cmd='echo'
11469 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11470 lt_int_apple_cc_single_mod=yes
11471 fi
11472 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11473 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11474 else
11475 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'
11476 fi
11477 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11478 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11479 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11480 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}'
11481 else
11482 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}'
11483 fi
11484 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}'
11485 else
11486 case $cc_basename in
11487 xlc*)
11488 output_verbose_link_cmd='echo'
11489 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'
11490 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11492 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}'
11493 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}'
11494 ;;
11495 *)
11496 ld_shlibs_CXX=no
11497 ;;
11498 esac
11499 fi
11500 ;;
11501
11502 dgux*)
11503 case $cc_basename in
11504 ec++*)
11505 # FIXME: insert proper C++ library support
11506 ld_shlibs_CXX=no
11507 ;;
11508 ghcx*)
11509 # Green Hills C++ Compiler
11510 # FIXME: insert proper C++ library support
11511 ld_shlibs_CXX=no
11512 ;;
11513 *)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 ;;
11517 esac
11518 ;;
11519 freebsd[12]*)
11520 # C++ shared libraries reported to be fairly broken before switch to ELF
11521 ld_shlibs_CXX=no
11522 ;;
11523 freebsd-elf*)
11524 archive_cmds_need_lc_CXX=no
11525 ;;
11526 freebsd* | dragonfly*)
11527 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11528 # conventions
11529 ld_shlibs_CXX=yes
11530 ;;
11531 gnu*)
11532 ;;
11533 hpux9*)
11534 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11535 hardcode_libdir_separator_CXX=:
11536 export_dynamic_flag_spec_CXX='${wl}-E'
11537 hardcode_direct_CXX=yes
11538 hardcode_minus_L_CXX=yes # Not in the search PATH,
11539 # but as the default
11540 # location of the library.
11541
11542 case $cc_basename in
11543 CC*)
11544 # FIXME: insert proper C++ library support
11545 ld_shlibs_CXX=no
11546 ;;
11547 aCC*)
11548 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'
11549 # Commands to make compiler produce verbose output that lists
11550 # what "hidden" libraries, object files and flags are used when
11551 # linking a shared library.
11552 #
11553 # There doesn't appear to be a way to prevent this compiler from
11554 # explicitly linking system object files so we need to strip them
11555 # from the output so that they don't get included in the library
11556 # dependencies.
11557 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'
11558 ;;
11559 *)
11560 if test "$GXX" = yes; then
11561 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'
11562 else
11563 # FIXME: insert proper C++ library support
11564 ld_shlibs_CXX=no
11565 fi
11566 ;;
11567 esac
11568 ;;
11569 hpux10*|hpux11*)
11570 if test $with_gnu_ld = no; then
11571 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11572 hardcode_libdir_separator_CXX=:
11573
11574 case $host_cpu in
11575 hppa*64*|ia64*)
11576 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11577 ;;
11578 *)
11579 export_dynamic_flag_spec_CXX='${wl}-E'
11580 ;;
11581 esac
11582 fi
11583 case $host_cpu in
11584 hppa*64*|ia64*)
11585 hardcode_direct_CXX=no
11586 hardcode_shlibpath_var_CXX=no
11587 ;;
11588 *)
11589 hardcode_direct_CXX=yes
11590 hardcode_minus_L_CXX=yes # Not in the search PATH,
11591 # but as the default
11592 # location of the library.
11593 ;;
11594 esac
11595
11596 case $cc_basename in
11597 CC*)
11598 # FIXME: insert proper C++ library support
11599 ld_shlibs_CXX=no
11600 ;;
11601 aCC*)
11602 case $host_cpu in
11603 hppa*64*)
11604 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11605 ;;
11606 ia64*)
11607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11608 ;;
11609 *)
11610 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11611 ;;
11612 esac
11613 # Commands to make compiler produce verbose output that lists
11614 # what "hidden" libraries, object files and flags are used when
11615 # linking a shared library.
11616 #
11617 # There doesn't appear to be a way to prevent this compiler from
11618 # explicitly linking system object files so we need to strip them
11619 # from the output so that they don't get included in the library
11620 # dependencies.
11621 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'
11622 ;;
11623 *)
11624 if test "$GXX" = yes; then
11625 if test $with_gnu_ld = no; then
11626 case $host_cpu in
11627 hppa*64*)
11628 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11629 ;;
11630 ia64*)
11631 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11632 ;;
11633 *)
11634 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'
11635 ;;
11636 esac
11637 fi
11638 else
11639 # FIXME: insert proper C++ library support
11640 ld_shlibs_CXX=no
11641 fi
11642 ;;
11643 esac
11644 ;;
11645 interix3*)
11646 hardcode_direct_CXX=no
11647 hardcode_shlibpath_var_CXX=no
11648 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11649 export_dynamic_flag_spec_CXX='${wl}-E'
11650 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11651 # Instead, shared libraries are loaded at an image base (0x10000000 by
11652 # default) and relocated if they conflict, which is a slow very memory
11653 # consuming and fragmenting process. To avoid this, we pick a random,
11654 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11655 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11656 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'
11657 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'
11658 ;;
11659 irix5* | irix6*)
11660 case $cc_basename in
11661 CC*)
11662 # SGI C++
11663 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'
11664
11665 # Archives containing C++ object files must be created using
11666 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11667 # necessary to make sure instantiated templates are included
11668 # in the archive.
11669 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11670 ;;
11671 *)
11672 if test "$GXX" = yes; then
11673 if test "$with_gnu_ld" = no; then
11674 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'
11675 else
11676 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'
11677 fi
11678 fi
11679 link_all_deplibs_CXX=yes
11680 ;;
11681 esac
11682 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11683 hardcode_libdir_separator_CXX=:
11684 ;;
11685 linux* | k*bsd*-gnu)
11686 case $cc_basename in
11687 KCC*)
11688 # Kuck and Associates, Inc. (KAI) C++ Compiler
11689
11690 # KCC will only create a shared library if the output file
11691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11692 # to its proper name (with version) after linking.
11693 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'
11694 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'
11695 # Commands to make compiler produce verbose output that lists
11696 # what "hidden" libraries, object files and flags are used when
11697 # linking a shared library.
11698 #
11699 # There doesn't appear to be a way to prevent this compiler from
11700 # explicitly linking system object files so we need to strip them
11701 # from the output so that they don't get included in the library
11702 # dependencies.
11703 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'
11704
11705 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11707
11708 # Archives containing C++ object files must be created using
11709 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11710 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11711 ;;
11712 icpc*)
11713 # Intel C++
11714 with_gnu_ld=yes
11715 # version 8.0 and above of icpc choke on multiply defined symbols
11716 # if we add $predep_objects and $postdep_objects, however 7.1 and
11717 # earlier do not add the objects themselves.
11718 case `$CC -V 2>&1` in
11719 *"Version 7."*)
11720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11721 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'
11722 ;;
11723 *) # Version 8.0 or newer
11724 tmp_idyn=
11725 case $host_cpu in
11726 ia64*) tmp_idyn=' -i_dynamic';;
11727 esac
11728 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11729 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'
11730 ;;
11731 esac
11732 archive_cmds_need_lc_CXX=no
11733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11735 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11736 ;;
11737 pgCC*)
11738 # Portland Group C++ compiler
11739 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11740 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'
11741
11742 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11744 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'
11745 ;;
11746 cxx*)
11747 # Compaq C++
11748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11749 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11750
11751 runpath_var=LD_RUN_PATH
11752 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11753 hardcode_libdir_separator_CXX=:
11754
11755 # Commands to make compiler produce verbose output that lists
11756 # what "hidden" libraries, object files and flags are used when
11757 # linking a shared library.
11758 #
11759 # There doesn't appear to be a way to prevent this compiler from
11760 # explicitly linking system object files so we need to strip them
11761 # from the output so that they don't get included in the library
11762 # dependencies.
11763 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'
11764 ;;
11765 esac
11766 ;;
11767 lynxos*)
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11770 ;;
11771 m88k*)
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11774 ;;
11775 mvs*)
11776 case $cc_basename in
11777 cxx*)
11778 # FIXME: insert proper C++ library support
11779 ld_shlibs_CXX=no
11780 ;;
11781 *)
11782 # FIXME: insert proper C++ library support
11783 ld_shlibs_CXX=no
11784 ;;
11785 esac
11786 ;;
11787 netbsd* | netbsdelf*-gnu)
11788 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11789 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11790 wlarc=
11791 hardcode_libdir_flag_spec_CXX='-R$libdir'
11792 hardcode_direct_CXX=yes
11793 hardcode_shlibpath_var_CXX=no
11794 fi
11795 # Workaround some broken pre-1.5 toolchains
11796 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11797 ;;
11798 openbsd2*)
11799 # C++ shared libraries are fairly broken
11800 ld_shlibs_CXX=no
11801 ;;
11802 openbsd*)
11803 hardcode_direct_CXX=yes
11804 hardcode_shlibpath_var_CXX=no
11805 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11808 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11809 export_dynamic_flag_spec_CXX='${wl}-E'
11810 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11811 fi
11812 output_verbose_link_cmd='echo'
11813 ;;
11814 osf3*)
11815 case $cc_basename in
11816 KCC*)
11817 # Kuck and Associates, Inc. (KAI) C++ Compiler
11818
11819 # KCC will only create a shared library if the output file
11820 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11821 # to its proper name (with version) after linking.
11822 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'
11823
11824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11825 hardcode_libdir_separator_CXX=:
11826
11827 # Archives containing C++ object files must be created using
11828 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11829 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11830
11831 ;;
11832 RCC*)
11833 # Rational C++ 2.4.1
11834 # FIXME: insert proper C++ library support
11835 ld_shlibs_CXX=no
11836 ;;
11837 cxx*)
11838 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11839 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'
11840
11841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11842 hardcode_libdir_separator_CXX=:
11843
11844 # Commands to make compiler produce verbose output that lists
11845 # what "hidden" libraries, object files and flags are used when
11846 # linking a shared library.
11847 #
11848 # There doesn't appear to be a way to prevent this compiler from
11849 # explicitly linking system object files so we need to strip them
11850 # from the output so that they don't get included in the library
11851 # dependencies.
11852 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'
11853 ;;
11854 *)
11855 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11857 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'
11858
11859 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11860 hardcode_libdir_separator_CXX=:
11861
11862 # Commands to make compiler produce verbose output that lists
11863 # what "hidden" libraries, object files and flags are used when
11864 # linking a shared library.
11865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11866
11867 else
11868 # FIXME: insert proper C++ library support
11869 ld_shlibs_CXX=no
11870 fi
11871 ;;
11872 esac
11873 ;;
11874 osf4* | osf5*)
11875 case $cc_basename in
11876 KCC*)
11877 # Kuck and Associates, Inc. (KAI) C++ Compiler
11878
11879 # KCC will only create a shared library if the output file
11880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11881 # to its proper name (with version) after linking.
11882 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'
11883
11884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11885 hardcode_libdir_separator_CXX=:
11886
11887 # Archives containing C++ object files must be created using
11888 # the KAI C++ compiler.
11889 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11890 ;;
11891 RCC*)
11892 # Rational C++ 2.4.1
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 ;;
11896 cxx*)
11897 allow_undefined_flag_CXX=' -expect_unresolved \*'
11898 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'
11899 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11900 echo "-hidden">> $lib.exp~
11901 $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~
11902 $rm $lib.exp'
11903
11904 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11905 hardcode_libdir_separator_CXX=:
11906
11907 # Commands to make compiler produce verbose output that lists
11908 # what "hidden" libraries, object files and flags are used when
11909 # linking a shared library.
11910 #
11911 # There doesn't appear to be a way to prevent this compiler from
11912 # explicitly linking system object files so we need to strip them
11913 # from the output so that they don't get included in the library
11914 # dependencies.
11915 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'
11916 ;;
11917 *)
11918 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11919 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11920 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'
11921
11922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923 hardcode_libdir_separator_CXX=:
11924
11925 # Commands to make compiler produce verbose output that lists
11926 # what "hidden" libraries, object files and flags are used when
11927 # linking a shared library.
11928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11929
11930 else
11931 # FIXME: insert proper C++ library support
11932 ld_shlibs_CXX=no
11933 fi
11934 ;;
11935 esac
11936 ;;
11937 psos*)
11938 # FIXME: insert proper C++ library support
11939 ld_shlibs_CXX=no
11940 ;;
11941 sunos4*)
11942 case $cc_basename in
11943 CC*)
11944 # Sun C++ 4.x
11945 # FIXME: insert proper C++ library support
11946 ld_shlibs_CXX=no
11947 ;;
11948 lcc*)
11949 # Lucid
11950 # FIXME: insert proper C++ library support
11951 ld_shlibs_CXX=no
11952 ;;
11953 *)
11954 # FIXME: insert proper C++ library support
11955 ld_shlibs_CXX=no
11956 ;;
11957 esac
11958 ;;
11959 solaris*)
11960 case $cc_basename in
11961 CC*)
11962 # Sun C++ 4.2, 5.x and Centerline C++
11963 archive_cmds_need_lc_CXX=yes
11964 no_undefined_flag_CXX=' -zdefs'
11965 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11966 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11967 $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'
11968
11969 hardcode_libdir_flag_spec_CXX='-R$libdir'
11970 hardcode_shlibpath_var_CXX=no
11971 case $host_os in
11972 solaris2.[0-5] | solaris2.[0-5].*) ;;
11973 *)
11974 # The C++ compiler is used as linker so we must use $wl
11975 # flag to pass the commands to the underlying system
11976 # linker. We must also pass each convience library through
11977 # to the system linker between allextract/defaultextract.
11978 # The C++ compiler will combine linker options so we
11979 # cannot just pass the convience library names through
11980 # without $wl.
11981 # Supported since Solaris 2.6 (maybe 2.5.1?)
11982 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'
11983 ;;
11984 esac
11985 link_all_deplibs_CXX=yes
11986
11987 output_verbose_link_cmd='echo'
11988
11989 # Archives containing C++ object files must be created using
11990 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11991 # necessary to make sure instantiated templates are included
11992 # in the archive.
11993 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11994 ;;
11995 gcx*)
11996 # Green Hills C++ Compiler
11997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11998
11999 # The C++ compiler must be used to create the archive.
12000 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12001 ;;
12002 *)
12003 # GNU C++ compiler with Solaris linker
12004 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12005 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12006 if $CC --version | grep -v '^2\.7' > /dev/null; then
12007 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12008 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12009 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12010
12011 # Commands to make compiler produce verbose output that lists
12012 # what "hidden" libraries, object files and flags are used when
12013 # linking a shared library.
12014 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12015 else
12016 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12017 # platform.
12018 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12019 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12020 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12021
12022 # Commands to make compiler produce verbose output that lists
12023 # what "hidden" libraries, object files and flags are used when
12024 # linking a shared library.
12025 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12026 fi
12027
12028 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12029 fi
12030 ;;
12031 esac
12032 ;;
12033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12034 no_undefined_flag_CXX='${wl}-z,text'
12035 archive_cmds_need_lc_CXX=no
12036 hardcode_shlibpath_var_CXX=no
12037 runpath_var='LD_RUN_PATH'
12038
12039 case $cc_basename in
12040 CC*)
12041 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12042 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12043 ;;
12044 *)
12045 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12046 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12047 ;;
12048 esac
12049 ;;
12050 sysv5* | sco3.2v5* | sco5v6*)
12051 # Note: We can NOT use -z defs as we might desire, because we do not
12052 # link with -lc, and that would cause any symbols used from libc to
12053 # always be unresolved, which means just about no library would
12054 # ever link correctly. If we're not using GNU ld we use -z text
12055 # though, which does catch some bad symbols but isn't as heavy-handed
12056 # as -z defs.
12057 # For security reasons, it is highly recommended that you always
12058 # use absolute paths for naming shared libraries, and exclude the
12059 # DT_RUNPATH tag from executables and libraries. But doing so
12060 # requires that you compile everything twice, which is a pain.
12061 # So that behaviour is only enabled if SCOABSPATH is set to a
12062 # non-empty value in the environment. Most likely only useful for
12063 # creating official distributions of packages.
12064 # This is a hack until libtool officially supports absolute path
12065 # names for shared libraries.
12066 no_undefined_flag_CXX='${wl}-z,text'
12067 allow_undefined_flag_CXX='${wl}-z,nodefs'
12068 archive_cmds_need_lc_CXX=no
12069 hardcode_shlibpath_var_CXX=no
12070 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12071 hardcode_libdir_separator_CXX=':'
12072 link_all_deplibs_CXX=yes
12073 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12074 runpath_var='LD_RUN_PATH'
12075
12076 case $cc_basename in
12077 CC*)
12078 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12079 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12080 ;;
12081 *)
12082 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12083 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12084 ;;
12085 esac
12086 ;;
12087 tandem*)
12088 case $cc_basename in
12089 NCC*)
12090 # NonStop-UX NCC 3.20
12091 # FIXME: insert proper C++ library support
12092 ld_shlibs_CXX=no
12093 ;;
12094 *)
12095 # FIXME: insert proper C++ library support
12096 ld_shlibs_CXX=no
12097 ;;
12098 esac
12099 ;;
12100 vxworks*)
12101 # FIXME: insert proper C++ library support
12102 ld_shlibs_CXX=no
12103 ;;
12104 *)
12105 # FIXME: insert proper C++ library support
12106 ld_shlibs_CXX=no
12107 ;;
12108 esac
12109 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12110 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12111 test "$ld_shlibs_CXX" = no && can_build_shared=no
12112
12113 GCC_CXX="$GXX"
12114 LD_CXX="$LD"
12115
12116
12117 cat > conftest.$ac_ext <<EOF
12118 class Foo
12119 {
12120 public:
12121 Foo (void) { a = 0; }
12122 private:
12123 int a;
12124 };
12125 EOF
12126
12127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12128 (eval $ac_compile) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; then
12132 # Parse the compiler output and extract the necessary
12133 # objects, libraries and library flags.
12134
12135 # Sentinel used to keep track of whether or not we are before
12136 # the conftest object file.
12137 pre_test_object_deps_done=no
12138
12139 # The `*' in the case matches for architectures that use `case' in
12140 # $output_verbose_cmd can trigger glob expansion during the loop
12141 # eval without this substitution.
12142 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12143
12144 for p in `eval $output_verbose_link_cmd`; do
12145 case $p in
12146
12147 -L* | -R* | -l*)
12148 # Some compilers place space between "-{L,R}" and the path.
12149 # Remove the space.
12150 if test $p = "-L" \
12151 || test $p = "-R"; then
12152 prev=$p
12153 continue
12154 else
12155 prev=
12156 fi
12157
12158 if test "$pre_test_object_deps_done" = no; then
12159 case $p in
12160 -L* | -R*)
12161 # Internal compiler library paths should come after those
12162 # provided the user. The postdeps already come after the
12163 # user supplied libs so there is no need to process them.
12164 if test -z "$compiler_lib_search_path_CXX"; then
12165 compiler_lib_search_path_CXX="${prev}${p}"
12166 else
12167 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12168 fi
12169 ;;
12170 # The "-l" case would never come before the object being
12171 # linked, so don't bother handling this case.
12172 esac
12173 else
12174 if test -z "$postdeps_CXX"; then
12175 postdeps_CXX="${prev}${p}"
12176 else
12177 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12178 fi
12179 fi
12180 ;;
12181
12182 *.$objext)
12183 # This assumes that the test object file only shows up
12184 # once in the compiler output.
12185 if test "$p" = "conftest.$objext"; then
12186 pre_test_object_deps_done=yes
12187 continue
12188 fi
12189
12190 if test "$pre_test_object_deps_done" = no; then
12191 if test -z "$predep_objects_CXX"; then
12192 predep_objects_CXX="$p"
12193 else
12194 predep_objects_CXX="$predep_objects_CXX $p"
12195 fi
12196 else
12197 if test -z "$postdep_objects_CXX"; then
12198 postdep_objects_CXX="$p"
12199 else
12200 postdep_objects_CXX="$postdep_objects_CXX $p"
12201 fi
12202 fi
12203 ;;
12204
12205 *) ;; # Ignore the rest.
12206
12207 esac
12208 done
12209
12210 # Clean up.
12211 rm -f a.out a.exe
12212 else
12213 echo "libtool.m4: error: problem compiling CXX test program"
12214 fi
12215
12216 $rm -f confest.$objext
12217
12218 # PORTME: override above test on systems where it is broken
12219 case $host_os in
12220 interix3*)
12221 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12222 # hack all around it, let's just trust "g++" to DTRT.
12223 predep_objects_CXX=
12224 postdep_objects_CXX=
12225 postdeps_CXX=
12226 ;;
12227
12228 solaris*)
12229 case $cc_basename in
12230 CC*)
12231 # Adding this requires a known-good setup of shared libraries for
12232 # Sun compiler versions before 5.6, else PIC objects from an old
12233 # archive will be linked into the output, leading to subtle bugs.
12234 postdeps_CXX='-lCstd -lCrun'
12235 ;;
12236 esac
12237 ;;
12238 esac
12239
12240
12241 case " $postdeps_CXX " in
12242 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12243 esac
12244
12245 lt_prog_compiler_wl_CXX=
12246 lt_prog_compiler_pic_CXX=
12247 lt_prog_compiler_static_CXX=
12248
12249 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12251
12252 # C++ specific cases for pic, static, wl, etc.
12253 if test "$GXX" = yes; then
12254 lt_prog_compiler_wl_CXX='-Wl,'
12255 lt_prog_compiler_static_CXX='-static'
12256
12257 case $host_os in
12258 aix*)
12259 # All AIX code is PIC.
12260 if test "$host_cpu" = ia64; then
12261 # AIX 5 now supports IA64 processor
12262 lt_prog_compiler_static_CXX='-Bstatic'
12263 fi
12264 ;;
12265 amigaos*)
12266 # FIXME: we need at least 68020 code to build shared libraries, but
12267 # adding the `-m68020' flag to GCC prevents building anything better,
12268 # like `-m68040'.
12269 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12270 ;;
12271 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12272 # PIC is the default for these OSes.
12273 ;;
12274 mingw* | os2* | pw32*)
12275 # This hack is so that the source file can tell whether it is being
12276 # built for inclusion in a dll (and should export symbols for example).
12277 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12278 ;;
12279 darwin* | rhapsody*)
12280 # PIC is the default on this platform
12281 # Common symbols not allowed in MH_DYLIB files
12282 lt_prog_compiler_pic_CXX='-fno-common'
12283 ;;
12284 *djgpp*)
12285 # DJGPP does not support shared libraries at all
12286 lt_prog_compiler_pic_CXX=
12287 ;;
12288 interix3*)
12289 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12290 # Instead, we relocate shared libraries at runtime.
12291 ;;
12292 sysv4*MP*)
12293 if test -d /usr/nec; then
12294 lt_prog_compiler_pic_CXX=-Kconform_pic
12295 fi
12296 ;;
12297 hpux*)
12298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12299 # not for PA HP-UX.
12300 case $host_cpu in
12301 hppa*64*|ia64*)
12302 ;;
12303 *)
12304 lt_prog_compiler_pic_CXX='-fPIC'
12305 ;;
12306 esac
12307 ;;
12308 *)
12309 lt_prog_compiler_pic_CXX='-fPIC'
12310 ;;
12311 esac
12312 else
12313 case $host_os in
12314 aix4* | aix5*)
12315 # All AIX code is PIC.
12316 if test "$host_cpu" = ia64; then
12317 # AIX 5 now supports IA64 processor
12318 lt_prog_compiler_static_CXX='-Bstatic'
12319 else
12320 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12321 fi
12322 ;;
12323 chorus*)
12324 case $cc_basename in
12325 cxch68*)
12326 # Green Hills C++ Compiler
12327 # _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"
12328 ;;
12329 esac
12330 ;;
12331 darwin*)
12332 # PIC is the default on this platform
12333 # Common symbols not allowed in MH_DYLIB files
12334 case $cc_basename in
12335 xlc*)
12336 lt_prog_compiler_pic_CXX='-qnocommon'
12337 lt_prog_compiler_wl_CXX='-Wl,'
12338 ;;
12339 esac
12340 ;;
12341 dgux*)
12342 case $cc_basename in
12343 ec++*)
12344 lt_prog_compiler_pic_CXX='-KPIC'
12345 ;;
12346 ghcx*)
12347 # Green Hills C++ Compiler
12348 lt_prog_compiler_pic_CXX='-pic'
12349 ;;
12350 *)
12351 ;;
12352 esac
12353 ;;
12354 freebsd* | dragonfly*)
12355 # FreeBSD uses GNU C++
12356 ;;
12357 hpux9* | hpux10* | hpux11*)
12358 case $cc_basename in
12359 CC*)
12360 lt_prog_compiler_wl_CXX='-Wl,'
12361 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12362 if test "$host_cpu" != ia64; then
12363 lt_prog_compiler_pic_CXX='+Z'
12364 fi
12365 ;;
12366 aCC*)
12367 lt_prog_compiler_wl_CXX='-Wl,'
12368 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12369 case $host_cpu in
12370 hppa*64*|ia64*)
12371 # +Z the default
12372 ;;
12373 *)
12374 lt_prog_compiler_pic_CXX='+Z'
12375 ;;
12376 esac
12377 ;;
12378 *)
12379 ;;
12380 esac
12381 ;;
12382 interix*)
12383 # This is c89, which is MS Visual C++ (no shared libs)
12384 # Anyone wants to do a port?
12385 ;;
12386 irix5* | irix6* | nonstopux*)
12387 case $cc_basename in
12388 CC*)
12389 lt_prog_compiler_wl_CXX='-Wl,'
12390 lt_prog_compiler_static_CXX='-non_shared'
12391 # CC pic flag -KPIC is the default.
12392 ;;
12393 *)
12394 ;;
12395 esac
12396 ;;
12397 linux* | k*bsd*-gnu)
12398 case $cc_basename in
12399 KCC*)
12400 # KAI C++ Compiler
12401 lt_prog_compiler_wl_CXX='--backend -Wl,'
12402 lt_prog_compiler_pic_CXX='-fPIC'
12403 ;;
12404 icpc* | ecpc*)
12405 # Intel C++
12406 lt_prog_compiler_wl_CXX='-Wl,'
12407 lt_prog_compiler_pic_CXX='-KPIC'
12408 lt_prog_compiler_static_CXX='-static'
12409 ;;
12410 pgCC*)
12411 # Portland Group C++ compiler.
12412 lt_prog_compiler_wl_CXX='-Wl,'
12413 lt_prog_compiler_pic_CXX='-fpic'
12414 lt_prog_compiler_static_CXX='-Bstatic'
12415 ;;
12416 cxx*)
12417 # Compaq C++
12418 # Make sure the PIC flag is empty. It appears that all Alpha
12419 # Linux and Compaq Tru64 Unix objects are PIC.
12420 lt_prog_compiler_pic_CXX=
12421 lt_prog_compiler_static_CXX='-non_shared'
12422 ;;
12423 *)
12424 ;;
12425 esac
12426 ;;
12427 lynxos*)
12428 ;;
12429 m88k*)
12430 ;;
12431 mvs*)
12432 case $cc_basename in
12433 cxx*)
12434 lt_prog_compiler_pic_CXX='-W c,exportall'
12435 ;;
12436 *)
12437 ;;
12438 esac
12439 ;;
12440 netbsd* | netbsdelf*-gnu)
12441 ;;
12442 osf3* | osf4* | osf5*)
12443 case $cc_basename in
12444 KCC*)
12445 lt_prog_compiler_wl_CXX='--backend -Wl,'
12446 ;;
12447 RCC*)
12448 # Rational C++ 2.4.1
12449 lt_prog_compiler_pic_CXX='-pic'
12450 ;;
12451 cxx*)
12452 # Digital/Compaq C++
12453 lt_prog_compiler_wl_CXX='-Wl,'
12454 # Make sure the PIC flag is empty. It appears that all Alpha
12455 # Linux and Compaq Tru64 Unix objects are PIC.
12456 lt_prog_compiler_pic_CXX=
12457 lt_prog_compiler_static_CXX='-non_shared'
12458 ;;
12459 *)
12460 ;;
12461 esac
12462 ;;
12463 psos*)
12464 ;;
12465 solaris*)
12466 case $cc_basename in
12467 CC*)
12468 # Sun C++ 4.2, 5.x and Centerline C++
12469 lt_prog_compiler_pic_CXX='-KPIC'
12470 lt_prog_compiler_static_CXX='-Bstatic'
12471 lt_prog_compiler_wl_CXX='-Qoption ld '
12472 ;;
12473 gcx*)
12474 # Green Hills C++ Compiler
12475 lt_prog_compiler_pic_CXX='-PIC'
12476 ;;
12477 *)
12478 ;;
12479 esac
12480 ;;
12481 sunos4*)
12482 case $cc_basename in
12483 CC*)
12484 # Sun C++ 4.x
12485 lt_prog_compiler_pic_CXX='-pic'
12486 lt_prog_compiler_static_CXX='-Bstatic'
12487 ;;
12488 lcc*)
12489 # Lucid
12490 lt_prog_compiler_pic_CXX='-pic'
12491 ;;
12492 *)
12493 ;;
12494 esac
12495 ;;
12496 tandem*)
12497 case $cc_basename in
12498 NCC*)
12499 # NonStop-UX NCC 3.20
12500 lt_prog_compiler_pic_CXX='-KPIC'
12501 ;;
12502 *)
12503 ;;
12504 esac
12505 ;;
12506 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12507 case $cc_basename in
12508 CC*)
12509 lt_prog_compiler_wl_CXX='-Wl,'
12510 lt_prog_compiler_pic_CXX='-KPIC'
12511 lt_prog_compiler_static_CXX='-Bstatic'
12512 ;;
12513 esac
12514 ;;
12515 vxworks*)
12516 ;;
12517 *)
12518 lt_prog_compiler_can_build_shared_CXX=no
12519 ;;
12520 esac
12521 fi
12522
12523 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12524 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12525
12526 #
12527 # Check to make sure the PIC flag actually works.
12528 #
12529 if test -n "$lt_prog_compiler_pic_CXX"; then
12530
12531 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12532 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12533 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536 lt_prog_compiler_pic_works_CXX=no
12537 ac_outfile=conftest.$ac_objext
12538 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12539 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12540 # Insert the option either (1) after the last *FLAGS variable, or
12541 # (2) before a word containing "conftest.", or (3) at the end.
12542 # Note that $ac_compile itself does not contain backslashes and begins
12543 # with a dollar sign (not a hyphen), so the echo should work correctly.
12544 # The option is referenced via a variable to avoid confusing sed.
12545 lt_compile=`echo "$ac_compile" | $SED \
12546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12548 -e 's:$: $lt_compiler_flag:'`
12549 (eval echo "\"\$as_me:12549: $lt_compile\"" >&5)
12550 (eval "$lt_compile" 2>conftest.err)
12551 ac_status=$?
12552 cat conftest.err >&5
12553 echo "$as_me:12553: \$? = $ac_status" >&5
12554 if (exit $ac_status) && test -s "$ac_outfile"; then
12555 # The compiler can only warn and ignore the option if not recognized
12556 # So say no if there are warnings other than the usual output.
12557 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12560 lt_prog_compiler_pic_works_CXX=yes
12561 fi
12562 fi
12563 $rm conftest*
12564
12565 fi
12566 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12567 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12568
12569 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12570 case $lt_prog_compiler_pic_CXX in
12571 "" | " "*) ;;
12572 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12573 esac
12574 else
12575 lt_prog_compiler_pic_CXX=
12576 lt_prog_compiler_can_build_shared_CXX=no
12577 fi
12578
12579 fi
12580 case $host_os in
12581 # For platforms which do not support PIC, -DPIC is meaningless:
12582 *djgpp*)
12583 lt_prog_compiler_pic_CXX=
12584 ;;
12585 *)
12586 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12587 ;;
12588 esac
12589
12590 #
12591 # Check to make sure the static flag actually works.
12592 #
12593 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12594 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12595 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12596 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599 lt_prog_compiler_static_works_CXX=no
12600 save_LDFLAGS="$LDFLAGS"
12601 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12602 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12603 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12604 # The linker can only warn and ignore the option if not recognized
12605 # So say no if there are warnings
12606 if test -s conftest.err; then
12607 # Append any errors to the config.log.
12608 cat conftest.err 1>&5
12609 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12611 if diff conftest.exp conftest.er2 >/dev/null; then
12612 lt_prog_compiler_static_works_CXX=yes
12613 fi
12614 else
12615 lt_prog_compiler_static_works_CXX=yes
12616 fi
12617 fi
12618 $rm conftest*
12619 LDFLAGS="$save_LDFLAGS"
12620
12621 fi
12622 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12623 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12624
12625 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12626 :
12627 else
12628 lt_prog_compiler_static_CXX=
12629 fi
12630
12631
12632 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12633 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12634 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637 lt_cv_prog_compiler_c_o_CXX=no
12638 $rm -r conftest 2>/dev/null
12639 mkdir conftest
12640 cd conftest
12641 mkdir out
12642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12643
12644 lt_compiler_flag="-o out/conftest2.$ac_objext"
12645 # Insert the option either (1) after the last *FLAGS variable, or
12646 # (2) before a word containing "conftest.", or (3) at the end.
12647 # Note that $ac_compile itself does not contain backslashes and begins
12648 # with a dollar sign (not a hyphen), so the echo should work correctly.
12649 lt_compile=`echo "$ac_compile" | $SED \
12650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12652 -e 's:$: $lt_compiler_flag:'`
12653 (eval echo "\"\$as_me:12653: $lt_compile\"" >&5)
12654 (eval "$lt_compile" 2>out/conftest.err)
12655 ac_status=$?
12656 cat out/conftest.err >&5
12657 echo "$as_me:12657: \$? = $ac_status" >&5
12658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12659 then
12660 # The compiler can only warn and ignore the option if not recognized
12661 # So say no if there are warnings
12662 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12665 lt_cv_prog_compiler_c_o_CXX=yes
12666 fi
12667 fi
12668 chmod u+w . 2>&5
12669 $rm conftest*
12670 # SGI C++ compiler will create directory out/ii_files/ for
12671 # template instantiation
12672 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12673 $rm out/* && rmdir out
12674 cd ..
12675 rmdir conftest
12676 $rm conftest*
12677
12678 fi
12679 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12680 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12681
12682
12683 hard_links="nottested"
12684 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12685 # do not overwrite the value of need_locks provided by the user
12686 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12687 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12688 hard_links=yes
12689 $rm conftest*
12690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12691 touch conftest.a
12692 ln conftest.a conftest.b 2>&5 || hard_links=no
12693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12694 { echo "$as_me:$LINENO: result: $hard_links" >&5
12695 echo "${ECHO_T}$hard_links" >&6; }
12696 if test "$hard_links" = no; then
12697 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12698 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12699 need_locks=warn
12700 fi
12701 else
12702 need_locks=no
12703 fi
12704
12705 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12706 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12707
12708 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12709 case $host_os in
12710 aix4* | aix5*)
12711 # If we're using GNU nm, then we don't want the "-C" option.
12712 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12713 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12714 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'
12715 else
12716 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'
12717 fi
12718 ;;
12719 pw32*)
12720 export_symbols_cmds_CXX="$ltdll_cmds"
12721 ;;
12722 cygwin* | mingw*)
12723 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'
12724 ;;
12725 linux* | k*bsd*-gnu)
12726 link_all_deplibs_CXX=no
12727 ;;
12728 *)
12729 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12730 ;;
12731 esac
12732
12733 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12734 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12735 test "$ld_shlibs_CXX" = no && can_build_shared=no
12736
12737 #
12738 # Do we need to explicitly link libc?
12739 #
12740 case "x$archive_cmds_need_lc_CXX" in
12741 x|xyes)
12742 # Assume -lc should be added
12743 archive_cmds_need_lc_CXX=yes
12744
12745 if test "$enable_shared" = yes && test "$GCC" = yes; then
12746 case $archive_cmds_CXX in
12747 *'~'*)
12748 # FIXME: we may have to deal with multi-command sequences.
12749 ;;
12750 '$CC '*)
12751 # Test whether the compiler implicitly links with -lc since on some
12752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12753 # to ld, don't add -lc before -lgcc.
12754 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12755 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12756 $rm conftest*
12757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12758
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } 2>conftest.err; then
12764 soname=conftest
12765 lib=conftest
12766 libobjs=conftest.$ac_objext
12767 deplibs=
12768 wl=$lt_prog_compiler_wl_CXX
12769 pic_flag=$lt_prog_compiler_pic_CXX
12770 compiler_flags=-v
12771 linker_flags=-v
12772 verstring=
12773 output_objdir=.
12774 libname=conftest
12775 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12776 allow_undefined_flag_CXX=
12777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12778 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }
12782 then
12783 archive_cmds_need_lc_CXX=no
12784 else
12785 archive_cmds_need_lc_CXX=yes
12786 fi
12787 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12788 else
12789 cat conftest.err 1>&5
12790 fi
12791 $rm conftest*
12792 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12793 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12794 ;;
12795 esac
12796 fi
12797 ;;
12798 esac
12799
12800 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12801 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12802 library_names_spec=
12803 libname_spec='lib$name'
12804 soname_spec=
12805 shrext_cmds=".so"
12806 postinstall_cmds=
12807 postuninstall_cmds=
12808 finish_cmds=
12809 finish_eval=
12810 shlibpath_var=
12811 shlibpath_overrides_runpath=unknown
12812 version_type=none
12813 dynamic_linker="$host_os ld.so"
12814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12815 if test "$GCC" = yes; then
12816 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12817 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12818 # if the path contains ";" then we assume it to be the separator
12819 # otherwise default to the standard path separator (i.e. ":") - it is
12820 # assumed that no part of a normal pathname contains ";" but that should
12821 # okay in the real world where ";" in dirpaths is itself problematic.
12822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12823 else
12824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12825 fi
12826 else
12827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12828 fi
12829 need_lib_prefix=unknown
12830 hardcode_into_libs=no
12831
12832 # when you set need_version to no, make sure it does not cause -set_version
12833 # flags to be left without arguments
12834 need_version=unknown
12835
12836 case $host_os in
12837 aix3*)
12838 version_type=linux
12839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12840 shlibpath_var=LIBPATH
12841
12842 # AIX 3 has no versioning support, so we append a major version to the name.
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 ;;
12845
12846 aix4* | aix5*)
12847 version_type=linux
12848 need_lib_prefix=no
12849 need_version=no
12850 hardcode_into_libs=yes
12851 if test "$host_cpu" = ia64; then
12852 # AIX 5 supports IA64
12853 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 else
12856 # With GCC up to 2.95.x, collect2 would create an import file
12857 # for dependence libraries. The import file would start with
12858 # the line `#! .'. This would cause the generated library to
12859 # depend on `.', always an invalid library. This was fixed in
12860 # development snapshots of GCC prior to 3.0.
12861 case $host_os in
12862 aix4 | aix4.[01] | aix4.[01].*)
12863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12864 echo ' yes '
12865 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12866 :
12867 else
12868 can_build_shared=no
12869 fi
12870 ;;
12871 esac
12872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12873 # soname into executable. Probably we can add versioning support to
12874 # collect2, so additional links can be useful in future.
12875 if test "$aix_use_runtimelinking" = yes; then
12876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12877 # instead of lib<name>.a to let people know that these are not
12878 # typical AIX shared libraries.
12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880 else
12881 # We preserve .a as extension for shared libraries through AIX4.2
12882 # and later when we are not doing run time linking.
12883 library_names_spec='${libname}${release}.a $libname.a'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 fi
12886 shlibpath_var=LIBPATH
12887 fi
12888 ;;
12889
12890 amigaos*)
12891 library_names_spec='$libname.ixlibrary $libname.a'
12892 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12893 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'
12894 ;;
12895
12896 beos*)
12897 library_names_spec='${libname}${shared_ext}'
12898 dynamic_linker="$host_os ld.so"
12899 shlibpath_var=LIBRARY_PATH
12900 ;;
12901
12902 bsdi[45]*)
12903 version_type=linux
12904 need_version=no
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12906 soname_spec='${libname}${release}${shared_ext}$major'
12907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12908 shlibpath_var=LD_LIBRARY_PATH
12909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12911 # the default ld.so.conf also contains /usr/contrib/lib and
12912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12913 # libtool to hard-code these into programs
12914 ;;
12915
12916 cygwin* | mingw* | pw32*)
12917 version_type=windows
12918 shrext_cmds=".dll"
12919 need_version=no
12920 need_lib_prefix=no
12921
12922 case $GCC,$host_os in
12923 yes,cygwin* | yes,mingw* | yes,pw32*)
12924 library_names_spec='$libname.dll.a'
12925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12926 postinstall_cmds='base_file=`basename \${file}`~
12927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12928 dldir=$destdir/`dirname \$dlpath`~
12929 test -d \$dldir || mkdir -p \$dldir~
12930 $install_prog $dir/$dlname \$dldir/$dlname~
12931 chmod a+x \$dldir/$dlname'
12932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12933 dlpath=$dir/\$dldll~
12934 $rm \$dlpath'
12935 shlibpath_overrides_runpath=yes
12936
12937 case $host_os in
12938 cygwin*)
12939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12941 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12942 ;;
12943 mingw*)
12944 # MinGW DLLs use traditional 'lib' prefix
12945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12946 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12947 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12948 # It is most probably a Windows format PATH printed by
12949 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12950 # path with ; separators, and with drive letters. We can handle the
12951 # drive letters (cygwin fileutils understands them), so leave them,
12952 # especially as we might pass files found there to a mingw objdump,
12953 # which wouldn't understand a cygwinified path. Ahh.
12954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12955 else
12956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12957 fi
12958 ;;
12959 pw32*)
12960 # pw32 DLLs use 'pw' prefix rather than 'lib'
12961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12962 ;;
12963 esac
12964 ;;
12965
12966 *)
12967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12968 ;;
12969 esac
12970 dynamic_linker='Win32 ld.exe'
12971 # FIXME: first we should search . and the directory the executable is in
12972 shlibpath_var=PATH
12973 ;;
12974
12975 darwin* | rhapsody*)
12976 dynamic_linker="$host_os dyld"
12977 version_type=darwin
12978 need_lib_prefix=no
12979 need_version=no
12980 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12981 soname_spec='${libname}${release}${major}$shared_ext'
12982 shlibpath_overrides_runpath=yes
12983 shlibpath_var=DYLD_LIBRARY_PATH
12984 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12985 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12986 if test "$GCC" = yes; then
12987 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"`
12988 else
12989 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12990 fi
12991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12992 ;;
12993
12994 dgux*)
12995 version_type=linux
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 ;;
13002
13003 freebsd1*)
13004 dynamic_linker=no
13005 ;;
13006
13007 freebsd* | dragonfly*)
13008 # DragonFly does not have aout. When/if they implement a new
13009 # versioning mechanism, adjust this.
13010 if test -x /usr/bin/objformat; then
13011 objformat=`/usr/bin/objformat`
13012 else
13013 case $host_os in
13014 freebsd[123]*) objformat=aout ;;
13015 *) objformat=elf ;;
13016 esac
13017 fi
13018 version_type=freebsd-$objformat
13019 case $version_type in
13020 freebsd-elf*)
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13022 need_version=no
13023 need_lib_prefix=no
13024 ;;
13025 freebsd-*)
13026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13027 need_version=yes
13028 ;;
13029 esac
13030 shlibpath_var=LD_LIBRARY_PATH
13031 case $host_os in
13032 freebsd2*)
13033 shlibpath_overrides_runpath=yes
13034 ;;
13035 freebsd3.[01]* | freebsdelf3.[01]*)
13036 shlibpath_overrides_runpath=yes
13037 hardcode_into_libs=yes
13038 ;;
13039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13041 shlibpath_overrides_runpath=no
13042 hardcode_into_libs=yes
13043 ;;
13044 freebsd*) # from 4.6 on
13045 shlibpath_overrides_runpath=yes
13046 hardcode_into_libs=yes
13047 ;;
13048 esac
13049 ;;
13050
13051 gnu*)
13052 version_type=linux
13053 need_lib_prefix=no
13054 need_version=no
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13056 soname_spec='${libname}${release}${shared_ext}$major'
13057 shlibpath_var=LD_LIBRARY_PATH
13058 hardcode_into_libs=yes
13059 ;;
13060
13061 hpux9* | hpux10* | hpux11*)
13062 # Give a soname corresponding to the major version so that dld.sl refuses to
13063 # link against other versions.
13064 version_type=sunos
13065 need_lib_prefix=no
13066 need_version=no
13067 case $host_cpu in
13068 ia64*)
13069 shrext_cmds='.so'
13070 hardcode_into_libs=yes
13071 dynamic_linker="$host_os dld.so"
13072 shlibpath_var=LD_LIBRARY_PATH
13073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075 soname_spec='${libname}${release}${shared_ext}$major'
13076 if test "X$HPUX_IA64_MODE" = X32; then
13077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13078 else
13079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13080 fi
13081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13082 ;;
13083 hppa*64*)
13084 shrext_cmds='.sl'
13085 hardcode_into_libs=yes
13086 dynamic_linker="$host_os dld.sl"
13087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13093 ;;
13094 *)
13095 shrext_cmds='.sl'
13096 dynamic_linker="$host_os dld.sl"
13097 shlibpath_var=SHLIB_PATH
13098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13100 soname_spec='${libname}${release}${shared_ext}$major'
13101 ;;
13102 esac
13103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13104 postinstall_cmds='chmod 555 $lib'
13105 ;;
13106
13107 interix3*)
13108 version_type=linux
13109 need_lib_prefix=no
13110 need_version=no
13111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13112 soname_spec='${libname}${release}${shared_ext}$major'
13113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 shlibpath_overrides_runpath=no
13116 hardcode_into_libs=yes
13117 ;;
13118
13119 irix5* | irix6* | nonstopux*)
13120 case $host_os in
13121 nonstopux*) version_type=nonstopux ;;
13122 *)
13123 if test "$lt_cv_prog_gnu_ld" = yes; then
13124 version_type=linux
13125 else
13126 version_type=irix
13127 fi ;;
13128 esac
13129 need_lib_prefix=no
13130 need_version=no
13131 soname_spec='${libname}${release}${shared_ext}$major'
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13133 case $host_os in
13134 irix5* | nonstopux*)
13135 libsuff= shlibsuff=
13136 ;;
13137 *)
13138 case $LD in # libtool.m4 will add one of these switches to LD
13139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13140 libsuff= shlibsuff= libmagic=32-bit;;
13141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13142 libsuff=32 shlibsuff=N32 libmagic=N32;;
13143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13145 *) libsuff= shlibsuff= libmagic=never-match;;
13146 esac
13147 ;;
13148 esac
13149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13150 shlibpath_overrides_runpath=no
13151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13153 hardcode_into_libs=yes
13154 ;;
13155
13156 # No shared lib support for Linux oldld, aout, or coff.
13157 linux*oldld* | linux*aout* | linux*coff*)
13158 dynamic_linker=no
13159 ;;
13160
13161 # This must be Linux ELF.
13162 linux* | k*bsd*-gnu)
13163 version_type=linux
13164 need_lib_prefix=no
13165 need_version=no
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13169 shlibpath_var=LD_LIBRARY_PATH
13170 shlibpath_overrides_runpath=no
13171 # This implies no fast_install, which is unacceptable.
13172 # Some rework will be needed to allow for fast_install
13173 # before this can be enabled.
13174 hardcode_into_libs=yes
13175
13176 # Append ld.so.conf contents to the search path
13177 if test -f /etc/ld.so.conf; then
13178 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' ' '`
13179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13180 fi
13181
13182 # We used to test for /lib/ld.so.1 and disable shared libraries on
13183 # powerpc, because MkLinux only supported shared libraries with the
13184 # GNU dynamic linker. Since this was broken with cross compilers,
13185 # most powerpc-linux boxes support dynamic linking these days and
13186 # people can always --disable-shared, the test was removed, and we
13187 # assume the GNU/Linux dynamic linker is in use.
13188 dynamic_linker='GNU/Linux ld.so'
13189 ;;
13190
13191 netbsdelf*-gnu)
13192 version_type=linux
13193 need_lib_prefix=no
13194 need_version=no
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
13198 shlibpath_overrides_runpath=no
13199 hardcode_into_libs=yes
13200 dynamic_linker='NetBSD ld.elf_so'
13201 ;;
13202
13203 netbsd*)
13204 version_type=sunos
13205 need_lib_prefix=no
13206 need_version=no
13207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13210 dynamic_linker='NetBSD (a.out) ld.so'
13211 else
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13213 soname_spec='${libname}${release}${shared_ext}$major'
13214 dynamic_linker='NetBSD ld.elf_so'
13215 fi
13216 shlibpath_var=LD_LIBRARY_PATH
13217 shlibpath_overrides_runpath=yes
13218 hardcode_into_libs=yes
13219 ;;
13220
13221 newsos6)
13222 version_type=linux
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=yes
13226 ;;
13227
13228 nto-qnx*)
13229 version_type=linux
13230 need_lib_prefix=no
13231 need_version=no
13232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13233 soname_spec='${libname}${release}${shared_ext}$major'
13234 shlibpath_var=LD_LIBRARY_PATH
13235 shlibpath_overrides_runpath=yes
13236 ;;
13237
13238 openbsd*)
13239 version_type=sunos
13240 sys_lib_dlsearch_path_spec="/usr/lib"
13241 need_lib_prefix=no
13242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13243 case $host_os in
13244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13245 *) need_version=no ;;
13246 esac
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13251 case $host_os in
13252 openbsd2.[89] | openbsd2.[89].*)
13253 shlibpath_overrides_runpath=no
13254 ;;
13255 *)
13256 shlibpath_overrides_runpath=yes
13257 ;;
13258 esac
13259 else
13260 shlibpath_overrides_runpath=yes
13261 fi
13262 ;;
13263
13264 os2*)
13265 libname_spec='$name'
13266 shrext_cmds=".dll"
13267 need_lib_prefix=no
13268 library_names_spec='$libname${shared_ext} $libname.a'
13269 dynamic_linker='OS/2 ld.exe'
13270 shlibpath_var=LIBPATH
13271 ;;
13272
13273 osf3* | osf4* | osf5*)
13274 version_type=osf
13275 need_lib_prefix=no
13276 need_version=no
13277 soname_spec='${libname}${release}${shared_ext}$major'
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13282 ;;
13283
13284 solaris*)
13285 version_type=linux
13286 need_lib_prefix=no
13287 need_version=no
13288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13289 soname_spec='${libname}${release}${shared_ext}$major'
13290 shlibpath_var=LD_LIBRARY_PATH
13291 shlibpath_overrides_runpath=yes
13292 hardcode_into_libs=yes
13293 # ldd complains unless libraries are executable
13294 postinstall_cmds='chmod +x $lib'
13295 ;;
13296
13297 sunos4*)
13298 version_type=sunos
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13303 if test "$with_gnu_ld" = yes; then
13304 need_lib_prefix=no
13305 fi
13306 need_version=yes
13307 ;;
13308
13309 sysv4 | sysv4.3*)
13310 version_type=linux
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312 soname_spec='${libname}${release}${shared_ext}$major'
13313 shlibpath_var=LD_LIBRARY_PATH
13314 case $host_vendor in
13315 sni)
13316 shlibpath_overrides_runpath=no
13317 need_lib_prefix=no
13318 export_dynamic_flag_spec='${wl}-Blargedynsym'
13319 runpath_var=LD_RUN_PATH
13320 ;;
13321 siemens)
13322 need_lib_prefix=no
13323 ;;
13324 motorola)
13325 need_lib_prefix=no
13326 need_version=no
13327 shlibpath_overrides_runpath=no
13328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13329 ;;
13330 esac
13331 ;;
13332
13333 sysv4*MP*)
13334 if test -d /usr/nec ;then
13335 version_type=linux
13336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13337 soname_spec='$libname${shared_ext}.$major'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 fi
13340 ;;
13341
13342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13343 version_type=freebsd-elf
13344 need_lib_prefix=no
13345 need_version=no
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13347 soname_spec='${libname}${release}${shared_ext}$major'
13348 shlibpath_var=LD_LIBRARY_PATH
13349 hardcode_into_libs=yes
13350 if test "$with_gnu_ld" = yes; then
13351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13352 shlibpath_overrides_runpath=no
13353 else
13354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13355 shlibpath_overrides_runpath=yes
13356 case $host_os in
13357 sco3.2v5*)
13358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13359 ;;
13360 esac
13361 fi
13362 sys_lib_dlsearch_path_spec='/usr/lib'
13363 ;;
13364
13365 uts4*)
13366 version_type=linux
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368 soname_spec='${libname}${release}${shared_ext}$major'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 ;;
13371
13372 *)
13373 dynamic_linker=no
13374 ;;
13375 esac
13376 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13377 echo "${ECHO_T}$dynamic_linker" >&6; }
13378 test "$dynamic_linker" = no && can_build_shared=no
13379
13380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13381 if test "$GCC" = yes; then
13382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13383 fi
13384
13385 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13386 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13387 hardcode_action_CXX=
13388 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13389 test -n "$runpath_var_CXX" || \
13390 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13391
13392 # We can hardcode non-existant directories.
13393 if test "$hardcode_direct_CXX" != no &&
13394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13395 # have to relink, otherwise we might link with an installed library
13396 # when we should be linking with a yet-to-be-installed one
13397 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13398 test "$hardcode_minus_L_CXX" != no; then
13399 # Linking always hardcodes the temporary library directory.
13400 hardcode_action_CXX=relink
13401 else
13402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13403 hardcode_action_CXX=immediate
13404 fi
13405 else
13406 # We cannot hardcode anything, or else we can only hardcode existing
13407 # directories.
13408 hardcode_action_CXX=unsupported
13409 fi
13410 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13411 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13412
13413 if test "$hardcode_action_CXX" = relink; then
13414 # Fast installation is not supported
13415 enable_fast_install=no
13416 elif test "$shlibpath_overrides_runpath" = yes ||
13417 test "$enable_shared" = no; then
13418 # Fast installation is not necessary
13419 enable_fast_install=needless
13420 fi
13421
13422
13423 # The else clause should only fire when bootstrapping the
13424 # libtool distribution, otherwise you forgot to ship ltmain.sh
13425 # with your package, and you will get complaints that there are
13426 # no rules to generate ltmain.sh.
13427 if test -f "$ltmain"; then
13428 # See if we are running on zsh, and set the options which allow our commands through
13429 # without removal of \ escapes.
13430 if test -n "${ZSH_VERSION+set}" ; then
13431 setopt NO_GLOB_SUBST
13432 fi
13433 # Now quote all the things that may contain metacharacters while being
13434 # careful not to overquote the AC_SUBSTed values. We take copies of the
13435 # variables and quote the copies for generation of the libtool script.
13436 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13437 SED SHELL STRIP \
13438 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13439 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13440 deplibs_check_method reload_flag reload_cmds need_locks \
13441 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13442 lt_cv_sys_global_symbol_to_c_name_address \
13443 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13444 old_postinstall_cmds old_postuninstall_cmds \
13445 compiler_CXX \
13446 CC_CXX \
13447 LD_CXX \
13448 lt_prog_compiler_wl_CXX \
13449 lt_prog_compiler_pic_CXX \
13450 lt_prog_compiler_static_CXX \
13451 lt_prog_compiler_no_builtin_flag_CXX \
13452 export_dynamic_flag_spec_CXX \
13453 thread_safe_flag_spec_CXX \
13454 whole_archive_flag_spec_CXX \
13455 enable_shared_with_static_runtimes_CXX \
13456 old_archive_cmds_CXX \
13457 old_archive_from_new_cmds_CXX \
13458 predep_objects_CXX \
13459 postdep_objects_CXX \
13460 predeps_CXX \
13461 postdeps_CXX \
13462 compiler_lib_search_path_CXX \
13463 archive_cmds_CXX \
13464 archive_expsym_cmds_CXX \
13465 postinstall_cmds_CXX \
13466 postuninstall_cmds_CXX \
13467 old_archive_from_expsyms_cmds_CXX \
13468 allow_undefined_flag_CXX \
13469 no_undefined_flag_CXX \
13470 export_symbols_cmds_CXX \
13471 hardcode_libdir_flag_spec_CXX \
13472 hardcode_libdir_flag_spec_ld_CXX \
13473 hardcode_libdir_separator_CXX \
13474 hardcode_automatic_CXX \
13475 module_cmds_CXX \
13476 module_expsym_cmds_CXX \
13477 lt_cv_prog_compiler_c_o_CXX \
13478 exclude_expsyms_CXX \
13479 include_expsyms_CXX; do
13480
13481 case $var in
13482 old_archive_cmds_CXX | \
13483 old_archive_from_new_cmds_CXX | \
13484 archive_cmds_CXX | \
13485 archive_expsym_cmds_CXX | \
13486 module_cmds_CXX | \
13487 module_expsym_cmds_CXX | \
13488 old_archive_from_expsyms_cmds_CXX | \
13489 export_symbols_cmds_CXX | \
13490 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13491 postinstall_cmds | postuninstall_cmds | \
13492 old_postinstall_cmds | old_postuninstall_cmds | \
13493 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13494 # Double-quote double-evaled strings.
13495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13496 ;;
13497 *)
13498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13499 ;;
13500 esac
13501 done
13502
13503 case $lt_echo in
13504 *'\$0 --fallback-echo"')
13505 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13506 ;;
13507 esac
13508
13509 cfgfile="$ofile"
13510
13511 cat <<__EOF__ >> "$cfgfile"
13512 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13513
13514 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13515
13516 # Shell to use when invoking shell scripts.
13517 SHELL=$lt_SHELL
13518
13519 # Whether or not to build shared libraries.
13520 build_libtool_libs=$enable_shared
13521
13522 # Whether or not to build static libraries.
13523 build_old_libs=$enable_static
13524
13525 # Whether or not to add -lc for building shared libraries.
13526 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13527
13528 # Whether or not to disallow shared libs when runtime libs are static
13529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13530
13531 # Whether or not to optimize for fast installation.
13532 fast_install=$enable_fast_install
13533
13534 # The host system.
13535 host_alias=$host_alias
13536 host=$host
13537 host_os=$host_os
13538
13539 # The build system.
13540 build_alias=$build_alias
13541 build=$build
13542 build_os=$build_os
13543
13544 # An echo program that does not interpret backslashes.
13545 echo=$lt_echo
13546
13547 # The archiver.
13548 AR=$lt_AR
13549 AR_FLAGS=$lt_AR_FLAGS
13550
13551 # A C compiler.
13552 LTCC=$lt_LTCC
13553
13554 # LTCC compiler flags.
13555 LTCFLAGS=$lt_LTCFLAGS
13556
13557 # A language-specific compiler.
13558 CC=$lt_compiler_CXX
13559
13560 # Is the compiler the GNU C compiler?
13561 with_gcc=$GCC_CXX
13562
13563 # An ERE matcher.
13564 EGREP=$lt_EGREP
13565
13566 # The linker used to build libraries.
13567 LD=$lt_LD_CXX
13568
13569 # Whether we need hard or soft links.
13570 LN_S=$lt_LN_S
13571
13572 # A BSD-compatible nm program.
13573 NM=$lt_NM
13574
13575 # A symbol stripping program
13576 STRIP=$lt_STRIP
13577
13578 # Used to examine libraries when file_magic_cmd begins "file"
13579 MAGIC_CMD=$MAGIC_CMD
13580
13581 # Used on cygwin: DLL creation program.
13582 DLLTOOL="$DLLTOOL"
13583
13584 # Used on cygwin: object dumper.
13585 OBJDUMP="$OBJDUMP"
13586
13587 # Used on cygwin: assembler.
13588 AS="$AS"
13589
13590 # The name of the directory that contains temporary libtool files.
13591 objdir=$objdir
13592
13593 # How to create reloadable object files.
13594 reload_flag=$lt_reload_flag
13595 reload_cmds=$lt_reload_cmds
13596
13597 # How to pass a linker flag through the compiler.
13598 wl=$lt_lt_prog_compiler_wl_CXX
13599
13600 # Object file suffix (normally "o").
13601 objext="$ac_objext"
13602
13603 # Old archive suffix (normally "a").
13604 libext="$libext"
13605
13606 # Shared library suffix (normally ".so").
13607 shrext_cmds='$shrext_cmds'
13608
13609 # Executable file suffix (normally "").
13610 exeext="$exeext"
13611
13612 # Additional compiler flags for building library objects.
13613 pic_flag=$lt_lt_prog_compiler_pic_CXX
13614 pic_mode=$pic_mode
13615
13616 # What is the maximum length of a command?
13617 max_cmd_len=$lt_cv_sys_max_cmd_len
13618
13619 # Does compiler simultaneously support -c and -o options?
13620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13621
13622 # Must we lock files when doing compilation?
13623 need_locks=$lt_need_locks
13624
13625 # Do we need the lib prefix for modules?
13626 need_lib_prefix=$need_lib_prefix
13627
13628 # Do we need a version for libraries?
13629 need_version=$need_version
13630
13631 # Whether dlopen is supported.
13632 dlopen_support=$enable_dlopen
13633
13634 # Whether dlopen of programs is supported.
13635 dlopen_self=$enable_dlopen_self
13636
13637 # Whether dlopen of statically linked programs is supported.
13638 dlopen_self_static=$enable_dlopen_self_static
13639
13640 # Compiler flag to prevent dynamic linking.
13641 link_static_flag=$lt_lt_prog_compiler_static_CXX
13642
13643 # Compiler flag to turn off builtin functions.
13644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13645
13646 # Compiler flag to allow reflexive dlopens.
13647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13648
13649 # Compiler flag to generate shared objects directly from archives.
13650 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13651
13652 # Compiler flag to generate thread-safe objects.
13653 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13654
13655 # Library versioning type.
13656 version_type=$version_type
13657
13658 # Format of library name prefix.
13659 libname_spec=$lt_libname_spec
13660
13661 # List of archive names. First name is the real one, the rest are links.
13662 # The last name is the one that the linker finds with -lNAME.
13663 library_names_spec=$lt_library_names_spec
13664
13665 # The coded name of the library, if different from the real name.
13666 soname_spec=$lt_soname_spec
13667
13668 # Commands used to build and install an old-style archive.
13669 RANLIB=$lt_RANLIB
13670 old_archive_cmds=$lt_old_archive_cmds_CXX
13671 old_postinstall_cmds=$lt_old_postinstall_cmds
13672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13673
13674 # Create an old-style archive from a shared archive.
13675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13676
13677 # Create a temporary old-style archive to link instead of a shared archive.
13678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13679
13680 # Commands used to build and install a shared archive.
13681 archive_cmds=$lt_archive_cmds_CXX
13682 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13683 postinstall_cmds=$lt_postinstall_cmds
13684 postuninstall_cmds=$lt_postuninstall_cmds
13685
13686 # Commands used to build a loadable module (assumed same as above if empty)
13687 module_cmds=$lt_module_cmds_CXX
13688 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13689
13690 # Commands to strip libraries.
13691 old_striplib=$lt_old_striplib
13692 striplib=$lt_striplib
13693
13694 # Dependencies to place before the objects being linked to create a
13695 # shared library.
13696 predep_objects=$lt_predep_objects_CXX
13697
13698 # Dependencies to place after the objects being linked to create a
13699 # shared library.
13700 postdep_objects=$lt_postdep_objects_CXX
13701
13702 # Dependencies to place before the objects being linked to create a
13703 # shared library.
13704 predeps=$lt_predeps_CXX
13705
13706 # Dependencies to place after the objects being linked to create a
13707 # shared library.
13708 postdeps=$lt_postdeps_CXX
13709
13710 # The library search path used internally by the compiler when linking
13711 # a shared library.
13712 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13713
13714 # Method to check whether dependent libraries are shared objects.
13715 deplibs_check_method=$lt_deplibs_check_method
13716
13717 # Command to use when deplibs_check_method == file_magic.
13718 file_magic_cmd=$lt_file_magic_cmd
13719
13720 # Flag that allows shared libraries with undefined symbols to be built.
13721 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13722
13723 # Flag that forces no undefined symbols.
13724 no_undefined_flag=$lt_no_undefined_flag_CXX
13725
13726 # Commands used to finish a libtool library installation in a directory.
13727 finish_cmds=$lt_finish_cmds
13728
13729 # Same as above, but a single script fragment to be evaled but not shown.
13730 finish_eval=$lt_finish_eval
13731
13732 # Take the output of nm and produce a listing of raw symbols and C names.
13733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13734
13735 # Transform the output of nm in a proper C declaration
13736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13737
13738 # Transform the output of nm in a C name address pair
13739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13740
13741 # This is the shared library runtime path variable.
13742 runpath_var=$runpath_var
13743
13744 # This is the shared library path variable.
13745 shlibpath_var=$shlibpath_var
13746
13747 # Is shlibpath searched before the hard-coded library search path?
13748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13749
13750 # How to hardcode a shared library path into an executable.
13751 hardcode_action=$hardcode_action_CXX
13752
13753 # Whether we should hardcode library paths into libraries.
13754 hardcode_into_libs=$hardcode_into_libs
13755
13756 # Flag to hardcode \$libdir into a binary during linking.
13757 # This must work even if \$libdir does not exist.
13758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13759
13760 # If ld is used when linking, flag to hardcode \$libdir into
13761 # a binary during linking. This must work even if \$libdir does
13762 # not exist.
13763 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13764
13765 # Whether we need a single -rpath flag with a separated argument.
13766 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13767
13768 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13769 # resulting binary.
13770 hardcode_direct=$hardcode_direct_CXX
13771
13772 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13773 # resulting binary.
13774 hardcode_minus_L=$hardcode_minus_L_CXX
13775
13776 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13777 # the resulting binary.
13778 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13779
13780 # Set to yes if building a shared library automatically hardcodes DIR into the library
13781 # and all subsequent libraries and executables linked against it.
13782 hardcode_automatic=$hardcode_automatic_CXX
13783
13784 # Variables whose values should be saved in libtool wrapper scripts and
13785 # restored at relink time.
13786 variables_saved_for_relink="$variables_saved_for_relink"
13787
13788 # Whether libtool must link a program against all its dependency libraries.
13789 link_all_deplibs=$link_all_deplibs_CXX
13790
13791 # Compile-time system search path for libraries
13792 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13793
13794 # Run-time system search path for libraries
13795 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13796
13797 # Fix the shell variable \$srcfile for the compiler.
13798 fix_srcfile_path="$fix_srcfile_path_CXX"
13799
13800 # Set to yes if exported symbols are required.
13801 always_export_symbols=$always_export_symbols_CXX
13802
13803 # The commands to list exported symbols.
13804 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13805
13806 # The commands to extract the exported symbol list from a shared archive.
13807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13808
13809 # Symbols that should not be listed in the preloaded symbols.
13810 exclude_expsyms=$lt_exclude_expsyms_CXX
13811
13812 # Symbols that must always be exported.
13813 include_expsyms=$lt_include_expsyms_CXX
13814
13815 # ### END LIBTOOL TAG CONFIG: $tagname
13816
13817 __EOF__
13818
13819
13820 else
13821 # If there is no Makefile yet, we rely on a make rule to execute
13822 # `config.status --recheck' to rerun these tests and create the
13823 # libtool script then.
13824 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13825 if test -f "$ltmain_in"; then
13826 test -f Makefile && make "$ltmain"
13827 fi
13828 fi
13829
13830
13831 ac_ext=c
13832 ac_cpp='$CPP $CPPFLAGS'
13833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13836
13837 CC=$lt_save_CC
13838 LDCXX=$LD
13839 LD=$lt_save_LD
13840 GCC=$lt_save_GCC
13841 with_gnu_ldcxx=$with_gnu_ld
13842 with_gnu_ld=$lt_save_with_gnu_ld
13843 lt_cv_path_LDCXX=$lt_cv_path_LD
13844 lt_cv_path_LD=$lt_save_path_LD
13845 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13846 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13847
13848 else
13849 tagname=""
13850 fi
13851 ;;
13852
13853 F77)
13854 if test -n "$F77" && test "X$F77" != "Xno"; then
13855
13856 ac_ext=f
13857 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13858 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13860
13861
13862 archive_cmds_need_lc_F77=no
13863 allow_undefined_flag_F77=
13864 always_export_symbols_F77=no
13865 archive_expsym_cmds_F77=
13866 export_dynamic_flag_spec_F77=
13867 hardcode_direct_F77=no
13868 hardcode_libdir_flag_spec_F77=
13869 hardcode_libdir_flag_spec_ld_F77=
13870 hardcode_libdir_separator_F77=
13871 hardcode_minus_L_F77=no
13872 hardcode_automatic_F77=no
13873 module_cmds_F77=
13874 module_expsym_cmds_F77=
13875 link_all_deplibs_F77=unknown
13876 old_archive_cmds_F77=$old_archive_cmds
13877 no_undefined_flag_F77=
13878 whole_archive_flag_spec_F77=
13879 enable_shared_with_static_runtimes_F77=no
13880
13881 # Source file extension for f77 test sources.
13882 ac_ext=f
13883
13884 # Object file extension for compiled f77 test sources.
13885 objext=o
13886 objext_F77=$objext
13887
13888 # Code to be used in simple compile tests
13889 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13890
13891 # Code to be used in simple link tests
13892 lt_simple_link_test_code=" program t\n end\n"
13893
13894 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13895
13896 # If no C compiler was specified, use CC.
13897 LTCC=${LTCC-"$CC"}
13898
13899 # If no C compiler flags were specified, use CFLAGS.
13900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13901
13902 # Allow CC to be a program name with arguments.
13903 compiler=$CC
13904
13905
13906 # save warnings/boilerplate of simple test code
13907 ac_outfile=conftest.$ac_objext
13908 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13910 _lt_compiler_boilerplate=`cat conftest.err`
13911 $rm conftest*
13912
13913 ac_outfile=conftest.$ac_objext
13914 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13916 _lt_linker_boilerplate=`cat conftest.err`
13917 $rm conftest*
13918
13919
13920 # Allow CC to be a program name with arguments.
13921 lt_save_CC="$CC"
13922 CC=${F77-"f77"}
13923 compiler=$CC
13924 compiler_F77=$CC
13925 for cc_temp in $compiler""; do
13926 case $cc_temp in
13927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13929 \-*) ;;
13930 *) break;;
13931 esac
13932 done
13933 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13934
13935
13936 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13937 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13938 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13939 echo "${ECHO_T}$can_build_shared" >&6; }
13940
13941 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13942 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13943 test "$can_build_shared" = "no" && enable_shared=no
13944
13945 # On AIX, shared libraries and static libraries use the same namespace, and
13946 # are all built from PIC.
13947 case $host_os in
13948 aix3*)
13949 test "$enable_shared" = yes && enable_static=no
13950 if test -n "$RANLIB"; then
13951 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13952 postinstall_cmds='$RANLIB $lib'
13953 fi
13954 ;;
13955 aix4* | aix5*)
13956 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13957 test "$enable_shared" = yes && enable_static=no
13958 fi
13959 ;;
13960 esac
13961 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13962 echo "${ECHO_T}$enable_shared" >&6; }
13963
13964 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13965 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13966 # Make sure either enable_shared or enable_static is yes.
13967 test "$enable_shared" = yes || enable_static=yes
13968 { echo "$as_me:$LINENO: result: $enable_static" >&5
13969 echo "${ECHO_T}$enable_static" >&6; }
13970
13971 GCC_F77="$G77"
13972 LD_F77="$LD"
13973
13974 lt_prog_compiler_wl_F77=
13975 lt_prog_compiler_pic_F77=
13976 lt_prog_compiler_static_F77=
13977
13978 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13979 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13980
13981 if test "$GCC" = yes; then
13982 lt_prog_compiler_wl_F77='-Wl,'
13983 lt_prog_compiler_static_F77='-static'
13984
13985 case $host_os in
13986 aix*)
13987 # All AIX code is PIC.
13988 if test "$host_cpu" = ia64; then
13989 # AIX 5 now supports IA64 processor
13990 lt_prog_compiler_static_F77='-Bstatic'
13991 fi
13992 ;;
13993
13994 amigaos*)
13995 # FIXME: we need at least 68020 code to build shared libraries, but
13996 # adding the `-m68020' flag to GCC prevents building anything better,
13997 # like `-m68040'.
13998 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13999 ;;
14000
14001 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14002 # PIC is the default for these OSes.
14003 ;;
14004
14005 mingw* | pw32* | os2*)
14006 # This hack is so that the source file can tell whether it is being
14007 # built for inclusion in a dll (and should export symbols for example).
14008 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14009 ;;
14010
14011 darwin* | rhapsody*)
14012 # PIC is the default on this platform
14013 # Common symbols not allowed in MH_DYLIB files
14014 lt_prog_compiler_pic_F77='-fno-common'
14015 ;;
14016
14017 interix3*)
14018 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14019 # Instead, we relocate shared libraries at runtime.
14020 ;;
14021
14022 msdosdjgpp*)
14023 # Just because we use GCC doesn't mean we suddenly get shared libraries
14024 # on systems that don't support them.
14025 lt_prog_compiler_can_build_shared_F77=no
14026 enable_shared=no
14027 ;;
14028
14029 sysv4*MP*)
14030 if test -d /usr/nec; then
14031 lt_prog_compiler_pic_F77=-Kconform_pic
14032 fi
14033 ;;
14034
14035 hpux*)
14036 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14037 # not for PA HP-UX.
14038 case $host_cpu in
14039 hppa*64*|ia64*)
14040 # +Z the default
14041 ;;
14042 *)
14043 lt_prog_compiler_pic_F77='-fPIC'
14044 ;;
14045 esac
14046 ;;
14047
14048 *)
14049 lt_prog_compiler_pic_F77='-fPIC'
14050 ;;
14051 esac
14052 else
14053 # PORTME Check for flag to pass linker flags through the system compiler.
14054 case $host_os in
14055 aix*)
14056 lt_prog_compiler_wl_F77='-Wl,'
14057 if test "$host_cpu" = ia64; then
14058 # AIX 5 now supports IA64 processor
14059 lt_prog_compiler_static_F77='-Bstatic'
14060 else
14061 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14062 fi
14063 ;;
14064 darwin*)
14065 # PIC is the default on this platform
14066 # Common symbols not allowed in MH_DYLIB files
14067 case $cc_basename in
14068 xlc*)
14069 lt_prog_compiler_pic_F77='-qnocommon'
14070 lt_prog_compiler_wl_F77='-Wl,'
14071 ;;
14072 esac
14073 ;;
14074
14075 mingw* | pw32* | os2*)
14076 # This hack is so that the source file can tell whether it is being
14077 # built for inclusion in a dll (and should export symbols for example).
14078 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14079 ;;
14080
14081 hpux9* | hpux10* | hpux11*)
14082 lt_prog_compiler_wl_F77='-Wl,'
14083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14084 # not for PA HP-UX.
14085 case $host_cpu in
14086 hppa*64*|ia64*)
14087 # +Z the default
14088 ;;
14089 *)
14090 lt_prog_compiler_pic_F77='+Z'
14091 ;;
14092 esac
14093 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14094 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14095 ;;
14096
14097 irix5* | irix6* | nonstopux*)
14098 lt_prog_compiler_wl_F77='-Wl,'
14099 # PIC (with -KPIC) is the default.
14100 lt_prog_compiler_static_F77='-non_shared'
14101 ;;
14102
14103 newsos6)
14104 lt_prog_compiler_pic_F77='-KPIC'
14105 lt_prog_compiler_static_F77='-Bstatic'
14106 ;;
14107
14108 linux* | k*bsd*-gnu)
14109 case $cc_basename in
14110 icc* | ecc*)
14111 lt_prog_compiler_wl_F77='-Wl,'
14112 lt_prog_compiler_pic_F77='-KPIC'
14113 lt_prog_compiler_static_F77='-static'
14114 ;;
14115 pgcc* | pgf77* | pgf90* | pgf95*)
14116 # Portland Group compilers (*not* the Pentium gcc compiler,
14117 # which looks to be a dead project)
14118 lt_prog_compiler_wl_F77='-Wl,'
14119 lt_prog_compiler_pic_F77='-fpic'
14120 lt_prog_compiler_static_F77='-Bstatic'
14121 ;;
14122 ccc*)
14123 lt_prog_compiler_wl_F77='-Wl,'
14124 # All Alpha code is PIC.
14125 lt_prog_compiler_static_F77='-non_shared'
14126 ;;
14127 esac
14128 ;;
14129
14130 osf3* | osf4* | osf5*)
14131 lt_prog_compiler_wl_F77='-Wl,'
14132 # All OSF/1 code is PIC.
14133 lt_prog_compiler_static_F77='-non_shared'
14134 ;;
14135
14136 solaris*)
14137 lt_prog_compiler_pic_F77='-KPIC'
14138 lt_prog_compiler_static_F77='-Bstatic'
14139 case $cc_basename in
14140 f77* | f90* | f95*)
14141 lt_prog_compiler_wl_F77='-Qoption ld ';;
14142 *)
14143 lt_prog_compiler_wl_F77='-Wl,';;
14144 esac
14145 ;;
14146
14147 sunos4*)
14148 lt_prog_compiler_wl_F77='-Qoption ld '
14149 lt_prog_compiler_pic_F77='-PIC'
14150 lt_prog_compiler_static_F77='-Bstatic'
14151 ;;
14152
14153 sysv4 | sysv4.2uw2* | sysv4.3*)
14154 lt_prog_compiler_wl_F77='-Wl,'
14155 lt_prog_compiler_pic_F77='-KPIC'
14156 lt_prog_compiler_static_F77='-Bstatic'
14157 ;;
14158
14159 sysv4*MP*)
14160 if test -d /usr/nec ;then
14161 lt_prog_compiler_pic_F77='-Kconform_pic'
14162 lt_prog_compiler_static_F77='-Bstatic'
14163 fi
14164 ;;
14165
14166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14167 lt_prog_compiler_wl_F77='-Wl,'
14168 lt_prog_compiler_pic_F77='-KPIC'
14169 lt_prog_compiler_static_F77='-Bstatic'
14170 ;;
14171
14172 unicos*)
14173 lt_prog_compiler_wl_F77='-Wl,'
14174 lt_prog_compiler_can_build_shared_F77=no
14175 ;;
14176
14177 uts4*)
14178 lt_prog_compiler_pic_F77='-pic'
14179 lt_prog_compiler_static_F77='-Bstatic'
14180 ;;
14181
14182 *)
14183 lt_prog_compiler_can_build_shared_F77=no
14184 ;;
14185 esac
14186 fi
14187
14188 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14189 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14190
14191 #
14192 # Check to make sure the PIC flag actually works.
14193 #
14194 if test -n "$lt_prog_compiler_pic_F77"; then
14195
14196 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14197 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14198 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 lt_prog_compiler_pic_works_F77=no
14202 ac_outfile=conftest.$ac_objext
14203 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14204 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14205 # Insert the option either (1) after the last *FLAGS variable, or
14206 # (2) before a word containing "conftest.", or (3) at the end.
14207 # Note that $ac_compile itself does not contain backslashes and begins
14208 # with a dollar sign (not a hyphen), so the echo should work correctly.
14209 # The option is referenced via a variable to avoid confusing sed.
14210 lt_compile=`echo "$ac_compile" | $SED \
14211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14213 -e 's:$: $lt_compiler_flag:'`
14214 (eval echo "\"\$as_me:14214: $lt_compile\"" >&5)
14215 (eval "$lt_compile" 2>conftest.err)
14216 ac_status=$?
14217 cat conftest.err >&5
14218 echo "$as_me:14218: \$? = $ac_status" >&5
14219 if (exit $ac_status) && test -s "$ac_outfile"; then
14220 # The compiler can only warn and ignore the option if not recognized
14221 # So say no if there are warnings other than the usual output.
14222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14225 lt_prog_compiler_pic_works_F77=yes
14226 fi
14227 fi
14228 $rm conftest*
14229
14230 fi
14231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14232 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14233
14234 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14235 case $lt_prog_compiler_pic_F77 in
14236 "" | " "*) ;;
14237 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14238 esac
14239 else
14240 lt_prog_compiler_pic_F77=
14241 lt_prog_compiler_can_build_shared_F77=no
14242 fi
14243
14244 fi
14245 case $host_os in
14246 # For platforms which do not support PIC, -DPIC is meaningless:
14247 *djgpp*)
14248 lt_prog_compiler_pic_F77=
14249 ;;
14250 *)
14251 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14252 ;;
14253 esac
14254
14255 #
14256 # Check to make sure the static flag actually works.
14257 #
14258 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14259 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14260 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14261 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264 lt_prog_compiler_static_works_F77=no
14265 save_LDFLAGS="$LDFLAGS"
14266 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14267 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14269 # The linker can only warn and ignore the option if not recognized
14270 # So say no if there are warnings
14271 if test -s conftest.err; then
14272 # Append any errors to the config.log.
14273 cat conftest.err 1>&5
14274 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14276 if diff conftest.exp conftest.er2 >/dev/null; then
14277 lt_prog_compiler_static_works_F77=yes
14278 fi
14279 else
14280 lt_prog_compiler_static_works_F77=yes
14281 fi
14282 fi
14283 $rm conftest*
14284 LDFLAGS="$save_LDFLAGS"
14285
14286 fi
14287 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14288 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14289
14290 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14291 :
14292 else
14293 lt_prog_compiler_static_F77=
14294 fi
14295
14296
14297 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14298 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14299 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302 lt_cv_prog_compiler_c_o_F77=no
14303 $rm -r conftest 2>/dev/null
14304 mkdir conftest
14305 cd conftest
14306 mkdir out
14307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14308
14309 lt_compiler_flag="-o out/conftest2.$ac_objext"
14310 # Insert the option either (1) after the last *FLAGS variable, or
14311 # (2) before a word containing "conftest.", or (3) at the end.
14312 # Note that $ac_compile itself does not contain backslashes and begins
14313 # with a dollar sign (not a hyphen), so the echo should work correctly.
14314 lt_compile=`echo "$ac_compile" | $SED \
14315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14317 -e 's:$: $lt_compiler_flag:'`
14318 (eval echo "\"\$as_me:14318: $lt_compile\"" >&5)
14319 (eval "$lt_compile" 2>out/conftest.err)
14320 ac_status=$?
14321 cat out/conftest.err >&5
14322 echo "$as_me:14322: \$? = $ac_status" >&5
14323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14324 then
14325 # The compiler can only warn and ignore the option if not recognized
14326 # So say no if there are warnings
14327 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14330 lt_cv_prog_compiler_c_o_F77=yes
14331 fi
14332 fi
14333 chmod u+w . 2>&5
14334 $rm conftest*
14335 # SGI C++ compiler will create directory out/ii_files/ for
14336 # template instantiation
14337 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14338 $rm out/* && rmdir out
14339 cd ..
14340 rmdir conftest
14341 $rm conftest*
14342
14343 fi
14344 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14345 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14346
14347
14348 hard_links="nottested"
14349 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14350 # do not overwrite the value of need_locks provided by the user
14351 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14352 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14353 hard_links=yes
14354 $rm conftest*
14355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14356 touch conftest.a
14357 ln conftest.a conftest.b 2>&5 || hard_links=no
14358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14359 { echo "$as_me:$LINENO: result: $hard_links" >&5
14360 echo "${ECHO_T}$hard_links" >&6; }
14361 if test "$hard_links" = no; then
14362 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14363 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14364 need_locks=warn
14365 fi
14366 else
14367 need_locks=no
14368 fi
14369
14370 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14371 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14372
14373 runpath_var=
14374 allow_undefined_flag_F77=
14375 enable_shared_with_static_runtimes_F77=no
14376 archive_cmds_F77=
14377 archive_expsym_cmds_F77=
14378 old_archive_From_new_cmds_F77=
14379 old_archive_from_expsyms_cmds_F77=
14380 export_dynamic_flag_spec_F77=
14381 whole_archive_flag_spec_F77=
14382 thread_safe_flag_spec_F77=
14383 hardcode_libdir_flag_spec_F77=
14384 hardcode_libdir_flag_spec_ld_F77=
14385 hardcode_libdir_separator_F77=
14386 hardcode_direct_F77=no
14387 hardcode_minus_L_F77=no
14388 hardcode_shlibpath_var_F77=unsupported
14389 link_all_deplibs_F77=unknown
14390 hardcode_automatic_F77=no
14391 module_cmds_F77=
14392 module_expsym_cmds_F77=
14393 always_export_symbols_F77=no
14394 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14395 # include_expsyms should be a list of space-separated symbols to be *always*
14396 # included in the symbol list
14397 include_expsyms_F77=
14398 # exclude_expsyms can be an extended regexp of symbols to exclude
14399 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14400 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14401 # as well as any symbol that contains `d'.
14402 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14403 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14404 # platforms (ab)use it in PIC code, but their linkers get confused if
14405 # the symbol is explicitly referenced. Since portable code cannot
14406 # rely on this symbol name, it's probably fine to never include it in
14407 # preloaded symbol tables.
14408 extract_expsyms_cmds=
14409 # Just being paranoid about ensuring that cc_basename is set.
14410 for cc_temp in $compiler""; do
14411 case $cc_temp in
14412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14414 \-*) ;;
14415 *) break;;
14416 esac
14417 done
14418 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14419
14420 case $host_os in
14421 cygwin* | mingw* | pw32*)
14422 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14423 # When not using gcc, we currently assume that we are using
14424 # Microsoft Visual C++.
14425 if test "$GCC" != yes; then
14426 with_gnu_ld=no
14427 fi
14428 ;;
14429 interix*)
14430 # we just hope/assume this is gcc and not c89 (= MSVC++)
14431 with_gnu_ld=yes
14432 ;;
14433 openbsd*)
14434 with_gnu_ld=no
14435 ;;
14436 esac
14437
14438 ld_shlibs_F77=yes
14439 if test "$with_gnu_ld" = yes; then
14440 # If archive_cmds runs LD, not CC, wlarc should be empty
14441 wlarc='${wl}'
14442
14443 # Set some defaults for GNU ld with shared library support. These
14444 # are reset later if shared libraries are not supported. Putting them
14445 # here allows them to be overridden if necessary.
14446 runpath_var=LD_RUN_PATH
14447 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14448 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14449 # ancient GNU ld didn't support --whole-archive et. al.
14450 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14451 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14452 else
14453 whole_archive_flag_spec_F77=
14454 fi
14455 supports_anon_versioning=no
14456 case `$LD -v 2>/dev/null` in
14457 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14458 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14459 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14460 *\ 2.11.*) ;; # other 2.11 versions
14461 *) supports_anon_versioning=yes ;;
14462 esac
14463
14464 # See if GNU ld supports shared libraries.
14465 case $host_os in
14466 aix3* | aix4* | aix5*)
14467 # On AIX/PPC, the GNU linker is very broken
14468 if test "$host_cpu" != ia64; then
14469 ld_shlibs_F77=no
14470 cat <<EOF 1>&2
14471
14472 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14473 *** to be unable to reliably create shared libraries on AIX.
14474 *** Therefore, libtool is disabling shared libraries support. If you
14475 *** really care for shared libraries, you may want to modify your PATH
14476 *** so that a non-GNU linker is found, and then restart.
14477
14478 EOF
14479 fi
14480 ;;
14481
14482 amigaos*)
14483 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)'
14484 hardcode_libdir_flag_spec_F77='-L$libdir'
14485 hardcode_minus_L_F77=yes
14486
14487 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14488 # that the semantics of dynamic libraries on AmigaOS, at least up
14489 # to version 4, is to share data among multiple programs linked
14490 # with the same dynamic library. Since this doesn't match the
14491 # behavior of shared libraries on other platforms, we can't use
14492 # them.
14493 ld_shlibs_F77=no
14494 ;;
14495
14496 beos*)
14497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14498 allow_undefined_flag_F77=unsupported
14499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14500 # support --undefined. This deserves some investigation. FIXME
14501 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502 else
14503 ld_shlibs_F77=no
14504 fi
14505 ;;
14506
14507 cygwin* | mingw* | pw32*)
14508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14509 # as there is no search path for DLLs.
14510 hardcode_libdir_flag_spec_F77='-L$libdir'
14511 allow_undefined_flag_F77=unsupported
14512 always_export_symbols_F77=no
14513 enable_shared_with_static_runtimes_F77=yes
14514 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14515
14516 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14518 # If the export-symbols file already is a .def file (1st line
14519 # is EXPORTS), use it as is; otherwise, prepend...
14520 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14521 cp $export_symbols $output_objdir/$soname.def;
14522 else
14523 echo EXPORTS > $output_objdir/$soname.def;
14524 cat $export_symbols >> $output_objdir/$soname.def;
14525 fi~
14526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14527 else
14528 ld_shlibs_F77=no
14529 fi
14530 ;;
14531
14532 interix3*)
14533 hardcode_direct_F77=no
14534 hardcode_shlibpath_var_F77=no
14535 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14536 export_dynamic_flag_spec_F77='${wl}-E'
14537 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14538 # Instead, shared libraries are loaded at an image base (0x10000000 by
14539 # default) and relocated if they conflict, which is a slow very memory
14540 # consuming and fragmenting process. To avoid this, we pick a random,
14541 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14542 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14543 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'
14544 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'
14545 ;;
14546
14547 linux* | k*bsd*-gnu)
14548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14549 tmp_addflag=
14550 case $cc_basename,$host_cpu in
14551 pgcc*) # Portland Group C compiler
14552 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'
14553 tmp_addflag=' $pic_flag'
14554 ;;
14555 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14556 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'
14557 tmp_addflag=' $pic_flag -Mnomain' ;;
14558 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14559 tmp_addflag=' -i_dynamic' ;;
14560 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14561 tmp_addflag=' -i_dynamic -nofor_main' ;;
14562 ifc* | ifort*) # Intel Fortran compiler
14563 tmp_addflag=' -nofor_main' ;;
14564 esac
14565 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14566
14567 if test $supports_anon_versioning = yes; then
14568 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14569 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14570 $echo "local: *; };" >> $output_objdir/$libname.ver~
14571 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14572 fi
14573 link_all_deplibs_F77=no
14574 else
14575 ld_shlibs_F77=no
14576 fi
14577 ;;
14578
14579 netbsd* | netbsdelf*-gnu)
14580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14581 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14582 wlarc=
14583 else
14584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14585 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14586 fi
14587 ;;
14588
14589 solaris*)
14590 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14591 ld_shlibs_F77=no
14592 cat <<EOF 1>&2
14593
14594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14595 *** create shared libraries on Solaris systems. Therefore, libtool
14596 *** is disabling shared libraries support. We urge you to upgrade GNU
14597 *** binutils to release 2.9.1 or newer. Another option is to modify
14598 *** your PATH or compiler configuration so that the native linker is
14599 *** used, and then restart.
14600
14601 EOF
14602 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14603 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14604 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14605 else
14606 ld_shlibs_F77=no
14607 fi
14608 ;;
14609
14610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14611 case `$LD -v 2>&1` in
14612 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14613 ld_shlibs_F77=no
14614 cat <<_LT_EOF 1>&2
14615
14616 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14617 *** reliably create shared libraries on SCO systems. Therefore, libtool
14618 *** is disabling shared libraries support. We urge you to upgrade GNU
14619 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14620 *** your PATH or compiler configuration so that the native linker is
14621 *** used, and then restart.
14622
14623 _LT_EOF
14624 ;;
14625 *)
14626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14627 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14630 else
14631 ld_shlibs_F77=no
14632 fi
14633 ;;
14634 esac
14635 ;;
14636
14637 sunos4*)
14638 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14639 wlarc=
14640 hardcode_direct_F77=yes
14641 hardcode_shlibpath_var_F77=no
14642 ;;
14643
14644 *)
14645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14647 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14648 else
14649 ld_shlibs_F77=no
14650 fi
14651 ;;
14652 esac
14653
14654 if test "$ld_shlibs_F77" = no; then
14655 runpath_var=
14656 hardcode_libdir_flag_spec_F77=
14657 export_dynamic_flag_spec_F77=
14658 whole_archive_flag_spec_F77=
14659 fi
14660 else
14661 # PORTME fill in a description of your system's linker (not GNU ld)
14662 case $host_os in
14663 aix3*)
14664 allow_undefined_flag_F77=unsupported
14665 always_export_symbols_F77=yes
14666 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'
14667 # Note: this linker hardcodes the directories in LIBPATH if there
14668 # are no directories specified by -L.
14669 hardcode_minus_L_F77=yes
14670 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14671 # Neither direct hardcoding nor static linking is supported with a
14672 # broken collect2.
14673 hardcode_direct_F77=unsupported
14674 fi
14675 ;;
14676
14677 aix4* | aix5*)
14678 if test "$host_cpu" = ia64; then
14679 # On IA64, the linker does run time linking by default, so we don't
14680 # have to do anything special.
14681 aix_use_runtimelinking=no
14682 exp_sym_flag='-Bexport'
14683 no_entry_flag=""
14684 else
14685 # If we're using GNU nm, then we don't want the "-C" option.
14686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14688 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'
14689 else
14690 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'
14691 fi
14692 aix_use_runtimelinking=no
14693
14694 # Test if we are trying to use run time linking or normal
14695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14696 # need to do runtime linking.
14697 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14698 for ld_flag in $LDFLAGS; do
14699 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14700 aix_use_runtimelinking=yes
14701 break
14702 fi
14703 done
14704 ;;
14705 esac
14706
14707 exp_sym_flag='-bexport'
14708 no_entry_flag='-bnoentry'
14709 fi
14710
14711 # When large executables or shared objects are built, AIX ld can
14712 # have problems creating the table of contents. If linking a library
14713 # or program results in "error TOC overflow" add -mminimal-toc to
14714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14716
14717 archive_cmds_F77=''
14718 hardcode_direct_F77=yes
14719 hardcode_libdir_separator_F77=':'
14720 link_all_deplibs_F77=yes
14721
14722 if test "$GCC" = yes; then
14723 case $host_os in aix4.[012]|aix4.[012].*)
14724 # We only want to do this on AIX 4.2 and lower, the check
14725 # below for broken collect2 doesn't work under 4.3+
14726 collect2name=`${CC} -print-prog-name=collect2`
14727 if test -f "$collect2name" && \
14728 strings "$collect2name" | grep resolve_lib_name >/dev/null
14729 then
14730 # We have reworked collect2
14731 hardcode_direct_F77=yes
14732 else
14733 # We have old collect2
14734 hardcode_direct_F77=unsupported
14735 # It fails to find uninstalled libraries when the uninstalled
14736 # path is not listed in the libpath. Setting hardcode_minus_L
14737 # to unsupported forces relinking
14738 hardcode_minus_L_F77=yes
14739 hardcode_libdir_flag_spec_F77='-L$libdir'
14740 hardcode_libdir_separator_F77=
14741 fi
14742 ;;
14743 esac
14744 shared_flag='-shared'
14745 if test "$aix_use_runtimelinking" = yes; then
14746 shared_flag="$shared_flag "'${wl}-G'
14747 fi
14748 else
14749 # not using gcc
14750 if test "$host_cpu" = ia64; then
14751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14752 # chokes on -Wl,-G. The following line is correct:
14753 shared_flag='-G'
14754 else
14755 if test "$aix_use_runtimelinking" = yes; then
14756 shared_flag='${wl}-G'
14757 else
14758 shared_flag='${wl}-bM:SRE'
14759 fi
14760 fi
14761 fi
14762
14763 # It seems that -bexpall does not export symbols beginning with
14764 # underscore (_), so it is better to generate a list of symbols to export.
14765 always_export_symbols_F77=yes
14766 if test "$aix_use_runtimelinking" = yes; then
14767 # Warning - without using the other runtime loading flags (-brtl),
14768 # -berok will link without error, but may produce a broken library.
14769 allow_undefined_flag_F77='-berok'
14770 # Determine the default libpath from the value encoded in an empty executable.
14771 cat >conftest.$ac_ext <<_ACEOF
14772 program main
14773
14774 end
14775 _ACEOF
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (ac_try="$ac_link"
14778 case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14781 esac
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_link") 2>conftest.er1
14784 ac_status=$?
14785 grep -v '^ *+' conftest.er1 >conftest.err
14786 rm -f conftest.er1
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
14790 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14791 { (case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_try") 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest$ac_exeext'
14801 { (case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804 esac
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_try") 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810
14811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14812 }'`
14813 # Check for a 64-bit object if we didn't find anything.
14814 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; }
14815 }'`; fi
14816 else
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820
14821 fi
14822
14823 rm -f core conftest.err conftest.$ac_objext \
14824 conftest$ac_exeext conftest.$ac_ext
14825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14826
14827 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14828 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"
14829 else
14830 if test "$host_cpu" = ia64; then
14831 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14832 allow_undefined_flag_F77="-z nodefs"
14833 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"
14834 else
14835 # Determine the default libpath from the value encoded in an empty executable.
14836 cat >conftest.$ac_ext <<_ACEOF
14837 program main
14838
14839 end
14840 _ACEOF
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (ac_try="$ac_link"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846 esac
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_link") 2>conftest.er1
14849 ac_status=$?
14850 grep -v '^ *+' conftest.er1 >conftest.err
14851 rm -f conftest.er1
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14856 { (case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_try") 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest$ac_exeext'
14866 { (case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_try") 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875
14876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14877 }'`
14878 # Check for a 64-bit object if we didn't find anything.
14879 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; }
14880 }'`; fi
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885
14886 fi
14887
14888 rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14891
14892 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14893 # Warning - without using the other run time loading flags,
14894 # -berok will link without error, but may produce a broken library.
14895 no_undefined_flag_F77=' ${wl}-bernotok'
14896 allow_undefined_flag_F77=' ${wl}-berok'
14897 # Exported symbols can be pulled into shared objects from archives
14898 whole_archive_flag_spec_F77='$convenience'
14899 archive_cmds_need_lc_F77=yes
14900 # This is similar to how AIX traditionally builds its shared libraries.
14901 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'
14902 fi
14903 fi
14904 ;;
14905
14906 amigaos*)
14907 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)'
14908 hardcode_libdir_flag_spec_F77='-L$libdir'
14909 hardcode_minus_L_F77=yes
14910 # see comment about different semantics on the GNU ld section
14911 ld_shlibs_F77=no
14912 ;;
14913
14914 bsdi[45]*)
14915 export_dynamic_flag_spec_F77=-rdynamic
14916 ;;
14917
14918 cygwin* | mingw* | pw32*)
14919 # When not using gcc, we currently assume that we are using
14920 # Microsoft Visual C++.
14921 # hardcode_libdir_flag_spec is actually meaningless, as there is
14922 # no search path for DLLs.
14923 hardcode_libdir_flag_spec_F77=' '
14924 allow_undefined_flag_F77=unsupported
14925 # Tell ltmain to make .lib files, not .a files.
14926 libext=lib
14927 # Tell ltmain to make .dll files, not .so files.
14928 shrext_cmds=".dll"
14929 # FIXME: Setting linknames here is a bad hack.
14930 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14931 # The linker will automatically build a .lib file if we build a DLL.
14932 old_archive_From_new_cmds_F77='true'
14933 # FIXME: Should let the user specify the lib program.
14934 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14935 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14936 enable_shared_with_static_runtimes_F77=yes
14937 ;;
14938
14939 darwin* | rhapsody*)
14940 case $host_os in
14941 rhapsody* | darwin1.[012])
14942 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14943 ;;
14944 *) # Darwin 1.3 on
14945 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14946 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14947 else
14948 case ${MACOSX_DEPLOYMENT_TARGET} in
14949 10.[012])
14950 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14951 ;;
14952 10.*)
14953 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14954 ;;
14955 esac
14956 fi
14957 ;;
14958 esac
14959 archive_cmds_need_lc_F77=no
14960 hardcode_direct_F77=no
14961 hardcode_automatic_F77=yes
14962 hardcode_shlibpath_var_F77=unsupported
14963 whole_archive_flag_spec_F77=''
14964 link_all_deplibs_F77=yes
14965 if test "$GCC" = yes ; then
14966 output_verbose_link_cmd='echo'
14967 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14968 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14969 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14970 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}'
14971 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}'
14972 else
14973 case $cc_basename in
14974 xlc*)
14975 output_verbose_link_cmd='echo'
14976 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14977 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14978 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14979 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}'
14980 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}'
14981 ;;
14982 *)
14983 ld_shlibs_F77=no
14984 ;;
14985 esac
14986 fi
14987 ;;
14988
14989 dgux*)
14990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 hardcode_libdir_flag_spec_F77='-L$libdir'
14992 hardcode_shlibpath_var_F77=no
14993 ;;
14994
14995 freebsd1*)
14996 ld_shlibs_F77=no
14997 ;;
14998
14999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15000 # support. Future versions do this automatically, but an explicit c++rt0.o
15001 # does not break anything, and helps significantly (at the cost of a little
15002 # extra space).
15003 freebsd2.2*)
15004 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15005 hardcode_libdir_flag_spec_F77='-R$libdir'
15006 hardcode_direct_F77=yes
15007 hardcode_shlibpath_var_F77=no
15008 ;;
15009
15010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15011 freebsd2*)
15012 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_direct_F77=yes
15014 hardcode_minus_L_F77=yes
15015 hardcode_shlibpath_var_F77=no
15016 ;;
15017
15018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15019 freebsd* | dragonfly*)
15020 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15021 hardcode_libdir_flag_spec_F77='-R$libdir'
15022 hardcode_direct_F77=yes
15023 hardcode_shlibpath_var_F77=no
15024 ;;
15025
15026 hpux9*)
15027 if test "$GCC" = yes; then
15028 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'
15029 else
15030 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'
15031 fi
15032 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15033 hardcode_libdir_separator_F77=:
15034 hardcode_direct_F77=yes
15035
15036 # hardcode_minus_L: Not really in the search PATH,
15037 # but as the default location of the library.
15038 hardcode_minus_L_F77=yes
15039 export_dynamic_flag_spec_F77='${wl}-E'
15040 ;;
15041
15042 hpux10*)
15043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15044 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15045 else
15046 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15047 fi
15048 if test "$with_gnu_ld" = no; then
15049 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15050 hardcode_libdir_separator_F77=:
15051
15052 hardcode_direct_F77=yes
15053 export_dynamic_flag_spec_F77='${wl}-E'
15054
15055 # hardcode_minus_L: Not really in the search PATH,
15056 # but as the default location of the library.
15057 hardcode_minus_L_F77=yes
15058 fi
15059 ;;
15060
15061 hpux11*)
15062 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15063 case $host_cpu in
15064 hppa*64*)
15065 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15066 ;;
15067 ia64*)
15068 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15069 ;;
15070 *)
15071 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15072 ;;
15073 esac
15074 else
15075 case $host_cpu in
15076 hppa*64*)
15077 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078 ;;
15079 ia64*)
15080 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15081 ;;
15082 *)
15083 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15084 ;;
15085 esac
15086 fi
15087 if test "$with_gnu_ld" = no; then
15088 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15089 hardcode_libdir_separator_F77=:
15090
15091 case $host_cpu in
15092 hppa*64*|ia64*)
15093 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15094 hardcode_direct_F77=no
15095 hardcode_shlibpath_var_F77=no
15096 ;;
15097 *)
15098 hardcode_direct_F77=yes
15099 export_dynamic_flag_spec_F77='${wl}-E'
15100
15101 # hardcode_minus_L: Not really in the search PATH,
15102 # but as the default location of the library.
15103 hardcode_minus_L_F77=yes
15104 ;;
15105 esac
15106 fi
15107 ;;
15108
15109 irix5* | irix6* | nonstopux*)
15110 if test "$GCC" = yes; then
15111 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'
15112 else
15113 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'
15114 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15115 fi
15116 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15117 hardcode_libdir_separator_F77=:
15118 link_all_deplibs_F77=yes
15119 ;;
15120
15121 netbsd* | netbsdelf*-gnu)
15122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15123 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15124 else
15125 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15126 fi
15127 hardcode_libdir_flag_spec_F77='-R$libdir'
15128 hardcode_direct_F77=yes
15129 hardcode_shlibpath_var_F77=no
15130 ;;
15131
15132 newsos6)
15133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134 hardcode_direct_F77=yes
15135 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15136 hardcode_libdir_separator_F77=:
15137 hardcode_shlibpath_var_F77=no
15138 ;;
15139
15140 openbsd*)
15141 hardcode_direct_F77=yes
15142 hardcode_shlibpath_var_F77=no
15143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15144 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15145 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15147 export_dynamic_flag_spec_F77='${wl}-E'
15148 else
15149 case $host_os in
15150 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_libdir_flag_spec_F77='-R$libdir'
15153 ;;
15154 *)
15155 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15156 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15157 ;;
15158 esac
15159 fi
15160 ;;
15161
15162 os2*)
15163 hardcode_libdir_flag_spec_F77='-L$libdir'
15164 hardcode_minus_L_F77=yes
15165 allow_undefined_flag_F77=unsupported
15166 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'
15167 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15168 ;;
15169
15170 osf3*)
15171 if test "$GCC" = yes; then
15172 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15173 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'
15174 else
15175 allow_undefined_flag_F77=' -expect_unresolved \*'
15176 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'
15177 fi
15178 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15179 hardcode_libdir_separator_F77=:
15180 ;;
15181
15182 osf4* | osf5*) # as osf3* with the addition of -msym flag
15183 if test "$GCC" = yes; then
15184 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15185 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'
15186 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15187 else
15188 allow_undefined_flag_F77=' -expect_unresolved \*'
15189 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'
15190 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~
15191 $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'
15192
15193 # Both c and cxx compiler support -rpath directly
15194 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15195 fi
15196 hardcode_libdir_separator_F77=:
15197 ;;
15198
15199 solaris*)
15200 no_undefined_flag_F77=' -z text'
15201 if test "$GCC" = yes; then
15202 wlarc='${wl}'
15203 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15205 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15206 else
15207 wlarc=''
15208 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15210 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15211 fi
15212 hardcode_libdir_flag_spec_F77='-R$libdir'
15213 hardcode_shlibpath_var_F77=no
15214 case $host_os in
15215 solaris2.[0-5] | solaris2.[0-5].*) ;;
15216 *)
15217 # The compiler driver will combine linker options so we
15218 # cannot just pass the convience library names through
15219 # without $wl, iff we do not link with $LD.
15220 # Luckily, gcc supports the same syntax we need for Sun Studio.
15221 # Supported since Solaris 2.6 (maybe 2.5.1?)
15222 case $wlarc in
15223 '')
15224 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15225 *)
15226 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' ;;
15227 esac ;;
15228 esac
15229 link_all_deplibs_F77=yes
15230 ;;
15231
15232 sunos4*)
15233 if test "x$host_vendor" = xsequent; then
15234 # Use $CC to link under sequent, because it throws in some extra .o
15235 # files that make .init and .fini sections work.
15236 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15237 else
15238 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15239 fi
15240 hardcode_libdir_flag_spec_F77='-L$libdir'
15241 hardcode_direct_F77=yes
15242 hardcode_minus_L_F77=yes
15243 hardcode_shlibpath_var_F77=no
15244 ;;
15245
15246 sysv4)
15247 case $host_vendor in
15248 sni)
15249 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_direct_F77=yes # is this really true???
15251 ;;
15252 siemens)
15253 ## LD is ld it makes a PLAMLIB
15254 ## CC just makes a GrossModule.
15255 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15256 reload_cmds_F77='$CC -r -o $output$reload_objs'
15257 hardcode_direct_F77=no
15258 ;;
15259 motorola)
15260 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15261 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15262 ;;
15263 esac
15264 runpath_var='LD_RUN_PATH'
15265 hardcode_shlibpath_var_F77=no
15266 ;;
15267
15268 sysv4.3*)
15269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15270 hardcode_shlibpath_var_F77=no
15271 export_dynamic_flag_spec_F77='-Bexport'
15272 ;;
15273
15274 sysv4*MP*)
15275 if test -d /usr/nec; then
15276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15277 hardcode_shlibpath_var_F77=no
15278 runpath_var=LD_RUN_PATH
15279 hardcode_runpath_var=yes
15280 ld_shlibs_F77=yes
15281 fi
15282 ;;
15283
15284 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15285 no_undefined_flag_F77='${wl}-z,text'
15286 archive_cmds_need_lc_F77=no
15287 hardcode_shlibpath_var_F77=no
15288 runpath_var='LD_RUN_PATH'
15289
15290 if test "$GCC" = yes; then
15291 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15292 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15293 else
15294 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15295 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15296 fi
15297 ;;
15298
15299 sysv5* | sco3.2v5* | sco5v6*)
15300 # Note: We can NOT use -z defs as we might desire, because we do not
15301 # link with -lc, and that would cause any symbols used from libc to
15302 # always be unresolved, which means just about no library would
15303 # ever link correctly. If we're not using GNU ld we use -z text
15304 # though, which does catch some bad symbols but isn't as heavy-handed
15305 # as -z defs.
15306 no_undefined_flag_F77='${wl}-z,text'
15307 allow_undefined_flag_F77='${wl}-z,nodefs'
15308 archive_cmds_need_lc_F77=no
15309 hardcode_shlibpath_var_F77=no
15310 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15311 hardcode_libdir_separator_F77=':'
15312 link_all_deplibs_F77=yes
15313 export_dynamic_flag_spec_F77='${wl}-Bexport'
15314 runpath_var='LD_RUN_PATH'
15315
15316 if test "$GCC" = yes; then
15317 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15318 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15319 else
15320 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15321 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322 fi
15323 ;;
15324
15325 uts4*)
15326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327 hardcode_libdir_flag_spec_F77='-L$libdir'
15328 hardcode_shlibpath_var_F77=no
15329 ;;
15330
15331 *)
15332 ld_shlibs_F77=no
15333 ;;
15334 esac
15335 fi
15336
15337 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15338 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15339 test "$ld_shlibs_F77" = no && can_build_shared=no
15340
15341 #
15342 # Do we need to explicitly link libc?
15343 #
15344 case "x$archive_cmds_need_lc_F77" in
15345 x|xyes)
15346 # Assume -lc should be added
15347 archive_cmds_need_lc_F77=yes
15348
15349 if test "$enable_shared" = yes && test "$GCC" = yes; then
15350 case $archive_cmds_F77 in
15351 *'~'*)
15352 # FIXME: we may have to deal with multi-command sequences.
15353 ;;
15354 '$CC '*)
15355 # Test whether the compiler implicitly links with -lc since on some
15356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15357 # to ld, don't add -lc before -lgcc.
15358 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15359 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15360 $rm conftest*
15361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15362
15363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15364 (eval $ac_compile) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } 2>conftest.err; then
15368 soname=conftest
15369 lib=conftest
15370 libobjs=conftest.$ac_objext
15371 deplibs=
15372 wl=$lt_prog_compiler_wl_F77
15373 pic_flag=$lt_prog_compiler_pic_F77
15374 compiler_flags=-v
15375 linker_flags=-v
15376 verstring=
15377 output_objdir=.
15378 libname=conftest
15379 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15380 allow_undefined_flag_F77=
15381 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15382 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }
15386 then
15387 archive_cmds_need_lc_F77=no
15388 else
15389 archive_cmds_need_lc_F77=yes
15390 fi
15391 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15392 else
15393 cat conftest.err 1>&5
15394 fi
15395 $rm conftest*
15396 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15397 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15398 ;;
15399 esac
15400 fi
15401 ;;
15402 esac
15403
15404 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15405 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15406 library_names_spec=
15407 libname_spec='lib$name'
15408 soname_spec=
15409 shrext_cmds=".so"
15410 postinstall_cmds=
15411 postuninstall_cmds=
15412 finish_cmds=
15413 finish_eval=
15414 shlibpath_var=
15415 shlibpath_overrides_runpath=unknown
15416 version_type=none
15417 dynamic_linker="$host_os ld.so"
15418 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15419 if test "$GCC" = yes; then
15420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15421 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15422 # if the path contains ";" then we assume it to be the separator
15423 # otherwise default to the standard path separator (i.e. ":") - it is
15424 # assumed that no part of a normal pathname contains ";" but that should
15425 # okay in the real world where ";" in dirpaths is itself problematic.
15426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15427 else
15428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15429 fi
15430 else
15431 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15432 fi
15433 need_lib_prefix=unknown
15434 hardcode_into_libs=no
15435
15436 # when you set need_version to no, make sure it does not cause -set_version
15437 # flags to be left without arguments
15438 need_version=unknown
15439
15440 case $host_os in
15441 aix3*)
15442 version_type=linux
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15444 shlibpath_var=LIBPATH
15445
15446 # AIX 3 has no versioning support, so we append a major version to the name.
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 ;;
15449
15450 aix4* | aix5*)
15451 version_type=linux
15452 need_lib_prefix=no
15453 need_version=no
15454 hardcode_into_libs=yes
15455 if test "$host_cpu" = ia64; then
15456 # AIX 5 supports IA64
15457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 else
15460 # With GCC up to 2.95.x, collect2 would create an import file
15461 # for dependence libraries. The import file would start with
15462 # the line `#! .'. This would cause the generated library to
15463 # depend on `.', always an invalid library. This was fixed in
15464 # development snapshots of GCC prior to 3.0.
15465 case $host_os in
15466 aix4 | aix4.[01] | aix4.[01].*)
15467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15468 echo ' yes '
15469 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15470 :
15471 else
15472 can_build_shared=no
15473 fi
15474 ;;
15475 esac
15476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15477 # soname into executable. Probably we can add versioning support to
15478 # collect2, so additional links can be useful in future.
15479 if test "$aix_use_runtimelinking" = yes; then
15480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15481 # instead of lib<name>.a to let people know that these are not
15482 # typical AIX shared libraries.
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 else
15485 # We preserve .a as extension for shared libraries through AIX4.2
15486 # and later when we are not doing run time linking.
15487 library_names_spec='${libname}${release}.a $libname.a'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 fi
15490 shlibpath_var=LIBPATH
15491 fi
15492 ;;
15493
15494 amigaos*)
15495 library_names_spec='$libname.ixlibrary $libname.a'
15496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15497 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'
15498 ;;
15499
15500 beos*)
15501 library_names_spec='${libname}${shared_ext}'
15502 dynamic_linker="$host_os ld.so"
15503 shlibpath_var=LIBRARY_PATH
15504 ;;
15505
15506 bsdi[45]*)
15507 version_type=linux
15508 need_version=no
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15512 shlibpath_var=LD_LIBRARY_PATH
15513 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15514 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15515 # the default ld.so.conf also contains /usr/contrib/lib and
15516 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15517 # libtool to hard-code these into programs
15518 ;;
15519
15520 cygwin* | mingw* | pw32*)
15521 version_type=windows
15522 shrext_cmds=".dll"
15523 need_version=no
15524 need_lib_prefix=no
15525
15526 case $GCC,$host_os in
15527 yes,cygwin* | yes,mingw* | yes,pw32*)
15528 library_names_spec='$libname.dll.a'
15529 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15530 postinstall_cmds='base_file=`basename \${file}`~
15531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15532 dldir=$destdir/`dirname \$dlpath`~
15533 test -d \$dldir || mkdir -p \$dldir~
15534 $install_prog $dir/$dlname \$dldir/$dlname~
15535 chmod a+x \$dldir/$dlname'
15536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15537 dlpath=$dir/\$dldll~
15538 $rm \$dlpath'
15539 shlibpath_overrides_runpath=yes
15540
15541 case $host_os in
15542 cygwin*)
15543 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15544 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15545 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15546 ;;
15547 mingw*)
15548 # MinGW DLLs use traditional 'lib' prefix
15549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15551 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15552 # It is most probably a Windows format PATH printed by
15553 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15554 # path with ; separators, and with drive letters. We can handle the
15555 # drive letters (cygwin fileutils understands them), so leave them,
15556 # especially as we might pass files found there to a mingw objdump,
15557 # which wouldn't understand a cygwinified path. Ahh.
15558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15559 else
15560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15561 fi
15562 ;;
15563 pw32*)
15564 # pw32 DLLs use 'pw' prefix rather than 'lib'
15565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15566 ;;
15567 esac
15568 ;;
15569
15570 *)
15571 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15572 ;;
15573 esac
15574 dynamic_linker='Win32 ld.exe'
15575 # FIXME: first we should search . and the directory the executable is in
15576 shlibpath_var=PATH
15577 ;;
15578
15579 darwin* | rhapsody*)
15580 dynamic_linker="$host_os dyld"
15581 version_type=darwin
15582 need_lib_prefix=no
15583 need_version=no
15584 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15585 soname_spec='${libname}${release}${major}$shared_ext'
15586 shlibpath_overrides_runpath=yes
15587 shlibpath_var=DYLD_LIBRARY_PATH
15588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15589 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15590 if test "$GCC" = yes; then
15591 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"`
15592 else
15593 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15594 fi
15595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15596 ;;
15597
15598 dgux*)
15599 version_type=linux
15600 need_lib_prefix=no
15601 need_version=no
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 ;;
15606
15607 freebsd1*)
15608 dynamic_linker=no
15609 ;;
15610
15611 freebsd* | dragonfly*)
15612 # DragonFly does not have aout. When/if they implement a new
15613 # versioning mechanism, adjust this.
15614 if test -x /usr/bin/objformat; then
15615 objformat=`/usr/bin/objformat`
15616 else
15617 case $host_os in
15618 freebsd[123]*) objformat=aout ;;
15619 *) objformat=elf ;;
15620 esac
15621 fi
15622 version_type=freebsd-$objformat
15623 case $version_type in
15624 freebsd-elf*)
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15626 need_version=no
15627 need_lib_prefix=no
15628 ;;
15629 freebsd-*)
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15631 need_version=yes
15632 ;;
15633 esac
15634 shlibpath_var=LD_LIBRARY_PATH
15635 case $host_os in
15636 freebsd2*)
15637 shlibpath_overrides_runpath=yes
15638 ;;
15639 freebsd3.[01]* | freebsdelf3.[01]*)
15640 shlibpath_overrides_runpath=yes
15641 hardcode_into_libs=yes
15642 ;;
15643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15645 shlibpath_overrides_runpath=no
15646 hardcode_into_libs=yes
15647 ;;
15648 freebsd*) # from 4.6 on
15649 shlibpath_overrides_runpath=yes
15650 hardcode_into_libs=yes
15651 ;;
15652 esac
15653 ;;
15654
15655 gnu*)
15656 version_type=linux
15657 need_lib_prefix=no
15658 need_version=no
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15660 soname_spec='${libname}${release}${shared_ext}$major'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 hardcode_into_libs=yes
15663 ;;
15664
15665 hpux9* | hpux10* | hpux11*)
15666 # Give a soname corresponding to the major version so that dld.sl refuses to
15667 # link against other versions.
15668 version_type=sunos
15669 need_lib_prefix=no
15670 need_version=no
15671 case $host_cpu in
15672 ia64*)
15673 shrext_cmds='.so'
15674 hardcode_into_libs=yes
15675 dynamic_linker="$host_os dld.so"
15676 shlibpath_var=LD_LIBRARY_PATH
15677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 if test "X$HPUX_IA64_MODE" = X32; then
15681 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15682 else
15683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15684 fi
15685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15686 ;;
15687 hppa*64*)
15688 shrext_cmds='.sl'
15689 hardcode_into_libs=yes
15690 dynamic_linker="$host_os dld.sl"
15691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15697 ;;
15698 *)
15699 shrext_cmds='.sl'
15700 dynamic_linker="$host_os dld.sl"
15701 shlibpath_var=SHLIB_PATH
15702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 ;;
15706 esac
15707 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15708 postinstall_cmds='chmod 555 $lib'
15709 ;;
15710
15711 interix3*)
15712 version_type=linux
15713 need_lib_prefix=no
15714 need_version=no
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 shlibpath_overrides_runpath=no
15720 hardcode_into_libs=yes
15721 ;;
15722
15723 irix5* | irix6* | nonstopux*)
15724 case $host_os in
15725 nonstopux*) version_type=nonstopux ;;
15726 *)
15727 if test "$lt_cv_prog_gnu_ld" = yes; then
15728 version_type=linux
15729 else
15730 version_type=irix
15731 fi ;;
15732 esac
15733 need_lib_prefix=no
15734 need_version=no
15735 soname_spec='${libname}${release}${shared_ext}$major'
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15737 case $host_os in
15738 irix5* | nonstopux*)
15739 libsuff= shlibsuff=
15740 ;;
15741 *)
15742 case $LD in # libtool.m4 will add one of these switches to LD
15743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15744 libsuff= shlibsuff= libmagic=32-bit;;
15745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15746 libsuff=32 shlibsuff=N32 libmagic=N32;;
15747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15749 *) libsuff= shlibsuff= libmagic=never-match;;
15750 esac
15751 ;;
15752 esac
15753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15754 shlibpath_overrides_runpath=no
15755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15757 hardcode_into_libs=yes
15758 ;;
15759
15760 # No shared lib support for Linux oldld, aout, or coff.
15761 linux*oldld* | linux*aout* | linux*coff*)
15762 dynamic_linker=no
15763 ;;
15764
15765 # This must be Linux ELF.
15766 linux* | k*bsd*-gnu)
15767 version_type=linux
15768 need_lib_prefix=no
15769 need_version=no
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=no
15775 # This implies no fast_install, which is unacceptable.
15776 # Some rework will be needed to allow for fast_install
15777 # before this can be enabled.
15778 hardcode_into_libs=yes
15779
15780 # Append ld.so.conf contents to the search path
15781 if test -f /etc/ld.so.conf; then
15782 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' ' '`
15783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15784 fi
15785
15786 # We used to test for /lib/ld.so.1 and disable shared libraries on
15787 # powerpc, because MkLinux only supported shared libraries with the
15788 # GNU dynamic linker. Since this was broken with cross compilers,
15789 # most powerpc-linux boxes support dynamic linking these days and
15790 # people can always --disable-shared, the test was removed, and we
15791 # assume the GNU/Linux dynamic linker is in use.
15792 dynamic_linker='GNU/Linux ld.so'
15793 ;;
15794
15795 netbsdelf*-gnu)
15796 version_type=linux
15797 need_lib_prefix=no
15798 need_version=no
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15800 soname_spec='${libname}${release}${shared_ext}$major'
15801 shlibpath_var=LD_LIBRARY_PATH
15802 shlibpath_overrides_runpath=no
15803 hardcode_into_libs=yes
15804 dynamic_linker='NetBSD ld.elf_so'
15805 ;;
15806
15807 netbsd*)
15808 version_type=sunos
15809 need_lib_prefix=no
15810 need_version=no
15811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15814 dynamic_linker='NetBSD (a.out) ld.so'
15815 else
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 dynamic_linker='NetBSD ld.elf_so'
15819 fi
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=yes
15822 hardcode_into_libs=yes
15823 ;;
15824
15825 newsos6)
15826 version_type=linux
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=yes
15830 ;;
15831
15832 nto-qnx*)
15833 version_type=linux
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=yes
15840 ;;
15841
15842 openbsd*)
15843 version_type=sunos
15844 sys_lib_dlsearch_path_spec="/usr/lib"
15845 need_lib_prefix=no
15846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15847 case $host_os in
15848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15849 *) need_version=no ;;
15850 esac
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15855 case $host_os in
15856 openbsd2.[89] | openbsd2.[89].*)
15857 shlibpath_overrides_runpath=no
15858 ;;
15859 *)
15860 shlibpath_overrides_runpath=yes
15861 ;;
15862 esac
15863 else
15864 shlibpath_overrides_runpath=yes
15865 fi
15866 ;;
15867
15868 os2*)
15869 libname_spec='$name'
15870 shrext_cmds=".dll"
15871 need_lib_prefix=no
15872 library_names_spec='$libname${shared_ext} $libname.a'
15873 dynamic_linker='OS/2 ld.exe'
15874 shlibpath_var=LIBPATH
15875 ;;
15876
15877 osf3* | osf4* | osf5*)
15878 version_type=osf
15879 need_lib_prefix=no
15880 need_version=no
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15886 ;;
15887
15888 solaris*)
15889 version_type=linux
15890 need_lib_prefix=no
15891 need_version=no
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=yes
15896 hardcode_into_libs=yes
15897 # ldd complains unless libraries are executable
15898 postinstall_cmds='chmod +x $lib'
15899 ;;
15900
15901 sunos4*)
15902 version_type=sunos
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15907 if test "$with_gnu_ld" = yes; then
15908 need_lib_prefix=no
15909 fi
15910 need_version=yes
15911 ;;
15912
15913 sysv4 | sysv4.3*)
15914 version_type=linux
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15916 soname_spec='${libname}${release}${shared_ext}$major'
15917 shlibpath_var=LD_LIBRARY_PATH
15918 case $host_vendor in
15919 sni)
15920 shlibpath_overrides_runpath=no
15921 need_lib_prefix=no
15922 export_dynamic_flag_spec='${wl}-Blargedynsym'
15923 runpath_var=LD_RUN_PATH
15924 ;;
15925 siemens)
15926 need_lib_prefix=no
15927 ;;
15928 motorola)
15929 need_lib_prefix=no
15930 need_version=no
15931 shlibpath_overrides_runpath=no
15932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15933 ;;
15934 esac
15935 ;;
15936
15937 sysv4*MP*)
15938 if test -d /usr/nec ;then
15939 version_type=linux
15940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15941 soname_spec='$libname${shared_ext}.$major'
15942 shlibpath_var=LD_LIBRARY_PATH
15943 fi
15944 ;;
15945
15946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15947 version_type=freebsd-elf
15948 need_lib_prefix=no
15949 need_version=no
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 shlibpath_var=LD_LIBRARY_PATH
15953 hardcode_into_libs=yes
15954 if test "$with_gnu_ld" = yes; then
15955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15956 shlibpath_overrides_runpath=no
15957 else
15958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15959 shlibpath_overrides_runpath=yes
15960 case $host_os in
15961 sco3.2v5*)
15962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15963 ;;
15964 esac
15965 fi
15966 sys_lib_dlsearch_path_spec='/usr/lib'
15967 ;;
15968
15969 uts4*)
15970 version_type=linux
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 shlibpath_var=LD_LIBRARY_PATH
15974 ;;
15975
15976 *)
15977 dynamic_linker=no
15978 ;;
15979 esac
15980 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15981 echo "${ECHO_T}$dynamic_linker" >&6; }
15982 test "$dynamic_linker" = no && can_build_shared=no
15983
15984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15985 if test "$GCC" = yes; then
15986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15987 fi
15988
15989 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15990 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15991 hardcode_action_F77=
15992 if test -n "$hardcode_libdir_flag_spec_F77" || \
15993 test -n "$runpath_var_F77" || \
15994 test "X$hardcode_automatic_F77" = "Xyes" ; then
15995
15996 # We can hardcode non-existant directories.
15997 if test "$hardcode_direct_F77" != no &&
15998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15999 # have to relink, otherwise we might link with an installed library
16000 # when we should be linking with a yet-to-be-installed one
16001 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16002 test "$hardcode_minus_L_F77" != no; then
16003 # Linking always hardcodes the temporary library directory.
16004 hardcode_action_F77=relink
16005 else
16006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16007 hardcode_action_F77=immediate
16008 fi
16009 else
16010 # We cannot hardcode anything, or else we can only hardcode existing
16011 # directories.
16012 hardcode_action_F77=unsupported
16013 fi
16014 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16015 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16016
16017 if test "$hardcode_action_F77" = relink; then
16018 # Fast installation is not supported
16019 enable_fast_install=no
16020 elif test "$shlibpath_overrides_runpath" = yes ||
16021 test "$enable_shared" = no; then
16022 # Fast installation is not necessary
16023 enable_fast_install=needless
16024 fi
16025
16026
16027 # The else clause should only fire when bootstrapping the
16028 # libtool distribution, otherwise you forgot to ship ltmain.sh
16029 # with your package, and you will get complaints that there are
16030 # no rules to generate ltmain.sh.
16031 if test -f "$ltmain"; then
16032 # See if we are running on zsh, and set the options which allow our commands through
16033 # without removal of \ escapes.
16034 if test -n "${ZSH_VERSION+set}" ; then
16035 setopt NO_GLOB_SUBST
16036 fi
16037 # Now quote all the things that may contain metacharacters while being
16038 # careful not to overquote the AC_SUBSTed values. We take copies of the
16039 # variables and quote the copies for generation of the libtool script.
16040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16041 SED SHELL STRIP \
16042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16044 deplibs_check_method reload_flag reload_cmds need_locks \
16045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16046 lt_cv_sys_global_symbol_to_c_name_address \
16047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16048 old_postinstall_cmds old_postuninstall_cmds \
16049 compiler_F77 \
16050 CC_F77 \
16051 LD_F77 \
16052 lt_prog_compiler_wl_F77 \
16053 lt_prog_compiler_pic_F77 \
16054 lt_prog_compiler_static_F77 \
16055 lt_prog_compiler_no_builtin_flag_F77 \
16056 export_dynamic_flag_spec_F77 \
16057 thread_safe_flag_spec_F77 \
16058 whole_archive_flag_spec_F77 \
16059 enable_shared_with_static_runtimes_F77 \
16060 old_archive_cmds_F77 \
16061 old_archive_from_new_cmds_F77 \
16062 predep_objects_F77 \
16063 postdep_objects_F77 \
16064 predeps_F77 \
16065 postdeps_F77 \
16066 compiler_lib_search_path_F77 \
16067 archive_cmds_F77 \
16068 archive_expsym_cmds_F77 \
16069 postinstall_cmds_F77 \
16070 postuninstall_cmds_F77 \
16071 old_archive_from_expsyms_cmds_F77 \
16072 allow_undefined_flag_F77 \
16073 no_undefined_flag_F77 \
16074 export_symbols_cmds_F77 \
16075 hardcode_libdir_flag_spec_F77 \
16076 hardcode_libdir_flag_spec_ld_F77 \
16077 hardcode_libdir_separator_F77 \
16078 hardcode_automatic_F77 \
16079 module_cmds_F77 \
16080 module_expsym_cmds_F77 \
16081 lt_cv_prog_compiler_c_o_F77 \
16082 exclude_expsyms_F77 \
16083 include_expsyms_F77; do
16084
16085 case $var in
16086 old_archive_cmds_F77 | \
16087 old_archive_from_new_cmds_F77 | \
16088 archive_cmds_F77 | \
16089 archive_expsym_cmds_F77 | \
16090 module_cmds_F77 | \
16091 module_expsym_cmds_F77 | \
16092 old_archive_from_expsyms_cmds_F77 | \
16093 export_symbols_cmds_F77 | \
16094 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16095 postinstall_cmds | postuninstall_cmds | \
16096 old_postinstall_cmds | old_postuninstall_cmds | \
16097 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16098 # Double-quote double-evaled strings.
16099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16100 ;;
16101 *)
16102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16103 ;;
16104 esac
16105 done
16106
16107 case $lt_echo in
16108 *'\$0 --fallback-echo"')
16109 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16110 ;;
16111 esac
16112
16113 cfgfile="$ofile"
16114
16115 cat <<__EOF__ >> "$cfgfile"
16116 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16117
16118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16119
16120 # Shell to use when invoking shell scripts.
16121 SHELL=$lt_SHELL
16122
16123 # Whether or not to build shared libraries.
16124 build_libtool_libs=$enable_shared
16125
16126 # Whether or not to build static libraries.
16127 build_old_libs=$enable_static
16128
16129 # Whether or not to add -lc for building shared libraries.
16130 build_libtool_need_lc=$archive_cmds_need_lc_F77
16131
16132 # Whether or not to disallow shared libs when runtime libs are static
16133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16134
16135 # Whether or not to optimize for fast installation.
16136 fast_install=$enable_fast_install
16137
16138 # The host system.
16139 host_alias=$host_alias
16140 host=$host
16141 host_os=$host_os
16142
16143 # The build system.
16144 build_alias=$build_alias
16145 build=$build
16146 build_os=$build_os
16147
16148 # An echo program that does not interpret backslashes.
16149 echo=$lt_echo
16150
16151 # The archiver.
16152 AR=$lt_AR
16153 AR_FLAGS=$lt_AR_FLAGS
16154
16155 # A C compiler.
16156 LTCC=$lt_LTCC
16157
16158 # LTCC compiler flags.
16159 LTCFLAGS=$lt_LTCFLAGS
16160
16161 # A language-specific compiler.
16162 CC=$lt_compiler_F77
16163
16164 # Is the compiler the GNU C compiler?
16165 with_gcc=$GCC_F77
16166
16167 # An ERE matcher.
16168 EGREP=$lt_EGREP
16169
16170 # The linker used to build libraries.
16171 LD=$lt_LD_F77
16172
16173 # Whether we need hard or soft links.
16174 LN_S=$lt_LN_S
16175
16176 # A BSD-compatible nm program.
16177 NM=$lt_NM
16178
16179 # A symbol stripping program
16180 STRIP=$lt_STRIP
16181
16182 # Used to examine libraries when file_magic_cmd begins "file"
16183 MAGIC_CMD=$MAGIC_CMD
16184
16185 # Used on cygwin: DLL creation program.
16186 DLLTOOL="$DLLTOOL"
16187
16188 # Used on cygwin: object dumper.
16189 OBJDUMP="$OBJDUMP"
16190
16191 # Used on cygwin: assembler.
16192 AS="$AS"
16193
16194 # The name of the directory that contains temporary libtool files.
16195 objdir=$objdir
16196
16197 # How to create reloadable object files.
16198 reload_flag=$lt_reload_flag
16199 reload_cmds=$lt_reload_cmds
16200
16201 # How to pass a linker flag through the compiler.
16202 wl=$lt_lt_prog_compiler_wl_F77
16203
16204 # Object file suffix (normally "o").
16205 objext="$ac_objext"
16206
16207 # Old archive suffix (normally "a").
16208 libext="$libext"
16209
16210 # Shared library suffix (normally ".so").
16211 shrext_cmds='$shrext_cmds'
16212
16213 # Executable file suffix (normally "").
16214 exeext="$exeext"
16215
16216 # Additional compiler flags for building library objects.
16217 pic_flag=$lt_lt_prog_compiler_pic_F77
16218 pic_mode=$pic_mode
16219
16220 # What is the maximum length of a command?
16221 max_cmd_len=$lt_cv_sys_max_cmd_len
16222
16223 # Does compiler simultaneously support -c and -o options?
16224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16225
16226 # Must we lock files when doing compilation?
16227 need_locks=$lt_need_locks
16228
16229 # Do we need the lib prefix for modules?
16230 need_lib_prefix=$need_lib_prefix
16231
16232 # Do we need a version for libraries?
16233 need_version=$need_version
16234
16235 # Whether dlopen is supported.
16236 dlopen_support=$enable_dlopen
16237
16238 # Whether dlopen of programs is supported.
16239 dlopen_self=$enable_dlopen_self
16240
16241 # Whether dlopen of statically linked programs is supported.
16242 dlopen_self_static=$enable_dlopen_self_static
16243
16244 # Compiler flag to prevent dynamic linking.
16245 link_static_flag=$lt_lt_prog_compiler_static_F77
16246
16247 # Compiler flag to turn off builtin functions.
16248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16249
16250 # Compiler flag to allow reflexive dlopens.
16251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16252
16253 # Compiler flag to generate shared objects directly from archives.
16254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16255
16256 # Compiler flag to generate thread-safe objects.
16257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16258
16259 # Library versioning type.
16260 version_type=$version_type
16261
16262 # Format of library name prefix.
16263 libname_spec=$lt_libname_spec
16264
16265 # List of archive names. First name is the real one, the rest are links.
16266 # The last name is the one that the linker finds with -lNAME.
16267 library_names_spec=$lt_library_names_spec
16268
16269 # The coded name of the library, if different from the real name.
16270 soname_spec=$lt_soname_spec
16271
16272 # Commands used to build and install an old-style archive.
16273 RANLIB=$lt_RANLIB
16274 old_archive_cmds=$lt_old_archive_cmds_F77
16275 old_postinstall_cmds=$lt_old_postinstall_cmds
16276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16277
16278 # Create an old-style archive from a shared archive.
16279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16280
16281 # Create a temporary old-style archive to link instead of a shared archive.
16282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16283
16284 # Commands used to build and install a shared archive.
16285 archive_cmds=$lt_archive_cmds_F77
16286 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16287 postinstall_cmds=$lt_postinstall_cmds
16288 postuninstall_cmds=$lt_postuninstall_cmds
16289
16290 # Commands used to build a loadable module (assumed same as above if empty)
16291 module_cmds=$lt_module_cmds_F77
16292 module_expsym_cmds=$lt_module_expsym_cmds_F77
16293
16294 # Commands to strip libraries.
16295 old_striplib=$lt_old_striplib
16296 striplib=$lt_striplib
16297
16298 # Dependencies to place before the objects being linked to create a
16299 # shared library.
16300 predep_objects=$lt_predep_objects_F77
16301
16302 # Dependencies to place after the objects being linked to create a
16303 # shared library.
16304 postdep_objects=$lt_postdep_objects_F77
16305
16306 # Dependencies to place before the objects being linked to create a
16307 # shared library.
16308 predeps=$lt_predeps_F77
16309
16310 # Dependencies to place after the objects being linked to create a
16311 # shared library.
16312 postdeps=$lt_postdeps_F77
16313
16314 # The library search path used internally by the compiler when linking
16315 # a shared library.
16316 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16317
16318 # Method to check whether dependent libraries are shared objects.
16319 deplibs_check_method=$lt_deplibs_check_method
16320
16321 # Command to use when deplibs_check_method == file_magic.
16322 file_magic_cmd=$lt_file_magic_cmd
16323
16324 # Flag that allows shared libraries with undefined symbols to be built.
16325 allow_undefined_flag=$lt_allow_undefined_flag_F77
16326
16327 # Flag that forces no undefined symbols.
16328 no_undefined_flag=$lt_no_undefined_flag_F77
16329
16330 # Commands used to finish a libtool library installation in a directory.
16331 finish_cmds=$lt_finish_cmds
16332
16333 # Same as above, but a single script fragment to be evaled but not shown.
16334 finish_eval=$lt_finish_eval
16335
16336 # Take the output of nm and produce a listing of raw symbols and C names.
16337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16338
16339 # Transform the output of nm in a proper C declaration
16340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16341
16342 # Transform the output of nm in a C name address pair
16343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16344
16345 # This is the shared library runtime path variable.
16346 runpath_var=$runpath_var
16347
16348 # This is the shared library path variable.
16349 shlibpath_var=$shlibpath_var
16350
16351 # Is shlibpath searched before the hard-coded library search path?
16352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16353
16354 # How to hardcode a shared library path into an executable.
16355 hardcode_action=$hardcode_action_F77
16356
16357 # Whether we should hardcode library paths into libraries.
16358 hardcode_into_libs=$hardcode_into_libs
16359
16360 # Flag to hardcode \$libdir into a binary during linking.
16361 # This must work even if \$libdir does not exist.
16362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16363
16364 # If ld is used when linking, flag to hardcode \$libdir into
16365 # a binary during linking. This must work even if \$libdir does
16366 # not exist.
16367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16368
16369 # Whether we need a single -rpath flag with a separated argument.
16370 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16371
16372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16373 # resulting binary.
16374 hardcode_direct=$hardcode_direct_F77
16375
16376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16377 # resulting binary.
16378 hardcode_minus_L=$hardcode_minus_L_F77
16379
16380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16381 # the resulting binary.
16382 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16383
16384 # Set to yes if building a shared library automatically hardcodes DIR into the library
16385 # and all subsequent libraries and executables linked against it.
16386 hardcode_automatic=$hardcode_automatic_F77
16387
16388 # Variables whose values should be saved in libtool wrapper scripts and
16389 # restored at relink time.
16390 variables_saved_for_relink="$variables_saved_for_relink"
16391
16392 # Whether libtool must link a program against all its dependency libraries.
16393 link_all_deplibs=$link_all_deplibs_F77
16394
16395 # Compile-time system search path for libraries
16396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16397
16398 # Run-time system search path for libraries
16399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16400
16401 # Fix the shell variable \$srcfile for the compiler.
16402 fix_srcfile_path="$fix_srcfile_path_F77"
16403
16404 # Set to yes if exported symbols are required.
16405 always_export_symbols=$always_export_symbols_F77
16406
16407 # The commands to list exported symbols.
16408 export_symbols_cmds=$lt_export_symbols_cmds_F77
16409
16410 # The commands to extract the exported symbol list from a shared archive.
16411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16412
16413 # Symbols that should not be listed in the preloaded symbols.
16414 exclude_expsyms=$lt_exclude_expsyms_F77
16415
16416 # Symbols that must always be exported.
16417 include_expsyms=$lt_include_expsyms_F77
16418
16419 # ### END LIBTOOL TAG CONFIG: $tagname
16420
16421 __EOF__
16422
16423
16424 else
16425 # If there is no Makefile yet, we rely on a make rule to execute
16426 # `config.status --recheck' to rerun these tests and create the
16427 # libtool script then.
16428 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16429 if test -f "$ltmain_in"; then
16430 test -f Makefile && make "$ltmain"
16431 fi
16432 fi
16433
16434
16435 ac_ext=c
16436 ac_cpp='$CPP $CPPFLAGS'
16437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16440
16441 CC="$lt_save_CC"
16442
16443 else
16444 tagname=""
16445 fi
16446 ;;
16447
16448 GCJ)
16449 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16450
16451
16452 # Source file extension for Java test sources.
16453 ac_ext=java
16454
16455 # Object file extension for compiled Java test sources.
16456 objext=o
16457 objext_GCJ=$objext
16458
16459 # Code to be used in simple compile tests
16460 lt_simple_compile_test_code="class foo {}\n"
16461
16462 # Code to be used in simple link tests
16463 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16464
16465 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16466
16467 # If no C compiler was specified, use CC.
16468 LTCC=${LTCC-"$CC"}
16469
16470 # If no C compiler flags were specified, use CFLAGS.
16471 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16472
16473 # Allow CC to be a program name with arguments.
16474 compiler=$CC
16475
16476
16477 # save warnings/boilerplate of simple test code
16478 ac_outfile=conftest.$ac_objext
16479 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16480 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16481 _lt_compiler_boilerplate=`cat conftest.err`
16482 $rm conftest*
16483
16484 ac_outfile=conftest.$ac_objext
16485 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16486 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16487 _lt_linker_boilerplate=`cat conftest.err`
16488 $rm conftest*
16489
16490
16491 # Allow CC to be a program name with arguments.
16492 lt_save_CC="$CC"
16493 CC=${GCJ-"gcj"}
16494 compiler=$CC
16495 compiler_GCJ=$CC
16496 for cc_temp in $compiler""; do
16497 case $cc_temp in
16498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16500 \-*) ;;
16501 *) break;;
16502 esac
16503 done
16504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16505
16506
16507 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16508 archive_cmds_need_lc_GCJ=no
16509
16510 old_archive_cmds_GCJ=$old_archive_cmds
16511
16512
16513 lt_prog_compiler_no_builtin_flag_GCJ=
16514
16515 if test "$GCC" = yes; then
16516 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16517
16518
16519 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16520 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16521 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524 lt_cv_prog_compiler_rtti_exceptions=no
16525 ac_outfile=conftest.$ac_objext
16526 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16527 lt_compiler_flag="-fno-rtti -fno-exceptions"
16528 # Insert the option either (1) after the last *FLAGS variable, or
16529 # (2) before a word containing "conftest.", or (3) at the end.
16530 # Note that $ac_compile itself does not contain backslashes and begins
16531 # with a dollar sign (not a hyphen), so the echo should work correctly.
16532 # The option is referenced via a variable to avoid confusing sed.
16533 lt_compile=`echo "$ac_compile" | $SED \
16534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16536 -e 's:$: $lt_compiler_flag:'`
16537 (eval echo "\"\$as_me:16537: $lt_compile\"" >&5)
16538 (eval "$lt_compile" 2>conftest.err)
16539 ac_status=$?
16540 cat conftest.err >&5
16541 echo "$as_me:16541: \$? = $ac_status" >&5
16542 if (exit $ac_status) && test -s "$ac_outfile"; then
16543 # The compiler can only warn and ignore the option if not recognized
16544 # So say no if there are warnings other than the usual output.
16545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16548 lt_cv_prog_compiler_rtti_exceptions=yes
16549 fi
16550 fi
16551 $rm conftest*
16552
16553 fi
16554 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16555 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16556
16557 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16558 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16559 else
16560 :
16561 fi
16562
16563 fi
16564
16565 lt_prog_compiler_wl_GCJ=
16566 lt_prog_compiler_pic_GCJ=
16567 lt_prog_compiler_static_GCJ=
16568
16569 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16570 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16571
16572 if test "$GCC" = yes; then
16573 lt_prog_compiler_wl_GCJ='-Wl,'
16574 lt_prog_compiler_static_GCJ='-static'
16575
16576 case $host_os in
16577 aix*)
16578 # All AIX code is PIC.
16579 if test "$host_cpu" = ia64; then
16580 # AIX 5 now supports IA64 processor
16581 lt_prog_compiler_static_GCJ='-Bstatic'
16582 fi
16583 ;;
16584
16585 amigaos*)
16586 # FIXME: we need at least 68020 code to build shared libraries, but
16587 # adding the `-m68020' flag to GCC prevents building anything better,
16588 # like `-m68040'.
16589 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16590 ;;
16591
16592 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16593 # PIC is the default for these OSes.
16594 ;;
16595
16596 mingw* | pw32* | os2*)
16597 # This hack is so that the source file can tell whether it is being
16598 # built for inclusion in a dll (and should export symbols for example).
16599 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16600 ;;
16601
16602 darwin* | rhapsody*)
16603 # PIC is the default on this platform
16604 # Common symbols not allowed in MH_DYLIB files
16605 lt_prog_compiler_pic_GCJ='-fno-common'
16606 ;;
16607
16608 interix3*)
16609 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16610 # Instead, we relocate shared libraries at runtime.
16611 ;;
16612
16613 msdosdjgpp*)
16614 # Just because we use GCC doesn't mean we suddenly get shared libraries
16615 # on systems that don't support them.
16616 lt_prog_compiler_can_build_shared_GCJ=no
16617 enable_shared=no
16618 ;;
16619
16620 sysv4*MP*)
16621 if test -d /usr/nec; then
16622 lt_prog_compiler_pic_GCJ=-Kconform_pic
16623 fi
16624 ;;
16625
16626 hpux*)
16627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16628 # not for PA HP-UX.
16629 case $host_cpu in
16630 hppa*64*|ia64*)
16631 # +Z the default
16632 ;;
16633 *)
16634 lt_prog_compiler_pic_GCJ='-fPIC'
16635 ;;
16636 esac
16637 ;;
16638
16639 *)
16640 lt_prog_compiler_pic_GCJ='-fPIC'
16641 ;;
16642 esac
16643 else
16644 # PORTME Check for flag to pass linker flags through the system compiler.
16645 case $host_os in
16646 aix*)
16647 lt_prog_compiler_wl_GCJ='-Wl,'
16648 if test "$host_cpu" = ia64; then
16649 # AIX 5 now supports IA64 processor
16650 lt_prog_compiler_static_GCJ='-Bstatic'
16651 else
16652 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16653 fi
16654 ;;
16655 darwin*)
16656 # PIC is the default on this platform
16657 # Common symbols not allowed in MH_DYLIB files
16658 case $cc_basename in
16659 xlc*)
16660 lt_prog_compiler_pic_GCJ='-qnocommon'
16661 lt_prog_compiler_wl_GCJ='-Wl,'
16662 ;;
16663 esac
16664 ;;
16665
16666 mingw* | pw32* | os2*)
16667 # This hack is so that the source file can tell whether it is being
16668 # built for inclusion in a dll (and should export symbols for example).
16669 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16670 ;;
16671
16672 hpux9* | hpux10* | hpux11*)
16673 lt_prog_compiler_wl_GCJ='-Wl,'
16674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16675 # not for PA HP-UX.
16676 case $host_cpu in
16677 hppa*64*|ia64*)
16678 # +Z the default
16679 ;;
16680 *)
16681 lt_prog_compiler_pic_GCJ='+Z'
16682 ;;
16683 esac
16684 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16685 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16686 ;;
16687
16688 irix5* | irix6* | nonstopux*)
16689 lt_prog_compiler_wl_GCJ='-Wl,'
16690 # PIC (with -KPIC) is the default.
16691 lt_prog_compiler_static_GCJ='-non_shared'
16692 ;;
16693
16694 newsos6)
16695 lt_prog_compiler_pic_GCJ='-KPIC'
16696 lt_prog_compiler_static_GCJ='-Bstatic'
16697 ;;
16698
16699 linux* | k*bsd*-gnu)
16700 case $cc_basename in
16701 icc* | ecc*)
16702 lt_prog_compiler_wl_GCJ='-Wl,'
16703 lt_prog_compiler_pic_GCJ='-KPIC'
16704 lt_prog_compiler_static_GCJ='-static'
16705 ;;
16706 pgcc* | pgf77* | pgf90* | pgf95*)
16707 # Portland Group compilers (*not* the Pentium gcc compiler,
16708 # which looks to be a dead project)
16709 lt_prog_compiler_wl_GCJ='-Wl,'
16710 lt_prog_compiler_pic_GCJ='-fpic'
16711 lt_prog_compiler_static_GCJ='-Bstatic'
16712 ;;
16713 ccc*)
16714 lt_prog_compiler_wl_GCJ='-Wl,'
16715 # All Alpha code is PIC.
16716 lt_prog_compiler_static_GCJ='-non_shared'
16717 ;;
16718 esac
16719 ;;
16720
16721 osf3* | osf4* | osf5*)
16722 lt_prog_compiler_wl_GCJ='-Wl,'
16723 # All OSF/1 code is PIC.
16724 lt_prog_compiler_static_GCJ='-non_shared'
16725 ;;
16726
16727 solaris*)
16728 lt_prog_compiler_pic_GCJ='-KPIC'
16729 lt_prog_compiler_static_GCJ='-Bstatic'
16730 case $cc_basename in
16731 f77* | f90* | f95*)
16732 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16733 *)
16734 lt_prog_compiler_wl_GCJ='-Wl,';;
16735 esac
16736 ;;
16737
16738 sunos4*)
16739 lt_prog_compiler_wl_GCJ='-Qoption ld '
16740 lt_prog_compiler_pic_GCJ='-PIC'
16741 lt_prog_compiler_static_GCJ='-Bstatic'
16742 ;;
16743
16744 sysv4 | sysv4.2uw2* | sysv4.3*)
16745 lt_prog_compiler_wl_GCJ='-Wl,'
16746 lt_prog_compiler_pic_GCJ='-KPIC'
16747 lt_prog_compiler_static_GCJ='-Bstatic'
16748 ;;
16749
16750 sysv4*MP*)
16751 if test -d /usr/nec ;then
16752 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16753 lt_prog_compiler_static_GCJ='-Bstatic'
16754 fi
16755 ;;
16756
16757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16758 lt_prog_compiler_wl_GCJ='-Wl,'
16759 lt_prog_compiler_pic_GCJ='-KPIC'
16760 lt_prog_compiler_static_GCJ='-Bstatic'
16761 ;;
16762
16763 unicos*)
16764 lt_prog_compiler_wl_GCJ='-Wl,'
16765 lt_prog_compiler_can_build_shared_GCJ=no
16766 ;;
16767
16768 uts4*)
16769 lt_prog_compiler_pic_GCJ='-pic'
16770 lt_prog_compiler_static_GCJ='-Bstatic'
16771 ;;
16772
16773 *)
16774 lt_prog_compiler_can_build_shared_GCJ=no
16775 ;;
16776 esac
16777 fi
16778
16779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16780 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16781
16782 #
16783 # Check to make sure the PIC flag actually works.
16784 #
16785 if test -n "$lt_prog_compiler_pic_GCJ"; then
16786
16787 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16789 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792 lt_prog_compiler_pic_works_GCJ=no
16793 ac_outfile=conftest.$ac_objext
16794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16795 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16796 # Insert the option either (1) after the last *FLAGS variable, or
16797 # (2) before a word containing "conftest.", or (3) at the end.
16798 # Note that $ac_compile itself does not contain backslashes and begins
16799 # with a dollar sign (not a hyphen), so the echo should work correctly.
16800 # The option is referenced via a variable to avoid confusing sed.
16801 lt_compile=`echo "$ac_compile" | $SED \
16802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16804 -e 's:$: $lt_compiler_flag:'`
16805 (eval echo "\"\$as_me:16805: $lt_compile\"" >&5)
16806 (eval "$lt_compile" 2>conftest.err)
16807 ac_status=$?
16808 cat conftest.err >&5
16809 echo "$as_me:16809: \$? = $ac_status" >&5
16810 if (exit $ac_status) && test -s "$ac_outfile"; then
16811 # The compiler can only warn and ignore the option if not recognized
16812 # So say no if there are warnings other than the usual output.
16813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16816 lt_prog_compiler_pic_works_GCJ=yes
16817 fi
16818 fi
16819 $rm conftest*
16820
16821 fi
16822 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16823 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16824
16825 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16826 case $lt_prog_compiler_pic_GCJ in
16827 "" | " "*) ;;
16828 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16829 esac
16830 else
16831 lt_prog_compiler_pic_GCJ=
16832 lt_prog_compiler_can_build_shared_GCJ=no
16833 fi
16834
16835 fi
16836 case $host_os in
16837 # For platforms which do not support PIC, -DPIC is meaningless:
16838 *djgpp*)
16839 lt_prog_compiler_pic_GCJ=
16840 ;;
16841 *)
16842 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16843 ;;
16844 esac
16845
16846 #
16847 # Check to make sure the static flag actually works.
16848 #
16849 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16850 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16851 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16852 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855 lt_prog_compiler_static_works_GCJ=no
16856 save_LDFLAGS="$LDFLAGS"
16857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16858 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16860 # The linker can only warn and ignore the option if not recognized
16861 # So say no if there are warnings
16862 if test -s conftest.err; then
16863 # Append any errors to the config.log.
16864 cat conftest.err 1>&5
16865 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16867 if diff conftest.exp conftest.er2 >/dev/null; then
16868 lt_prog_compiler_static_works_GCJ=yes
16869 fi
16870 else
16871 lt_prog_compiler_static_works_GCJ=yes
16872 fi
16873 fi
16874 $rm conftest*
16875 LDFLAGS="$save_LDFLAGS"
16876
16877 fi
16878 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16879 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16880
16881 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16882 :
16883 else
16884 lt_prog_compiler_static_GCJ=
16885 fi
16886
16887
16888 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16889 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16890 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893 lt_cv_prog_compiler_c_o_GCJ=no
16894 $rm -r conftest 2>/dev/null
16895 mkdir conftest
16896 cd conftest
16897 mkdir out
16898 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16899
16900 lt_compiler_flag="-o out/conftest2.$ac_objext"
16901 # Insert the option either (1) after the last *FLAGS variable, or
16902 # (2) before a word containing "conftest.", or (3) at the end.
16903 # Note that $ac_compile itself does not contain backslashes and begins
16904 # with a dollar sign (not a hyphen), so the echo should work correctly.
16905 lt_compile=`echo "$ac_compile" | $SED \
16906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16908 -e 's:$: $lt_compiler_flag:'`
16909 (eval echo "\"\$as_me:16909: $lt_compile\"" >&5)
16910 (eval "$lt_compile" 2>out/conftest.err)
16911 ac_status=$?
16912 cat out/conftest.err >&5
16913 echo "$as_me:16913: \$? = $ac_status" >&5
16914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16915 then
16916 # The compiler can only warn and ignore the option if not recognized
16917 # So say no if there are warnings
16918 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16921 lt_cv_prog_compiler_c_o_GCJ=yes
16922 fi
16923 fi
16924 chmod u+w . 2>&5
16925 $rm conftest*
16926 # SGI C++ compiler will create directory out/ii_files/ for
16927 # template instantiation
16928 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16929 $rm out/* && rmdir out
16930 cd ..
16931 rmdir conftest
16932 $rm conftest*
16933
16934 fi
16935 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16936 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16937
16938
16939 hard_links="nottested"
16940 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16941 # do not overwrite the value of need_locks provided by the user
16942 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16943 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16944 hard_links=yes
16945 $rm conftest*
16946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16947 touch conftest.a
16948 ln conftest.a conftest.b 2>&5 || hard_links=no
16949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16950 { echo "$as_me:$LINENO: result: $hard_links" >&5
16951 echo "${ECHO_T}$hard_links" >&6; }
16952 if test "$hard_links" = no; then
16953 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16954 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16955 need_locks=warn
16956 fi
16957 else
16958 need_locks=no
16959 fi
16960
16961 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16963
16964 runpath_var=
16965 allow_undefined_flag_GCJ=
16966 enable_shared_with_static_runtimes_GCJ=no
16967 archive_cmds_GCJ=
16968 archive_expsym_cmds_GCJ=
16969 old_archive_From_new_cmds_GCJ=
16970 old_archive_from_expsyms_cmds_GCJ=
16971 export_dynamic_flag_spec_GCJ=
16972 whole_archive_flag_spec_GCJ=
16973 thread_safe_flag_spec_GCJ=
16974 hardcode_libdir_flag_spec_GCJ=
16975 hardcode_libdir_flag_spec_ld_GCJ=
16976 hardcode_libdir_separator_GCJ=
16977 hardcode_direct_GCJ=no
16978 hardcode_minus_L_GCJ=no
16979 hardcode_shlibpath_var_GCJ=unsupported
16980 link_all_deplibs_GCJ=unknown
16981 hardcode_automatic_GCJ=no
16982 module_cmds_GCJ=
16983 module_expsym_cmds_GCJ=
16984 always_export_symbols_GCJ=no
16985 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16986 # include_expsyms should be a list of space-separated symbols to be *always*
16987 # included in the symbol list
16988 include_expsyms_GCJ=
16989 # exclude_expsyms can be an extended regexp of symbols to exclude
16990 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16992 # as well as any symbol that contains `d'.
16993 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16995 # platforms (ab)use it in PIC code, but their linkers get confused if
16996 # the symbol is explicitly referenced. Since portable code cannot
16997 # rely on this symbol name, it's probably fine to never include it in
16998 # preloaded symbol tables.
16999 extract_expsyms_cmds=
17000 # Just being paranoid about ensuring that cc_basename is set.
17001 for cc_temp in $compiler""; do
17002 case $cc_temp in
17003 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17004 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17005 \-*) ;;
17006 *) break;;
17007 esac
17008 done
17009 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17010
17011 case $host_os in
17012 cygwin* | mingw* | pw32*)
17013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17014 # When not using gcc, we currently assume that we are using
17015 # Microsoft Visual C++.
17016 if test "$GCC" != yes; then
17017 with_gnu_ld=no
17018 fi
17019 ;;
17020 interix*)
17021 # we just hope/assume this is gcc and not c89 (= MSVC++)
17022 with_gnu_ld=yes
17023 ;;
17024 openbsd*)
17025 with_gnu_ld=no
17026 ;;
17027 esac
17028
17029 ld_shlibs_GCJ=yes
17030 if test "$with_gnu_ld" = yes; then
17031 # If archive_cmds runs LD, not CC, wlarc should be empty
17032 wlarc='${wl}'
17033
17034 # Set some defaults for GNU ld with shared library support. These
17035 # are reset later if shared libraries are not supported. Putting them
17036 # here allows them to be overridden if necessary.
17037 runpath_var=LD_RUN_PATH
17038 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17039 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17040 # ancient GNU ld didn't support --whole-archive et. al.
17041 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17042 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17043 else
17044 whole_archive_flag_spec_GCJ=
17045 fi
17046 supports_anon_versioning=no
17047 case `$LD -v 2>/dev/null` in
17048 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17049 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17050 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17051 *\ 2.11.*) ;; # other 2.11 versions
17052 *) supports_anon_versioning=yes ;;
17053 esac
17054
17055 # See if GNU ld supports shared libraries.
17056 case $host_os in
17057 aix3* | aix4* | aix5*)
17058 # On AIX/PPC, the GNU linker is very broken
17059 if test "$host_cpu" != ia64; then
17060 ld_shlibs_GCJ=no
17061 cat <<EOF 1>&2
17062
17063 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17064 *** to be unable to reliably create shared libraries on AIX.
17065 *** Therefore, libtool is disabling shared libraries support. If you
17066 *** really care for shared libraries, you may want to modify your PATH
17067 *** so that a non-GNU linker is found, and then restart.
17068
17069 EOF
17070 fi
17071 ;;
17072
17073 amigaos*)
17074 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)'
17075 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17076 hardcode_minus_L_GCJ=yes
17077
17078 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17079 # that the semantics of dynamic libraries on AmigaOS, at least up
17080 # to version 4, is to share data among multiple programs linked
17081 # with the same dynamic library. Since this doesn't match the
17082 # behavior of shared libraries on other platforms, we can't use
17083 # them.
17084 ld_shlibs_GCJ=no
17085 ;;
17086
17087 beos*)
17088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17089 allow_undefined_flag_GCJ=unsupported
17090 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17091 # support --undefined. This deserves some investigation. FIXME
17092 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17093 else
17094 ld_shlibs_GCJ=no
17095 fi
17096 ;;
17097
17098 cygwin* | mingw* | pw32*)
17099 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17100 # as there is no search path for DLLs.
17101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17102 allow_undefined_flag_GCJ=unsupported
17103 always_export_symbols_GCJ=no
17104 enable_shared_with_static_runtimes_GCJ=yes
17105 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17106
17107 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17108 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17109 # If the export-symbols file already is a .def file (1st line
17110 # is EXPORTS), use it as is; otherwise, prepend...
17111 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17112 cp $export_symbols $output_objdir/$soname.def;
17113 else
17114 echo EXPORTS > $output_objdir/$soname.def;
17115 cat $export_symbols >> $output_objdir/$soname.def;
17116 fi~
17117 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17118 else
17119 ld_shlibs_GCJ=no
17120 fi
17121 ;;
17122
17123 interix3*)
17124 hardcode_direct_GCJ=no
17125 hardcode_shlibpath_var_GCJ=no
17126 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17127 export_dynamic_flag_spec_GCJ='${wl}-E'
17128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17129 # Instead, shared libraries are loaded at an image base (0x10000000 by
17130 # default) and relocated if they conflict, which is a slow very memory
17131 # consuming and fragmenting process. To avoid this, we pick a random,
17132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17134 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'
17135 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'
17136 ;;
17137
17138 linux* | k*bsd*-gnu)
17139 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17140 tmp_addflag=
17141 case $cc_basename,$host_cpu in
17142 pgcc*) # Portland Group C compiler
17143 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'
17144 tmp_addflag=' $pic_flag'
17145 ;;
17146 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17147 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'
17148 tmp_addflag=' $pic_flag -Mnomain' ;;
17149 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17150 tmp_addflag=' -i_dynamic' ;;
17151 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17152 tmp_addflag=' -i_dynamic -nofor_main' ;;
17153 ifc* | ifort*) # Intel Fortran compiler
17154 tmp_addflag=' -nofor_main' ;;
17155 esac
17156 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17157
17158 if test $supports_anon_versioning = yes; then
17159 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17160 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17161 $echo "local: *; };" >> $output_objdir/$libname.ver~
17162 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17163 fi
17164 link_all_deplibs_GCJ=no
17165 else
17166 ld_shlibs_GCJ=no
17167 fi
17168 ;;
17169
17170 netbsd* | netbsdelf*-gnu)
17171 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17172 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17173 wlarc=
17174 else
17175 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17176 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17177 fi
17178 ;;
17179
17180 solaris*)
17181 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17182 ld_shlibs_GCJ=no
17183 cat <<EOF 1>&2
17184
17185 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17186 *** create shared libraries on Solaris systems. Therefore, libtool
17187 *** is disabling shared libraries support. We urge you to upgrade GNU
17188 *** binutils to release 2.9.1 or newer. Another option is to modify
17189 *** your PATH or compiler configuration so that the native linker is
17190 *** used, and then restart.
17191
17192 EOF
17193 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17195 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17196 else
17197 ld_shlibs_GCJ=no
17198 fi
17199 ;;
17200
17201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17202 case `$LD -v 2>&1` in
17203 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17204 ld_shlibs_GCJ=no
17205 cat <<_LT_EOF 1>&2
17206
17207 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17208 *** reliably create shared libraries on SCO systems. Therefore, libtool
17209 *** is disabling shared libraries support. We urge you to upgrade GNU
17210 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17211 *** your PATH or compiler configuration so that the native linker is
17212 *** used, and then restart.
17213
17214 _LT_EOF
17215 ;;
17216 *)
17217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17218 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17219 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17220 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17221 else
17222 ld_shlibs_GCJ=no
17223 fi
17224 ;;
17225 esac
17226 ;;
17227
17228 sunos4*)
17229 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17230 wlarc=
17231 hardcode_direct_GCJ=yes
17232 hardcode_shlibpath_var_GCJ=no
17233 ;;
17234
17235 *)
17236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17239 else
17240 ld_shlibs_GCJ=no
17241 fi
17242 ;;
17243 esac
17244
17245 if test "$ld_shlibs_GCJ" = no; then
17246 runpath_var=
17247 hardcode_libdir_flag_spec_GCJ=
17248 export_dynamic_flag_spec_GCJ=
17249 whole_archive_flag_spec_GCJ=
17250 fi
17251 else
17252 # PORTME fill in a description of your system's linker (not GNU ld)
17253 case $host_os in
17254 aix3*)
17255 allow_undefined_flag_GCJ=unsupported
17256 always_export_symbols_GCJ=yes
17257 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'
17258 # Note: this linker hardcodes the directories in LIBPATH if there
17259 # are no directories specified by -L.
17260 hardcode_minus_L_GCJ=yes
17261 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17262 # Neither direct hardcoding nor static linking is supported with a
17263 # broken collect2.
17264 hardcode_direct_GCJ=unsupported
17265 fi
17266 ;;
17267
17268 aix4* | aix5*)
17269 if test "$host_cpu" = ia64; then
17270 # On IA64, the linker does run time linking by default, so we don't
17271 # have to do anything special.
17272 aix_use_runtimelinking=no
17273 exp_sym_flag='-Bexport'
17274 no_entry_flag=""
17275 else
17276 # If we're using GNU nm, then we don't want the "-C" option.
17277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17278 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17279 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'
17280 else
17281 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'
17282 fi
17283 aix_use_runtimelinking=no
17284
17285 # Test if we are trying to use run time linking or normal
17286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17287 # need to do runtime linking.
17288 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17289 for ld_flag in $LDFLAGS; do
17290 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17291 aix_use_runtimelinking=yes
17292 break
17293 fi
17294 done
17295 ;;
17296 esac
17297
17298 exp_sym_flag='-bexport'
17299 no_entry_flag='-bnoentry'
17300 fi
17301
17302 # When large executables or shared objects are built, AIX ld can
17303 # have problems creating the table of contents. If linking a library
17304 # or program results in "error TOC overflow" add -mminimal-toc to
17305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17307
17308 archive_cmds_GCJ=''
17309 hardcode_direct_GCJ=yes
17310 hardcode_libdir_separator_GCJ=':'
17311 link_all_deplibs_GCJ=yes
17312
17313 if test "$GCC" = yes; then
17314 case $host_os in aix4.[012]|aix4.[012].*)
17315 # We only want to do this on AIX 4.2 and lower, the check
17316 # below for broken collect2 doesn't work under 4.3+
17317 collect2name=`${CC} -print-prog-name=collect2`
17318 if test -f "$collect2name" && \
17319 strings "$collect2name" | grep resolve_lib_name >/dev/null
17320 then
17321 # We have reworked collect2
17322 hardcode_direct_GCJ=yes
17323 else
17324 # We have old collect2
17325 hardcode_direct_GCJ=unsupported
17326 # It fails to find uninstalled libraries when the uninstalled
17327 # path is not listed in the libpath. Setting hardcode_minus_L
17328 # to unsupported forces relinking
17329 hardcode_minus_L_GCJ=yes
17330 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17331 hardcode_libdir_separator_GCJ=
17332 fi
17333 ;;
17334 esac
17335 shared_flag='-shared'
17336 if test "$aix_use_runtimelinking" = yes; then
17337 shared_flag="$shared_flag "'${wl}-G'
17338 fi
17339 else
17340 # not using gcc
17341 if test "$host_cpu" = ia64; then
17342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17343 # chokes on -Wl,-G. The following line is correct:
17344 shared_flag='-G'
17345 else
17346 if test "$aix_use_runtimelinking" = yes; then
17347 shared_flag='${wl}-G'
17348 else
17349 shared_flag='${wl}-bM:SRE'
17350 fi
17351 fi
17352 fi
17353
17354 # It seems that -bexpall does not export symbols beginning with
17355 # underscore (_), so it is better to generate a list of symbols to export.
17356 always_export_symbols_GCJ=yes
17357 if test "$aix_use_runtimelinking" = yes; then
17358 # Warning - without using the other runtime loading flags (-brtl),
17359 # -berok will link without error, but may produce a broken library.
17360 allow_undefined_flag_GCJ='-berok'
17361 # Determine the default libpath from the value encoded in an empty executable.
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368
17369 int
17370 main ()
17371 {
17372
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17392 { (case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_try") 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest$ac_exeext'
17402 { (case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17405 esac
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_try") 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411
17412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17413 }'`
17414 # Check for a 64-bit object if we didn't find anything.
17415 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; }
17416 }'`; fi
17417 else
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421
17422 fi
17423
17424 rm -f core conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17427
17428 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17429 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"
17430 else
17431 if test "$host_cpu" = ia64; then
17432 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17433 allow_undefined_flag_GCJ="-z nodefs"
17434 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"
17435 else
17436 # Determine the default libpath from the value encoded in an empty executable.
17437 cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h. */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443
17444 int
17445 main ()
17446 {
17447
17448 ;
17449 return 0;
17450 }
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (ac_try="$ac_link"
17454 case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17457 esac
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_link") 2>conftest.er1
17460 ac_status=$?
17461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486
17487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17488 }'`
17489 # Check for a 64-bit object if we didn't find anything.
17490 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; }
17491 }'`; fi
17492 else
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496
17497 fi
17498
17499 rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17502
17503 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17504 # Warning - without using the other run time loading flags,
17505 # -berok will link without error, but may produce a broken library.
17506 no_undefined_flag_GCJ=' ${wl}-bernotok'
17507 allow_undefined_flag_GCJ=' ${wl}-berok'
17508 # Exported symbols can be pulled into shared objects from archives
17509 whole_archive_flag_spec_GCJ='$convenience'
17510 archive_cmds_need_lc_GCJ=yes
17511 # This is similar to how AIX traditionally builds its shared libraries.
17512 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'
17513 fi
17514 fi
17515 ;;
17516
17517 amigaos*)
17518 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)'
17519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520 hardcode_minus_L_GCJ=yes
17521 # see comment about different semantics on the GNU ld section
17522 ld_shlibs_GCJ=no
17523 ;;
17524
17525 bsdi[45]*)
17526 export_dynamic_flag_spec_GCJ=-rdynamic
17527 ;;
17528
17529 cygwin* | mingw* | pw32*)
17530 # When not using gcc, we currently assume that we are using
17531 # Microsoft Visual C++.
17532 # hardcode_libdir_flag_spec is actually meaningless, as there is
17533 # no search path for DLLs.
17534 hardcode_libdir_flag_spec_GCJ=' '
17535 allow_undefined_flag_GCJ=unsupported
17536 # Tell ltmain to make .lib files, not .a files.
17537 libext=lib
17538 # Tell ltmain to make .dll files, not .so files.
17539 shrext_cmds=".dll"
17540 # FIXME: Setting linknames here is a bad hack.
17541 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17542 # The linker will automatically build a .lib file if we build a DLL.
17543 old_archive_From_new_cmds_GCJ='true'
17544 # FIXME: Should let the user specify the lib program.
17545 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17546 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17547 enable_shared_with_static_runtimes_GCJ=yes
17548 ;;
17549
17550 darwin* | rhapsody*)
17551 case $host_os in
17552 rhapsody* | darwin1.[012])
17553 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17554 ;;
17555 *) # Darwin 1.3 on
17556 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17557 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17558 else
17559 case ${MACOSX_DEPLOYMENT_TARGET} in
17560 10.[012])
17561 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17562 ;;
17563 10.*)
17564 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17565 ;;
17566 esac
17567 fi
17568 ;;
17569 esac
17570 archive_cmds_need_lc_GCJ=no
17571 hardcode_direct_GCJ=no
17572 hardcode_automatic_GCJ=yes
17573 hardcode_shlibpath_var_GCJ=unsupported
17574 whole_archive_flag_spec_GCJ=''
17575 link_all_deplibs_GCJ=yes
17576 if test "$GCC" = yes ; then
17577 output_verbose_link_cmd='echo'
17578 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17579 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17580 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17581 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}'
17582 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}'
17583 else
17584 case $cc_basename in
17585 xlc*)
17586 output_verbose_link_cmd='echo'
17587 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17588 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17590 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}'
17591 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}'
17592 ;;
17593 *)
17594 ld_shlibs_GCJ=no
17595 ;;
17596 esac
17597 fi
17598 ;;
17599
17600 dgux*)
17601 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17603 hardcode_shlibpath_var_GCJ=no
17604 ;;
17605
17606 freebsd1*)
17607 ld_shlibs_GCJ=no
17608 ;;
17609
17610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17611 # support. Future versions do this automatically, but an explicit c++rt0.o
17612 # does not break anything, and helps significantly (at the cost of a little
17613 # extra space).
17614 freebsd2.2*)
17615 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17616 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17617 hardcode_direct_GCJ=yes
17618 hardcode_shlibpath_var_GCJ=no
17619 ;;
17620
17621 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17622 freebsd2*)
17623 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17624 hardcode_direct_GCJ=yes
17625 hardcode_minus_L_GCJ=yes
17626 hardcode_shlibpath_var_GCJ=no
17627 ;;
17628
17629 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17630 freebsd* | dragonfly*)
17631 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17632 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17633 hardcode_direct_GCJ=yes
17634 hardcode_shlibpath_var_GCJ=no
17635 ;;
17636
17637 hpux9*)
17638 if test "$GCC" = yes; then
17639 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'
17640 else
17641 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'
17642 fi
17643 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17644 hardcode_libdir_separator_GCJ=:
17645 hardcode_direct_GCJ=yes
17646
17647 # hardcode_minus_L: Not really in the search PATH,
17648 # but as the default location of the library.
17649 hardcode_minus_L_GCJ=yes
17650 export_dynamic_flag_spec_GCJ='${wl}-E'
17651 ;;
17652
17653 hpux10*)
17654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17655 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17656 else
17657 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17658 fi
17659 if test "$with_gnu_ld" = no; then
17660 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17661 hardcode_libdir_separator_GCJ=:
17662
17663 hardcode_direct_GCJ=yes
17664 export_dynamic_flag_spec_GCJ='${wl}-E'
17665
17666 # hardcode_minus_L: Not really in the search PATH,
17667 # but as the default location of the library.
17668 hardcode_minus_L_GCJ=yes
17669 fi
17670 ;;
17671
17672 hpux11*)
17673 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17674 case $host_cpu in
17675 hppa*64*)
17676 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17677 ;;
17678 ia64*)
17679 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17680 ;;
17681 *)
17682 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17683 ;;
17684 esac
17685 else
17686 case $host_cpu in
17687 hppa*64*)
17688 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17689 ;;
17690 ia64*)
17691 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17692 ;;
17693 *)
17694 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17695 ;;
17696 esac
17697 fi
17698 if test "$with_gnu_ld" = no; then
17699 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17700 hardcode_libdir_separator_GCJ=:
17701
17702 case $host_cpu in
17703 hppa*64*|ia64*)
17704 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17705 hardcode_direct_GCJ=no
17706 hardcode_shlibpath_var_GCJ=no
17707 ;;
17708 *)
17709 hardcode_direct_GCJ=yes
17710 export_dynamic_flag_spec_GCJ='${wl}-E'
17711
17712 # hardcode_minus_L: Not really in the search PATH,
17713 # but as the default location of the library.
17714 hardcode_minus_L_GCJ=yes
17715 ;;
17716 esac
17717 fi
17718 ;;
17719
17720 irix5* | irix6* | nonstopux*)
17721 if test "$GCC" = yes; then
17722 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'
17723 else
17724 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'
17725 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17726 fi
17727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17728 hardcode_libdir_separator_GCJ=:
17729 link_all_deplibs_GCJ=yes
17730 ;;
17731
17732 netbsd* | netbsdelf*-gnu)
17733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17735 else
17736 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17737 fi
17738 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17739 hardcode_direct_GCJ=yes
17740 hardcode_shlibpath_var_GCJ=no
17741 ;;
17742
17743 newsos6)
17744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17745 hardcode_direct_GCJ=yes
17746 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17747 hardcode_libdir_separator_GCJ=:
17748 hardcode_shlibpath_var_GCJ=no
17749 ;;
17750
17751 openbsd*)
17752 hardcode_direct_GCJ=yes
17753 hardcode_shlibpath_var_GCJ=no
17754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17755 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17757 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17758 export_dynamic_flag_spec_GCJ='${wl}-E'
17759 else
17760 case $host_os in
17761 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17762 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17763 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17764 ;;
17765 *)
17766 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17768 ;;
17769 esac
17770 fi
17771 ;;
17772
17773 os2*)
17774 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17775 hardcode_minus_L_GCJ=yes
17776 allow_undefined_flag_GCJ=unsupported
17777 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'
17778 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17779 ;;
17780
17781 osf3*)
17782 if test "$GCC" = yes; then
17783 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17784 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'
17785 else
17786 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17787 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'
17788 fi
17789 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17790 hardcode_libdir_separator_GCJ=:
17791 ;;
17792
17793 osf4* | osf5*) # as osf3* with the addition of -msym flag
17794 if test "$GCC" = yes; then
17795 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17796 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'
17797 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17798 else
17799 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17800 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'
17801 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~
17802 $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'
17803
17804 # Both c and cxx compiler support -rpath directly
17805 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17806 fi
17807 hardcode_libdir_separator_GCJ=:
17808 ;;
17809
17810 solaris*)
17811 no_undefined_flag_GCJ=' -z text'
17812 if test "$GCC" = yes; then
17813 wlarc='${wl}'
17814 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17815 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17816 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17817 else
17818 wlarc=''
17819 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17820 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17821 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17822 fi
17823 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17824 hardcode_shlibpath_var_GCJ=no
17825 case $host_os in
17826 solaris2.[0-5] | solaris2.[0-5].*) ;;
17827 *)
17828 # The compiler driver will combine linker options so we
17829 # cannot just pass the convience library names through
17830 # without $wl, iff we do not link with $LD.
17831 # Luckily, gcc supports the same syntax we need for Sun Studio.
17832 # Supported since Solaris 2.6 (maybe 2.5.1?)
17833 case $wlarc in
17834 '')
17835 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17836 *)
17837 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' ;;
17838 esac ;;
17839 esac
17840 link_all_deplibs_GCJ=yes
17841 ;;
17842
17843 sunos4*)
17844 if test "x$host_vendor" = xsequent; then
17845 # Use $CC to link under sequent, because it throws in some extra .o
17846 # files that make .init and .fini sections work.
17847 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17848 else
17849 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17850 fi
17851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17852 hardcode_direct_GCJ=yes
17853 hardcode_minus_L_GCJ=yes
17854 hardcode_shlibpath_var_GCJ=no
17855 ;;
17856
17857 sysv4)
17858 case $host_vendor in
17859 sni)
17860 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17861 hardcode_direct_GCJ=yes # is this really true???
17862 ;;
17863 siemens)
17864 ## LD is ld it makes a PLAMLIB
17865 ## CC just makes a GrossModule.
17866 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17867 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17868 hardcode_direct_GCJ=no
17869 ;;
17870 motorola)
17871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17872 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17873 ;;
17874 esac
17875 runpath_var='LD_RUN_PATH'
17876 hardcode_shlibpath_var_GCJ=no
17877 ;;
17878
17879 sysv4.3*)
17880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17881 hardcode_shlibpath_var_GCJ=no
17882 export_dynamic_flag_spec_GCJ='-Bexport'
17883 ;;
17884
17885 sysv4*MP*)
17886 if test -d /usr/nec; then
17887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17888 hardcode_shlibpath_var_GCJ=no
17889 runpath_var=LD_RUN_PATH
17890 hardcode_runpath_var=yes
17891 ld_shlibs_GCJ=yes
17892 fi
17893 ;;
17894
17895 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17896 no_undefined_flag_GCJ='${wl}-z,text'
17897 archive_cmds_need_lc_GCJ=no
17898 hardcode_shlibpath_var_GCJ=no
17899 runpath_var='LD_RUN_PATH'
17900
17901 if test "$GCC" = yes; then
17902 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17903 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17904 else
17905 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17906 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17907 fi
17908 ;;
17909
17910 sysv5* | sco3.2v5* | sco5v6*)
17911 # Note: We can NOT use -z defs as we might desire, because we do not
17912 # link with -lc, and that would cause any symbols used from libc to
17913 # always be unresolved, which means just about no library would
17914 # ever link correctly. If we're not using GNU ld we use -z text
17915 # though, which does catch some bad symbols but isn't as heavy-handed
17916 # as -z defs.
17917 no_undefined_flag_GCJ='${wl}-z,text'
17918 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17919 archive_cmds_need_lc_GCJ=no
17920 hardcode_shlibpath_var_GCJ=no
17921 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17922 hardcode_libdir_separator_GCJ=':'
17923 link_all_deplibs_GCJ=yes
17924 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17925 runpath_var='LD_RUN_PATH'
17926
17927 if test "$GCC" = yes; then
17928 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17929 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 else
17931 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17932 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17933 fi
17934 ;;
17935
17936 uts4*)
17937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939 hardcode_shlibpath_var_GCJ=no
17940 ;;
17941
17942 *)
17943 ld_shlibs_GCJ=no
17944 ;;
17945 esac
17946 fi
17947
17948 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17949 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17950 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17951
17952 #
17953 # Do we need to explicitly link libc?
17954 #
17955 case "x$archive_cmds_need_lc_GCJ" in
17956 x|xyes)
17957 # Assume -lc should be added
17958 archive_cmds_need_lc_GCJ=yes
17959
17960 if test "$enable_shared" = yes && test "$GCC" = yes; then
17961 case $archive_cmds_GCJ in
17962 *'~'*)
17963 # FIXME: we may have to deal with multi-command sequences.
17964 ;;
17965 '$CC '*)
17966 # Test whether the compiler implicitly links with -lc since on some
17967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17968 # to ld, don't add -lc before -lgcc.
17969 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17970 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17971 $rm conftest*
17972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17973
17974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17975 (eval $ac_compile) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } 2>conftest.err; then
17979 soname=conftest
17980 lib=conftest
17981 libobjs=conftest.$ac_objext
17982 deplibs=
17983 wl=$lt_prog_compiler_wl_GCJ
17984 pic_flag=$lt_prog_compiler_pic_GCJ
17985 compiler_flags=-v
17986 linker_flags=-v
17987 verstring=
17988 output_objdir=.
17989 libname=conftest
17990 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17991 allow_undefined_flag_GCJ=
17992 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17993 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }
17997 then
17998 archive_cmds_need_lc_GCJ=no
17999 else
18000 archive_cmds_need_lc_GCJ=yes
18001 fi
18002 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18003 else
18004 cat conftest.err 1>&5
18005 fi
18006 $rm conftest*
18007 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18008 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18009 ;;
18010 esac
18011 fi
18012 ;;
18013 esac
18014
18015 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18016 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18017 library_names_spec=
18018 libname_spec='lib$name'
18019 soname_spec=
18020 shrext_cmds=".so"
18021 postinstall_cmds=
18022 postuninstall_cmds=
18023 finish_cmds=
18024 finish_eval=
18025 shlibpath_var=
18026 shlibpath_overrides_runpath=unknown
18027 version_type=none
18028 dynamic_linker="$host_os ld.so"
18029 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18030 if test "$GCC" = yes; then
18031 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18032 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18033 # if the path contains ";" then we assume it to be the separator
18034 # otherwise default to the standard path separator (i.e. ":") - it is
18035 # assumed that no part of a normal pathname contains ";" but that should
18036 # okay in the real world where ";" in dirpaths is itself problematic.
18037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18038 else
18039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18040 fi
18041 else
18042 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18043 fi
18044 need_lib_prefix=unknown
18045 hardcode_into_libs=no
18046
18047 # when you set need_version to no, make sure it does not cause -set_version
18048 # flags to be left without arguments
18049 need_version=unknown
18050
18051 case $host_os in
18052 aix3*)
18053 version_type=linux
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18055 shlibpath_var=LIBPATH
18056
18057 # AIX 3 has no versioning support, so we append a major version to the name.
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 ;;
18060
18061 aix4* | aix5*)
18062 version_type=linux
18063 need_lib_prefix=no
18064 need_version=no
18065 hardcode_into_libs=yes
18066 if test "$host_cpu" = ia64; then
18067 # AIX 5 supports IA64
18068 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18069 shlibpath_var=LD_LIBRARY_PATH
18070 else
18071 # With GCC up to 2.95.x, collect2 would create an import file
18072 # for dependence libraries. The import file would start with
18073 # the line `#! .'. This would cause the generated library to
18074 # depend on `.', always an invalid library. This was fixed in
18075 # development snapshots of GCC prior to 3.0.
18076 case $host_os in
18077 aix4 | aix4.[01] | aix4.[01].*)
18078 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18079 echo ' yes '
18080 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18081 :
18082 else
18083 can_build_shared=no
18084 fi
18085 ;;
18086 esac
18087 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18088 # soname into executable. Probably we can add versioning support to
18089 # collect2, so additional links can be useful in future.
18090 if test "$aix_use_runtimelinking" = yes; then
18091 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18092 # instead of lib<name>.a to let people know that these are not
18093 # typical AIX shared libraries.
18094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18095 else
18096 # We preserve .a as extension for shared libraries through AIX4.2
18097 # and later when we are not doing run time linking.
18098 library_names_spec='${libname}${release}.a $libname.a'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 fi
18101 shlibpath_var=LIBPATH
18102 fi
18103 ;;
18104
18105 amigaos*)
18106 library_names_spec='$libname.ixlibrary $libname.a'
18107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18108 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'
18109 ;;
18110
18111 beos*)
18112 library_names_spec='${libname}${shared_ext}'
18113 dynamic_linker="$host_os ld.so"
18114 shlibpath_var=LIBRARY_PATH
18115 ;;
18116
18117 bsdi[45]*)
18118 version_type=linux
18119 need_version=no
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18123 shlibpath_var=LD_LIBRARY_PATH
18124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18126 # the default ld.so.conf also contains /usr/contrib/lib and
18127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18128 # libtool to hard-code these into programs
18129 ;;
18130
18131 cygwin* | mingw* | pw32*)
18132 version_type=windows
18133 shrext_cmds=".dll"
18134 need_version=no
18135 need_lib_prefix=no
18136
18137 case $GCC,$host_os in
18138 yes,cygwin* | yes,mingw* | yes,pw32*)
18139 library_names_spec='$libname.dll.a'
18140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18141 postinstall_cmds='base_file=`basename \${file}`~
18142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18143 dldir=$destdir/`dirname \$dlpath`~
18144 test -d \$dldir || mkdir -p \$dldir~
18145 $install_prog $dir/$dlname \$dldir/$dlname~
18146 chmod a+x \$dldir/$dlname'
18147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18148 dlpath=$dir/\$dldll~
18149 $rm \$dlpath'
18150 shlibpath_overrides_runpath=yes
18151
18152 case $host_os in
18153 cygwin*)
18154 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18155 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18156 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18157 ;;
18158 mingw*)
18159 # MinGW DLLs use traditional 'lib' prefix
18160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18162 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18163 # It is most probably a Windows format PATH printed by
18164 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18165 # path with ; separators, and with drive letters. We can handle the
18166 # drive letters (cygwin fileutils understands them), so leave them,
18167 # especially as we might pass files found there to a mingw objdump,
18168 # which wouldn't understand a cygwinified path. Ahh.
18169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18170 else
18171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18172 fi
18173 ;;
18174 pw32*)
18175 # pw32 DLLs use 'pw' prefix rather than 'lib'
18176 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18177 ;;
18178 esac
18179 ;;
18180
18181 *)
18182 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18183 ;;
18184 esac
18185 dynamic_linker='Win32 ld.exe'
18186 # FIXME: first we should search . and the directory the executable is in
18187 shlibpath_var=PATH
18188 ;;
18189
18190 darwin* | rhapsody*)
18191 dynamic_linker="$host_os dyld"
18192 version_type=darwin
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18196 soname_spec='${libname}${release}${major}$shared_ext'
18197 shlibpath_overrides_runpath=yes
18198 shlibpath_var=DYLD_LIBRARY_PATH
18199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18200 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18201 if test "$GCC" = yes; then
18202 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"`
18203 else
18204 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18205 fi
18206 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18207 ;;
18208
18209 dgux*)
18210 version_type=linux
18211 need_lib_prefix=no
18212 need_version=no
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 ;;
18217
18218 freebsd1*)
18219 dynamic_linker=no
18220 ;;
18221
18222 freebsd* | dragonfly*)
18223 # DragonFly does not have aout. When/if they implement a new
18224 # versioning mechanism, adjust this.
18225 if test -x /usr/bin/objformat; then
18226 objformat=`/usr/bin/objformat`
18227 else
18228 case $host_os in
18229 freebsd[123]*) objformat=aout ;;
18230 *) objformat=elf ;;
18231 esac
18232 fi
18233 version_type=freebsd-$objformat
18234 case $version_type in
18235 freebsd-elf*)
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18237 need_version=no
18238 need_lib_prefix=no
18239 ;;
18240 freebsd-*)
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18242 need_version=yes
18243 ;;
18244 esac
18245 shlibpath_var=LD_LIBRARY_PATH
18246 case $host_os in
18247 freebsd2*)
18248 shlibpath_overrides_runpath=yes
18249 ;;
18250 freebsd3.[01]* | freebsdelf3.[01]*)
18251 shlibpath_overrides_runpath=yes
18252 hardcode_into_libs=yes
18253 ;;
18254 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18255 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18256 shlibpath_overrides_runpath=no
18257 hardcode_into_libs=yes
18258 ;;
18259 freebsd*) # from 4.6 on
18260 shlibpath_overrides_runpath=yes
18261 hardcode_into_libs=yes
18262 ;;
18263 esac
18264 ;;
18265
18266 gnu*)
18267 version_type=linux
18268 need_lib_prefix=no
18269 need_version=no
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18271 soname_spec='${libname}${release}${shared_ext}$major'
18272 shlibpath_var=LD_LIBRARY_PATH
18273 hardcode_into_libs=yes
18274 ;;
18275
18276 hpux9* | hpux10* | hpux11*)
18277 # Give a soname corresponding to the major version so that dld.sl refuses to
18278 # link against other versions.
18279 version_type=sunos
18280 need_lib_prefix=no
18281 need_version=no
18282 case $host_cpu in
18283 ia64*)
18284 shrext_cmds='.so'
18285 hardcode_into_libs=yes
18286 dynamic_linker="$host_os dld.so"
18287 shlibpath_var=LD_LIBRARY_PATH
18288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18290 soname_spec='${libname}${release}${shared_ext}$major'
18291 if test "X$HPUX_IA64_MODE" = X32; then
18292 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18293 else
18294 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18295 fi
18296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18297 ;;
18298 hppa*64*)
18299 shrext_cmds='.sl'
18300 hardcode_into_libs=yes
18301 dynamic_linker="$host_os dld.sl"
18302 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305 soname_spec='${libname}${release}${shared_ext}$major'
18306 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18308 ;;
18309 *)
18310 shrext_cmds='.sl'
18311 dynamic_linker="$host_os dld.sl"
18312 shlibpath_var=SHLIB_PATH
18313 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 ;;
18317 esac
18318 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18319 postinstall_cmds='chmod 555 $lib'
18320 ;;
18321
18322 interix3*)
18323 version_type=linux
18324 need_lib_prefix=no
18325 need_version=no
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18327 soname_spec='${libname}${release}${shared_ext}$major'
18328 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 shlibpath_overrides_runpath=no
18331 hardcode_into_libs=yes
18332 ;;
18333
18334 irix5* | irix6* | nonstopux*)
18335 case $host_os in
18336 nonstopux*) version_type=nonstopux ;;
18337 *)
18338 if test "$lt_cv_prog_gnu_ld" = yes; then
18339 version_type=linux
18340 else
18341 version_type=irix
18342 fi ;;
18343 esac
18344 need_lib_prefix=no
18345 need_version=no
18346 soname_spec='${libname}${release}${shared_ext}$major'
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18348 case $host_os in
18349 irix5* | nonstopux*)
18350 libsuff= shlibsuff=
18351 ;;
18352 *)
18353 case $LD in # libtool.m4 will add one of these switches to LD
18354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18355 libsuff= shlibsuff= libmagic=32-bit;;
18356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18357 libsuff=32 shlibsuff=N32 libmagic=N32;;
18358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18359 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18360 *) libsuff= shlibsuff= libmagic=never-match;;
18361 esac
18362 ;;
18363 esac
18364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18365 shlibpath_overrides_runpath=no
18366 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18367 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18368 hardcode_into_libs=yes
18369 ;;
18370
18371 # No shared lib support for Linux oldld, aout, or coff.
18372 linux*oldld* | linux*aout* | linux*coff*)
18373 dynamic_linker=no
18374 ;;
18375
18376 # This must be Linux ELF.
18377 linux* | k*bsd*-gnu)
18378 version_type=linux
18379 need_lib_prefix=no
18380 need_version=no
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18382 soname_spec='${libname}${release}${shared_ext}$major'
18383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 shlibpath_overrides_runpath=no
18386 # This implies no fast_install, which is unacceptable.
18387 # Some rework will be needed to allow for fast_install
18388 # before this can be enabled.
18389 hardcode_into_libs=yes
18390
18391 # Append ld.so.conf contents to the search path
18392 if test -f /etc/ld.so.conf; then
18393 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' ' '`
18394 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18395 fi
18396
18397 # We used to test for /lib/ld.so.1 and disable shared libraries on
18398 # powerpc, because MkLinux only supported shared libraries with the
18399 # GNU dynamic linker. Since this was broken with cross compilers,
18400 # most powerpc-linux boxes support dynamic linking these days and
18401 # people can always --disable-shared, the test was removed, and we
18402 # assume the GNU/Linux dynamic linker is in use.
18403 dynamic_linker='GNU/Linux ld.so'
18404 ;;
18405
18406 netbsdelf*-gnu)
18407 version_type=linux
18408 need_lib_prefix=no
18409 need_version=no
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 shlibpath_var=LD_LIBRARY_PATH
18413 shlibpath_overrides_runpath=no
18414 hardcode_into_libs=yes
18415 dynamic_linker='NetBSD ld.elf_so'
18416 ;;
18417
18418 netbsd*)
18419 version_type=sunos
18420 need_lib_prefix=no
18421 need_version=no
18422 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18425 dynamic_linker='NetBSD (a.out) ld.so'
18426 else
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 dynamic_linker='NetBSD ld.elf_so'
18430 fi
18431 shlibpath_var=LD_LIBRARY_PATH
18432 shlibpath_overrides_runpath=yes
18433 hardcode_into_libs=yes
18434 ;;
18435
18436 newsos6)
18437 version_type=linux
18438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=yes
18441 ;;
18442
18443 nto-qnx*)
18444 version_type=linux
18445 need_lib_prefix=no
18446 need_version=no
18447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448 soname_spec='${libname}${release}${shared_ext}$major'
18449 shlibpath_var=LD_LIBRARY_PATH
18450 shlibpath_overrides_runpath=yes
18451 ;;
18452
18453 openbsd*)
18454 version_type=sunos
18455 sys_lib_dlsearch_path_spec="/usr/lib"
18456 need_lib_prefix=no
18457 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18458 case $host_os in
18459 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18460 *) need_version=no ;;
18461 esac
18462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18464 shlibpath_var=LD_LIBRARY_PATH
18465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18466 case $host_os in
18467 openbsd2.[89] | openbsd2.[89].*)
18468 shlibpath_overrides_runpath=no
18469 ;;
18470 *)
18471 shlibpath_overrides_runpath=yes
18472 ;;
18473 esac
18474 else
18475 shlibpath_overrides_runpath=yes
18476 fi
18477 ;;
18478
18479 os2*)
18480 libname_spec='$name'
18481 shrext_cmds=".dll"
18482 need_lib_prefix=no
18483 library_names_spec='$libname${shared_ext} $libname.a'
18484 dynamic_linker='OS/2 ld.exe'
18485 shlibpath_var=LIBPATH
18486 ;;
18487
18488 osf3* | osf4* | osf5*)
18489 version_type=osf
18490 need_lib_prefix=no
18491 need_version=no
18492 soname_spec='${libname}${release}${shared_ext}$major'
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18497 ;;
18498
18499 solaris*)
18500 version_type=linux
18501 need_lib_prefix=no
18502 need_version=no
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504 soname_spec='${libname}${release}${shared_ext}$major'
18505 shlibpath_var=LD_LIBRARY_PATH
18506 shlibpath_overrides_runpath=yes
18507 hardcode_into_libs=yes
18508 # ldd complains unless libraries are executable
18509 postinstall_cmds='chmod +x $lib'
18510 ;;
18511
18512 sunos4*)
18513 version_type=sunos
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18515 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18516 shlibpath_var=LD_LIBRARY_PATH
18517 shlibpath_overrides_runpath=yes
18518 if test "$with_gnu_ld" = yes; then
18519 need_lib_prefix=no
18520 fi
18521 need_version=yes
18522 ;;
18523
18524 sysv4 | sysv4.3*)
18525 version_type=linux
18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18527 soname_spec='${libname}${release}${shared_ext}$major'
18528 shlibpath_var=LD_LIBRARY_PATH
18529 case $host_vendor in
18530 sni)
18531 shlibpath_overrides_runpath=no
18532 need_lib_prefix=no
18533 export_dynamic_flag_spec='${wl}-Blargedynsym'
18534 runpath_var=LD_RUN_PATH
18535 ;;
18536 siemens)
18537 need_lib_prefix=no
18538 ;;
18539 motorola)
18540 need_lib_prefix=no
18541 need_version=no
18542 shlibpath_overrides_runpath=no
18543 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18544 ;;
18545 esac
18546 ;;
18547
18548 sysv4*MP*)
18549 if test -d /usr/nec ;then
18550 version_type=linux
18551 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18552 soname_spec='$libname${shared_ext}.$major'
18553 shlibpath_var=LD_LIBRARY_PATH
18554 fi
18555 ;;
18556
18557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18558 version_type=freebsd-elf
18559 need_lib_prefix=no
18560 need_version=no
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18562 soname_spec='${libname}${release}${shared_ext}$major'
18563 shlibpath_var=LD_LIBRARY_PATH
18564 hardcode_into_libs=yes
18565 if test "$with_gnu_ld" = yes; then
18566 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18567 shlibpath_overrides_runpath=no
18568 else
18569 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18570 shlibpath_overrides_runpath=yes
18571 case $host_os in
18572 sco3.2v5*)
18573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18574 ;;
18575 esac
18576 fi
18577 sys_lib_dlsearch_path_spec='/usr/lib'
18578 ;;
18579
18580 uts4*)
18581 version_type=linux
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 shlibpath_var=LD_LIBRARY_PATH
18585 ;;
18586
18587 *)
18588 dynamic_linker=no
18589 ;;
18590 esac
18591 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18592 echo "${ECHO_T}$dynamic_linker" >&6; }
18593 test "$dynamic_linker" = no && can_build_shared=no
18594
18595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18596 if test "$GCC" = yes; then
18597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18598 fi
18599
18600 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18601 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18602 hardcode_action_GCJ=
18603 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18604 test -n "$runpath_var_GCJ" || \
18605 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18606
18607 # We can hardcode non-existant directories.
18608 if test "$hardcode_direct_GCJ" != no &&
18609 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18610 # have to relink, otherwise we might link with an installed library
18611 # when we should be linking with a yet-to-be-installed one
18612 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18613 test "$hardcode_minus_L_GCJ" != no; then
18614 # Linking always hardcodes the temporary library directory.
18615 hardcode_action_GCJ=relink
18616 else
18617 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18618 hardcode_action_GCJ=immediate
18619 fi
18620 else
18621 # We cannot hardcode anything, or else we can only hardcode existing
18622 # directories.
18623 hardcode_action_GCJ=unsupported
18624 fi
18625 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18626 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18627
18628 if test "$hardcode_action_GCJ" = relink; then
18629 # Fast installation is not supported
18630 enable_fast_install=no
18631 elif test "$shlibpath_overrides_runpath" = yes ||
18632 test "$enable_shared" = no; then
18633 # Fast installation is not necessary
18634 enable_fast_install=needless
18635 fi
18636
18637
18638 # The else clause should only fire when bootstrapping the
18639 # libtool distribution, otherwise you forgot to ship ltmain.sh
18640 # with your package, and you will get complaints that there are
18641 # no rules to generate ltmain.sh.
18642 if test -f "$ltmain"; then
18643 # See if we are running on zsh, and set the options which allow our commands through
18644 # without removal of \ escapes.
18645 if test -n "${ZSH_VERSION+set}" ; then
18646 setopt NO_GLOB_SUBST
18647 fi
18648 # Now quote all the things that may contain metacharacters while being
18649 # careful not to overquote the AC_SUBSTed values. We take copies of the
18650 # variables and quote the copies for generation of the libtool script.
18651 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18652 SED SHELL STRIP \
18653 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18654 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18655 deplibs_check_method reload_flag reload_cmds need_locks \
18656 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18657 lt_cv_sys_global_symbol_to_c_name_address \
18658 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18659 old_postinstall_cmds old_postuninstall_cmds \
18660 compiler_GCJ \
18661 CC_GCJ \
18662 LD_GCJ \
18663 lt_prog_compiler_wl_GCJ \
18664 lt_prog_compiler_pic_GCJ \
18665 lt_prog_compiler_static_GCJ \
18666 lt_prog_compiler_no_builtin_flag_GCJ \
18667 export_dynamic_flag_spec_GCJ \
18668 thread_safe_flag_spec_GCJ \
18669 whole_archive_flag_spec_GCJ \
18670 enable_shared_with_static_runtimes_GCJ \
18671 old_archive_cmds_GCJ \
18672 old_archive_from_new_cmds_GCJ \
18673 predep_objects_GCJ \
18674 postdep_objects_GCJ \
18675 predeps_GCJ \
18676 postdeps_GCJ \
18677 compiler_lib_search_path_GCJ \
18678 archive_cmds_GCJ \
18679 archive_expsym_cmds_GCJ \
18680 postinstall_cmds_GCJ \
18681 postuninstall_cmds_GCJ \
18682 old_archive_from_expsyms_cmds_GCJ \
18683 allow_undefined_flag_GCJ \
18684 no_undefined_flag_GCJ \
18685 export_symbols_cmds_GCJ \
18686 hardcode_libdir_flag_spec_GCJ \
18687 hardcode_libdir_flag_spec_ld_GCJ \
18688 hardcode_libdir_separator_GCJ \
18689 hardcode_automatic_GCJ \
18690 module_cmds_GCJ \
18691 module_expsym_cmds_GCJ \
18692 lt_cv_prog_compiler_c_o_GCJ \
18693 exclude_expsyms_GCJ \
18694 include_expsyms_GCJ; do
18695
18696 case $var in
18697 old_archive_cmds_GCJ | \
18698 old_archive_from_new_cmds_GCJ | \
18699 archive_cmds_GCJ | \
18700 archive_expsym_cmds_GCJ | \
18701 module_cmds_GCJ | \
18702 module_expsym_cmds_GCJ | \
18703 old_archive_from_expsyms_cmds_GCJ | \
18704 export_symbols_cmds_GCJ | \
18705 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18706 postinstall_cmds | postuninstall_cmds | \
18707 old_postinstall_cmds | old_postuninstall_cmds | \
18708 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18709 # Double-quote double-evaled strings.
18710 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18711 ;;
18712 *)
18713 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18714 ;;
18715 esac
18716 done
18717
18718 case $lt_echo in
18719 *'\$0 --fallback-echo"')
18720 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18721 ;;
18722 esac
18723
18724 cfgfile="$ofile"
18725
18726 cat <<__EOF__ >> "$cfgfile"
18727 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18728
18729 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18730
18731 # Shell to use when invoking shell scripts.
18732 SHELL=$lt_SHELL
18733
18734 # Whether or not to build shared libraries.
18735 build_libtool_libs=$enable_shared
18736
18737 # Whether or not to build static libraries.
18738 build_old_libs=$enable_static
18739
18740 # Whether or not to add -lc for building shared libraries.
18741 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18742
18743 # Whether or not to disallow shared libs when runtime libs are static
18744 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18745
18746 # Whether or not to optimize for fast installation.
18747 fast_install=$enable_fast_install
18748
18749 # The host system.
18750 host_alias=$host_alias
18751 host=$host
18752 host_os=$host_os
18753
18754 # The build system.
18755 build_alias=$build_alias
18756 build=$build
18757 build_os=$build_os
18758
18759 # An echo program that does not interpret backslashes.
18760 echo=$lt_echo
18761
18762 # The archiver.
18763 AR=$lt_AR
18764 AR_FLAGS=$lt_AR_FLAGS
18765
18766 # A C compiler.
18767 LTCC=$lt_LTCC
18768
18769 # LTCC compiler flags.
18770 LTCFLAGS=$lt_LTCFLAGS
18771
18772 # A language-specific compiler.
18773 CC=$lt_compiler_GCJ
18774
18775 # Is the compiler the GNU C compiler?
18776 with_gcc=$GCC_GCJ
18777
18778 # An ERE matcher.
18779 EGREP=$lt_EGREP
18780
18781 # The linker used to build libraries.
18782 LD=$lt_LD_GCJ
18783
18784 # Whether we need hard or soft links.
18785 LN_S=$lt_LN_S
18786
18787 # A BSD-compatible nm program.
18788 NM=$lt_NM
18789
18790 # A symbol stripping program
18791 STRIP=$lt_STRIP
18792
18793 # Used to examine libraries when file_magic_cmd begins "file"
18794 MAGIC_CMD=$MAGIC_CMD
18795
18796 # Used on cygwin: DLL creation program.
18797 DLLTOOL="$DLLTOOL"
18798
18799 # Used on cygwin: object dumper.
18800 OBJDUMP="$OBJDUMP"
18801
18802 # Used on cygwin: assembler.
18803 AS="$AS"
18804
18805 # The name of the directory that contains temporary libtool files.
18806 objdir=$objdir
18807
18808 # How to create reloadable object files.
18809 reload_flag=$lt_reload_flag
18810 reload_cmds=$lt_reload_cmds
18811
18812 # How to pass a linker flag through the compiler.
18813 wl=$lt_lt_prog_compiler_wl_GCJ
18814
18815 # Object file suffix (normally "o").
18816 objext="$ac_objext"
18817
18818 # Old archive suffix (normally "a").
18819 libext="$libext"
18820
18821 # Shared library suffix (normally ".so").
18822 shrext_cmds='$shrext_cmds'
18823
18824 # Executable file suffix (normally "").
18825 exeext="$exeext"
18826
18827 # Additional compiler flags for building library objects.
18828 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18829 pic_mode=$pic_mode
18830
18831 # What is the maximum length of a command?
18832 max_cmd_len=$lt_cv_sys_max_cmd_len
18833
18834 # Does compiler simultaneously support -c and -o options?
18835 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18836
18837 # Must we lock files when doing compilation?
18838 need_locks=$lt_need_locks
18839
18840 # Do we need the lib prefix for modules?
18841 need_lib_prefix=$need_lib_prefix
18842
18843 # Do we need a version for libraries?
18844 need_version=$need_version
18845
18846 # Whether dlopen is supported.
18847 dlopen_support=$enable_dlopen
18848
18849 # Whether dlopen of programs is supported.
18850 dlopen_self=$enable_dlopen_self
18851
18852 # Whether dlopen of statically linked programs is supported.
18853 dlopen_self_static=$enable_dlopen_self_static
18854
18855 # Compiler flag to prevent dynamic linking.
18856 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18857
18858 # Compiler flag to turn off builtin functions.
18859 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18860
18861 # Compiler flag to allow reflexive dlopens.
18862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18863
18864 # Compiler flag to generate shared objects directly from archives.
18865 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18866
18867 # Compiler flag to generate thread-safe objects.
18868 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18869
18870 # Library versioning type.
18871 version_type=$version_type
18872
18873 # Format of library name prefix.
18874 libname_spec=$lt_libname_spec
18875
18876 # List of archive names. First name is the real one, the rest are links.
18877 # The last name is the one that the linker finds with -lNAME.
18878 library_names_spec=$lt_library_names_spec
18879
18880 # The coded name of the library, if different from the real name.
18881 soname_spec=$lt_soname_spec
18882
18883 # Commands used to build and install an old-style archive.
18884 RANLIB=$lt_RANLIB
18885 old_archive_cmds=$lt_old_archive_cmds_GCJ
18886 old_postinstall_cmds=$lt_old_postinstall_cmds
18887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18888
18889 # Create an old-style archive from a shared archive.
18890 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18891
18892 # Create a temporary old-style archive to link instead of a shared archive.
18893 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18894
18895 # Commands used to build and install a shared archive.
18896 archive_cmds=$lt_archive_cmds_GCJ
18897 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18898 postinstall_cmds=$lt_postinstall_cmds
18899 postuninstall_cmds=$lt_postuninstall_cmds
18900
18901 # Commands used to build a loadable module (assumed same as above if empty)
18902 module_cmds=$lt_module_cmds_GCJ
18903 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18904
18905 # Commands to strip libraries.
18906 old_striplib=$lt_old_striplib
18907 striplib=$lt_striplib
18908
18909 # Dependencies to place before the objects being linked to create a
18910 # shared library.
18911 predep_objects=$lt_predep_objects_GCJ
18912
18913 # Dependencies to place after the objects being linked to create a
18914 # shared library.
18915 postdep_objects=$lt_postdep_objects_GCJ
18916
18917 # Dependencies to place before the objects being linked to create a
18918 # shared library.
18919 predeps=$lt_predeps_GCJ
18920
18921 # Dependencies to place after the objects being linked to create a
18922 # shared library.
18923 postdeps=$lt_postdeps_GCJ
18924
18925 # The library search path used internally by the compiler when linking
18926 # a shared library.
18927 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18928
18929 # Method to check whether dependent libraries are shared objects.
18930 deplibs_check_method=$lt_deplibs_check_method
18931
18932 # Command to use when deplibs_check_method == file_magic.
18933 file_magic_cmd=$lt_file_magic_cmd
18934
18935 # Flag that allows shared libraries with undefined symbols to be built.
18936 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18937
18938 # Flag that forces no undefined symbols.
18939 no_undefined_flag=$lt_no_undefined_flag_GCJ
18940
18941 # Commands used to finish a libtool library installation in a directory.
18942 finish_cmds=$lt_finish_cmds
18943
18944 # Same as above, but a single script fragment to be evaled but not shown.
18945 finish_eval=$lt_finish_eval
18946
18947 # Take the output of nm and produce a listing of raw symbols and C names.
18948 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18949
18950 # Transform the output of nm in a proper C declaration
18951 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18952
18953 # Transform the output of nm in a C name address pair
18954 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18955
18956 # This is the shared library runtime path variable.
18957 runpath_var=$runpath_var
18958
18959 # This is the shared library path variable.
18960 shlibpath_var=$shlibpath_var
18961
18962 # Is shlibpath searched before the hard-coded library search path?
18963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18964
18965 # How to hardcode a shared library path into an executable.
18966 hardcode_action=$hardcode_action_GCJ
18967
18968 # Whether we should hardcode library paths into libraries.
18969 hardcode_into_libs=$hardcode_into_libs
18970
18971 # Flag to hardcode \$libdir into a binary during linking.
18972 # This must work even if \$libdir does not exist.
18973 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18974
18975 # If ld is used when linking, flag to hardcode \$libdir into
18976 # a binary during linking. This must work even if \$libdir does
18977 # not exist.
18978 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18979
18980 # Whether we need a single -rpath flag with a separated argument.
18981 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18982
18983 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18984 # resulting binary.
18985 hardcode_direct=$hardcode_direct_GCJ
18986
18987 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18988 # resulting binary.
18989 hardcode_minus_L=$hardcode_minus_L_GCJ
18990
18991 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18992 # the resulting binary.
18993 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18994
18995 # Set to yes if building a shared library automatically hardcodes DIR into the library
18996 # and all subsequent libraries and executables linked against it.
18997 hardcode_automatic=$hardcode_automatic_GCJ
18998
18999 # Variables whose values should be saved in libtool wrapper scripts and
19000 # restored at relink time.
19001 variables_saved_for_relink="$variables_saved_for_relink"
19002
19003 # Whether libtool must link a program against all its dependency libraries.
19004 link_all_deplibs=$link_all_deplibs_GCJ
19005
19006 # Compile-time system search path for libraries
19007 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19008
19009 # Run-time system search path for libraries
19010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19011
19012 # Fix the shell variable \$srcfile for the compiler.
19013 fix_srcfile_path="$fix_srcfile_path_GCJ"
19014
19015 # Set to yes if exported symbols are required.
19016 always_export_symbols=$always_export_symbols_GCJ
19017
19018 # The commands to list exported symbols.
19019 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19020
19021 # The commands to extract the exported symbol list from a shared archive.
19022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19023
19024 # Symbols that should not be listed in the preloaded symbols.
19025 exclude_expsyms=$lt_exclude_expsyms_GCJ
19026
19027 # Symbols that must always be exported.
19028 include_expsyms=$lt_include_expsyms_GCJ
19029
19030 # ### END LIBTOOL TAG CONFIG: $tagname
19031
19032 __EOF__
19033
19034
19035 else
19036 # If there is no Makefile yet, we rely on a make rule to execute
19037 # `config.status --recheck' to rerun these tests and create the
19038 # libtool script then.
19039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19040 if test -f "$ltmain_in"; then
19041 test -f Makefile && make "$ltmain"
19042 fi
19043 fi
19044
19045
19046 ac_ext=c
19047 ac_cpp='$CPP $CPPFLAGS'
19048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19051
19052 CC="$lt_save_CC"
19053
19054 else
19055 tagname=""
19056 fi
19057 ;;
19058
19059 RC)
19060
19061
19062 # Source file extension for RC test sources.
19063 ac_ext=rc
19064
19065 # Object file extension for compiled RC test sources.
19066 objext=o
19067 objext_RC=$objext
19068
19069 # Code to be used in simple compile tests
19070 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19071
19072 # Code to be used in simple link tests
19073 lt_simple_link_test_code="$lt_simple_compile_test_code"
19074
19075 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19076
19077 # If no C compiler was specified, use CC.
19078 LTCC=${LTCC-"$CC"}
19079
19080 # If no C compiler flags were specified, use CFLAGS.
19081 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19082
19083 # Allow CC to be a program name with arguments.
19084 compiler=$CC
19085
19086
19087 # save warnings/boilerplate of simple test code
19088 ac_outfile=conftest.$ac_objext
19089 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19090 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19091 _lt_compiler_boilerplate=`cat conftest.err`
19092 $rm conftest*
19093
19094 ac_outfile=conftest.$ac_objext
19095 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19096 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19097 _lt_linker_boilerplate=`cat conftest.err`
19098 $rm conftest*
19099
19100
19101 # Allow CC to be a program name with arguments.
19102 lt_save_CC="$CC"
19103 CC=${RC-"windres"}
19104 compiler=$CC
19105 compiler_RC=$CC
19106 for cc_temp in $compiler""; do
19107 case $cc_temp in
19108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19110 \-*) ;;
19111 *) break;;
19112 esac
19113 done
19114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19115
19116 lt_cv_prog_compiler_c_o_RC=yes
19117
19118 # The else clause should only fire when bootstrapping the
19119 # libtool distribution, otherwise you forgot to ship ltmain.sh
19120 # with your package, and you will get complaints that there are
19121 # no rules to generate ltmain.sh.
19122 if test -f "$ltmain"; then
19123 # See if we are running on zsh, and set the options which allow our commands through
19124 # without removal of \ escapes.
19125 if test -n "${ZSH_VERSION+set}" ; then
19126 setopt NO_GLOB_SUBST
19127 fi
19128 # Now quote all the things that may contain metacharacters while being
19129 # careful not to overquote the AC_SUBSTed values. We take copies of the
19130 # variables and quote the copies for generation of the libtool script.
19131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19132 SED SHELL STRIP \
19133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19135 deplibs_check_method reload_flag reload_cmds need_locks \
19136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19137 lt_cv_sys_global_symbol_to_c_name_address \
19138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19139 old_postinstall_cmds old_postuninstall_cmds \
19140 compiler_RC \
19141 CC_RC \
19142 LD_RC \
19143 lt_prog_compiler_wl_RC \
19144 lt_prog_compiler_pic_RC \
19145 lt_prog_compiler_static_RC \
19146 lt_prog_compiler_no_builtin_flag_RC \
19147 export_dynamic_flag_spec_RC \
19148 thread_safe_flag_spec_RC \
19149 whole_archive_flag_spec_RC \
19150 enable_shared_with_static_runtimes_RC \
19151 old_archive_cmds_RC \
19152 old_archive_from_new_cmds_RC \
19153 predep_objects_RC \
19154 postdep_objects_RC \
19155 predeps_RC \
19156 postdeps_RC \
19157 compiler_lib_search_path_RC \
19158 archive_cmds_RC \
19159 archive_expsym_cmds_RC \
19160 postinstall_cmds_RC \
19161 postuninstall_cmds_RC \
19162 old_archive_from_expsyms_cmds_RC \
19163 allow_undefined_flag_RC \
19164 no_undefined_flag_RC \
19165 export_symbols_cmds_RC \
19166 hardcode_libdir_flag_spec_RC \
19167 hardcode_libdir_flag_spec_ld_RC \
19168 hardcode_libdir_separator_RC \
19169 hardcode_automatic_RC \
19170 module_cmds_RC \
19171 module_expsym_cmds_RC \
19172 lt_cv_prog_compiler_c_o_RC \
19173 exclude_expsyms_RC \
19174 include_expsyms_RC; do
19175
19176 case $var in
19177 old_archive_cmds_RC | \
19178 old_archive_from_new_cmds_RC | \
19179 archive_cmds_RC | \
19180 archive_expsym_cmds_RC | \
19181 module_cmds_RC | \
19182 module_expsym_cmds_RC | \
19183 old_archive_from_expsyms_cmds_RC | \
19184 export_symbols_cmds_RC | \
19185 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19186 postinstall_cmds | postuninstall_cmds | \
19187 old_postinstall_cmds | old_postuninstall_cmds | \
19188 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19189 # Double-quote double-evaled strings.
19190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19191 ;;
19192 *)
19193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19194 ;;
19195 esac
19196 done
19197
19198 case $lt_echo in
19199 *'\$0 --fallback-echo"')
19200 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19201 ;;
19202 esac
19203
19204 cfgfile="$ofile"
19205
19206 cat <<__EOF__ >> "$cfgfile"
19207 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19208
19209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19210
19211 # Shell to use when invoking shell scripts.
19212 SHELL=$lt_SHELL
19213
19214 # Whether or not to build shared libraries.
19215 build_libtool_libs=$enable_shared
19216
19217 # Whether or not to build static libraries.
19218 build_old_libs=$enable_static
19219
19220 # Whether or not to add -lc for building shared libraries.
19221 build_libtool_need_lc=$archive_cmds_need_lc_RC
19222
19223 # Whether or not to disallow shared libs when runtime libs are static
19224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19225
19226 # Whether or not to optimize for fast installation.
19227 fast_install=$enable_fast_install
19228
19229 # The host system.
19230 host_alias=$host_alias
19231 host=$host
19232 host_os=$host_os
19233
19234 # The build system.
19235 build_alias=$build_alias
19236 build=$build
19237 build_os=$build_os
19238
19239 # An echo program that does not interpret backslashes.
19240 echo=$lt_echo
19241
19242 # The archiver.
19243 AR=$lt_AR
19244 AR_FLAGS=$lt_AR_FLAGS
19245
19246 # A C compiler.
19247 LTCC=$lt_LTCC
19248
19249 # LTCC compiler flags.
19250 LTCFLAGS=$lt_LTCFLAGS
19251
19252 # A language-specific compiler.
19253 CC=$lt_compiler_RC
19254
19255 # Is the compiler the GNU C compiler?
19256 with_gcc=$GCC_RC
19257
19258 # An ERE matcher.
19259 EGREP=$lt_EGREP
19260
19261 # The linker used to build libraries.
19262 LD=$lt_LD_RC
19263
19264 # Whether we need hard or soft links.
19265 LN_S=$lt_LN_S
19266
19267 # A BSD-compatible nm program.
19268 NM=$lt_NM
19269
19270 # A symbol stripping program
19271 STRIP=$lt_STRIP
19272
19273 # Used to examine libraries when file_magic_cmd begins "file"
19274 MAGIC_CMD=$MAGIC_CMD
19275
19276 # Used on cygwin: DLL creation program.
19277 DLLTOOL="$DLLTOOL"
19278
19279 # Used on cygwin: object dumper.
19280 OBJDUMP="$OBJDUMP"
19281
19282 # Used on cygwin: assembler.
19283 AS="$AS"
19284
19285 # The name of the directory that contains temporary libtool files.
19286 objdir=$objdir
19287
19288 # How to create reloadable object files.
19289 reload_flag=$lt_reload_flag
19290 reload_cmds=$lt_reload_cmds
19291
19292 # How to pass a linker flag through the compiler.
19293 wl=$lt_lt_prog_compiler_wl_RC
19294
19295 # Object file suffix (normally "o").
19296 objext="$ac_objext"
19297
19298 # Old archive suffix (normally "a").
19299 libext="$libext"
19300
19301 # Shared library suffix (normally ".so").
19302 shrext_cmds='$shrext_cmds'
19303
19304 # Executable file suffix (normally "").
19305 exeext="$exeext"
19306
19307 # Additional compiler flags for building library objects.
19308 pic_flag=$lt_lt_prog_compiler_pic_RC
19309 pic_mode=$pic_mode
19310
19311 # What is the maximum length of a command?
19312 max_cmd_len=$lt_cv_sys_max_cmd_len
19313
19314 # Does compiler simultaneously support -c and -o options?
19315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19316
19317 # Must we lock files when doing compilation?
19318 need_locks=$lt_need_locks
19319
19320 # Do we need the lib prefix for modules?
19321 need_lib_prefix=$need_lib_prefix
19322
19323 # Do we need a version for libraries?
19324 need_version=$need_version
19325
19326 # Whether dlopen is supported.
19327 dlopen_support=$enable_dlopen
19328
19329 # Whether dlopen of programs is supported.
19330 dlopen_self=$enable_dlopen_self
19331
19332 # Whether dlopen of statically linked programs is supported.
19333 dlopen_self_static=$enable_dlopen_self_static
19334
19335 # Compiler flag to prevent dynamic linking.
19336 link_static_flag=$lt_lt_prog_compiler_static_RC
19337
19338 # Compiler flag to turn off builtin functions.
19339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19340
19341 # Compiler flag to allow reflexive dlopens.
19342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19343
19344 # Compiler flag to generate shared objects directly from archives.
19345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19346
19347 # Compiler flag to generate thread-safe objects.
19348 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19349
19350 # Library versioning type.
19351 version_type=$version_type
19352
19353 # Format of library name prefix.
19354 libname_spec=$lt_libname_spec
19355
19356 # List of archive names. First name is the real one, the rest are links.
19357 # The last name is the one that the linker finds with -lNAME.
19358 library_names_spec=$lt_library_names_spec
19359
19360 # The coded name of the library, if different from the real name.
19361 soname_spec=$lt_soname_spec
19362
19363 # Commands used to build and install an old-style archive.
19364 RANLIB=$lt_RANLIB
19365 old_archive_cmds=$lt_old_archive_cmds_RC
19366 old_postinstall_cmds=$lt_old_postinstall_cmds
19367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19368
19369 # Create an old-style archive from a shared archive.
19370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19371
19372 # Create a temporary old-style archive to link instead of a shared archive.
19373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19374
19375 # Commands used to build and install a shared archive.
19376 archive_cmds=$lt_archive_cmds_RC
19377 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19378 postinstall_cmds=$lt_postinstall_cmds
19379 postuninstall_cmds=$lt_postuninstall_cmds
19380
19381 # Commands used to build a loadable module (assumed same as above if empty)
19382 module_cmds=$lt_module_cmds_RC
19383 module_expsym_cmds=$lt_module_expsym_cmds_RC
19384
19385 # Commands to strip libraries.
19386 old_striplib=$lt_old_striplib
19387 striplib=$lt_striplib
19388
19389 # Dependencies to place before the objects being linked to create a
19390 # shared library.
19391 predep_objects=$lt_predep_objects_RC
19392
19393 # Dependencies to place after the objects being linked to create a
19394 # shared library.
19395 postdep_objects=$lt_postdep_objects_RC
19396
19397 # Dependencies to place before the objects being linked to create a
19398 # shared library.
19399 predeps=$lt_predeps_RC
19400
19401 # Dependencies to place after the objects being linked to create a
19402 # shared library.
19403 postdeps=$lt_postdeps_RC
19404
19405 # The library search path used internally by the compiler when linking
19406 # a shared library.
19407 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19408
19409 # Method to check whether dependent libraries are shared objects.
19410 deplibs_check_method=$lt_deplibs_check_method
19411
19412 # Command to use when deplibs_check_method == file_magic.
19413 file_magic_cmd=$lt_file_magic_cmd
19414
19415 # Flag that allows shared libraries with undefined symbols to be built.
19416 allow_undefined_flag=$lt_allow_undefined_flag_RC
19417
19418 # Flag that forces no undefined symbols.
19419 no_undefined_flag=$lt_no_undefined_flag_RC
19420
19421 # Commands used to finish a libtool library installation in a directory.
19422 finish_cmds=$lt_finish_cmds
19423
19424 # Same as above, but a single script fragment to be evaled but not shown.
19425 finish_eval=$lt_finish_eval
19426
19427 # Take the output of nm and produce a listing of raw symbols and C names.
19428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19429
19430 # Transform the output of nm in a proper C declaration
19431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19432
19433 # Transform the output of nm in a C name address pair
19434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19435
19436 # This is the shared library runtime path variable.
19437 runpath_var=$runpath_var
19438
19439 # This is the shared library path variable.
19440 shlibpath_var=$shlibpath_var
19441
19442 # Is shlibpath searched before the hard-coded library search path?
19443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19444
19445 # How to hardcode a shared library path into an executable.
19446 hardcode_action=$hardcode_action_RC
19447
19448 # Whether we should hardcode library paths into libraries.
19449 hardcode_into_libs=$hardcode_into_libs
19450
19451 # Flag to hardcode \$libdir into a binary during linking.
19452 # This must work even if \$libdir does not exist.
19453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19454
19455 # If ld is used when linking, flag to hardcode \$libdir into
19456 # a binary during linking. This must work even if \$libdir does
19457 # not exist.
19458 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19459
19460 # Whether we need a single -rpath flag with a separated argument.
19461 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19462
19463 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19464 # resulting binary.
19465 hardcode_direct=$hardcode_direct_RC
19466
19467 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19468 # resulting binary.
19469 hardcode_minus_L=$hardcode_minus_L_RC
19470
19471 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19472 # the resulting binary.
19473 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19474
19475 # Set to yes if building a shared library automatically hardcodes DIR into the library
19476 # and all subsequent libraries and executables linked against it.
19477 hardcode_automatic=$hardcode_automatic_RC
19478
19479 # Variables whose values should be saved in libtool wrapper scripts and
19480 # restored at relink time.
19481 variables_saved_for_relink="$variables_saved_for_relink"
19482
19483 # Whether libtool must link a program against all its dependency libraries.
19484 link_all_deplibs=$link_all_deplibs_RC
19485
19486 # Compile-time system search path for libraries
19487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19488
19489 # Run-time system search path for libraries
19490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19491
19492 # Fix the shell variable \$srcfile for the compiler.
19493 fix_srcfile_path="$fix_srcfile_path_RC"
19494
19495 # Set to yes if exported symbols are required.
19496 always_export_symbols=$always_export_symbols_RC
19497
19498 # The commands to list exported symbols.
19499 export_symbols_cmds=$lt_export_symbols_cmds_RC
19500
19501 # The commands to extract the exported symbol list from a shared archive.
19502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19503
19504 # Symbols that should not be listed in the preloaded symbols.
19505 exclude_expsyms=$lt_exclude_expsyms_RC
19506
19507 # Symbols that must always be exported.
19508 include_expsyms=$lt_include_expsyms_RC
19509
19510 # ### END LIBTOOL TAG CONFIG: $tagname
19511
19512 __EOF__
19513
19514
19515 else
19516 # If there is no Makefile yet, we rely on a make rule to execute
19517 # `config.status --recheck' to rerun these tests and create the
19518 # libtool script then.
19519 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19520 if test -f "$ltmain_in"; then
19521 test -f Makefile && make "$ltmain"
19522 fi
19523 fi
19524
19525
19526 ac_ext=c
19527 ac_cpp='$CPP $CPPFLAGS'
19528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19531
19532 CC="$lt_save_CC"
19533
19534 ;;
19535
19536 *)
19537 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19538 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19539 { (exit 1); exit 1; }; }
19540 ;;
19541 esac
19542
19543 # Append the new tag name to the list of available tags.
19544 if test -n "$tagname" ; then
19545 available_tags="$available_tags $tagname"
19546 fi
19547 fi
19548 done
19549 IFS="$lt_save_ifs"
19550
19551 # Now substitute the updated list of available tags.
19552 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19553 mv "${ofile}T" "$ofile"
19554 chmod +x "$ofile"
19555 else
19556 rm -f "${ofile}T"
19557 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19558 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19559 { (exit 1); exit 1; }; }
19560 fi
19561 fi
19562
19563
19564
19565 # This can be used to rebuild libtool when needed
19566 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19567
19568 # Always use our own libtool.
19569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19570
19571 # Prevent multiple expansion
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593 for ac_prog in bash
19594 do
19595 # Extract the first word of "$ac_prog", so it can be a program name with args.
19596 set dummy $ac_prog; ac_word=$2
19597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19599 if test "${ac_cv_path_BASH+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602 case $BASH in
19603 [\\/]* | ?:[\\/]*)
19604 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
19605 ;;
19606 *)
19607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19608 for as_dir in $PATH
19609 do
19610 IFS=$as_save_IFS
19611 test -z "$as_dir" && as_dir=.
19612 for ac_exec_ext in '' $ac_executable_extensions; do
19613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19614 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
19615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19616 break 2
19617 fi
19618 done
19619 done
19620 IFS=$as_save_IFS
19621
19622 ;;
19623 esac
19624 fi
19625 BASH=$ac_cv_path_BASH
19626 if test -n "$BASH"; then
19627 { echo "$as_me:$LINENO: result: $BASH" >&5
19628 echo "${ECHO_T}$BASH" >&6; }
19629 else
19630 { echo "$as_me:$LINENO: result: no" >&5
19631 echo "${ECHO_T}no" >&6; }
19632 fi
19633
19634
19635 test -n "$BASH" && break
19636 done
19637
19638
19639 # Check whether --enable-largefile was given.
19640 if test "${enable_largefile+set}" = set; then
19641 enableval=$enable_largefile;
19642 fi
19643
19644 if test "$enable_largefile" != no; then
19645
19646 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19647 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
19648 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 else
19651 ac_cv_sys_largefile_CC=no
19652 if test "$GCC" != yes; then
19653 ac_save_CC=$CC
19654 while :; do
19655 # IRIX 6.2 and later do not support large files by default,
19656 # so use the C compiler's -n32 option if that helps.
19657 cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h. */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 #include <sys/types.h>
19664 /* Check that off_t can represent 2**63 - 1 correctly.
19665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19666 since some C++ compilers masquerading as C compilers
19667 incorrectly reject 9223372036854775807. */
19668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19670 && LARGE_OFF_T % 2147483647 == 1)
19671 ? 1 : -1];
19672 int
19673 main ()
19674 {
19675
19676 ;
19677 return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext
19681 if { (ac_try="$ac_compile"
19682 case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19685 esac
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687 (eval "$ac_compile") 2>conftest.er1
19688 ac_status=$?
19689 grep -v '^ *+' conftest.er1 >conftest.err
19690 rm -f conftest.er1
19691 cat conftest.err >&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } &&
19694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19695 { (case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_try") 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest.$ac_objext'
19705 { (case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_try") 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 break
19715 else
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719
19720 fi
19721
19722 rm -f core conftest.err conftest.$ac_objext
19723 CC="$CC -n32"
19724 rm -f conftest.$ac_objext
19725 if { (ac_try="$ac_compile"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_compile") 2>conftest.er1
19732 ac_status=$?
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19739 { (case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_try") 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_try") 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_cv_sys_largefile_CC=' -n32'; break
19759 else
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763
19764 fi
19765
19766 rm -f core conftest.err conftest.$ac_objext
19767 break
19768 done
19769 CC=$ac_save_CC
19770 rm -f conftest.$ac_ext
19771 fi
19772 fi
19773 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19774 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
19775 if test "$ac_cv_sys_largefile_CC" != no; then
19776 CC=$CC$ac_cv_sys_largefile_CC
19777 fi
19778
19779 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19780 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
19781 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784 while :; do
19785 ac_cv_sys_file_offset_bits=no
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 <sys/types.h>
19793 /* Check that off_t can represent 2**63 - 1 correctly.
19794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19795 since some C++ compilers masquerading as C compilers
19796 incorrectly reject 9223372036854775807. */
19797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19799 && LARGE_OFF_T % 2147483647 == 1)
19800 ? 1 : -1];
19801 int
19802 main ()
19803 {
19804
19805 ;
19806 return 0;
19807 }
19808 _ACEOF
19809 rm -f conftest.$ac_objext
19810 if { (ac_try="$ac_compile"
19811 case "(($ac_try" in
19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813 *) ac_try_echo=$ac_try;;
19814 esac
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816 (eval "$ac_compile") 2>conftest.er1
19817 ac_status=$?
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
19823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827 esac
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; } &&
19833 { ac_try='test -s conftest.$ac_objext'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 break
19844 else
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19847
19848
19849 fi
19850
19851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 #define _FILE_OFFSET_BITS 64
19859 #include <sys/types.h>
19860 /* Check that off_t can represent 2**63 - 1 correctly.
19861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19862 since some C++ compilers masquerading as C compilers
19863 incorrectly reject 9223372036854775807. */
19864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19866 && LARGE_OFF_T % 2147483647 == 1)
19867 ? 1 : -1];
19868 int
19869 main ()
19870 {
19871
19872 ;
19873 return 0;
19874 }
19875 _ACEOF
19876 rm -f conftest.$ac_objext
19877 if { (ac_try="$ac_compile"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_compile") 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
19890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19891 { (case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
19900 { ac_try='test -s conftest.$ac_objext'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 ac_cv_sys_file_offset_bits=64; break
19911 else
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915
19916 fi
19917
19918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19919 break
19920 done
19921 fi
19922 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19923 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19924 if test "$ac_cv_sys_file_offset_bits" != no; then
19925
19926 cat >>confdefs.h <<_ACEOF
19927 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19928 _ACEOF
19929
19930 fi
19931 rm -f conftest*
19932 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19933 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
19934 if test "${ac_cv_sys_large_files+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937 while :; do
19938 ac_cv_sys_large_files=no
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 #include <sys/types.h>
19946 /* Check that off_t can represent 2**63 - 1 correctly.
19947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19948 since some C++ compilers masquerading as C compilers
19949 incorrectly reject 9223372036854775807. */
19950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19952 && LARGE_OFF_T % 2147483647 == 1)
19953 ? 1 : -1];
19954 int
19955 main ()
19956 {
19957
19958 ;
19959 return 0;
19960 }
19961 _ACEOF
19962 rm -f conftest.$ac_objext
19963 if { (ac_try="$ac_compile"
19964 case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_compile") 2>conftest.er1
19970 ac_status=$?
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
19976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19977 { (case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19980 esac
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982 (eval "$ac_try") 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
19987 { (case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992 (eval "$ac_try") 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 break
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001
20002 fi
20003
20004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h. */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 #define _LARGE_FILES 1
20012 #include <sys/types.h>
20013 /* Check that off_t can represent 2**63 - 1 correctly.
20014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20015 since some C++ compilers masquerading as C compilers
20016 incorrectly reject 9223372036854775807. */
20017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20019 && LARGE_OFF_T % 2147483647 == 1)
20020 ? 1 : -1];
20021 int
20022 main ()
20023 {
20024
20025 ;
20026 return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext
20030 if { (ac_try="$ac_compile"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_compile") 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
20043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20044 { (case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20047 esac
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_try") 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } &&
20053 { ac_try='test -s conftest.$ac_objext'
20054 { (case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20057 esac
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_try") 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_cv_sys_large_files=1; break
20064 else
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20067
20068
20069 fi
20070
20071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 break
20073 done
20074 fi
20075 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20076 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
20077 if test "$ac_cv_sys_large_files" != no; then
20078
20079 cat >>confdefs.h <<_ACEOF
20080 #define _LARGE_FILES $ac_cv_sys_large_files
20081 _ACEOF
20082
20083 fi
20084 rm -f conftest*
20085 fi
20086
20087
20088 # Checks for programs.
20089 ac_ext=c
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20094 if test -n "$ac_tool_prefix"; then
20095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20099 if test "${ac_cv_prog_CC+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 else
20102 if test -n "$CC"; then
20103 ac_cv_prog_CC="$CC" # Let the user override the test.
20104 else
20105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20106 for as_dir in $PATH
20107 do
20108 IFS=$as_save_IFS
20109 test -z "$as_dir" && as_dir=.
20110 for ac_exec_ext in '' $ac_executable_extensions; do
20111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20114 break 2
20115 fi
20116 done
20117 done
20118 IFS=$as_save_IFS
20119
20120 fi
20121 fi
20122 CC=$ac_cv_prog_CC
20123 if test -n "$CC"; then
20124 { echo "$as_me:$LINENO: result: $CC" >&5
20125 echo "${ECHO_T}$CC" >&6; }
20126 else
20127 { echo "$as_me:$LINENO: result: no" >&5
20128 echo "${ECHO_T}no" >&6; }
20129 fi
20130
20131
20132 fi
20133 if test -z "$ac_cv_prog_CC"; then
20134 ac_ct_CC=$CC
20135 # Extract the first word of "gcc", so it can be a program name with args.
20136 set dummy gcc; ac_word=$2
20137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 if test -n "$ac_ct_CC"; then
20143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20144 else
20145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20146 for as_dir in $PATH
20147 do
20148 IFS=$as_save_IFS
20149 test -z "$as_dir" && as_dir=.
20150 for ac_exec_ext in '' $ac_executable_extensions; do
20151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20152 ac_cv_prog_ac_ct_CC="gcc"
20153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20154 break 2
20155 fi
20156 done
20157 done
20158 IFS=$as_save_IFS
20159
20160 fi
20161 fi
20162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20163 if test -n "$ac_ct_CC"; then
20164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20165 echo "${ECHO_T}$ac_ct_CC" >&6; }
20166 else
20167 { echo "$as_me:$LINENO: result: no" >&5
20168 echo "${ECHO_T}no" >&6; }
20169 fi
20170
20171 if test "x$ac_ct_CC" = x; then
20172 CC=""
20173 else
20174 case $cross_compiling:$ac_tool_warned in
20175 yes:)
20176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20177 whose name does not start with the host triplet. If you think this
20178 configuration is useful to you, please write to autoconf@gnu.org." >&5
20179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20180 whose name does not start with the host triplet. If you think this
20181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20182 ac_tool_warned=yes ;;
20183 esac
20184 CC=$ac_ct_CC
20185 fi
20186 else
20187 CC="$ac_cv_prog_CC"
20188 fi
20189
20190 if test -z "$CC"; then
20191 if test -n "$ac_tool_prefix"; then
20192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20193 set dummy ${ac_tool_prefix}cc; ac_word=$2
20194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20196 if test "${ac_cv_prog_CC+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199 if test -n "$CC"; then
20200 ac_cv_prog_CC="$CC" # Let the user override the test.
20201 else
20202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20203 for as_dir in $PATH
20204 do
20205 IFS=$as_save_IFS
20206 test -z "$as_dir" && as_dir=.
20207 for ac_exec_ext in '' $ac_executable_extensions; do
20208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20209 ac_cv_prog_CC="${ac_tool_prefix}cc"
20210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20211 break 2
20212 fi
20213 done
20214 done
20215 IFS=$as_save_IFS
20216
20217 fi
20218 fi
20219 CC=$ac_cv_prog_CC
20220 if test -n "$CC"; then
20221 { echo "$as_me:$LINENO: result: $CC" >&5
20222 echo "${ECHO_T}$CC" >&6; }
20223 else
20224 { echo "$as_me:$LINENO: result: no" >&5
20225 echo "${ECHO_T}no" >&6; }
20226 fi
20227
20228
20229 fi
20230 fi
20231 if test -z "$CC"; then
20232 # Extract the first word of "cc", so it can be a program name with args.
20233 set dummy cc; ac_word=$2
20234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20236 if test "${ac_cv_prog_CC+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239 if test -n "$CC"; then
20240 ac_cv_prog_CC="$CC" # Let the user override the test.
20241 else
20242 ac_prog_rejected=no
20243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20244 for as_dir in $PATH
20245 do
20246 IFS=$as_save_IFS
20247 test -z "$as_dir" && as_dir=.
20248 for ac_exec_ext in '' $ac_executable_extensions; do
20249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20251 ac_prog_rejected=yes
20252 continue
20253 fi
20254 ac_cv_prog_CC="cc"
20255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20256 break 2
20257 fi
20258 done
20259 done
20260 IFS=$as_save_IFS
20261
20262 if test $ac_prog_rejected = yes; then
20263 # We found a bogon in the path, so make sure we never use it.
20264 set dummy $ac_cv_prog_CC
20265 shift
20266 if test $# != 0; then
20267 # We chose a different compiler from the bogus one.
20268 # However, it has the same basename, so the bogon will be chosen
20269 # first if we set CC to just the basename; use the full file name.
20270 shift
20271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20272 fi
20273 fi
20274 fi
20275 fi
20276 CC=$ac_cv_prog_CC
20277 if test -n "$CC"; then
20278 { echo "$as_me:$LINENO: result: $CC" >&5
20279 echo "${ECHO_T}$CC" >&6; }
20280 else
20281 { echo "$as_me:$LINENO: result: no" >&5
20282 echo "${ECHO_T}no" >&6; }
20283 fi
20284
20285
20286 fi
20287 if test -z "$CC"; then
20288 if test -n "$ac_tool_prefix"; then
20289 for ac_prog in cl.exe
20290 do
20291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20295 if test "${ac_cv_prog_CC+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298 if test -n "$CC"; then
20299 ac_cv_prog_CC="$CC" # Let the user override the test.
20300 else
20301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20302 for as_dir in $PATH
20303 do
20304 IFS=$as_save_IFS
20305 test -z "$as_dir" && as_dir=.
20306 for ac_exec_ext in '' $ac_executable_extensions; do
20307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20310 break 2
20311 fi
20312 done
20313 done
20314 IFS=$as_save_IFS
20315
20316 fi
20317 fi
20318 CC=$ac_cv_prog_CC
20319 if test -n "$CC"; then
20320 { echo "$as_me:$LINENO: result: $CC" >&5
20321 echo "${ECHO_T}$CC" >&6; }
20322 else
20323 { echo "$as_me:$LINENO: result: no" >&5
20324 echo "${ECHO_T}no" >&6; }
20325 fi
20326
20327
20328 test -n "$CC" && break
20329 done
20330 fi
20331 if test -z "$CC"; then
20332 ac_ct_CC=$CC
20333 for ac_prog in cl.exe
20334 do
20335 # Extract the first word of "$ac_prog", so it can be a program name with args.
20336 set dummy $ac_prog; ac_word=$2
20337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342 if test -n "$ac_ct_CC"; then
20343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20344 else
20345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20346 for as_dir in $PATH
20347 do
20348 IFS=$as_save_IFS
20349 test -z "$as_dir" && as_dir=.
20350 for ac_exec_ext in '' $ac_executable_extensions; do
20351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20352 ac_cv_prog_ac_ct_CC="$ac_prog"
20353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20354 break 2
20355 fi
20356 done
20357 done
20358 IFS=$as_save_IFS
20359
20360 fi
20361 fi
20362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20363 if test -n "$ac_ct_CC"; then
20364 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20365 echo "${ECHO_T}$ac_ct_CC" >&6; }
20366 else
20367 { echo "$as_me:$LINENO: result: no" >&5
20368 echo "${ECHO_T}no" >&6; }
20369 fi
20370
20371
20372 test -n "$ac_ct_CC" && break
20373 done
20374
20375 if test "x$ac_ct_CC" = x; then
20376 CC=""
20377 else
20378 case $cross_compiling:$ac_tool_warned in
20379 yes:)
20380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20381 whose name does not start with the host triplet. If you think this
20382 configuration is useful to you, please write to autoconf@gnu.org." >&5
20383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20384 whose name does not start with the host triplet. If you think this
20385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20386 ac_tool_warned=yes ;;
20387 esac
20388 CC=$ac_ct_CC
20389 fi
20390 fi
20391
20392 fi
20393
20394
20395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20396 See \`config.log' for more details." >&5
20397 echo "$as_me: error: no acceptable C compiler found in \$PATH
20398 See \`config.log' for more details." >&2;}
20399 { (exit 1); exit 1; }; }
20400
20401 # Provide some information about the compiler.
20402 echo "$as_me:$LINENO: checking for C compiler version" >&5
20403 ac_compiler=`set X $ac_compile; echo $2`
20404 { (ac_try="$ac_compiler --version >&5"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_compiler --version >&5") 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }
20414 { (ac_try="$ac_compiler -v >&5"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compiler -v >&5") 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }
20424 { (ac_try="$ac_compiler -V >&5"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_compiler -V >&5") 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }
20434
20435 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h. */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446
20447 int
20448 main ()
20449 {
20450 #ifndef __GNUC__
20451 choke me
20452 #endif
20453
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext
20459 if { (ac_try="$ac_compile"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_compile") 2>conftest.er1
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20473 { (case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_try") 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; } &&
20482 { ac_try='test -s conftest.$ac_objext'
20483 { (case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_try") 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_compiler_gnu=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_compiler_gnu=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20502
20503 fi
20504 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20506 GCC=`test $ac_compiler_gnu = yes && echo yes`
20507 ac_test_CFLAGS=${CFLAGS+set}
20508 ac_save_CFLAGS=$CFLAGS
20509 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20510 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20511 if test "${ac_cv_prog_cc_g+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514 ac_save_c_werror_flag=$ac_c_werror_flag
20515 ac_c_werror_flag=yes
20516 ac_cv_prog_cc_g=no
20517 CFLAGS="-g"
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h. */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524
20525 int
20526 main ()
20527 {
20528
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_compile") 2>conftest.er1
20541 ac_status=$?
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } &&
20547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest.$ac_objext'
20558 { (case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20561 esac
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_try") 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_cv_prog_cc_g=yes
20568 else
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 CFLAGS=""
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579
20580 int
20581 main ()
20582 {
20583
20584 ;
20585 return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_compile") 2>conftest.er1
20596 ac_status=$?
20597 grep -v '^ *+' conftest.er1 >conftest.err
20598 rm -f conftest.er1
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } &&
20602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20603 { (case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_try") 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest.$ac_objext'
20613 { (case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_try") 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 :
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_c_werror_flag=$ac_save_c_werror_flag
20628 CFLAGS="-g"
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635
20636 int
20637 main ()
20638 {
20639
20640 ;
20641 return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext
20645 if { (ac_try="$ac_compile"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_compile") 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20659 { (case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_try") 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest.$ac_objext'
20669 { (case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672 esac
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_try") 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 ac_cv_prog_cc_g=yes
20679 else
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683
20684 fi
20685
20686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20687 fi
20688
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 fi
20691
20692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 ac_c_werror_flag=$ac_save_c_werror_flag
20694 fi
20695 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20696 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20697 if test "$ac_test_CFLAGS" = set; then
20698 CFLAGS=$ac_save_CFLAGS
20699 elif test $ac_cv_prog_cc_g = yes; then
20700 if test "$GCC" = yes; then
20701 CFLAGS="-g -O2"
20702 else
20703 CFLAGS="-g"
20704 fi
20705 else
20706 if test "$GCC" = yes; then
20707 CFLAGS="-O2"
20708 else
20709 CFLAGS=
20710 fi
20711 fi
20712 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20713 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20714 if test "${ac_cv_prog_cc_c89+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 else
20717 ac_cv_prog_cc_c89=no
20718 ac_save_CC=$CC
20719 cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h. */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 #include <stdarg.h>
20726 #include <stdio.h>
20727 #include <sys/types.h>
20728 #include <sys/stat.h>
20729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20730 struct buf { int x; };
20731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20732 static char *e (p, i)
20733 char **p;
20734 int i;
20735 {
20736 return p[i];
20737 }
20738 static char *f (char * (*g) (char **, int), char **p, ...)
20739 {
20740 char *s;
20741 va_list v;
20742 va_start (v,p);
20743 s = g (p, va_arg (v,int));
20744 va_end (v);
20745 return s;
20746 }
20747
20748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20749 function prototypes and stuff, but not '\xHH' hex character constants.
20750 These don't provoke an error unfortunately, instead are silently treated
20751 as 'x'. The following induces an error, until -std is added to get
20752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20753 array size at least. It's necessary to write '\x00'==0 to get something
20754 that's true only with -std. */
20755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20756
20757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20758 inside strings and character constants. */
20759 #define FOO(x) 'x'
20760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20761
20762 int test (int i, double x);
20763 struct s1 {int (*f) (int a);};
20764 struct s2 {int (*f) (double a);};
20765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20766 int argc;
20767 char **argv;
20768 int
20769 main ()
20770 {
20771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20772 ;
20773 return 0;
20774 }
20775 _ACEOF
20776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20778 do
20779 CC="$ac_save_CC $ac_arg"
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20795 { (case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_try") 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
20805 { (case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_try") 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_cv_prog_cc_c89=$ac_arg
20815 else
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819
20820 fi
20821
20822 rm -f core conftest.err conftest.$ac_objext
20823 test "x$ac_cv_prog_cc_c89" != "xno" && break
20824 done
20825 rm -f conftest.$ac_ext
20826 CC=$ac_save_CC
20827
20828 fi
20829 # AC_CACHE_VAL
20830 case "x$ac_cv_prog_cc_c89" in
20831 x)
20832 { echo "$as_me:$LINENO: result: none needed" >&5
20833 echo "${ECHO_T}none needed" >&6; } ;;
20834 xno)
20835 { echo "$as_me:$LINENO: result: unsupported" >&5
20836 echo "${ECHO_T}unsupported" >&6; } ;;
20837 *)
20838 CC="$CC $ac_cv_prog_cc_c89"
20839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20840 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20841 esac
20842
20843
20844 ac_ext=c
20845 ac_cpp='$CPP $CPPFLAGS'
20846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20849
20850 depcc="$CC" am_compiler_list=
20851
20852 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20853 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20854 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20858 # We make a subdir and do the tests there. Otherwise we can end up
20859 # making bogus files that we don't know about and never remove. For
20860 # instance it was reported that on HP-UX the gcc test will end up
20861 # making a dummy file named `D' -- because `-MD' means `put the output
20862 # in D'.
20863 mkdir conftest.dir
20864 # Copy depcomp to subdir because otherwise we won't find it if we're
20865 # using a relative directory.
20866 cp "$am_depcomp" conftest.dir
20867 cd conftest.dir
20868 # We will build objects and dependencies in a subdirectory because
20869 # it helps to detect inapplicable dependency modes. For instance
20870 # both Tru64's cc and ICC support -MD to output dependencies as a
20871 # side effect of compilation, but ICC will put the dependencies in
20872 # the current directory while Tru64 will put them in the object
20873 # directory.
20874 mkdir sub
20875
20876 am_cv_CC_dependencies_compiler_type=none
20877 if test "$am_compiler_list" = ""; then
20878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20879 fi
20880 for depmode in $am_compiler_list; do
20881 # Setup a source with many dependencies, because some compilers
20882 # like to wrap large dependency lists on column 80 (with \), and
20883 # we should not choose a depcomp mode which is confused by this.
20884 #
20885 # We need to recreate these files for each test, as the compiler may
20886 # overwrite some of them when testing with obscure command lines.
20887 # This happens at least with the AIX C compiler.
20888 : > sub/conftest.c
20889 for i in 1 2 3 4 5 6; do
20890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20891 : > sub/conftst$i.h
20892 done
20893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20894
20895 case $depmode in
20896 nosideeffect)
20897 # after this tag, mechanisms are not by side-effect, so they'll
20898 # only be used when explicitly requested
20899 if test "x$enable_dependency_tracking" = xyes; then
20900 continue
20901 else
20902 break
20903 fi
20904 ;;
20905 none) break ;;
20906 esac
20907 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20908 # mode. It turns out that the SunPro C++ compiler does not properly
20909 # handle `-M -o', and we need to detect this.
20910 if depmode=$depmode \
20911 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20913 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20914 >/dev/null 2>conftest.err &&
20915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20916 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20918 # icc doesn't choke on unknown options, it will just issue warnings
20919 # (even with -Werror). So we grep stderr for any message
20920 # that says an option was ignored.
20921 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
20922 am_cv_CC_dependencies_compiler_type=$depmode
20923 break
20924 fi
20925 fi
20926 done
20927
20928 cd ..
20929 rm -rf conftest.dir
20930 else
20931 am_cv_CC_dependencies_compiler_type=none
20932 fi
20933
20934 fi
20935 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20936 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20938
20939
20940
20941 if
20942 test "x$enable_dependency_tracking" != xno \
20943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20944 am__fastdepCC_TRUE=
20945 am__fastdepCC_FALSE='#'
20946 else
20947 am__fastdepCC_TRUE='#'
20948 am__fastdepCC_FALSE=
20949 fi
20950
20951
20952
20953 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
20954 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
20955 if test "${ac_cv_lib_util_forkpty+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958 ac_check_lib_save_LIBS=$LIBS
20959 LIBS="-lutil $LIBS"
20960 cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h. */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20966
20967 /* Override any GCC internal prototype to avoid an error.
20968 Use char because int might match the return type of a GCC
20969 builtin and then its argument prototype would still apply. */
20970 #ifdef __cplusplus
20971 extern "C"
20972 #endif
20973 char forkpty ();
20974 int
20975 main ()
20976 {
20977 return forkpty ();
20978 ;
20979 return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest.$ac_objext conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_link") 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; } &&
21006 { ac_try='test -s conftest$ac_exeext'
21007 { (case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_try") 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 ac_cv_lib_util_forkpty=yes
21017 else
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021 ac_cv_lib_util_forkpty=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext \
21025 conftest$ac_exeext conftest.$ac_ext
21026 LIBS=$ac_check_lib_save_LIBS
21027 fi
21028 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
21029 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
21030 if test $ac_cv_lib_util_forkpty = yes; then
21031 UTIL_LIBS="-lutil"
21032 else
21033 { { echo "$as_me:$LINENO: error: libutil is
21034 required in order to compile LinuxTraceToolkit" >&5
21035 echo "$as_me: error: libutil is
21036 required in order to compile LinuxTraceToolkit" >&2;}
21037 { (exit 1); exit 1; }; }
21038 fi
21039
21040
21041
21042 # pthread for lttd
21043 { echo "$as_me:$LINENO: checking for pthread_join in -lpthread" >&5
21044 echo $ECHO_N "checking for pthread_join in -lpthread... $ECHO_C" >&6; }
21045 if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048 ac_check_lib_save_LIBS=$LIBS
21049 LIBS="-lpthread $LIBS"
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h. */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056
21057 /* Override any GCC internal prototype to avoid an error.
21058 Use char because int might match the return type of a GCC
21059 builtin and then its argument prototype would still apply. */
21060 #ifdef __cplusplus
21061 extern "C"
21062 #endif
21063 char pthread_join ();
21064 int
21065 main ()
21066 {
21067 return pthread_join ();
21068 ;
21069 return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (ac_try="$ac_link"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21077 esac
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_link") 2>conftest.er1
21080 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
21086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21087 { (case "(($ac_try" in
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_try") 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; } &&
21096 { ac_try='test -s conftest$ac_exeext'
21097 { (case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_try") 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_cv_lib_pthread_pthread_join=yes
21107 else
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21110
21111 ac_cv_lib_pthread_pthread_join=no
21112 fi
21113
21114 rm -f core conftest.err conftest.$ac_objext \
21115 conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21117 fi
21118 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_join" >&5
21119 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_join" >&6; }
21120 if test $ac_cv_lib_pthread_pthread_join = yes; then
21121 THREAD_LIBS="-lpthread"
21122 else
21123 { { echo "$as_me:$LINENO: error: LinuxThreads is required in order to compile lttd" >&5
21124 echo "$as_me: error: LinuxThreads is required in order to compile lttd" >&2;}
21125 { (exit 1); exit 1; }; }
21126 fi
21127
21128
21129 # Checks for header files.
21130 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21131 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21132 if test "${ac_cv_header_stdc+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135 cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h. */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 #include <stdlib.h>
21142 #include <stdarg.h>
21143 #include <string.h>
21144 #include <float.h>
21145
21146 int
21147 main ()
21148 {
21149
21150 ;
21151 return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_compile") 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21169 { (case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_try") 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try='test -s conftest.$ac_objext'
21179 { (case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_try") 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 ac_cv_header_stdc=yes
21189 else
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ac_cv_header_stdc=no
21194 fi
21195
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197
21198 if test $ac_cv_header_stdc = yes; then
21199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21200 cat >conftest.$ac_ext <<_ACEOF
21201 /* confdefs.h. */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 #include <string.h>
21207
21208 _ACEOF
21209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21210 $EGREP "memchr" >/dev/null 2>&1; then
21211 :
21212 else
21213 ac_cv_header_stdc=no
21214 fi
21215 rm -f conftest*
21216
21217 fi
21218
21219 if test $ac_cv_header_stdc = yes; then
21220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h. */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 #include <stdlib.h>
21228
21229 _ACEOF
21230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21231 $EGREP "free" >/dev/null 2>&1; then
21232 :
21233 else
21234 ac_cv_header_stdc=no
21235 fi
21236 rm -f conftest*
21237
21238 fi
21239
21240 if test $ac_cv_header_stdc = yes; then
21241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21242 if test "$cross_compiling" = yes; then
21243 :
21244 else
21245 cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h. */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 #include <ctype.h>
21252 #include <stdlib.h>
21253 #if ((' ' & 0x0FF) == 0x020)
21254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21256 #else
21257 # define ISLOWER(c) \
21258 (('a' <= (c) && (c) <= 'i') \
21259 || ('j' <= (c) && (c) <= 'r') \
21260 || ('s' <= (c) && (c) <= 'z'))
21261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21262 #endif
21263
21264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21265 int
21266 main ()
21267 {
21268 int i;
21269 for (i = 0; i < 256; i++)
21270 if (XOR (islower (i), ISLOWER (i))
21271 || toupper (i) != TOUPPER (i))
21272 return 2;
21273 return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest$ac_exeext
21277 if { (ac_try="$ac_link"
21278 case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_link") 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21287 { (case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_try") 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; }; then
21296 :
21297 else
21298 echo "$as_me: program exited with status $ac_status" >&5
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 ( exit $ac_status )
21303 ac_cv_header_stdc=no
21304 fi
21305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21306 fi
21307
21308
21309 fi
21310 fi
21311 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21312 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21313 if test $ac_cv_header_stdc = yes; then
21314
21315 cat >>confdefs.h <<\_ACEOF
21316 #define STDC_HEADERS 1
21317 _ACEOF
21318
21319 fi
21320
21321
21322
21323
21324
21325
21326
21327 for ac_header in fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h
21328 do
21329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 fi
21336 ac_res=`eval echo '${'$as_ac_Header'}'`
21337 { echo "$as_me:$LINENO: result: $ac_res" >&5
21338 echo "${ECHO_T}$ac_res" >&6; }
21339 else
21340 # Is the header compilable?
21341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21343 cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h. */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 $ac_includes_default
21350 #include <$ac_header>
21351 _ACEOF
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21357 esac
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359 (eval "$ac_compile") 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21367 { (case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_try") 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest.$ac_objext'
21377 { (case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_try") 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_header_compiler=yes
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391 ac_header_compiler=no
21392 fi
21393
21394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21396 echo "${ECHO_T}$ac_header_compiler" >&6; }
21397
21398 # Is the header present?
21399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21401 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 #include <$ac_header>
21408 _ACEOF
21409 if { (ac_try="$ac_cpp conftest.$ac_ext"
21410 case "(($ac_try" in
21411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21416 ac_status=$?
21417 grep -v '^ *+' conftest.er1 >conftest.err
21418 rm -f conftest.er1
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } >/dev/null; then
21422 if test -s conftest.err; then
21423 ac_cpp_err=$ac_c_preproc_warn_flag
21424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21425 else
21426 ac_cpp_err=
21427 fi
21428 else
21429 ac_cpp_err=yes
21430 fi
21431 if test -z "$ac_cpp_err"; then
21432 ac_header_preproc=yes
21433 else
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437 ac_header_preproc=no
21438 fi
21439
21440 rm -f conftest.err conftest.$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21442 echo "${ECHO_T}$ac_header_preproc" >&6; }
21443
21444 # So? What about this header?
21445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21446 yes:no: )
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21451 ac_header_preproc=yes
21452 ;;
21453 no:yes:* )
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21466 ( cat <<\_ASBOX
21467 ## --------------------------------- ##
21468 ## Report this to BUG-REPORT-ADDRESS ##
21469 ## --------------------------------- ##
21470 _ASBOX
21471 ) | sed "s/^/$as_me: WARNING: /" >&2
21472 ;;
21473 esac
21474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479 eval "$as_ac_Header=\$ac_header_preproc"
21480 fi
21481 ac_res=`eval echo '${'$as_ac_Header'}'`
21482 { echo "$as_me:$LINENO: result: $ac_res" >&5
21483 echo "${ECHO_T}$ac_res" >&6; }
21484
21485 fi
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21489 _ACEOF
21490
21491 fi
21492
21493 done
21494
21495
21496
21497 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
21498 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
21499 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502 ac_check_lib_save_LIBS=$LIBS
21503 LIBS="-lcposix $LIBS"
21504 cat >conftest.$ac_ext <<_ACEOF
21505 /* confdefs.h. */
21506 _ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21510
21511 /* Override any GCC internal prototype to avoid an error.
21512 Use char because int might match the return type of a GCC
21513 builtin and then its argument prototype would still apply. */
21514 #ifdef __cplusplus
21515 extern "C"
21516 #endif
21517 char strerror ();
21518 int
21519 main ()
21520 {
21521 return strerror ();
21522 ;
21523 return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext conftest$ac_exeext
21527 if { (ac_try="$ac_link"
21528 case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533 (eval "$ac_link") 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21541 { (case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_try") 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; } &&
21550 { ac_try='test -s conftest$ac_exeext'
21551 { (case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21554 esac
21555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_try") 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; }; then
21560 ac_cv_lib_cposix_strerror=yes
21561 else
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_cv_lib_cposix_strerror=no
21566 fi
21567
21568 rm -f core conftest.err conftest.$ac_objext \
21569 conftest$ac_exeext conftest.$ac_ext
21570 LIBS=$ac_check_lib_save_LIBS
21571 fi
21572 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
21573 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
21574 if test $ac_cv_lib_cposix_strerror = yes; then
21575 LIBS="$LIBS -lcposix"
21576 fi
21577
21578
21579
21580 ac_ext=c
21581 ac_cpp='$CPP $CPPFLAGS'
21582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21585 if test -n "$ac_tool_prefix"; then
21586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
21587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
21588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21590 if test "${ac_cv_prog_CC+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 else
21593 if test -n "$CC"; then
21594 ac_cv_prog_CC="$CC" # Let the user override the test.
21595 else
21596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21597 for as_dir in $PATH
21598 do
21599 IFS=$as_save_IFS
21600 test -z "$as_dir" && as_dir=.
21601 for ac_exec_ext in '' $ac_executable_extensions; do
21602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
21604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21605 break 2
21606 fi
21607 done
21608 done
21609 IFS=$as_save_IFS
21610
21611 fi
21612 fi
21613 CC=$ac_cv_prog_CC
21614 if test -n "$CC"; then
21615 { echo "$as_me:$LINENO: result: $CC" >&5
21616 echo "${ECHO_T}$CC" >&6; }
21617 else
21618 { echo "$as_me:$LINENO: result: no" >&5
21619 echo "${ECHO_T}no" >&6; }
21620 fi
21621
21622
21623 fi
21624 if test -z "$ac_cv_prog_CC"; then
21625 ac_ct_CC=$CC
21626 # Extract the first word of "gcc", so it can be a program name with args.
21627 set dummy gcc; ac_word=$2
21628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633 if test -n "$ac_ct_CC"; then
21634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21635 else
21636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21637 for as_dir in $PATH
21638 do
21639 IFS=$as_save_IFS
21640 test -z "$as_dir" && as_dir=.
21641 for ac_exec_ext in '' $ac_executable_extensions; do
21642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21643 ac_cv_prog_ac_ct_CC="gcc"
21644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21645 break 2
21646 fi
21647 done
21648 done
21649 IFS=$as_save_IFS
21650
21651 fi
21652 fi
21653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
21654 if test -n "$ac_ct_CC"; then
21655 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
21656 echo "${ECHO_T}$ac_ct_CC" >&6; }
21657 else
21658 { echo "$as_me:$LINENO: result: no" >&5
21659 echo "${ECHO_T}no" >&6; }
21660 fi
21661
21662 if test "x$ac_ct_CC" = x; then
21663 CC=""
21664 else
21665 case $cross_compiling:$ac_tool_warned in
21666 yes:)
21667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21668 whose name does not start with the host triplet. If you think this
21669 configuration is useful to you, please write to autoconf@gnu.org." >&5
21670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21671 whose name does not start with the host triplet. If you think this
21672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21673 ac_tool_warned=yes ;;
21674 esac
21675 CC=$ac_ct_CC
21676 fi
21677 else
21678 CC="$ac_cv_prog_CC"
21679 fi
21680
21681 if test -z "$CC"; then
21682 if test -n "$ac_tool_prefix"; then
21683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
21684 set dummy ${ac_tool_prefix}cc; ac_word=$2
21685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21687 if test "${ac_cv_prog_CC+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690 if test -n "$CC"; then
21691 ac_cv_prog_CC="$CC" # Let the user override the test.
21692 else
21693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21694 for as_dir in $PATH
21695 do
21696 IFS=$as_save_IFS
21697 test -z "$as_dir" && as_dir=.
21698 for ac_exec_ext in '' $ac_executable_extensions; do
21699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21700 ac_cv_prog_CC="${ac_tool_prefix}cc"
21701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21702 break 2
21703 fi
21704 done
21705 done
21706 IFS=$as_save_IFS
21707
21708 fi
21709 fi
21710 CC=$ac_cv_prog_CC
21711 if test -n "$CC"; then
21712 { echo "$as_me:$LINENO: result: $CC" >&5
21713 echo "${ECHO_T}$CC" >&6; }
21714 else
21715 { echo "$as_me:$LINENO: result: no" >&5
21716 echo "${ECHO_T}no" >&6; }
21717 fi
21718
21719
21720 fi
21721 fi
21722 if test -z "$CC"; then
21723 # Extract the first word of "cc", so it can be a program name with args.
21724 set dummy cc; ac_word=$2
21725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21727 if test "${ac_cv_prog_CC+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 else
21730 if test -n "$CC"; then
21731 ac_cv_prog_CC="$CC" # Let the user override the test.
21732 else
21733 ac_prog_rejected=no
21734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21735 for as_dir in $PATH
21736 do
21737 IFS=$as_save_IFS
21738 test -z "$as_dir" && as_dir=.
21739 for ac_exec_ext in '' $ac_executable_extensions; do
21740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
21742 ac_prog_rejected=yes
21743 continue
21744 fi
21745 ac_cv_prog_CC="cc"
21746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21747 break 2
21748 fi
21749 done
21750 done
21751 IFS=$as_save_IFS
21752
21753 if test $ac_prog_rejected = yes; then
21754 # We found a bogon in the path, so make sure we never use it.
21755 set dummy $ac_cv_prog_CC
21756 shift
21757 if test $# != 0; then
21758 # We chose a different compiler from the bogus one.
21759 # However, it has the same basename, so the bogon will be chosen
21760 # first if we set CC to just the basename; use the full file name.
21761 shift
21762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
21763 fi
21764 fi
21765 fi
21766 fi
21767 CC=$ac_cv_prog_CC
21768 if test -n "$CC"; then
21769 { echo "$as_me:$LINENO: result: $CC" >&5
21770 echo "${ECHO_T}$CC" >&6; }
21771 else
21772 { echo "$as_me:$LINENO: result: no" >&5
21773 echo "${ECHO_T}no" >&6; }
21774 fi
21775
21776
21777 fi
21778 if test -z "$CC"; then
21779 if test -n "$ac_tool_prefix"; then
21780 for ac_prog in cl.exe
21781 do
21782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21786 if test "${ac_cv_prog_CC+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 if test -n "$CC"; then
21790 ac_cv_prog_CC="$CC" # Let the user override the test.
21791 else
21792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21793 for as_dir in $PATH
21794 do
21795 IFS=$as_save_IFS
21796 test -z "$as_dir" && as_dir=.
21797 for ac_exec_ext in '' $ac_executable_extensions; do
21798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
21800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21801 break 2
21802 fi
21803 done
21804 done
21805 IFS=$as_save_IFS
21806
21807 fi
21808 fi
21809 CC=$ac_cv_prog_CC
21810 if test -n "$CC"; then
21811 { echo "$as_me:$LINENO: result: $CC" >&5
21812 echo "${ECHO_T}$CC" >&6; }
21813 else
21814 { echo "$as_me:$LINENO: result: no" >&5
21815 echo "${ECHO_T}no" >&6; }
21816 fi
21817
21818
21819 test -n "$CC" && break
21820 done
21821 fi
21822 if test -z "$CC"; then
21823 ac_ct_CC=$CC
21824 for ac_prog in cl.exe
21825 do
21826 # Extract the first word of "$ac_prog", so it can be a program name with args.
21827 set dummy $ac_prog; ac_word=$2
21828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 else
21833 if test -n "$ac_ct_CC"; then
21834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21835 else
21836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21837 for as_dir in $PATH
21838 do
21839 IFS=$as_save_IFS
21840 test -z "$as_dir" && as_dir=.
21841 for ac_exec_ext in '' $ac_executable_extensions; do
21842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21843 ac_cv_prog_ac_ct_CC="$ac_prog"
21844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21845 break 2
21846 fi
21847 done
21848 done
21849 IFS=$as_save_IFS
21850
21851 fi
21852 fi
21853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
21854 if test -n "$ac_ct_CC"; then
21855 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
21856 echo "${ECHO_T}$ac_ct_CC" >&6; }
21857 else
21858 { echo "$as_me:$LINENO: result: no" >&5
21859 echo "${ECHO_T}no" >&6; }
21860 fi
21861
21862
21863 test -n "$ac_ct_CC" && break
21864 done
21865
21866 if test "x$ac_ct_CC" = x; then
21867 CC=""
21868 else
21869 case $cross_compiling:$ac_tool_warned in
21870 yes:)
21871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21872 whose name does not start with the host triplet. If you think this
21873 configuration is useful to you, please write to autoconf@gnu.org." >&5
21874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21875 whose name does not start with the host triplet. If you think this
21876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21877 ac_tool_warned=yes ;;
21878 esac
21879 CC=$ac_ct_CC
21880 fi
21881 fi
21882
21883 fi
21884
21885
21886 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
21887 See \`config.log' for more details." >&5
21888 echo "$as_me: error: no acceptable C compiler found in \$PATH
21889 See \`config.log' for more details." >&2;}
21890 { (exit 1); exit 1; }; }
21891
21892 # Provide some information about the compiler.
21893 echo "$as_me:$LINENO: checking for C compiler version" >&5
21894 ac_compiler=`set X $ac_compile; echo $2`
21895 { (ac_try="$ac_compiler --version >&5"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_compiler --version >&5") 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }
21905 { (ac_try="$ac_compiler -v >&5"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_compiler -v >&5") 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }
21915 { (ac_try="$ac_compiler -V >&5"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21919 esac
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_compiler -V >&5") 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }
21925
21926 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
21927 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
21928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
21929 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 else
21931 cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h. */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937
21938 int
21939 main ()
21940 {
21941 #ifndef __GNUC__
21942 choke me
21943 #endif
21944
21945 ;
21946 return 0;
21947 }
21948 _ACEOF
21949 rm -f conftest.$ac_objext
21950 if { (ac_try="$ac_compile"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_compile") 2>conftest.er1
21957 ac_status=$?
21958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
21963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21964 { (case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_try") 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
21974 { (case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_try") 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 ac_compiler_gnu=yes
21984 else
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988 ac_compiler_gnu=no
21989 fi
21990
21991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
21993
21994 fi
21995 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
21996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
21997 GCC=`test $ac_compiler_gnu = yes && echo yes`
21998 ac_test_CFLAGS=${CFLAGS+set}
21999 ac_save_CFLAGS=$CFLAGS
22000 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
22002 if test "${ac_cv_prog_cc_g+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005 ac_save_c_werror_flag=$ac_c_werror_flag
22006 ac_c_werror_flag=yes
22007 ac_cv_prog_cc_g=no
22008 CFLAGS="-g"
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015
22016 int
22017 main ()
22018 {
22019
22020 ;
22021 return 0;
22022 }
22023 _ACEOF
22024 rm -f conftest.$ac_objext
22025 if { (ac_try="$ac_compile"
22026 case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029 esac
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_compile") 2>conftest.er1
22032 ac_status=$?
22033 grep -v '^ *+' conftest.er1 >conftest.err
22034 rm -f conftest.er1
22035 cat conftest.err >&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); } &&
22038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22039 { (case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_try") 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; } &&
22048 { ac_try='test -s conftest.$ac_objext'
22049 { (case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_try") 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ac_cv_prog_cc_g=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 CFLAGS=""
22064 cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h. */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070
22071 int
22072 main ()
22073 {
22074
22075 ;
22076 return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22087 ac_status=$?
22088 grep -v '^ *+' conftest.er1 >conftest.err
22089 rm -f conftest.er1
22090 cat conftest.err >&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } &&
22093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22094 { (case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_try") 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; } &&
22103 { ac_try='test -s conftest.$ac_objext'
22104 { (case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22107 esac
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_try") 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 :
22114 else
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118 ac_c_werror_flag=$ac_save_c_werror_flag
22119 CFLAGS="-g"
22120 cat >conftest.$ac_ext <<_ACEOF
22121 /* confdefs.h. */
22122 _ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h. */
22126
22127 int
22128 main ()
22129 {
22130
22131 ;
22132 return 0;
22133 }
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_compile") 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } &&
22149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22150 { (case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22153 esac
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155 (eval "$ac_try") 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; } &&
22159 { ac_try='test -s conftest.$ac_objext'
22160 { (case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22163 esac
22164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_try") 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; }; then
22169 ac_cv_prog_cc_g=yes
22170 else
22171 echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174
22175 fi
22176
22177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178 fi
22179
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 fi
22182
22183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 ac_c_werror_flag=$ac_save_c_werror_flag
22185 fi
22186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22187 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
22188 if test "$ac_test_CFLAGS" = set; then
22189 CFLAGS=$ac_save_CFLAGS
22190 elif test $ac_cv_prog_cc_g = yes; then
22191 if test "$GCC" = yes; then
22192 CFLAGS="-g -O2"
22193 else
22194 CFLAGS="-g"
22195 fi
22196 else
22197 if test "$GCC" = yes; then
22198 CFLAGS="-O2"
22199 else
22200 CFLAGS=
22201 fi
22202 fi
22203 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
22204 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
22205 if test "${ac_cv_prog_cc_c89+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207 else
22208 ac_cv_prog_cc_c89=no
22209 ac_save_CC=$CC
22210 cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h. */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 #include <stdarg.h>
22217 #include <stdio.h>
22218 #include <sys/types.h>
22219 #include <sys/stat.h>
22220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22221 struct buf { int x; };
22222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22223 static char *e (p, i)
22224 char **p;
22225 int i;
22226 {
22227 return p[i];
22228 }
22229 static char *f (char * (*g) (char **, int), char **p, ...)
22230 {
22231 char *s;
22232 va_list v;
22233 va_start (v,p);
22234 s = g (p, va_arg (v,int));
22235 va_end (v);
22236 return s;
22237 }
22238
22239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22240 function prototypes and stuff, but not '\xHH' hex character constants.
22241 These don't provoke an error unfortunately, instead are silently treated
22242 as 'x'. The following induces an error, until -std is added to get
22243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22244 array size at least. It's necessary to write '\x00'==0 to get something
22245 that's true only with -std. */
22246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22247
22248 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
22249 inside strings and character constants. */
22250 #define FOO(x) 'x'
22251 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
22252
22253 int test (int i, double x);
22254 struct s1 {int (*f) (int a);};
22255 struct s2 {int (*f) (double a);};
22256 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22257 int argc;
22258 char **argv;
22259 int
22260 main ()
22261 {
22262 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22263 ;
22264 return 0;
22265 }
22266 _ACEOF
22267 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
22268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22269 do
22270 CC="$ac_save_CC $ac_arg"
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_compile") 2>conftest.er1
22279 ac_status=$?
22280 grep -v '^ *+' conftest.er1 >conftest.err
22281 rm -f conftest.er1
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } &&
22285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22286 { (case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_try") 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; } &&
22295 { ac_try='test -s conftest.$ac_objext'
22296 { (case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299 esac
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_try") 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22305 ac_cv_prog_cc_c89=$ac_arg
22306 else
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22309
22310
22311 fi
22312
22313 rm -f core conftest.err conftest.$ac_objext
22314 test "x$ac_cv_prog_cc_c89" != "xno" && break
22315 done
22316 rm -f conftest.$ac_ext
22317 CC=$ac_save_CC
22318
22319 fi
22320 # AC_CACHE_VAL
22321 case "x$ac_cv_prog_cc_c89" in
22322 x)
22323 { echo "$as_me:$LINENO: result: none needed" >&5
22324 echo "${ECHO_T}none needed" >&6; } ;;
22325 xno)
22326 { echo "$as_me:$LINENO: result: unsupported" >&5
22327 echo "${ECHO_T}unsupported" >&6; } ;;
22328 *)
22329 CC="$CC $ac_cv_prog_cc_c89"
22330 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
22331 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
22332 esac
22333
22334
22335 ac_ext=c
22336 ac_cpp='$CPP $CPPFLAGS'
22337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22340
22341 depcc="$CC" am_compiler_list=
22342
22343 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22344 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
22345 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22349 # We make a subdir and do the tests there. Otherwise we can end up
22350 # making bogus files that we don't know about and never remove. For
22351 # instance it was reported that on HP-UX the gcc test will end up
22352 # making a dummy file named `D' -- because `-MD' means `put the output
22353 # in D'.
22354 mkdir conftest.dir
22355 # Copy depcomp to subdir because otherwise we won't find it if we're
22356 # using a relative directory.
22357 cp "$am_depcomp" conftest.dir
22358 cd conftest.dir
22359 # We will build objects and dependencies in a subdirectory because
22360 # it helps to detect inapplicable dependency modes. For instance
22361 # both Tru64's cc and ICC support -MD to output dependencies as a
22362 # side effect of compilation, but ICC will put the dependencies in
22363 # the current directory while Tru64 will put them in the object
22364 # directory.
22365 mkdir sub
22366
22367 am_cv_CC_dependencies_compiler_type=none
22368 if test "$am_compiler_list" = ""; then
22369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22370 fi
22371 for depmode in $am_compiler_list; do
22372 # Setup a source with many dependencies, because some compilers
22373 # like to wrap large dependency lists on column 80 (with \), and
22374 # we should not choose a depcomp mode which is confused by this.
22375 #
22376 # We need to recreate these files for each test, as the compiler may
22377 # overwrite some of them when testing with obscure command lines.
22378 # This happens at least with the AIX C compiler.
22379 : > sub/conftest.c
22380 for i in 1 2 3 4 5 6; do
22381 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22382 : > sub/conftst$i.h
22383 done
22384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22385
22386 case $depmode in
22387 nosideeffect)
22388 # after this tag, mechanisms are not by side-effect, so they'll
22389 # only be used when explicitly requested
22390 if test "x$enable_dependency_tracking" = xyes; then
22391 continue
22392 else
22393 break
22394 fi
22395 ;;
22396 none) break ;;
22397 esac
22398 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22399 # mode. It turns out that the SunPro C++ compiler does not properly
22400 # handle `-M -o', and we need to detect this.
22401 if depmode=$depmode \
22402 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22404 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22405 >/dev/null 2>conftest.err &&
22406 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22407 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22408 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22409 # icc doesn't choke on unknown options, it will just issue warnings
22410 # (even with -Werror). So we grep stderr for any message
22411 # that says an option was ignored.
22412 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
22413 am_cv_CC_dependencies_compiler_type=$depmode
22414 break
22415 fi
22416 fi
22417 done
22418
22419 cd ..
22420 rm -rf conftest.dir
22421 else
22422 am_cv_CC_dependencies_compiler_type=none
22423 fi
22424
22425 fi
22426 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22427 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
22428 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22429
22430
22431
22432 if
22433 test "x$enable_dependency_tracking" != xno \
22434 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22435 am__fastdepCC_TRUE=
22436 am__fastdepCC_FALSE='#'
22437 else
22438 am__fastdepCC_TRUE='#'
22439 am__fastdepCC_FALSE=
22440 fi
22441
22442
22443
22444
22445
22446 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
22447 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
22448 if test "${am_cv_prog_cc_stdc+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451 am_cv_prog_cc_stdc=no
22452 ac_save_CC="$CC"
22453 # Don't try gcc -ansi; that turns off useful extensions and
22454 # breaks some systems' header files.
22455 # AIX -qlanglvl=ansi
22456 # Ultrix and OSF/1 -std1
22457 # HP-UX 10.20 and later -Ae
22458 # HP-UX older versions -Aa -D_HPUX_SOURCE
22459 # SVR4 -Xc -D__EXTENSIONS__
22460 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22461 do
22462 CC="$ac_save_CC $ac_arg"
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 #include <stdarg.h>
22470 #include <stdio.h>
22471 #include <sys/types.h>
22472 #include <sys/stat.h>
22473 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22474 struct buf { int x; };
22475 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22476 static char *e (p, i)
22477 char **p;
22478 int i;
22479 {
22480 return p[i];
22481 }
22482 static char *f (char * (*g) (char **, int), char **p, ...)
22483 {
22484 char *s;
22485 va_list v;
22486 va_start (v,p);
22487 s = g (p, va_arg (v,int));
22488 va_end (v);
22489 return s;
22490 }
22491 int test (int i, double x);
22492 struct s1 {int (*f) (int a);};
22493 struct s2 {int (*f) (double a);};
22494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22495 int argc;
22496 char **argv;
22497
22498 int
22499 main ()
22500 {
22501
22502 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22503
22504 ;
22505 return 0;
22506 }
22507 _ACEOF
22508 rm -f conftest.$ac_objext
22509 if { (ac_try="$ac_compile"
22510 case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_compile") 2>conftest.er1
22516 ac_status=$?
22517 grep -v '^ *+' conftest.er1 >conftest.err
22518 rm -f conftest.er1
22519 cat conftest.err >&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } &&
22522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22523 { (case "(($ac_try" in
22524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22525 *) ac_try_echo=$ac_try;;
22526 esac
22527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22528 (eval "$ac_try") 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try='test -s conftest.$ac_objext'
22533 { (case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22536 esac
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_try") 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22542 am_cv_prog_cc_stdc="$ac_arg"; break
22543 else
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22546
22547
22548 fi
22549
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 done
22552 CC="$ac_save_CC"
22553
22554 fi
22555
22556 if test -z "$am_cv_prog_cc_stdc"; then
22557 { echo "$as_me:$LINENO: result: none needed" >&5
22558 echo "${ECHO_T}none needed" >&6; }
22559 else
22560 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
22561 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
22562 fi
22563 case "x$am_cv_prog_cc_stdc" in
22564 x|xno) ;;
22565 *) CC="$CC $am_cv_prog_cc_stdc" ;;
22566 esac
22567
22568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22570 if test "${ac_cv_header_stdc+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573 cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h. */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 #include <stdlib.h>
22580 #include <stdarg.h>
22581 #include <string.h>
22582 #include <float.h>
22583
22584 int
22585 main ()
22586 {
22587
22588 ;
22589 return 0;
22590 }
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } &&
22606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22607 { (case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22610 esac
22611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22612 (eval "$ac_try") 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; } &&
22616 { ac_try='test -s conftest.$ac_objext'
22617 { (case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_try") 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22626 ac_cv_header_stdc=yes
22627 else
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 ac_cv_header_stdc=no
22632 fi
22633
22634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22635
22636 if test $ac_cv_header_stdc = yes; then
22637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22638 cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h. */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h. */
22644 #include <string.h>
22645
22646 _ACEOF
22647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22648 $EGREP "memchr" >/dev/null 2>&1; then
22649 :
22650 else
22651 ac_cv_header_stdc=no
22652 fi
22653 rm -f conftest*
22654
22655 fi
22656
22657 if test $ac_cv_header_stdc = yes; then
22658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 #include <stdlib.h>
22666
22667 _ACEOF
22668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22669 $EGREP "free" >/dev/null 2>&1; then
22670 :
22671 else
22672 ac_cv_header_stdc=no
22673 fi
22674 rm -f conftest*
22675
22676 fi
22677
22678 if test $ac_cv_header_stdc = yes; then
22679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22680 if test "$cross_compiling" = yes; then
22681 :
22682 else
22683 cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h. */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 #include <ctype.h>
22690 #include <stdlib.h>
22691 #if ((' ' & 0x0FF) == 0x020)
22692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22694 #else
22695 # define ISLOWER(c) \
22696 (('a' <= (c) && (c) <= 'i') \
22697 || ('j' <= (c) && (c) <= 'r') \
22698 || ('s' <= (c) && (c) <= 'z'))
22699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22700 #endif
22701
22702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22703 int
22704 main ()
22705 {
22706 int i;
22707 for (i = 0; i < 256; i++)
22708 if (XOR (islower (i), ISLOWER (i))
22709 || toupper (i) != TOUPPER (i))
22710 return 2;
22711 return 0;
22712 }
22713 _ACEOF
22714 rm -f conftest$ac_exeext
22715 if { (ac_try="$ac_link"
22716 case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_link") 2>&5
22722 ac_status=$?
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22725 { (case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_try") 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }; then
22734 :
22735 else
22736 echo "$as_me: program exited with status $ac_status" >&5
22737 echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740 ( exit $ac_status )
22741 ac_cv_header_stdc=no
22742 fi
22743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22744 fi
22745
22746
22747 fi
22748 fi
22749 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22750 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22751 if test $ac_cv_header_stdc = yes; then
22752
22753 cat >>confdefs.h <<\_ACEOF
22754 #define STDC_HEADERS 1
22755 _ACEOF
22756
22757 fi
22758
22759
22760 PACKAGE_CFLAGS="-Wall -Wformat"
22761
22762
22763
22764 # Checks for typedefs, structures, and compiler characteristics.
22765 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22766 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
22767 if test "${ac_cv_header_stdbool_h+set}" = set; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 else
22770 cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h. */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776
22777 #include <stdbool.h>
22778 #ifndef bool
22779 "error: bool is not defined"
22780 #endif
22781 #ifndef false
22782 "error: false is not defined"
22783 #endif
22784 #if false
22785 "error: false is not 0"
22786 #endif
22787 #ifndef true
22788 "error: true is not defined"
22789 #endif
22790 #if true != 1
22791 "error: true is not 1"
22792 #endif
22793 #ifndef __bool_true_false_are_defined
22794 "error: __bool_true_false_are_defined is not defined"
22795 #endif
22796
22797 struct s { _Bool s: 1; _Bool t; } s;
22798
22799 char a[true == 1 ? 1 : -1];
22800 char b[false == 0 ? 1 : -1];
22801 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22802 char d[(bool) 0.5 == true ? 1 : -1];
22803 bool e = &s;
22804 char f[(_Bool) 0.0 == false ? 1 : -1];
22805 char g[true];
22806 char h[sizeof (_Bool)];
22807 char i[sizeof s.t];
22808 enum { j = false, k = true, l = false * true, m = true * 256 };
22809 _Bool n[m];
22810 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22811 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22812 # if defined __xlc__ || defined __GNUC__
22813 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22814 reported by James Lemley on 2005-10-05; see
22815 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22816 This test is not quite right, since xlc is allowed to
22817 reject this program, as the initializer for xlcbug is
22818 not one of the forms that C requires support for.
22819 However, doing the test right would require a runtime
22820 test, and that would make cross-compilation harder.
22821 Let us hope that IBM fixes the xlc bug, and also adds
22822 support for this kind of constant expression. In the
22823 meantime, this test will reject xlc, which is OK, since
22824 our stdbool.h substitute should suffice. We also test
22825 this with GCC, where it should work, to detect more
22826 quickly whether someone messes up the test in the
22827 future. */
22828 char digs[] = "0123456789";
22829 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22830 # endif
22831 /* Catch a bug in an HP-UX C compiler. See
22832 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22833 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22834 */
22835 _Bool q = true;
22836 _Bool *pq = &q;
22837
22838 int
22839 main ()
22840 {
22841
22842 *pq |= q;
22843 *pq |= ! q;
22844 /* Refer to every declared value, to avoid compiler optimizations. */
22845 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22846 + !m + !n + !o + !p + !q + !pq);
22847
22848 ;
22849 return 0;
22850 }
22851 _ACEOF
22852 rm -f conftest.$ac_objext
22853 if { (ac_try="$ac_compile"
22854 case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859 (eval "$ac_compile") 2>conftest.er1
22860 ac_status=$?
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } &&
22866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22867 { (case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_try") 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; } &&
22876 { ac_try='test -s conftest.$ac_objext'
22877 { (case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22880 esac
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882 (eval "$ac_try") 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); }; }; then
22886 ac_cv_header_stdbool_h=yes
22887 else
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891 ac_cv_header_stdbool_h=no
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895 fi
22896 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
22897 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
22898 { echo "$as_me:$LINENO: checking for _Bool" >&5
22899 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
22900 if test "${ac_cv_type__Bool+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903 cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h. */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 $ac_includes_default
22910 typedef _Bool ac__type_new_;
22911 int
22912 main ()
22913 {
22914 if ((ac__type_new_ *) 0)
22915 return 0;
22916 if (sizeof (ac__type_new_))
22917 return 0;
22918 ;
22919 return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext
22923 if { (ac_try="$ac_compile"
22924 case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_compile") 2>conftest.er1
22930 ac_status=$?
22931 grep -v '^ *+' conftest.er1 >conftest.err
22932 rm -f conftest.er1
22933 cat conftest.err >&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } &&
22936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22937 { (case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22940 esac
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_try") 2>&5
22943 ac_status=$?
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; } &&
22946 { ac_try='test -s conftest.$ac_objext'
22947 { (case "(($ac_try" in
22948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22950 esac
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_try") 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ac_cv_type__Bool=yes
22957 else
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961 ac_cv_type__Bool=no
22962 fi
22963
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965 fi
22966 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
22967 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
22968 if test $ac_cv_type__Bool = yes; then
22969
22970 cat >>confdefs.h <<_ACEOF
22971 #define HAVE__BOOL 1
22972 _ACEOF
22973
22974
22975 fi
22976
22977 if test $ac_cv_header_stdbool_h = yes; then
22978
22979 cat >>confdefs.h <<\_ACEOF
22980 #define HAVE_STDBOOL_H 1
22981 _ACEOF
22982
22983 fi
22984
22985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22987 if test "${ac_cv_c_const+set}" = set; then
22988 echo $ECHO_N "(cached) $ECHO_C" >&6
22989 else
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h. */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996
22997 int
22998 main ()
22999 {
23000 /* FIXME: Include the comments suggested by Paul. */
23001 #ifndef __cplusplus
23002 /* Ultrix mips cc rejects this. */
23003 typedef int charset[2];
23004 const charset x;
23005 /* SunOS 4.1.1 cc rejects this. */
23006 char const *const *ccp;
23007 char **p;
23008 /* NEC SVR4.0.2 mips cc rejects this. */
23009 struct point {int x, y;};
23010 static struct point const zero = {0,0};
23011 /* AIX XL C 1.02.0.0 rejects this.
23012 It does not let you subtract one const X* pointer from another in
23013 an arm of an if-expression whose if-part is not a constant
23014 expression */
23015 const char *g = "string";
23016 ccp = &g + (g ? g-g : 0);
23017 /* HPUX 7.0 cc rejects these. */
23018 ++ccp;
23019 p = (char**) ccp;
23020 ccp = (char const *const *) p;
23021 { /* SCO 3.2v4 cc rejects this. */
23022 char *t;
23023 char const *s = 0 ? (char *) 0 : (char const *) 0;
23024
23025 *t++ = 0;
23026 if (s) return 0;
23027 }
23028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23029 int x[] = {25, 17};
23030 const int *foo = &x[0];
23031 ++foo;
23032 }
23033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23034 typedef const int *iptr;
23035 iptr p = 0;
23036 ++p;
23037 }
23038 { /* AIX XL C 1.02.0.0 rejects this saying
23039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23040 struct s { int j; const int *ap[3]; };
23041 struct s *b; b->j = 5;
23042 }
23043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23044 const int foo = 10;
23045 if (!foo) return 0;
23046 }
23047 return !x[0] && !zero.x;
23048 #endif
23049
23050 ;
23051 return 0;
23052 }
23053 _ACEOF
23054 rm -f conftest.$ac_objext
23055 if { (ac_try="$ac_compile"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_compile") 2>conftest.er1
23062 ac_status=$?
23063 grep -v '^ *+' conftest.er1 >conftest.err
23064 rm -f conftest.er1
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } &&
23068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23069 { (case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_try") 2>&5
23075 ac_status=$?
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); }; } &&
23078 { ac_try='test -s conftest.$ac_objext'
23079 { (case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23082 esac
23083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23084 (eval "$ac_try") 2>&5
23085 ac_status=$?
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 ac_cv_c_const=yes
23089 else
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 ac_cv_c_const=no
23094 fi
23095
23096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 fi
23098 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23099 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23100 if test $ac_cv_c_const = no; then
23101
23102 cat >>confdefs.h <<\_ACEOF
23103 #define const
23104 _ACEOF
23105
23106 fi
23107
23108 { echo "$as_me:$LINENO: checking for inline" >&5
23109 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23110 if test "${ac_cv_c_inline+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113 ac_cv_c_inline=no
23114 for ac_kw in inline __inline__ __inline; do
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h. */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 #ifndef __cplusplus
23122 typedef int foo_t;
23123 static $ac_kw foo_t static_foo () {return 0; }
23124 $ac_kw foo_t foo () {return 0; }
23125 #endif
23126
23127 _ACEOF
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_compile") 2>conftest.er1
23136 ac_status=$?
23137 grep -v '^ *+' conftest.er1 >conftest.err
23138 rm -f conftest.er1
23139 cat conftest.err >&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); } &&
23142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23143 { (case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_try") 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; } &&
23152 { ac_try='test -s conftest.$ac_objext'
23153 { (case "(($ac_try" in
23154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155 *) ac_try_echo=$ac_try;;
23156 esac
23157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23158 (eval "$ac_try") 2>&5
23159 ac_status=$?
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; }; then
23162 ac_cv_c_inline=$ac_kw
23163 else
23164 echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23166
23167
23168 fi
23169
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171 test "$ac_cv_c_inline" != no && break
23172 done
23173
23174 fi
23175 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23176 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23177
23178
23179 case $ac_cv_c_inline in
23180 inline | yes) ;;
23181 *)
23182 case $ac_cv_c_inline in
23183 no) ac_val=;;
23184 *) ac_val=$ac_cv_c_inline;;
23185 esac
23186 cat >>confdefs.h <<_ACEOF
23187 #ifndef __cplusplus
23188 #define inline $ac_val
23189 #endif
23190 _ACEOF
23191 ;;
23192 esac
23193
23194 { echo "$as_me:$LINENO: checking for off_t" >&5
23195 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23196 if test "${ac_cv_type_off_t+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199 cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h. */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 $ac_includes_default
23206 typedef off_t ac__type_new_;
23207 int
23208 main ()
23209 {
23210 if ((ac__type_new_ *) 0)
23211 return 0;
23212 if (sizeof (ac__type_new_))
23213 return 0;
23214 ;
23215 return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_compile") 2>conftest.er1
23226 ac_status=$?
23227 grep -v '^ *+' conftest.er1 >conftest.err
23228 rm -f conftest.er1
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } &&
23232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23233 { (case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23236 esac
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238 (eval "$ac_try") 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
23243 { (case "(($ac_try" in
23244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245 *) ac_try_echo=$ac_try;;
23246 esac
23247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23248 (eval "$ac_try") 2>&5
23249 ac_status=$?
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 ac_cv_type_off_t=yes
23253 else
23254 echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23256
23257 ac_cv_type_off_t=no
23258 fi
23259
23260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23261 fi
23262 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23263 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23264 if test $ac_cv_type_off_t = yes; then
23265 :
23266 else
23267
23268 cat >>confdefs.h <<_ACEOF
23269 #define off_t long int
23270 _ACEOF
23271
23272 fi
23273
23274 { echo "$as_me:$LINENO: checking for size_t" >&5
23275 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23276 if test "${ac_cv_type_size_t+set}" = set; then
23277 echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279 cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h. */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 $ac_includes_default
23286 typedef size_t ac__type_new_;
23287 int
23288 main ()
23289 {
23290 if ((ac__type_new_ *) 0)
23291 return 0;
23292 if (sizeof (ac__type_new_))
23293 return 0;
23294 ;
23295 return 0;
23296 }
23297 _ACEOF
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305 (eval "$ac_compile") 2>conftest.er1
23306 ac_status=$?
23307 grep -v '^ *+' conftest.er1 >conftest.err
23308 rm -f conftest.er1
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } &&
23312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23313 { (case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23316 esac
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318 (eval "$ac_try") 2>&5
23319 ac_status=$?
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest.$ac_objext'
23323 { (case "(($ac_try" in
23324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325 *) ac_try_echo=$ac_try;;
23326 esac
23327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328 (eval "$ac_try") 2>&5
23329 ac_status=$?
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); }; }; then
23332 ac_cv_type_size_t=yes
23333 else
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23336
23337 ac_cv_type_size_t=no
23338 fi
23339
23340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23341 fi
23342 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23343 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23344 if test $ac_cv_type_size_t = yes; then
23345 :
23346 else
23347
23348 cat >>confdefs.h <<_ACEOF
23349 #define size_t unsigned int
23350 _ACEOF
23351
23352 fi
23353
23354 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23355 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23356 if test "${ac_cv_header_time+set}" = set; then
23357 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 else
23359 cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h. */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 #include <sys/types.h>
23366 #include <sys/time.h>
23367 #include <time.h>
23368
23369 int
23370 main ()
23371 {
23372 if ((struct tm *) 0)
23373 return 0;
23374 ;
23375 return 0;
23376 }
23377 _ACEOF
23378 rm -f conftest.$ac_objext
23379 if { (ac_try="$ac_compile"
23380 case "(($ac_try" in
23381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23382 *) ac_try_echo=$ac_try;;
23383 esac
23384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23385 (eval "$ac_compile") 2>conftest.er1
23386 ac_status=$?
23387 grep -v '^ *+' conftest.er1 >conftest.err
23388 rm -f conftest.er1
23389 cat conftest.err >&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); } &&
23392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23393 { (case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_try") 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; } &&
23402 { ac_try='test -s conftest.$ac_objext'
23403 { (case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_try") 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
23412 ac_cv_header_time=yes
23413 else
23414 echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23416
23417 ac_cv_header_time=no
23418 fi
23419
23420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23421 fi
23422 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23423 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23424 if test $ac_cv_header_time = yes; then
23425
23426 cat >>confdefs.h <<\_ACEOF
23427 #define TIME_WITH_SYS_TIME 1
23428 _ACEOF
23429
23430 fi
23431
23432
23433 # Checks for library functions.
23434 { echo "$as_me:$LINENO: checking for error_at_line" >&5
23435 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
23436 if test "${ac_cv_lib_error_at_line+set}" = set; then
23437 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 else
23439 cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h. */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 $ac_includes_default
23446 int
23447 main ()
23448 {
23449 error_at_line (0, 0, "", 0, "");
23450 ;
23451 return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext conftest$ac_exeext
23455 if { (ac_try="$ac_link"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_link") 2>conftest.er1
23462 ac_status=$?
23463 grep -v '^ *+' conftest.er1 >conftest.err
23464 rm -f conftest.er1
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } &&
23468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23469 { (case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_try") 2>&5
23475 ac_status=$?
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; } &&
23478 { ac_try='test -s conftest$ac_exeext'
23479 { (case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23482 esac
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484 (eval "$ac_try") 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
23488 ac_cv_lib_error_at_line=yes
23489 else
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 ac_cv_lib_error_at_line=no
23494 fi
23495
23496 rm -f core conftest.err conftest.$ac_objext \
23497 conftest$ac_exeext conftest.$ac_ext
23498 fi
23499 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23500 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
23501 if test $ac_cv_lib_error_at_line = no; then
23502 case " $LIBOBJS " in
23503 *" error.$ac_objext "* ) ;;
23504 *) LIBOBJS="$LIBOBJS error.$ac_objext"
23505 ;;
23506 esac
23507
23508 fi
23509
23510 #AC_FUNC_MALLOC
23511
23512
23513 for ac_header in sys/select.h sys/socket.h
23514 do
23515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23520 echo $ECHO_N "(cached) $ECHO_C" >&6
23521 fi
23522 ac_res=`eval echo '${'$as_ac_Header'}'`
23523 { echo "$as_me:$LINENO: result: $ac_res" >&5
23524 echo "${ECHO_T}$ac_res" >&6; }
23525 else
23526 # Is the header compilable?
23527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23529 cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h. */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23535 $ac_includes_default
23536 #include <$ac_header>
23537 _ACEOF
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23546 ac_status=$?
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } &&
23552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23553 { (case "(($ac_try" in
23554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555 *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558 (eval "$ac_try") 2>&5
23559 ac_status=$?
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; } &&
23562 { ac_try='test -s conftest.$ac_objext'
23563 { (case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23566 esac
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_try") 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_header_compiler=yes
23573 else
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577 ac_header_compiler=no
23578 fi
23579
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23582 echo "${ECHO_T}$ac_header_compiler" >&6; }
23583
23584 # Is the header present?
23585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23587 cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h. */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 #include <$ac_header>
23594 _ACEOF
23595 if { (ac_try="$ac_cpp conftest.$ac_ext"
23596 case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23602 ac_status=$?
23603 grep -v '^ *+' conftest.er1 >conftest.err
23604 rm -f conftest.er1
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } >/dev/null; then
23608 if test -s conftest.err; then
23609 ac_cpp_err=$ac_c_preproc_warn_flag
23610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23611 else
23612 ac_cpp_err=
23613 fi
23614 else
23615 ac_cpp_err=yes
23616 fi
23617 if test -z "$ac_cpp_err"; then
23618 ac_header_preproc=yes
23619 else
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623 ac_header_preproc=no
23624 fi
23625
23626 rm -f conftest.err conftest.$ac_ext
23627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23628 echo "${ECHO_T}$ac_header_preproc" >&6; }
23629
23630 # So? What about this header?
23631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23632 yes:no: )
23633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23637 ac_header_preproc=yes
23638 ;;
23639 no:yes:* )
23640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23652 ( cat <<\_ASBOX
23653 ## --------------------------------- ##
23654 ## Report this to BUG-REPORT-ADDRESS ##
23655 ## --------------------------------- ##
23656 _ASBOX
23657 ) | sed "s/^/$as_me: WARNING: /" >&2
23658 ;;
23659 esac
23660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23663 echo $ECHO_N "(cached) $ECHO_C" >&6
23664 else
23665 eval "$as_ac_Header=\$ac_header_preproc"
23666 fi
23667 ac_res=`eval echo '${'$as_ac_Header'}'`
23668 { echo "$as_me:$LINENO: result: $ac_res" >&5
23669 echo "${ECHO_T}$ac_res" >&6; }
23670
23671 fi
23672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23673 cat >>confdefs.h <<_ACEOF
23674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23675 _ACEOF
23676
23677 fi
23678
23679 done
23680
23681 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
23682 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
23683 if test "${ac_cv_func_select_args+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23686 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23687 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23688 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23689 cat >conftest.$ac_ext <<_ACEOF
23690 /* confdefs.h. */
23691 _ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h. */
23695 $ac_includes_default
23696 #if HAVE_SYS_SELECT_H
23697 # include <sys/select.h>
23698 #endif
23699 #if HAVE_SYS_SOCKET_H
23700 # include <sys/socket.h>
23701 #endif
23702
23703 int
23704 main ()
23705 {
23706 extern int select ($ac_arg1,
23707 $ac_arg234, $ac_arg234, $ac_arg234,
23708 $ac_arg5);
23709 ;
23710 return 0;
23711 }
23712 _ACEOF
23713 rm -f conftest.$ac_objext
23714 if { (ac_try="$ac_compile"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_compile") 2>conftest.er1
23721 ac_status=$?
23722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
23727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; } &&
23737 { ac_try='test -s conftest.$ac_objext'
23738 { (case "(($ac_try" in
23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740 *) ac_try_echo=$ac_try;;
23741 esac
23742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743 (eval "$ac_try") 2>&5
23744 ac_status=$?
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; }; then
23747 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23748 else
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752
23753 fi
23754
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756 done
23757 done
23758 done
23759 # Provide a safe default value.
23760 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
23761
23762 fi
23763 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
23764 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
23765 ac_save_IFS=$IFS; IFS=','
23766 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23767 IFS=$ac_save_IFS
23768 shift
23769
23770 cat >>confdefs.h <<_ACEOF
23771 #define SELECT_TYPE_ARG1 $1
23772 _ACEOF
23773
23774
23775 cat >>confdefs.h <<_ACEOF
23776 #define SELECT_TYPE_ARG234 ($2)
23777 _ACEOF
23778
23779
23780 cat >>confdefs.h <<_ACEOF
23781 #define SELECT_TYPE_ARG5 ($3)
23782 _ACEOF
23783
23784 rm -f conftest*
23785
23786
23787 for ac_func in select
23788 do
23789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23793 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 else
23795 cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h. */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23803 #define $ac_func innocuous_$ac_func
23804
23805 /* System header to define __stub macros and hopefully few prototypes,
23806 which can conflict with char $ac_func (); below.
23807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23808 <limits.h> exists even on freestanding compilers. */
23809
23810 #ifdef __STDC__
23811 # include <limits.h>
23812 #else
23813 # include <assert.h>
23814 #endif
23815
23816 #undef $ac_func
23817
23818 /* Override any GCC internal prototype to avoid an error.
23819 Use char because int might match the return type of a GCC
23820 builtin and then its argument prototype would still apply. */
23821 #ifdef __cplusplus
23822 extern "C"
23823 #endif
23824 char $ac_func ();
23825 /* The GNU C library defines this for functions which it implements
23826 to always fail with ENOSYS. Some functions are actually named
23827 something starting with __ and the normal name is an alias. */
23828 #if defined __stub_$ac_func || defined __stub___$ac_func
23829 choke me
23830 #endif
23831
23832 int
23833 main ()
23834 {
23835 return $ac_func ();
23836 ;
23837 return 0;
23838 }
23839 _ACEOF
23840 rm -f conftest.$ac_objext conftest$ac_exeext
23841 if { (ac_try="$ac_link"
23842 case "(($ac_try" in
23843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23844 *) ac_try_echo=$ac_try;;
23845 esac
23846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23847 (eval "$ac_link") 2>conftest.er1
23848 ac_status=$?
23849 grep -v '^ *+' conftest.er1 >conftest.err
23850 rm -f conftest.er1
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
23854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23855 { (case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858 esac
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_try") 2>&5
23861 ac_status=$?
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); }; } &&
23864 { ac_try='test -s conftest$ac_exeext'
23865 { (case "(($ac_try" in
23866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23867 *) ac_try_echo=$ac_try;;
23868 esac
23869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23870 (eval "$ac_try") 2>&5
23871 ac_status=$?
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); }; }; then
23874 eval "$as_ac_var=yes"
23875 else
23876 echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23878
23879 eval "$as_ac_var=no"
23880 fi
23881
23882 rm -f core conftest.err conftest.$ac_objext \
23883 conftest$ac_exeext conftest.$ac_ext
23884 fi
23885 ac_res=`eval echo '${'$as_ac_var'}'`
23886 { echo "$as_me:$LINENO: result: $ac_res" >&5
23887 echo "${ECHO_T}$ac_res" >&6; }
23888 if test `eval echo '${'$as_ac_var'}'` = yes; then
23889 cat >>confdefs.h <<_ACEOF
23890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23891 _ACEOF
23892
23893 fi
23894 done
23895
23896
23897 #CPPFLAGS="$CPPFLAGS -I"
23898
23899 DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir)"
23900
23901 #CPPFLAGS="${GLIB_CFLAGS}"
23902 #AC_SUBST(CPPFLAGS)
23903
23904 lttctlincludedir="${includedir}/liblttctl"
23905
23906
23907
23908
23909
23910
23911 ac_config_files="$ac_config_files Makefile liblttctl/Makefile lttctl/Makefile lttd/Makefile facilities/Makefile"
23912
23913 cat >confcache <<\_ACEOF
23914 # This file is a shell script that caches the results of configure
23915 # tests run on this system so they can be shared between configure
23916 # scripts and configure runs, see configure's option --config-cache.
23917 # It is not useful on other systems. If it contains results you don't
23918 # want to keep, you may remove or edit it.
23919 #
23920 # config.status only pays attention to the cache file if you give it
23921 # the --recheck option to rerun configure.
23922 #
23923 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23925 # following values.
23926
23927 _ACEOF
23928
23929 # The following way of writing the cache mishandles newlines in values,
23930 # but we know of no workaround that is simple, portable, and efficient.
23931 # So, we kill variables containing newlines.
23932 # Ultrix sh set writes to stderr and can't be redirected directly,
23933 # and sets the high bit in the cache file unless we assign to the vars.
23934 (
23935 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23936 eval ac_val=\$$ac_var
23937 case $ac_val in #(
23938 *${as_nl}*)
23939 case $ac_var in #(
23940 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23941 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23942 esac
23943 case $ac_var in #(
23944 _ | IFS | as_nl) ;; #(
23945 *) $as_unset $ac_var ;;
23946 esac ;;
23947 esac
23948 done
23949
23950 (set) 2>&1 |
23951 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23952 *${as_nl}ac_space=\ *)
23953 # `set' does not quote correctly, so add quotes (double-quote
23954 # substitution turns \\\\ into \\, and sed turns \\ into \).
23955 sed -n \
23956 "s/'/'\\\\''/g;
23957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23958 ;; #(
23959 *)
23960 # `set' quotes correctly as required by POSIX, so do not add quotes.
23961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23962 ;;
23963 esac |
23964 sort
23965 ) |
23966 sed '
23967 /^ac_cv_env_/b end
23968 t clear
23969 :clear
23970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23971 t end
23972 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23973 :end' >>confcache
23974 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23975 if test -w "$cache_file"; then
23976 test "x$cache_file" != "x/dev/null" &&
23977 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23978 echo "$as_me: updating cache $cache_file" >&6;}
23979 cat confcache >$cache_file
23980 else
23981 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23982 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23983 fi
23984 fi
23985 rm -f confcache
23986
23987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23988 # Let make expand exec_prefix.
23989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23990
23991 DEFS=-DHAVE_CONFIG_H
23992
23993 ac_libobjs=
23994 ac_ltlibobjs=
23995 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23996 # 1. Remove the extension, and $U if already installed.
23997 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23998 ac_i=`echo "$ac_i" | sed "$ac_script"`
23999 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24000 # will be set to the directory where LIBOBJS objects are built.
24001 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24002 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24003 done
24004 LIBOBJS=$ac_libobjs
24005
24006 LTLIBOBJS=$ac_ltlibobjs
24007
24008
24009 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24010 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24011 Usually this means the macro was only invoked conditionally." >&5
24012 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24013 Usually this means the macro was only invoked conditionally." >&2;}
24014 { (exit 1); exit 1; }; }
24015 fi
24016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24017 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24018 Usually this means the macro was only invoked conditionally." >&5
24019 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24020 Usually this means the macro was only invoked conditionally." >&2;}
24021 { (exit 1); exit 1; }; }
24022 fi
24023 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24024 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24025 Usually this means the macro was only invoked conditionally." >&5
24026 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24027 Usually this means the macro was only invoked conditionally." >&2;}
24028 { (exit 1); exit 1; }; }
24029 fi
24030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24031 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24032 Usually this means the macro was only invoked conditionally." >&5
24033 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24034 Usually this means the macro was only invoked conditionally." >&2;}
24035 { (exit 1); exit 1; }; }
24036 fi
24037 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24038 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24039 Usually this means the macro was only invoked conditionally." >&5
24040 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24041 Usually this means the macro was only invoked conditionally." >&2;}
24042 { (exit 1); exit 1; }; }
24043 fi
24044
24045 : ${CONFIG_STATUS=./config.status}
24046 ac_clean_files_save=$ac_clean_files
24047 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24048 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24049 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24050 cat >$CONFIG_STATUS <<_ACEOF
24051 #! $SHELL
24052 # Generated by $as_me.
24053 # Run this file to recreate the current configuration.
24054 # Compiler output produced by configure, useful for debugging
24055 # configure, is in config.log if it exists.
24056
24057 debug=false
24058 ac_cs_recheck=false
24059 ac_cs_silent=false
24060 SHELL=\${CONFIG_SHELL-$SHELL}
24061 _ACEOF
24062
24063 cat >>$CONFIG_STATUS <<\_ACEOF
24064 ## --------------------- ##
24065 ## M4sh Initialization. ##
24066 ## --------------------- ##
24067
24068 # Be Bourne compatible
24069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24070 emulate sh
24071 NULLCMD=:
24072 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24073 # is contrary to our usage. Disable this feature.
24074 alias -g '${1+"$@"}'='"$@"'
24075 setopt NO_GLOB_SUBST
24076 else
24077 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24078 fi
24079 BIN_SH=xpg4; export BIN_SH # for Tru64
24080 DUALCASE=1; export DUALCASE # for MKS sh
24081
24082
24083 # PATH needs CR
24084 # Avoid depending upon Character Ranges.
24085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24088 as_cr_digits='0123456789'
24089 as_cr_alnum=$as_cr_Letters$as_cr_digits
24090
24091 # The user is always right.
24092 if test "${PATH_SEPARATOR+set}" != set; then
24093 echo "#! /bin/sh" >conf$$.sh
24094 echo "exit 0" >>conf$$.sh
24095 chmod +x conf$$.sh
24096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24097 PATH_SEPARATOR=';'
24098 else
24099 PATH_SEPARATOR=:
24100 fi
24101 rm -f conf$$.sh
24102 fi
24103
24104 # Support unset when possible.
24105 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24106 as_unset=unset
24107 else
24108 as_unset=false
24109 fi
24110
24111
24112 # IFS
24113 # We need space, tab and new line, in precisely that order. Quoting is
24114 # there to prevent editors from complaining about space-tab.
24115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24116 # splitting by setting IFS to empty value.)
24117 as_nl='
24118 '
24119 IFS=" "" $as_nl"
24120
24121 # Find who we are. Look in the path if we contain no directory separator.
24122 case $0 in
24123 *[\\/]* ) as_myself=$0 ;;
24124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24125 for as_dir in $PATH
24126 do
24127 IFS=$as_save_IFS
24128 test -z "$as_dir" && as_dir=.
24129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24130 done
24131 IFS=$as_save_IFS
24132
24133 ;;
24134 esac
24135 # We did not find ourselves, most probably we were run as `sh COMMAND'
24136 # in which case we are not to be found in the path.
24137 if test "x$as_myself" = x; then
24138 as_myself=$0
24139 fi
24140 if test ! -f "$as_myself"; then
24141 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24142 { (exit 1); exit 1; }
24143 fi
24144
24145 # Work around bugs in pre-3.0 UWIN ksh.
24146 for as_var in ENV MAIL MAILPATH
24147 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24148 done
24149 PS1='$ '
24150 PS2='> '
24151 PS4='+ '
24152
24153 # NLS nuisances.
24154 for as_var in \
24155 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24156 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24157 LC_TELEPHONE LC_TIME
24158 do
24159 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24160 eval $as_var=C; export $as_var
24161 else
24162 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24163 fi
24164 done
24165
24166 # Required to use basename.
24167 if expr a : '\(a\)' >/dev/null 2>&1 &&
24168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24169 as_expr=expr
24170 else
24171 as_expr=false
24172 fi
24173
24174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24175 as_basename=basename
24176 else
24177 as_basename=false
24178 fi
24179
24180
24181 # Name of the executable.
24182 as_me=`$as_basename -- "$0" ||
24183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24184 X"$0" : 'X\(//\)$' \| \
24185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24186 echo X/"$0" |
24187 sed '/^.*\/\([^/][^/]*\)\/*$/{
24188 s//\1/
24189 q
24190 }
24191 /^X\/\(\/\/\)$/{
24192 s//\1/
24193 q
24194 }
24195 /^X\/\(\/\).*/{
24196 s//\1/
24197 q
24198 }
24199 s/.*/./; q'`
24200
24201 # CDPATH.
24202 $as_unset CDPATH
24203
24204
24205
24206 as_lineno_1=$LINENO
24207 as_lineno_2=$LINENO
24208 test "x$as_lineno_1" != "x$as_lineno_2" &&
24209 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24210
24211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24212 # uniformly replaced by the line number. The first 'sed' inserts a
24213 # line-number line after each line using $LINENO; the second 'sed'
24214 # does the real work. The second script uses 'N' to pair each
24215 # line-number line with the line containing $LINENO, and appends
24216 # trailing '-' during substitution so that $LINENO is not a special
24217 # case at line end.
24218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24219 # scripts with optimization help from Paolo Bonzini. Blame Lee
24220 # E. McMahon (1931-1989) for sed's syntax. :-)
24221 sed -n '
24222 p
24223 /[$]LINENO/=
24224 ' <$as_myself |
24225 sed '
24226 s/[$]LINENO.*/&-/
24227 t lineno
24228 b
24229 :lineno
24230 N
24231 :loop
24232 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24233 t loop
24234 s/-\n.*//
24235 ' >$as_me.lineno &&
24236 chmod +x "$as_me.lineno" ||
24237 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24238 { (exit 1); exit 1; }; }
24239
24240 # Don't try to exec as it changes $[0], causing all sort of problems
24241 # (the dirname of $[0] is not the place where we might find the
24242 # original and so on. Autoconf is especially sensitive to this).
24243 . "./$as_me.lineno"
24244 # Exit status is that of the last command.
24245 exit
24246 }
24247
24248
24249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24250 as_dirname=dirname
24251 else
24252 as_dirname=false
24253 fi
24254
24255 ECHO_C= ECHO_N= ECHO_T=
24256 case `echo -n x` in
24257 -n*)
24258 case `echo 'x\c'` in
24259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24260 *) ECHO_C='\c';;
24261 esac;;
24262 *)
24263 ECHO_N='-n';;
24264 esac
24265
24266 if expr a : '\(a\)' >/dev/null 2>&1 &&
24267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24268 as_expr=expr
24269 else
24270 as_expr=false
24271 fi
24272
24273 rm -f conf$$ conf$$.exe conf$$.file
24274 if test -d conf$$.dir; then
24275 rm -f conf$$.dir/conf$$.file
24276 else
24277 rm -f conf$$.dir
24278 mkdir conf$$.dir
24279 fi
24280 echo >conf$$.file
24281 if ln -s conf$$.file conf$$ 2>/dev/null; then
24282 as_ln_s='ln -s'
24283 # ... but there are two gotchas:
24284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24286 # In both cases, we have to default to `cp -p'.
24287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24288 as_ln_s='cp -p'
24289 elif ln conf$$.file conf$$ 2>/dev/null; then
24290 as_ln_s=ln
24291 else
24292 as_ln_s='cp -p'
24293 fi
24294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24295 rmdir conf$$.dir 2>/dev/null
24296
24297 if mkdir -p . 2>/dev/null; then
24298 as_mkdir_p=:
24299 else
24300 test -d ./-p && rmdir ./-p
24301 as_mkdir_p=false
24302 fi
24303
24304 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
24305 # systems may use methods other than mode bits to determine executability.
24306 cat >conf$$.file <<_ASEOF
24307 #! /bin/sh
24308 exit 0
24309 _ASEOF
24310 chmod +x conf$$.file
24311 if test -x conf$$.file >/dev/null 2>&1; then
24312 as_executable_p="test -x"
24313 else
24314 as_executable_p=:
24315 fi
24316 rm -f conf$$.file
24317
24318 # Sed expression to map a string onto a valid CPP name.
24319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24320
24321 # Sed expression to map a string onto a valid variable name.
24322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24323
24324
24325 exec 6>&1
24326
24327 # Save the log message, to keep $[0] and so on meaningful, and to
24328 # report actual input values of CONFIG_FILES etc. instead of their
24329 # values after options handling.
24330 ac_log="
24331 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
24332 generated by GNU Autoconf 2.60. Invocation command line was
24333
24334 CONFIG_FILES = $CONFIG_FILES
24335 CONFIG_HEADERS = $CONFIG_HEADERS
24336 CONFIG_LINKS = $CONFIG_LINKS
24337 CONFIG_COMMANDS = $CONFIG_COMMANDS
24338 $ $0 $@
24339
24340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24341 "
24342
24343 _ACEOF
24344
24345 cat >>$CONFIG_STATUS <<_ACEOF
24346 # Files that config.status was made for.
24347 config_files="$ac_config_files"
24348 config_headers="$ac_config_headers"
24349 config_commands="$ac_config_commands"
24350
24351 _ACEOF
24352
24353 cat >>$CONFIG_STATUS <<\_ACEOF
24354 ac_cs_usage="\
24355 \`$as_me' instantiates files from templates according to the
24356 current configuration.
24357
24358 Usage: $0 [OPTIONS] [FILE]...
24359
24360 -h, --help print this help, then exit
24361 -V, --version print version number, then exit
24362 -q, --quiet do not print progress messages
24363 -d, --debug don't remove temporary files
24364 --recheck update $as_me by reconfiguring in the same conditions
24365 --file=FILE[:TEMPLATE]
24366 instantiate the configuration file FILE
24367 --header=FILE[:TEMPLATE]
24368 instantiate the configuration header FILE
24369
24370 Configuration files:
24371 $config_files
24372
24373 Configuration headers:
24374 $config_headers
24375
24376 Configuration commands:
24377 $config_commands
24378
24379 Report bugs to <bug-autoconf@gnu.org>."
24380
24381 _ACEOF
24382 cat >>$CONFIG_STATUS <<_ACEOF
24383 ac_cs_version="\\
24384 FULL-PACKAGE-NAME config.status VERSION
24385 configured by $0, generated by GNU Autoconf 2.60,
24386 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24387
24388 Copyright (C) 2006 Free Software Foundation, Inc.
24389 This config.status script is free software; the Free Software Foundation
24390 gives unlimited permission to copy, distribute and modify it."
24391
24392 ac_pwd='$ac_pwd'
24393 srcdir='$srcdir'
24394 INSTALL='$INSTALL'
24395 _ACEOF
24396
24397 cat >>$CONFIG_STATUS <<\_ACEOF
24398 # If no file are specified by the user, then we need to provide default
24399 # value. By we need to know if files were specified by the user.
24400 ac_need_defaults=:
24401 while test $# != 0
24402 do
24403 case $1 in
24404 --*=*)
24405 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24406 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24407 ac_shift=:
24408 ;;
24409 *)
24410 ac_option=$1
24411 ac_optarg=$2
24412 ac_shift=shift
24413 ;;
24414 esac
24415
24416 case $ac_option in
24417 # Handling of the options.
24418 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24419 ac_cs_recheck=: ;;
24420 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24421 echo "$ac_cs_version"; exit ;;
24422 --debug | --debu | --deb | --de | --d | -d )
24423 debug=: ;;
24424 --file | --fil | --fi | --f )
24425 $ac_shift
24426 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24427 ac_need_defaults=false;;
24428 --header | --heade | --head | --hea )
24429 $ac_shift
24430 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24431 ac_need_defaults=false;;
24432 --he | --h)
24433 # Conflict between --help and --header
24434 { echo "$as_me: error: ambiguous option: $1
24435 Try \`$0 --help' for more information." >&2
24436 { (exit 1); exit 1; }; };;
24437 --help | --hel | -h )
24438 echo "$ac_cs_usage"; exit ;;
24439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24441 ac_cs_silent=: ;;
24442
24443 # This is an error.
24444 -*) { echo "$as_me: error: unrecognized option: $1
24445 Try \`$0 --help' for more information." >&2
24446 { (exit 1); exit 1; }; } ;;
24447
24448 *) ac_config_targets="$ac_config_targets $1"
24449 ac_need_defaults=false ;;
24450
24451 esac
24452 shift
24453 done
24454
24455 ac_configure_extra_args=
24456
24457 if $ac_cs_silent; then
24458 exec 6>/dev/null
24459 ac_configure_extra_args="$ac_configure_extra_args --silent"
24460 fi
24461
24462 _ACEOF
24463 cat >>$CONFIG_STATUS <<_ACEOF
24464 if \$ac_cs_recheck; then
24465 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24466 CONFIG_SHELL=$SHELL
24467 export CONFIG_SHELL
24468 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24469 fi
24470
24471 _ACEOF
24472 cat >>$CONFIG_STATUS <<\_ACEOF
24473 exec 5>>config.log
24474 {
24475 echo
24476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24477 ## Running $as_me. ##
24478 _ASBOX
24479 echo "$ac_log"
24480 } >&5
24481
24482 _ACEOF
24483 cat >>$CONFIG_STATUS <<_ACEOF
24484 #
24485 # INIT-COMMANDS
24486 #
24487 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24488
24489 _ACEOF
24490
24491 cat >>$CONFIG_STATUS <<\_ACEOF
24492
24493 # Handling of arguments.
24494 for ac_config_target in $ac_config_targets
24495 do
24496 case $ac_config_target in
24497 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24498 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24499 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24500 "liblttctl/Makefile") CONFIG_FILES="$CONFIG_FILES liblttctl/Makefile" ;;
24501 "lttctl/Makefile") CONFIG_FILES="$CONFIG_FILES lttctl/Makefile" ;;
24502 "lttd/Makefile") CONFIG_FILES="$CONFIG_FILES lttd/Makefile" ;;
24503 "facilities/Makefile") CONFIG_FILES="$CONFIG_FILES facilities/Makefile" ;;
24504
24505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24507 { (exit 1); exit 1; }; };;
24508 esac
24509 done
24510
24511
24512 # If the user did not use the arguments to specify the items to instantiate,
24513 # then the envvar interface is used. Set only those that are not.
24514 # We use the long form for the default assignment because of an extremely
24515 # bizarre bug on SunOS 4.1.3.
24516 if $ac_need_defaults; then
24517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24520 fi
24521
24522 # Have a temporary directory for convenience. Make it in the build tree
24523 # simply because there is no reason against having it here, and in addition,
24524 # creating and moving files from /tmp can sometimes cause problems.
24525 # Hook for its removal unless debugging.
24526 # Note that there is a small window in which the directory will not be cleaned:
24527 # after its creation but before its name has been assigned to `$tmp'.
24528 $debug ||
24529 {
24530 tmp=
24531 trap 'exit_status=$?
24532 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24533 ' 0
24534 trap '{ (exit 1); exit 1; }' 1 2 13 15
24535 }
24536 # Create a (secure) tmp directory for tmp files.
24537
24538 {
24539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24540 test -n "$tmp" && test -d "$tmp"
24541 } ||
24542 {
24543 tmp=./conf$$-$RANDOM
24544 (umask 077 && mkdir "$tmp")
24545 } ||
24546 {
24547 echo "$me: cannot create a temporary directory in ." >&2
24548 { (exit 1); exit 1; }
24549 }
24550
24551 #
24552 # Set up the sed scripts for CONFIG_FILES section.
24553 #
24554
24555 # No need to generate the scripts if there are no CONFIG_FILES.
24556 # This happens for instance when ./config.status config.h
24557 if test -n "$CONFIG_FILES"; then
24558
24559 _ACEOF
24560
24561
24562
24563 ac_delim='%!_!# '
24564 for ac_last_try in false false false false false :; do
24565 cat >conf$$subs.sed <<_ACEOF
24566 SHELL!$SHELL$ac_delim
24567 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24568 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24569 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24570 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24571 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24572 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24573 exec_prefix!$exec_prefix$ac_delim
24574 prefix!$prefix$ac_delim
24575 program_transform_name!$program_transform_name$ac_delim
24576 bindir!$bindir$ac_delim
24577 sbindir!$sbindir$ac_delim
24578 libexecdir!$libexecdir$ac_delim
24579 datarootdir!$datarootdir$ac_delim
24580 datadir!$datadir$ac_delim
24581 sysconfdir!$sysconfdir$ac_delim
24582 sharedstatedir!$sharedstatedir$ac_delim
24583 localstatedir!$localstatedir$ac_delim
24584 includedir!$includedir$ac_delim
24585 oldincludedir!$oldincludedir$ac_delim
24586 docdir!$docdir$ac_delim
24587 infodir!$infodir$ac_delim
24588 htmldir!$htmldir$ac_delim
24589 dvidir!$dvidir$ac_delim
24590 pdfdir!$pdfdir$ac_delim
24591 psdir!$psdir$ac_delim
24592 libdir!$libdir$ac_delim
24593 localedir!$localedir$ac_delim
24594 mandir!$mandir$ac_delim
24595 DEFS!$DEFS$ac_delim
24596 ECHO_C!$ECHO_C$ac_delim
24597 ECHO_N!$ECHO_N$ac_delim
24598 ECHO_T!$ECHO_T$ac_delim
24599 LIBS!$LIBS$ac_delim
24600 build_alias!$build_alias$ac_delim
24601 host_alias!$host_alias$ac_delim
24602 target_alias!$target_alias$ac_delim
24603 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24604 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24605 INSTALL_DATA!$INSTALL_DATA$ac_delim
24606 CYGPATH_W!$CYGPATH_W$ac_delim
24607 PACKAGE!$PACKAGE$ac_delim
24608 VERSION!$VERSION$ac_delim
24609 ACLOCAL!$ACLOCAL$ac_delim
24610 AUTOCONF!$AUTOCONF$ac_delim
24611 AUTOMAKE!$AUTOMAKE$ac_delim
24612 AUTOHEADER!$AUTOHEADER$ac_delim
24613 MAKEINFO!$MAKEINFO$ac_delim
24614 AMTAR!$AMTAR$ac_delim
24615 install_sh!$install_sh$ac_delim
24616 STRIP!$STRIP$ac_delim
24617 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24618 AWK!$AWK$ac_delim
24619 SET_MAKE!$SET_MAKE$ac_delim
24620 am__leading_dot!$am__leading_dot$ac_delim
24621 build!$build$ac_delim
24622 build_cpu!$build_cpu$ac_delim
24623 build_vendor!$build_vendor$ac_delim
24624 build_os!$build_os$ac_delim
24625 host!$host$ac_delim
24626 host_cpu!$host_cpu$ac_delim
24627 host_vendor!$host_vendor$ac_delim
24628 host_os!$host_os$ac_delim
24629 CC!$CC$ac_delim
24630 CFLAGS!$CFLAGS$ac_delim
24631 LDFLAGS!$LDFLAGS$ac_delim
24632 CPPFLAGS!$CPPFLAGS$ac_delim
24633 ac_ct_CC!$ac_ct_CC$ac_delim
24634 EXEEXT!$EXEEXT$ac_delim
24635 OBJEXT!$OBJEXT$ac_delim
24636 DEPDIR!$DEPDIR$ac_delim
24637 am__include!$am__include$ac_delim
24638 am__quote!$am__quote$ac_delim
24639 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24640 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24641 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24642 CCDEPMODE!$CCDEPMODE$ac_delim
24643 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24644 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24645 GREP!$GREP$ac_delim
24646 EGREP!$EGREP$ac_delim
24647 LN_S!$LN_S$ac_delim
24648 ECHO!$ECHO$ac_delim
24649 AR!$AR$ac_delim
24650 RANLIB!$RANLIB$ac_delim
24651 CPP!$CPP$ac_delim
24652 CXX!$CXX$ac_delim
24653 CXXFLAGS!$CXXFLAGS$ac_delim
24654 ac_ct_CXX!$ac_ct_CXX$ac_delim
24655 CXXDEPMODE!$CXXDEPMODE$ac_delim
24656 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24657 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24658 CXXCPP!$CXXCPP$ac_delim
24659 F77!$F77$ac_delim
24660 FFLAGS!$FFLAGS$ac_delim
24661 ac_ct_F77!$ac_ct_F77$ac_delim
24662 LIBTOOL!$LIBTOOL$ac_delim
24663 _ACEOF
24664
24665 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24666 break
24667 elif $ac_last_try; then
24668 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24669 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24670 { (exit 1); exit 1; }; }
24671 else
24672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24673 fi
24674 done
24675
24676 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24677 if test -n "$ac_eof"; then
24678 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24679 ac_eof=`expr $ac_eof + 1`
24680 fi
24681
24682 cat >>$CONFIG_STATUS <<_ACEOF
24683 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24685 _ACEOF
24686 sed '
24687 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24688 s/^/s,@/; s/!/@,|#_!!_#|/
24689 :n
24690 t n
24691 s/'"$ac_delim"'$/,g/; t
24692 s/$/\\/; p
24693 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24694 ' >>$CONFIG_STATUS <conf$$subs.sed
24695 rm -f conf$$subs.sed
24696 cat >>$CONFIG_STATUS <<_ACEOF
24697 CEOF$ac_eof
24698 _ACEOF
24699
24700
24701 ac_delim='%!_!# '
24702 for ac_last_try in false false false false false :; do
24703 cat >conf$$subs.sed <<_ACEOF
24704 BASH!$BASH$ac_delim
24705 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
24706 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
24707 LIBOBJS!$LIBOBJS$ac_delim
24708 lttctlincludedir!$lttctlincludedir$ac_delim
24709 UTIL_LIBS!$UTIL_LIBS$ac_delim
24710 THREAD_LIBS!$THREAD_LIBS$ac_delim
24711 DEFAULT_INCLUDES!$DEFAULT_INCLUDES$ac_delim
24712 LTLIBOBJS!$LTLIBOBJS$ac_delim
24713 _ACEOF
24714
24715 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
24716 break
24717 elif $ac_last_try; then
24718 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24720 { (exit 1); exit 1; }; }
24721 else
24722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24723 fi
24724 done
24725
24726 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24727 if test -n "$ac_eof"; then
24728 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24729 ac_eof=`expr $ac_eof + 1`
24730 fi
24731
24732 cat >>$CONFIG_STATUS <<_ACEOF
24733 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24735 _ACEOF
24736 sed '
24737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24738 s/^/s,@/; s/!/@,|#_!!_#|/
24739 :n
24740 t n
24741 s/'"$ac_delim"'$/,g/; t
24742 s/$/\\/; p
24743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24744 ' >>$CONFIG_STATUS <conf$$subs.sed
24745 rm -f conf$$subs.sed
24746 cat >>$CONFIG_STATUS <<_ACEOF
24747 :end
24748 s/|#_!!_#|//g
24749 CEOF$ac_eof
24750 _ACEOF
24751
24752
24753 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24754 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24755 # trailing colons and then remove the whole line if VPATH becomes empty
24756 # (actually we leave an empty line to preserve line numbers).
24757 if test "x$srcdir" = x.; then
24758 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24759 s/:*\$(srcdir):*/:/
24760 s/:*\${srcdir}:*/:/
24761 s/:*@srcdir@:*/:/
24762 s/^\([^=]*=[ ]*\):*/\1/
24763 s/:*$//
24764 s/^[^=]*=[ ]*$//
24765 }'
24766 fi
24767
24768 cat >>$CONFIG_STATUS <<\_ACEOF
24769 fi # test -n "$CONFIG_FILES"
24770
24771
24772 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24773 do
24774 case $ac_tag in
24775 :[FHLC]) ac_mode=$ac_tag; continue;;
24776 esac
24777 case $ac_mode$ac_tag in
24778 :[FHL]*:*);;
24779 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24780 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24781 { (exit 1); exit 1; }; };;
24782 :[FH]-) ac_tag=-:-;;
24783 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24784 esac
24785 ac_save_IFS=$IFS
24786 IFS=:
24787 set x $ac_tag
24788 IFS=$ac_save_IFS
24789 shift
24790 ac_file=$1
24791 shift
24792
24793 case $ac_mode in
24794 :L) ac_source=$1;;
24795 :[FH])
24796 ac_file_inputs=
24797 for ac_f
24798 do
24799 case $ac_f in
24800 -) ac_f="$tmp/stdin";;
24801 *) # Look for the file first in the build tree, then in the source tree
24802 # (if the path is not absolute). The absolute path cannot be DOS-style,
24803 # because $ac_f cannot contain `:'.
24804 test -f "$ac_f" ||
24805 case $ac_f in
24806 [\\/$]*) false;;
24807 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24808 esac ||
24809 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24810 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24811 { (exit 1); exit 1; }; };;
24812 esac
24813 ac_file_inputs="$ac_file_inputs $ac_f"
24814 done
24815
24816 # Let's still pretend it is `configure' which instantiates (i.e., don't
24817 # use $as_me), people would be surprised to read:
24818 # /* config.h. Generated by config.status. */
24819 configure_input="Generated from "`IFS=:
24820 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24821 if test x"$ac_file" != x-; then
24822 configure_input="$ac_file. $configure_input"
24823 { echo "$as_me:$LINENO: creating $ac_file" >&5
24824 echo "$as_me: creating $ac_file" >&6;}
24825 fi
24826
24827 case $ac_tag in
24828 *:-:* | *:-) cat >"$tmp/stdin";;
24829 esac
24830 ;;
24831 esac
24832
24833 ac_dir=`$as_dirname -- "$ac_file" ||
24834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24835 X"$ac_file" : 'X\(//\)[^/]' \| \
24836 X"$ac_file" : 'X\(//\)$' \| \
24837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24838 echo X"$ac_file" |
24839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24840 s//\1/
24841 q
24842 }
24843 /^X\(\/\/\)[^/].*/{
24844 s//\1/
24845 q
24846 }
24847 /^X\(\/\/\)$/{
24848 s//\1/
24849 q
24850 }
24851 /^X\(\/\).*/{
24852 s//\1/
24853 q
24854 }
24855 s/.*/./; q'`
24856 { as_dir="$ac_dir"
24857 case $as_dir in #(
24858 -*) as_dir=./$as_dir;;
24859 esac
24860 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24861 as_dirs=
24862 while :; do
24863 case $as_dir in #(
24864 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24865 *) as_qdir=$as_dir;;
24866 esac
24867 as_dirs="'$as_qdir' $as_dirs"
24868 as_dir=`$as_dirname -- "$as_dir" ||
24869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24870 X"$as_dir" : 'X\(//\)[^/]' \| \
24871 X"$as_dir" : 'X\(//\)$' \| \
24872 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24873 echo X"$as_dir" |
24874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24875 s//\1/
24876 q
24877 }
24878 /^X\(\/\/\)[^/].*/{
24879 s//\1/
24880 q
24881 }
24882 /^X\(\/\/\)$/{
24883 s//\1/
24884 q
24885 }
24886 /^X\(\/\).*/{
24887 s//\1/
24888 q
24889 }
24890 s/.*/./; q'`
24891 test -d "$as_dir" && break
24892 done
24893 test -z "$as_dirs" || eval "mkdir $as_dirs"
24894 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24895 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24896 { (exit 1); exit 1; }; }; }
24897 ac_builddir=.
24898
24899 case "$ac_dir" in
24900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24901 *)
24902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24903 # A ".." for each directory in $ac_dir_suffix.
24904 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24905 case $ac_top_builddir_sub in
24906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24908 esac ;;
24909 esac
24910 ac_abs_top_builddir=$ac_pwd
24911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24912 # for backward compatibility:
24913 ac_top_builddir=$ac_top_build_prefix
24914
24915 case $srcdir in
24916 .) # We are building in place.
24917 ac_srcdir=.
24918 ac_top_srcdir=$ac_top_builddir_sub
24919 ac_abs_top_srcdir=$ac_pwd ;;
24920 [\\/]* | ?:[\\/]* ) # Absolute name.
24921 ac_srcdir=$srcdir$ac_dir_suffix;
24922 ac_top_srcdir=$srcdir
24923 ac_abs_top_srcdir=$srcdir ;;
24924 *) # Relative name.
24925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24926 ac_top_srcdir=$ac_top_build_prefix$srcdir
24927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24928 esac
24929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24930
24931
24932 case $ac_mode in
24933 :F)
24934 #
24935 # CONFIG_FILE
24936 #
24937
24938 case $INSTALL in
24939 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24940 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24941 esac
24942 _ACEOF
24943
24944 cat >>$CONFIG_STATUS <<\_ACEOF
24945 # If the template does not know about datarootdir, expand it.
24946 # FIXME: This hack should be removed a few years after 2.60.
24947 ac_datarootdir_hack=; ac_datarootdir_seen=
24948
24949 case `sed -n '/datarootdir/ {
24950 p
24951 q
24952 }
24953 /@datadir@/p
24954 /@docdir@/p
24955 /@infodir@/p
24956 /@localedir@/p
24957 /@mandir@/p
24958 ' $ac_file_inputs` in
24959 *datarootdir*) ac_datarootdir_seen=yes;;
24960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24961 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24962 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24963 _ACEOF
24964 cat >>$CONFIG_STATUS <<_ACEOF
24965 ac_datarootdir_hack='
24966 s&@datadir@&$datadir&g
24967 s&@docdir@&$docdir&g
24968 s&@infodir@&$infodir&g
24969 s&@localedir@&$localedir&g
24970 s&@mandir@&$mandir&g
24971 s&\\\${datarootdir}&$datarootdir&g' ;;
24972 esac
24973 _ACEOF
24974
24975 # Neutralize VPATH when `$srcdir' = `.'.
24976 # Shell code in configure.ac might set extrasub.
24977 # FIXME: do we really want to maintain this feature?
24978 cat >>$CONFIG_STATUS <<_ACEOF
24979 sed "$ac_vpsub
24980 $extrasub
24981 _ACEOF
24982 cat >>$CONFIG_STATUS <<\_ACEOF
24983 :t
24984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24985 s&@configure_input@&$configure_input&;t t
24986 s&@top_builddir@&$ac_top_builddir_sub&;t t
24987 s&@srcdir@&$ac_srcdir&;t t
24988 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24989 s&@top_srcdir@&$ac_top_srcdir&;t t
24990 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24991 s&@builddir@&$ac_builddir&;t t
24992 s&@abs_builddir@&$ac_abs_builddir&;t t
24993 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24994 s&@INSTALL@&$ac_INSTALL&;t t
24995 $ac_datarootdir_hack
24996 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24997
24998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24999 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25000 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25001 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25002 which seems to be undefined. Please make sure it is defined." >&5
25003 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25004 which seems to be undefined. Please make sure it is defined." >&2;}
25005
25006 rm -f "$tmp/stdin"
25007 case $ac_file in
25008 -) cat "$tmp/out"; rm -f "$tmp/out";;
25009 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25010 esac
25011 ;;
25012 :H)
25013 #
25014 # CONFIG_HEADER
25015 #
25016 _ACEOF
25017
25018 # Transform confdefs.h into a sed script `conftest.defines', that
25019 # substitutes the proper values into config.h.in to produce config.h.
25020 rm -f conftest.defines conftest.tail
25021 # First, append a space to every undef/define line, to ease matching.
25022 echo 's/$/ /' >conftest.defines
25023 # Then, protect against being on the right side of a sed subst, or in
25024 # an unquoted here document, in config.status. If some macros were
25025 # called several times there might be several #defines for the same
25026 # symbol, which is useless. But do not sort them, since the last
25027 # AC_DEFINE must be honored.
25028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25029 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25030 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25031 # PARAMS is the parameter list in the macro definition--in most cases, it's
25032 # just an empty string.
25033 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25034 ac_dB='\\)[ (].*,\\1define\\2'
25035 ac_dC=' '
25036 ac_dD=' ,'
25037
25038 uniq confdefs.h |
25039 sed -n '
25040 t rset
25041 :rset
25042 s/^[ ]*#[ ]*define[ ][ ]*//
25043 t ok
25044 d
25045 :ok
25046 s/[\\&,]/\\&/g
25047 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25048 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25049 ' >>conftest.defines
25050
25051 # Remove the space that was appended to ease matching.
25052 # Then replace #undef with comments. This is necessary, for
25053 # example, in the case of _POSIX_SOURCE, which is predefined and required
25054 # on some systems where configure will not decide to define it.
25055 # (The regexp can be short, since the line contains either #define or #undef.)
25056 echo 's/ $//
25057 s,^[ #]*u.*,/* & */,' >>conftest.defines
25058
25059 # Break up conftest.defines:
25060 ac_max_sed_lines=50
25061
25062 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25063 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25064 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25065 # et cetera.
25066 ac_in='$ac_file_inputs'
25067 ac_out='"$tmp/out1"'
25068 ac_nxt='"$tmp/out2"'
25069
25070 while :
25071 do
25072 # Write a here document:
25073 cat >>$CONFIG_STATUS <<_ACEOF
25074 # First, check the format of the line:
25075 cat >"\$tmp/defines.sed" <<\\CEOF
25076 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25077 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25078 b
25079 :def
25080 _ACEOF
25081 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25082 echo 'CEOF
25083 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25084 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25085 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25086 grep . conftest.tail >/dev/null || break
25087 rm -f conftest.defines
25088 mv conftest.tail conftest.defines
25089 done
25090 rm -f conftest.defines conftest.tail
25091
25092 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25093 cat >>$CONFIG_STATUS <<\_ACEOF
25094 if test x"$ac_file" != x-; then
25095 echo "/* $configure_input */" >"$tmp/config.h"
25096 cat "$ac_result" >>"$tmp/config.h"
25097 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25098 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25099 echo "$as_me: $ac_file is unchanged" >&6;}
25100 else
25101 rm -f $ac_file
25102 mv "$tmp/config.h" $ac_file
25103 fi
25104 else
25105 echo "/* $configure_input */"
25106 cat "$ac_result"
25107 fi
25108 rm -f "$tmp/out12"
25109 # Compute $ac_file's index in $config_headers.
25110 _am_stamp_count=1
25111 for _am_header in $config_headers :; do
25112 case $_am_header in
25113 $ac_file | $ac_file:* )
25114 break ;;
25115 * )
25116 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25117 esac
25118 done
25119 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25120 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25121 X$ac_file : 'X\(//\)[^/]' \| \
25122 X$ac_file : 'X\(//\)$' \| \
25123 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25124 echo X$ac_file |
25125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25126 s//\1/
25127 q
25128 }
25129 /^X\(\/\/\)[^/].*/{
25130 s//\1/
25131 q
25132 }
25133 /^X\(\/\/\)$/{
25134 s//\1/
25135 q
25136 }
25137 /^X\(\/\).*/{
25138 s//\1/
25139 q
25140 }
25141 s/.*/./; q'`/stamp-h$_am_stamp_count
25142 ;;
25143
25144 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25145 echo "$as_me: executing $ac_file commands" >&6;}
25146 ;;
25147 esac
25148
25149
25150 case $ac_file$ac_mode in
25151 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25152 # Strip MF so we end up with the name of the file.
25153 mf=`echo "$mf" | sed -e 's/:.*$//'`
25154 # Check whether this is an Automake generated Makefile or not.
25155 # We used to match only the files named `Makefile.in', but
25156 # some people rename them; so instead we look at the file content.
25157 # Grep'ing the first line is not enough: some people post-process
25158 # each Makefile.in and add a new line on top of each file to say so.
25159 # So let's grep whole file.
25160 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25161 dirpart=`$as_dirname -- "$mf" ||
25162 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25163 X"$mf" : 'X\(//\)[^/]' \| \
25164 X"$mf" : 'X\(//\)$' \| \
25165 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25166 echo X"$mf" |
25167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25168 s//\1/
25169 q
25170 }
25171 /^X\(\/\/\)[^/].*/{
25172 s//\1/
25173 q
25174 }
25175 /^X\(\/\/\)$/{
25176 s//\1/
25177 q
25178 }
25179 /^X\(\/\).*/{
25180 s//\1/
25181 q
25182 }
25183 s/.*/./; q'`
25184 else
25185 continue
25186 fi
25187 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25188 # Extract the definition of DEP_FILES from the Makefile without
25189 # running `make'.
25190 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
25191 test -z "$DEPDIR" && continue
25192 # When using ansi2knr, U may be empty or an underscore; expand it
25193 U=`sed -n -e '/^U = / s///p' < "$mf"`
25194 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25195 # We invoke sed twice because it is the simplest approach to
25196 # changing $(DEPDIR) to its actual value in the expansion.
25197 for file in `sed -n -e '
25198 /^DEP_FILES = .*\\\\$/ {
25199 s/^DEP_FILES = //
25200 :loop
25201 s/\\\\$//
25202 p
25203 n
25204 /\\\\$/ b loop
25205 p
25206 }
25207 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25208 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25209 # Make sure the directory exists.
25210 test -f "$dirpart/$file" && continue
25211 fdir=`$as_dirname -- "$file" ||
25212 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25213 X"$file" : 'X\(//\)[^/]' \| \
25214 X"$file" : 'X\(//\)$' \| \
25215 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25216 echo X"$file" |
25217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25218 s//\1/
25219 q
25220 }
25221 /^X\(\/\/\)[^/].*/{
25222 s//\1/
25223 q
25224 }
25225 /^X\(\/\/\)$/{
25226 s//\1/
25227 q
25228 }
25229 /^X\(\/\).*/{
25230 s//\1/
25231 q
25232 }
25233 s/.*/./; q'`
25234 { as_dir=$dirpart/$fdir
25235 case $as_dir in #(
25236 -*) as_dir=./$as_dir;;
25237 esac
25238 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25239 as_dirs=
25240 while :; do
25241 case $as_dir in #(
25242 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25243 *) as_qdir=$as_dir;;
25244 esac
25245 as_dirs="'$as_qdir' $as_dirs"
25246 as_dir=`$as_dirname -- "$as_dir" ||
25247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25248 X"$as_dir" : 'X\(//\)[^/]' \| \
25249 X"$as_dir" : 'X\(//\)$' \| \
25250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25251 echo X"$as_dir" |
25252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25253 s//\1/
25254 q
25255 }
25256 /^X\(\/\/\)[^/].*/{
25257 s//\1/
25258 q
25259 }
25260 /^X\(\/\/\)$/{
25261 s//\1/
25262 q
25263 }
25264 /^X\(\/\).*/{
25265 s//\1/
25266 q
25267 }
25268 s/.*/./; q'`
25269 test -d "$as_dir" && break
25270 done
25271 test -z "$as_dirs" || eval "mkdir $as_dirs"
25272 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25273 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25274 { (exit 1); exit 1; }; }; }
25275 # echo "creating $dirpart/$file"
25276 echo '# dummy' > "$dirpart/$file"
25277 done
25278 done
25279 ;;
25280
25281 esac
25282 done # for ac_tag
25283
25284
25285 { (exit 0); exit 0; }
25286 _ACEOF
25287 chmod +x $CONFIG_STATUS
25288 ac_clean_files=$ac_clean_files_save
25289
25290
25291 # configure is writing to config.log, and then calls config.status.
25292 # config.status does its own redirection, appending to config.log.
25293 # Unfortunately, on DOS this fails, as config.log is still kept open
25294 # by configure, so config.status won't be able to write to it; its
25295 # output is simply discarded. So we exec the FD to /dev/null,
25296 # effectively closing config.log, so it can be properly (re)opened and
25297 # appended to by config.status. When coming back to configure, we
25298 # need to make the FD available again.
25299 if test "$no_create" != yes; then
25300 ac_cs_success=:
25301 ac_config_status_args=
25302 test "$silent" = yes &&
25303 ac_config_status_args="$ac_config_status_args --quiet"
25304 exec 5>/dev/null
25305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25306 exec 5>>config.log
25307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25308 # would make configure fail if this is the last instruction.
25309 $ac_cs_success || { (exit 1); exit 1; }
25310 fi
25311
This page took 0.624859 seconds and 4 git commands to generate.