configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for libXfixes 4.0.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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='libXfixes'
715 PACKAGE_TARNAME='libXfixes'
716 PACKAGE_VERSION='4.0.3'
717 PACKAGE_STRING='libXfixes 4.0.3'
718 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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 install_sh
805 STRIP
806 INSTALL_STRIP_PROGRAM
807 mkdir_p
808 AWK
809 SET_MAKE
810 am__leading_dot
811 AMTAR
812 am__tar
813 am__untar
814 AMSHOWCMDSAT
815 AMDEPSHOWCMDSAT
816 AMPRETTYECHO
817 AMCMDECHO
818 LT_QUIET
819 MAINTAINER_MODE_TRUE
820 MAINTAINER_MODE_FALSE
821 MAINT
822 CC
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
826 ac_ct_CC
827 EXEEXT
828 OBJEXT
829 DEPDIR
830 am__include
831 am__quote
832 AMDEP_TRUE
833 AMDEP_FALSE
834 AMDEPBACKSLASH
835 CCDEPMODE
836 am__fastdepCC_TRUE
837 am__fastdepCC_FALSE
838 build
839 build_cpu
840 build_vendor
841 build_os
842 host
843 host_cpu
844 host_vendor
845 host_os
846 GREP
847 EGREP
848 LN_S
849 ECHO
850 AR
851 RANLIB
852 CPP
853 CXX
854 CXXFLAGS
855 ac_ct_CXX
856 CXXDEPMODE
857 am__fastdepCXX_TRUE
858 am__fastdepCXX_FALSE
859 CXXCPP
860 F77
861 FFLAGS
862 ac_ct_F77
863 LIBTOOL
864 PKG_CONFIG
865 X_CFLAGS
866 X_LIBS
867 FIXESEXT_VERSION
868 FIXESEXT_CFLAGS
869 FIXESEXT_LIBS
870 APP_MAN_SUFFIX
871 LIB_MAN_SUFFIX
872 FILE_MAN_SUFFIX
873 MISC_MAN_SUFFIX
874 DRIVER_MAN_SUFFIX
875 ADMIN_MAN_SUFFIX
876 APP_MAN_DIR
877 LIB_MAN_DIR
878 FILE_MAN_DIR
879 MISC_MAN_DIR
880 DRIVER_MAN_DIR
881 ADMIN_MAN_DIR
882 LIBOBJS
883 LTLIBOBJS'
884 ac_subst_files=''
885 ac_precious_vars='build_alias
886 host_alias
887 target_alias
888 CC
889 CFLAGS
890 LDFLAGS
891 CPPFLAGS
892 CPP
893 CXX
894 CXXFLAGS
895 CCC
896 CXXCPP
897 F77
898 FFLAGS
899 PKG_CONFIG
900 X_CFLAGS
901 X_LIBS
902 FIXESEXT_CFLAGS
903 FIXESEXT_LIBS'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
925
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *) ac_optarg=yes ;;
966 esac
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
998
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
1006 -disable-* | --disable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1013 eval enable_$ac_feature=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1032 eval enable_$ac_feature=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package| sed 's/-/_/g'`
1229 eval with_$ac_package=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/-/_/g'`
1238 eval with_$ac_package=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) { echo "$as_me: error: unrecognized option: $ac_option
1259 Try \`$0 --help' for more information." >&2
1260 { (exit 1); exit 1; }; }
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268 { (exit 1); exit 1; }; }
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 { echo "$as_me: error: missing argument to $ac_option" >&2
1286 { (exit 1); exit 1; }; }
1287 fi
1288
1289 # Be sure to have absolute directory names.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1294 do
1295 eval ac_val=\$$ac_var
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$0" ||
1343 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$0" : 'X\(//\)[^/]' \| \
1345 X"$0" : 'X\(//\)$' \| \
1346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347 echo X"$0" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures libXfixes 4.0.3 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfixes]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of libXfixes 4.0.3:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480 Optional Features:
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-pretty-cmds show all commands executed
1484 --enable-pretty-cmds do not output the entire command lines
1485 --enable-maintainer-mode enable make rules and dependencies not useful
1486 (and sometimes confusing) to the casual installer
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-pic try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-tags[=TAGS] include additional configurations [automatic]
1502 --with-release-version=STRING
1503 Use release version string in package name
1504
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 CPP C preprocessor
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1515 CXXCPP C++ preprocessor
1516 F77 Fortran 77 compiler command
1517 FFLAGS Fortran 77 compiler flags
1518 PKG_CONFIG path to pkg-config utility
1519 X_CFLAGS C compiler flags for X, overriding pkg-config
1520 X_LIBS linker flags for X, overriding pkg-config
1521 FIXESEXT_CFLAGS
1522 C compiler flags for FIXESEXT, overriding pkg-config
1523 FIXESEXT_LIBS
1524 linker flags for FIXESEXT, overriding pkg-config
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" || continue
1538 ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 libXfixes configure 4.0.3
1591 generated by GNU Autoconf 2.60
1592
1593 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1594 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598 exit
1599 fi
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1603
1604 It was created by libXfixes $as_me 4.0.3, which was
1605 generated by GNU Autoconf 2.60. Invocation command line was
1606
1607 $ $0 $@
1608
1609 _ACEOF
1610 exec 5>>config.log
1611 {
1612 cat <<_ASUNAME
1613 ## --------- ##
1614 ## Platform. ##
1615 ## --------- ##
1616
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1625
1626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1633
1634 _ASUNAME
1635
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 echo "PATH: $as_dir"
1642 done
1643 IFS=$as_save_IFS
1644
1645 } >&5
1646
1647 cat >&5 <<_ACEOF
1648
1649
1650 ## ----------- ##
1651 ## Core tests. ##
1652 ## ----------- ##
1653
1654 _ACEOF
1655
1656
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1662 ac_configure_args=
1663 ac_configure_args0=
1664 ac_configure_args1=
1665 ac_must_keep_next=false
1666 for ac_pass in 1 2
1667 do
1668 for ac_arg
1669 do
1670 case $ac_arg in
1671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673 | -silent | --silent | --silen | --sile | --sil)
1674 continue ;;
1675 *\'*)
1676 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 esac
1678 case $ac_pass in
1679 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 2)
1681 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1682 if test $ac_must_keep_next = true; then
1683 ac_must_keep_next=false # Got value, back to normal.
1684 else
1685 case $ac_arg in
1686 *=* | --config-cache | -C | -disable-* | --disable-* \
1687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689 | -with-* | --with-* | -without-* | --without-* | --x)
1690 case "$ac_configure_args0 " in
1691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 esac
1693 ;;
1694 -* ) ac_must_keep_next=true ;;
1695 esac
1696 fi
1697 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 ;;
1699 esac
1700 done
1701 done
1702 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1703 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log. We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711 # Save into config.log some information that might help in debugging.
1712 {
1713 echo
1714
1715 cat <<\_ASBOX
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1719 _ASBOX
1720 echo
1721 # The following way of writing the cache mishandles newlines in values,
1722 (
1723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724 eval ac_val=\$$ac_var
1725 case $ac_val in #(
1726 *${as_nl}*)
1727 case $ac_var in #(
1728 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1729 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 esac
1731 case $ac_var in #(
1732 _ | IFS | as_nl) ;; #(
1733 *) $as_unset $ac_var ;;
1734 esac ;;
1735 esac
1736 done
1737 (set) 2>&1 |
1738 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739 *${as_nl}ac_space=\ *)
1740 sed -n \
1741 "s/'\''/'\''\\\\'\'''\''/g;
1742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 ;; #(
1744 *)
1745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ;;
1747 esac |
1748 sort
1749 )
1750 echo
1751
1752 cat <<\_ASBOX
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1756 _ASBOX
1757 echo
1758 for ac_var in $ac_subst_vars
1759 do
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1767
1768 if test -n "$ac_subst_files"; then
1769 cat <<\_ASBOX
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1773 _ASBOX
1774 echo
1775 for ac_var in $ac_subst_files
1776 do
1777 eval ac_val=\$$ac_var
1778 case $ac_val in
1779 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 esac
1781 echo "$ac_var='\''$ac_val'\''"
1782 done | sort
1783 echo
1784 fi
1785
1786 if test -s confdefs.h; then
1787 cat <<\_ASBOX
1788 ## ----------- ##
1789 ## confdefs.h. ##
1790 ## ----------- ##
1791 _ASBOX
1792 echo
1793 cat confdefs.h
1794 echo
1795 fi
1796 test "$ac_signal" != 0 &&
1797 echo "$as_me: caught signal $ac_signal"
1798 echo "$as_me: exit $exit_status"
1799 } >&5
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 exit $exit_status
1803 ' 0
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 done
1807 ac_signal=0
1808
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1811
1812 # Predefined preprocessor variables.
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 _ACEOF
1837
1838
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer explicitly selected file to automatically selected ones.
1841 if test -n "$CONFIG_SITE"; then
1842 set x "$CONFIG_SITE"
1843 elif test "x$prefix" != xNONE; then
1844 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845 else
1846 set x "$ac_default_prefix/share/config.site" \
1847 "$ac_default_prefix/etc/config.site"
1848 fi
1849 shift
1850 for ac_site_file
1851 do
1852 if test -r "$ac_site_file"; then
1853 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854 echo "$as_me: loading site script $ac_site_file" >&6;}
1855 sed 's/^/| /' "$ac_site_file" >&5
1856 . "$ac_site_file"
1857 fi
1858 done
1859
1860 if test -r "$cache_file"; then
1861 # Some versions of bash will fail to source /dev/null (special
1862 # files actually), so we avoid doing that.
1863 if test -f "$cache_file"; then
1864 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865 echo "$as_me: loading cache $cache_file" >&6;}
1866 case $cache_file in
1867 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868 *) . "./$cache_file";;
1869 esac
1870 fi
1871 else
1872 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873 echo "$as_me: creating cache $cache_file" >&6;}
1874 >$cache_file
1875 fi
1876
1877 # Check that the precious variables saved in the cache have kept the same
1878 # value.
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882 eval ac_new_set=\$ac_env_${ac_var}_set
1883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884 eval ac_new_val=\$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1886 set,)
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1890 ,set)
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,);;
1895 *)
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1898 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1899 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1900 echo "$as_me: former value: $ac_old_val" >&2;}
1901 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1902 echo "$as_me: current value: $ac_new_val" >&2;}
1903 ac_cache_corrupted=:
1904 fi;;
1905 esac
1906 # Pass precious variables to config.status.
1907 if test "$ac_new_set" = set; then
1908 case $ac_new_val in
1909 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1910 *) ac_arg=$ac_var=$ac_new_val ;;
1911 esac
1912 case " $ac_configure_args " in
1913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1914 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1915 esac
1916 fi
1917 done
1918 if $ac_cache_corrupted; then
1919 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1920 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1921 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1922 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1923 { (exit 1); exit 1; }; }
1924 fi
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950 ac_ext=c
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955
1956
1957 am__api_version="1.9"
1958 ac_aux_dir=
1959 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1960 if test -f "$ac_dir/install-sh"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/install-sh -c"
1963 break
1964 elif test -f "$ac_dir/install.sh"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/install.sh -c"
1967 break
1968 elif test -f "$ac_dir/shtool"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/shtool install -c"
1971 break
1972 fi
1973 done
1974 if test -z "$ac_aux_dir"; then
1975 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1976 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1977 { (exit 1); exit 1; }; }
1978 fi
1979
1980 # These three variables are undocumented and unsupported,
1981 # and are intended to be withdrawn in a future Autoconf release.
1982 # They can cause serious problems if a builder's source tree is in a directory
1983 # whose full name contains unusual characters.
1984 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1985 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1986 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1987
1988
1989 # Find a good install program. We prefer a C program (faster),
1990 # so one script is as good as another. But avoid the broken or
1991 # incompatible versions:
1992 # SysV /etc/install, /usr/sbin/install
1993 # SunOS /usr/etc/install
1994 # IRIX /sbin/install
1995 # AIX /bin/install
1996 # AmigaOS /C/install, which installs bootblocks on floppy discs
1997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2000 # OS/2's system install, which has a completely different semantic
2001 # ./install, which can be erroneously created by make from ./install.sh.
2002 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2003 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2004 if test -z "$INSTALL"; then
2005 if test "${ac_cv_path_install+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 # Account for people who put trailing slashes in PATH elements.
2014 case $as_dir/ in
2015 ./ | .// | /cC/* | \
2016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2018 /usr/ucb/* ) ;;
2019 *)
2020 # OSF1 and SCO ODT 3.0 have their own names for install.
2021 # Don't use installbsd from OSF since it installs stuff as root
2022 # by default.
2023 for ac_prog in ginstall scoinst install; do
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2026 if test $ac_prog = install &&
2027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2028 # AIX install. It has an incompatible calling convention.
2029 :
2030 elif test $ac_prog = install &&
2031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2032 # program-specific install script used by HP pwplus--don't use.
2033 :
2034 else
2035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2036 break 3
2037 fi
2038 fi
2039 done
2040 done
2041 ;;
2042 esac
2043 done
2044 IFS=$as_save_IFS
2045
2046
2047 fi
2048 if test "${ac_cv_path_install+set}" = set; then
2049 INSTALL=$ac_cv_path_install
2050 else
2051 # As a last resort, use the slow shell script. Don't cache a
2052 # value for INSTALL within a source directory, because that will
2053 # break other packages using the cache if that directory is
2054 # removed, or if the value is a relative name.
2055 INSTALL=$ac_install_sh
2056 fi
2057 fi
2058 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2059 echo "${ECHO_T}$INSTALL" >&6; }
2060
2061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2062 # It thinks the first close brace ends the variable substitution.
2063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2064
2065 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2066
2067 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2068
2069 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2070 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2071 # Just in case
2072 sleep 1
2073 echo timestamp > conftest.file
2074 # Do `set' in a subshell so we don't clobber the current shell's
2075 # arguments. Must try -L first in case configure is actually a
2076 # symlink; some systems play weird games with the mod time of symlinks
2077 # (eg FreeBSD returns the mod time of the symlink's containing
2078 # directory).
2079 if (
2080 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2081 if test "$*" = "X"; then
2082 # -L didn't work.
2083 set X `ls -t $srcdir/configure conftest.file`
2084 fi
2085 rm -f conftest.file
2086 if test "$*" != "X $srcdir/configure conftest.file" \
2087 && test "$*" != "X conftest.file $srcdir/configure"; then
2088
2089 # If neither matched, then we have a broken ls. This can happen
2090 # if, for instance, CONFIG_SHELL is bash and it inherits a
2091 # broken ls alias from the environment. This has actually
2092 # happened. Such a system could not be considered "sane".
2093 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2094 alias in your environment" >&5
2095 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2096 alias in your environment" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 test "$2" = conftest.file
2101 )
2102 then
2103 # Ok.
2104 :
2105 else
2106 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2107 Check your system clock" >&5
2108 echo "$as_me: error: newly created file is older than distributed files!
2109 Check your system clock" >&2;}
2110 { (exit 1); exit 1; }; }
2111 fi
2112 { echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6; }
2114 test "$program_prefix" != NONE &&
2115 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2116 # Use a double $ so make ignores it.
2117 test "$program_suffix" != NONE &&
2118 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2119 # Double any \ or $. echo might interpret backslashes.
2120 # By default was `s,x,x', remove it if useless.
2121 cat <<\_ACEOF >conftest.sed
2122 s/[\\$]/&&/g;s/;s,x,x,$//
2123 _ACEOF
2124 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2125 rm -f conftest.sed
2126
2127 # expand $ac_aux_dir to an absolute path
2128 am_aux_dir=`cd $ac_aux_dir && pwd`
2129
2130 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2131 # Use eval to expand $SHELL
2132 if eval "$MISSING --run true"; then
2133 am_missing_run="$MISSING --run "
2134 else
2135 am_missing_run=
2136 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2137 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2138 fi
2139
2140 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2141 # We used to keeping the `.' as first argument, in order to
2142 # allow $(mkdir_p) to be used without argument. As in
2143 # $(mkdir_p) $(somedir)
2144 # where $(somedir) is conditionally defined. However this is wrong
2145 # for two reasons:
2146 # 1. if the package is installed by a user who cannot write `.'
2147 # make install will fail,
2148 # 2. the above comment should most certainly read
2149 # $(mkdir_p) $(DESTDIR)$(somedir)
2150 # so it does not work when $(somedir) is undefined and
2151 # $(DESTDIR) is not.
2152 # To support the latter case, we have to write
2153 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2154 # so the `.' trick is pointless.
2155 mkdir_p='mkdir -p --'
2156 else
2157 # On NextStep and OpenStep, the `mkdir' command does not
2158 # recognize any option. It will interpret all options as
2159 # directories to create, and then abort because `.' already
2160 # exists.
2161 for d in ./-p ./--version;
2162 do
2163 test -d $d && rmdir $d
2164 done
2165 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2166 if test -f "$ac_aux_dir/mkinstalldirs"; then
2167 mkdir_p='$(mkinstalldirs)'
2168 else
2169 mkdir_p='$(install_sh) -d'
2170 fi
2171 fi
2172
2173 for ac_prog in gawk mawk nawk awk
2174 do
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_AWK="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 AWK=$ac_cv_prog_AWK
2203 if test -n "$AWK"; then
2204 { echo "$as_me:$LINENO: result: $AWK" >&5
2205 echo "${ECHO_T}$AWK" >&6; }
2206 else
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 fi
2210
2211
2212 test -n "$AWK" && break
2213 done
2214
2215 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2217 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2218 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.make <<\_ACEOF
2222 SHELL = /bin/sh
2223 all:
2224 @echo '@@@%%%=$(MAKE)=@@@%%%'
2225 _ACEOF
2226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2228 *@@@%%%=?*=@@@%%%*)
2229 eval ac_cv_prog_make_${ac_make}_set=yes;;
2230 *)
2231 eval ac_cv_prog_make_${ac_make}_set=no;;
2232 esac
2233 rm -f conftest.make
2234 fi
2235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2236 { echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6; }
2238 SET_MAKE=
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 SET_MAKE="MAKE=${MAKE-make}"
2243 fi
2244
2245 rm -rf .tst 2>/dev/null
2246 mkdir .tst 2>/dev/null
2247 if test -d .tst; then
2248 am__leading_dot=.
2249 else
2250 am__leading_dot=_
2251 fi
2252 rmdir .tst 2>/dev/null
2253
2254 # Check whether --enable-pretty-cmds was given.
2255 if test "${enable_pretty_cmds+set}" = set; then
2256 enableval=$enable_pretty_cmds;
2257 fi
2258
2259 AMSHOWCMDSAT=''
2260 AMDEPSHOWCMDSAT=''
2261 AMPRETTYECHO=true
2262 AMCMDECHO=echo
2263 if test "x$enable_pretty_cmds" == xyes;
2264 then
2265 AMSHOWCMDSAT='@'
2266 test x$enable_dependency_tracking == xno && AMDEPSHOWCMDSAT='@'
2267 AMPRETTYECHO=echo
2268 AMCMDECHO=true
2269 LT_QUIET='--quiet'
2270 fi
2271
2272
2273
2274
2275
2276
2277 # test to see if srcdir already configured
2278 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2279 test -f $srcdir/config.status; then
2280 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2281 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2282 { (exit 1); exit 1; }; }
2283 fi
2284
2285 # test whether we have cygpath
2286 if test -z "$CYGPATH_W"; then
2287 if (cygpath --version) >/dev/null 2>/dev/null; then
2288 CYGPATH_W='cygpath -w'
2289 else
2290 CYGPATH_W=echo
2291 fi
2292 fi
2293
2294
2295 # Define the identity of the package.
2296 PACKAGE='libXfixes'
2297 VERSION='4.0.3'
2298
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE "$PACKAGE"
2302 _ACEOF
2303
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define VERSION "$VERSION"
2307 _ACEOF
2308
2309 # Some tools Automake needs.
2310
2311 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2312
2313
2314 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2315
2316
2317 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2318
2319
2320 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2321
2322
2323 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2324
2325 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2326
2327 # Installed binaries are usually stripped using `strip' when the user
2328 # run `make install-strip'. However `strip' might not be the right
2329 # tool to use in cross-compilation environments, therefore Automake
2330 # will honor the `STRIP' environment variable to overrule this program.
2331 if test "$cross_compiling" != no; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}strip; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_STRIP+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -n "$STRIP"; then
2341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 STRIP=$ac_cv_prog_STRIP
2361 if test -n "$STRIP"; then
2362 { echo "$as_me:$LINENO: result: $STRIP" >&5
2363 echo "${ECHO_T}$STRIP" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 fi
2368
2369
2370 fi
2371 if test -z "$ac_cv_prog_STRIP"; then
2372 ac_ct_STRIP=$STRIP
2373 # Extract the first word of "strip", so it can be a program name with args.
2374 set dummy strip; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$ac_ct_STRIP"; then
2381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_ac_ct_STRIP="strip"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2393 fi
2394 done
2395 done
2396 IFS=$as_save_IFS
2397
2398 fi
2399 fi
2400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2401 if test -n "$ac_ct_STRIP"; then
2402 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2403 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2404 else
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2407 fi
2408
2409 if test "x$ac_ct_STRIP" = x; then
2410 STRIP=":"
2411 else
2412 case $cross_compiling:$ac_tool_warned in
2413 yes:)
2414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2420 ac_tool_warned=yes ;;
2421 esac
2422 STRIP=$ac_ct_STRIP
2423 fi
2424 else
2425 STRIP="$ac_cv_prog_STRIP"
2426 fi
2427
2428 fi
2429 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2430
2431 # We need awk for the "check" target. The system "awk" is bad on
2432 # some platforms.
2433 # Always define AMTAR for backward compatibility.
2434
2435 AMTAR=${AMTAR-"${am_missing_run}tar"}
2436
2437 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2438
2439
2440
2441
2442
2443
2444 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2445 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2446 # Check whether --enable-maintainer-mode was given.
2447 if test "${enable_maintainer_mode+set}" = set; then
2448 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2449 else
2450 USE_MAINTAINER_MODE=no
2451 fi
2452
2453 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2454 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2455
2456
2457 if test $USE_MAINTAINER_MODE = yes; then
2458 MAINTAINER_MODE_TRUE=
2459 MAINTAINER_MODE_FALSE='#'
2460 else
2461 MAINTAINER_MODE_TRUE='#'
2462 MAINTAINER_MODE_FALSE=
2463 fi
2464
2465 MAINT=$MAINTAINER_MODE_TRUE
2466
2467
2468
2469 ac_config_headers="$ac_config_headers config.h"
2470
2471
2472 # Check for progs
2473 ac_ext=c
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 CC=$ac_cv_prog_CC
2507 if test -n "$CC"; then
2508 { echo "$as_me:$LINENO: result: $CC" >&5
2509 echo "${ECHO_T}$CC" >&6; }
2510 else
2511 { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2513 fi
2514
2515
2516 fi
2517 if test -z "$ac_cv_prog_CC"; then
2518 ac_ct_CC=$CC
2519 # Extract the first word of "gcc", so it can be a program name with args.
2520 set dummy gcc; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 if test -n "$ac_ct_CC"; then
2527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_ac_ct_CC="gcc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549 echo "${ECHO_T}$ac_ct_CC" >&6; }
2550 else
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2553 fi
2554
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2561 whose name does not start with the host triplet. If you think this
2562 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2566 ac_tool_warned=yes ;;
2567 esac
2568 CC=$ac_ct_CC
2569 fi
2570 else
2571 CC="$ac_cv_prog_CC"
2572 fi
2573
2574 if test -z "$CC"; then
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}cc; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_CC="${ac_tool_prefix}cc"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597 done
2598 done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2607 else
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2610 fi
2611
2612
2613 fi
2614 fi
2615 if test -z "$CC"; then
2616 # Extract the first word of "cc", so it can be a program name with args.
2617 set dummy cc; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 ac_prog_rejected=no
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2635 ac_prog_rejected=yes
2636 continue
2637 fi
2638 ac_cv_prog_CC="cc"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 if test $ac_prog_rejected = yes; then
2647 # We found a bogon in the path, so make sure we never use it.
2648 set dummy $ac_cv_prog_CC
2649 shift
2650 if test $# != 0; then
2651 # We chose a different compiler from the bogus one.
2652 # However, it has the same basename, so the bogon will be chosen
2653 # first if we set CC to just the basename; use the full file name.
2654 shift
2655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2656 fi
2657 fi
2658 fi
2659 fi
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 { echo "$as_me:$LINENO: result: $CC" >&5
2663 echo "${ECHO_T}$CC" >&6; }
2664 else
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2667 fi
2668
2669
2670 fi
2671 if test -z "$CC"; then
2672 if test -n "$ac_tool_prefix"; then
2673 for ac_prog in cl.exe
2674 do
2675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704 { echo "$as_me:$LINENO: result: $CC" >&5
2705 echo "${ECHO_T}$CC" >&6; }
2706 else
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2709 fi
2710
2711
2712 test -n "$CC" && break
2713 done
2714 fi
2715 if test -z "$CC"; then
2716 ac_ct_CC=$CC
2717 for ac_prog in cl.exe
2718 do
2719 # Extract the first word of "$ac_prog", so it can be a program name with args.
2720 set dummy $ac_prog; ac_word=$2
2721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$ac_ct_CC"; then
2727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_ac_ct_CC="$ac_prog"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2747 if test -n "$ac_ct_CC"; then
2748 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2749 echo "${ECHO_T}$ac_ct_CC" >&6; }
2750 else
2751 { echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6; }
2753 fi
2754
2755
2756 test -n "$ac_ct_CC" && break
2757 done
2758
2759 if test "x$ac_ct_CC" = x; then
2760 CC=""
2761 else
2762 case $cross_compiling:$ac_tool_warned in
2763 yes:)
2764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2765 whose name does not start with the host triplet. If you think this
2766 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2768 whose name does not start with the host triplet. If you think this
2769 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2770 ac_tool_warned=yes ;;
2771 esac
2772 CC=$ac_ct_CC
2773 fi
2774 fi
2775
2776 fi
2777
2778
2779 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2780 See \`config.log' for more details." >&5
2781 echo "$as_me: error: no acceptable C compiler found in \$PATH
2782 See \`config.log' for more details." >&2;}
2783 { (exit 1); exit 1; }; }
2784
2785 # Provide some information about the compiler.
2786 echo "$as_me:$LINENO: checking for C compiler version" >&5
2787 ac_compiler=`set X $ac_compile; echo $2`
2788 { (ac_try="$ac_compiler --version >&5"
2789 case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_compiler --version >&5") 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }
2798 { (ac_try="$ac_compiler -v >&5"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compiler -v >&5") 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }
2808 { (ac_try="$ac_compiler -V >&5"
2809 case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compiler -V >&5") 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }
2818
2819 cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825
2826 int
2827 main ()
2828 {
2829
2830 ;
2831 return 0;
2832 }
2833 _ACEOF
2834 ac_clean_files_save=$ac_clean_files
2835 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2836 # Try to create an executable without -o first, disregard a.out.
2837 # It will help us diagnose broken compilers, and finding out an intuition
2838 # of exeext.
2839 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2840 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2841 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2842 #
2843 # List of possible output files, starting from the most likely.
2844 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2845 # only as a last resort. b.out is created by i960 compilers.
2846 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2847 #
2848 # The IRIX 6 linker writes into existing files which may not be
2849 # executable, retaining their permissions. Remove them first so a
2850 # subsequent execution test works.
2851 ac_rmfiles=
2852 for ac_file in $ac_files
2853 do
2854 case $ac_file in
2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2856 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2857 esac
2858 done
2859 rm -f $ac_rmfiles
2860
2861 if { (ac_try="$ac_link_default"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_link_default") 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2872 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2873 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2874 # so that the user can short-circuit this test for compilers unknown to
2875 # Autoconf.
2876 for ac_file in $ac_files
2877 do
2878 test -f "$ac_file" || continue
2879 case $ac_file in
2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2881 ;;
2882 [ab].out )
2883 # We found the default executable, but exeext='' is most
2884 # certainly right.
2885 break;;
2886 *.* )
2887 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2888 then :; else
2889 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 fi
2891 # We set ac_cv_exeext here because the later test for it is not
2892 # safe: cross compilers may not add the suffix if given an `-o'
2893 # argument, so we may need to know it at that point already.
2894 # Even if this section looks crufty: it has the advantage of
2895 # actually working.
2896 break;;
2897 * )
2898 break;;
2899 esac
2900 done
2901 test "$ac_cv_exeext" = no && ac_cv_exeext=
2902
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: C compiler cannot create executables
2910 See \`config.log' for more details." >&2;}
2911 { (exit 77); exit 77; }; }
2912 fi
2913
2914 ac_exeext=$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_file" >&5
2916 echo "${ECHO_T}$ac_file" >&6; }
2917
2918 # Check that the compiler produces executables we can run. If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2921 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2922 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2923 # If not cross compiling, check that we can run a simple program.
2924 if test "$cross_compiling" != yes; then
2925 if { ac_try='./$ac_file'
2926 { (case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_try") 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 cross_compiling=no
2936 else
2937 if test "$cross_compiling" = maybe; then
2938 cross_compiling=yes
2939 else
2940 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2941 If you meant to cross compile, use \`--host'.
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot run C compiled programs.
2944 If you meant to cross compile, use \`--host'.
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2947 fi
2948 fi
2949 fi
2950 { echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6; }
2952
2953 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2954 ac_clean_files=$ac_clean_files_save
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2958 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2959 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2960 echo "${ECHO_T}$cross_compiling" >&6; }
2961
2962 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2963 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2964 if { (ac_try="$ac_link"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; then
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 break;;
2984 * ) break;;
2985 esac
2986 done
2987 else
2988 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." >&2;}
2992 { (exit 1); exit 1; }; }
2993 fi
2994
2995 rm -f conftest$ac_cv_exeext
2996 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2997 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2998
2999 rm -f conftest.$ac_ext
3000 EXEEXT=$ac_cv_exeext
3001 ac_exeext=$EXEEXT
3002 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3003 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3004 if test "${ac_cv_objext+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013
3014 int
3015 main ()
3016 {
3017
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.o conftest.obj
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 for ac_file in conftest.o conftest.obj conftest.*; do
3034 test -f "$ac_file" || continue;
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3038 break;;
3039 esac
3040 done
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3048 See \`config.log' for more details." >&2;}
3049 { (exit 1); exit 1; }; }
3050 fi
3051
3052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3053 fi
3054 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3055 echo "${ECHO_T}$ac_cv_objext" >&6; }
3056 OBJEXT=$ac_cv_objext
3057 ac_objext=$OBJEXT
3058 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3059 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3060 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069
3070 int
3071 main ()
3072 {
3073 #ifndef __GNUC__
3074 choke me
3075 #endif
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3115 ac_compiler_gnu=yes
3116 else
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 ac_compiler_gnu=no
3121 fi
3122
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3125
3126 fi
3127 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3128 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3129 GCC=`test $ac_compiler_gnu = yes && echo yes`
3130 ac_test_CFLAGS=${CFLAGS+set}
3131 ac_save_CFLAGS=$CFLAGS
3132 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_cc_g+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 ac_save_c_werror_flag=$ac_c_werror_flag
3138 ac_c_werror_flag=yes
3139 ac_cv_prog_cc_g=no
3140 CFLAGS="-g"
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147
3148 int
3149 main ()
3150 {
3151
3152 ;
3153 return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_try") 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_prog_cc_g=yes
3191 else
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 CFLAGS=""
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202
3203 int
3204 main ()
3205 {
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (ac_try="$ac_compile"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compile") 2>conftest.er1
3219 ac_status=$?
3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_try") 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 :
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251 CFLAGS="-g"
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (ac_try="$ac_compile"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3282 { (case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_try") 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; } &&
3291 { ac_try='test -s conftest.$ac_objext'
3292 { (case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_try") 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 ac_cv_prog_cc_g=yes
3302 else
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306
3307 fi
3308
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 fi
3311
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 fi
3314
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 ac_c_werror_flag=$ac_save_c_werror_flag
3317 fi
3318 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3319 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3320 if test "$ac_test_CFLAGS" = set; then
3321 CFLAGS=$ac_save_CFLAGS
3322 elif test $ac_cv_prog_cc_g = yes; then
3323 if test "$GCC" = yes; then
3324 CFLAGS="-g -O2"
3325 else
3326 CFLAGS="-g"
3327 fi
3328 else
3329 if test "$GCC" = yes; then
3330 CFLAGS="-O2"
3331 else
3332 CFLAGS=
3333 fi
3334 fi
3335 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3336 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_cc_c89+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 ac_cv_prog_cc_c89=no
3341 ac_save_CC=$CC
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 #include <stdarg.h>
3349 #include <stdio.h>
3350 #include <sys/types.h>
3351 #include <sys/stat.h>
3352 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3353 struct buf { int x; };
3354 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3355 static char *e (p, i)
3356 char **p;
3357 int i;
3358 {
3359 return p[i];
3360 }
3361 static char *f (char * (*g) (char **, int), char **p, ...)
3362 {
3363 char *s;
3364 va_list v;
3365 va_start (v,p);
3366 s = g (p, va_arg (v,int));
3367 va_end (v);
3368 return s;
3369 }
3370
3371 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3372 function prototypes and stuff, but not '\xHH' hex character constants.
3373 These don't provoke an error unfortunately, instead are silently treated
3374 as 'x'. The following induces an error, until -std is added to get
3375 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3376 array size at least. It's necessary to write '\x00'==0 to get something
3377 that's true only with -std. */
3378 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3379
3380 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3381 inside strings and character constants. */
3382 #define FOO(x) 'x'
3383 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3384
3385 int test (int i, double x);
3386 struct s1 {int (*f) (int a);};
3387 struct s2 {int (*f) (double a);};
3388 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3389 int argc;
3390 char **argv;
3391 int
3392 main ()
3393 {
3394 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3400 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3401 do
3402 CC="$ac_save_CC $ac_arg"
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3418 { (case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_try") 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_try") 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_cv_prog_cc_c89=$ac_arg
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442
3443 fi
3444
3445 rm -f core conftest.err conftest.$ac_objext
3446 test "x$ac_cv_prog_cc_c89" != "xno" && break
3447 done
3448 rm -f conftest.$ac_ext
3449 CC=$ac_save_CC
3450
3451 fi
3452 # AC_CACHE_VAL
3453 case "x$ac_cv_prog_cc_c89" in
3454 x)
3455 { echo "$as_me:$LINENO: result: none needed" >&5
3456 echo "${ECHO_T}none needed" >&6; } ;;
3457 xno)
3458 { echo "$as_me:$LINENO: result: unsupported" >&5
3459 echo "${ECHO_T}unsupported" >&6; } ;;
3460 *)
3461 CC="$CC $ac_cv_prog_cc_c89"
3462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3463 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3464 esac
3465
3466
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 DEPDIR="${am__leading_dot}deps"
3473
3474 ac_config_commands="$ac_config_commands depfiles"
3475
3476
3477 am_make=${MAKE-make}
3478 cat > confinc << 'END'
3479 am__doit:
3480 @echo done
3481 .PHONY: am__doit
3482 END
3483 # If we don't find an include directive, just comment out the code.
3484 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3485 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3486 am__include="#"
3487 am__quote=
3488 _am_result=none
3489 # First try GNU make style include.
3490 echo "include confinc" > confmf
3491 # We grep out `Entering directory' and `Leaving directory'
3492 # messages which can occur if `w' ends up in MAKEFLAGS.
3493 # In particular we don't look at `^make:' because GNU make might
3494 # be invoked under some other name (usually "gmake"), in which
3495 # case it prints its new name instead of `make'.
3496 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3497 am__include=include
3498 am__quote=
3499 _am_result=GNU
3500 fi
3501 # Now try BSD make style include.
3502 if test "$am__include" = "#"; then
3503 echo '.include "confinc"' > confmf
3504 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3505 am__include=.include
3506 am__quote="\""
3507 _am_result=BSD
3508 fi
3509 fi
3510
3511
3512 { echo "$as_me:$LINENO: result: $_am_result" >&5
3513 echo "${ECHO_T}$_am_result" >&6; }
3514 rm -f confinc confmf
3515
3516 # Check whether --enable-dependency-tracking was given.
3517 if test "${enable_dependency_tracking+set}" = set; then
3518 enableval=$enable_dependency_tracking;
3519 fi
3520
3521 if test "x$enable_dependency_tracking" != xno; then
3522 am_depcomp="$ac_aux_dir/depcomp"
3523 AMDEPBACKSLASH='\'
3524 fi
3525
3526
3527 if test "x$enable_dependency_tracking" != xno; then
3528 AMDEP_TRUE=
3529 AMDEP_FALSE='#'
3530 else
3531 AMDEP_TRUE='#'
3532 AMDEP_FALSE=
3533 fi
3534
3535
3536
3537
3538 depcc="$CC" am_compiler_list=
3539
3540 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3541 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3542 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3546 # We make a subdir and do the tests there. Otherwise we can end up
3547 # making bogus files that we don't know about and never remove. For
3548 # instance it was reported that on HP-UX the gcc test will end up
3549 # making a dummy file named `D' -- because `-MD' means `put the output
3550 # in D'.
3551 mkdir conftest.dir
3552 # Copy depcomp to subdir because otherwise we won't find it if we're
3553 # using a relative directory.
3554 cp "$am_depcomp" conftest.dir
3555 cd conftest.dir
3556 # We will build objects and dependencies in a subdirectory because
3557 # it helps to detect inapplicable dependency modes. For instance
3558 # both Tru64's cc and ICC support -MD to output dependencies as a
3559 # side effect of compilation, but ICC will put the dependencies in
3560 # the current directory while Tru64 will put them in the object
3561 # directory.
3562 mkdir sub
3563
3564 am_cv_CC_dependencies_compiler_type=none
3565 if test "$am_compiler_list" = ""; then
3566 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 fi
3568 for depmode in $am_compiler_list; do
3569 # Setup a source with many dependencies, because some compilers
3570 # like to wrap large dependency lists on column 80 (with \), and
3571 # we should not choose a depcomp mode which is confused by this.
3572 #
3573 # We need to recreate these files for each test, as the compiler may
3574 # overwrite some of them when testing with obscure command lines.
3575 # This happens at least with the AIX C compiler.
3576 : > sub/conftest.c
3577 for i in 1 2 3 4 5 6; do
3578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3579 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3580 # Solaris 8's {/usr,}/bin/sh.
3581 touch sub/conftst$i.h
3582 done
3583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584
3585 case $depmode in
3586 nosideeffect)
3587 # after this tag, mechanisms are not by side-effect, so they'll
3588 # only be used when explicitly requested
3589 if test "x$enable_dependency_tracking" = xyes; then
3590 continue
3591 else
3592 break
3593 fi
3594 ;;
3595 none) break ;;
3596 esac
3597 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3598 # mode. It turns out that the SunPro C++ compiler does not properly
3599 # handle `-M -o', and we need to detect this.
3600 if depmode=$depmode \
3601 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3603 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3604 >/dev/null 2>conftest.err &&
3605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3606 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3608 # icc doesn't choke on unknown options, it will just issue warnings
3609 # or remarks (even with -Werror). So we grep stderr for any message
3610 # that says an option was ignored or not supported.
3611 # When given -MP, icc 7.0 and 7.1 complain thusly:
3612 # icc: Command line warning: ignoring option '-M'; no argument required
3613 # The diagnosis changed in icc 8.0:
3614 # icc: Command line remark: option '-MP' not supported
3615 if (grep 'ignoring option' conftest.err ||
3616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3617 am_cv_CC_dependencies_compiler_type=$depmode
3618 break
3619 fi
3620 fi
3621 done
3622
3623 cd ..
3624 rm -rf conftest.dir
3625 else
3626 am_cv_CC_dependencies_compiler_type=none
3627 fi
3628
3629 fi
3630 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3631 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3632 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3633
3634
3635
3636 if
3637 test "x$enable_dependency_tracking" != xno \
3638 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3639 am__fastdepCC_TRUE=
3640 am__fastdepCC_FALSE='#'
3641 else
3642 am__fastdepCC_TRUE='#'
3643 am__fastdepCC_FALSE=
3644 fi
3645
3646
3647 # Check whether --enable-shared was given.
3648 if test "${enable_shared+set}" = set; then
3649 enableval=$enable_shared; p=${PACKAGE-default}
3650 case $enableval in
3651 yes) enable_shared=yes ;;
3652 no) enable_shared=no ;;
3653 *)
3654 enable_shared=no
3655 # Look at the argument we got. We use all the common list separators.
3656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3657 for pkg in $enableval; do
3658 IFS="$lt_save_ifs"
3659 if test "X$pkg" = "X$p"; then
3660 enable_shared=yes
3661 fi
3662 done
3663 IFS="$lt_save_ifs"
3664 ;;
3665 esac
3666 else
3667 enable_shared=yes
3668 fi
3669
3670
3671 # Check whether --enable-static was given.
3672 if test "${enable_static+set}" = set; then
3673 enableval=$enable_static; p=${PACKAGE-default}
3674 case $enableval in
3675 yes) enable_static=yes ;;
3676 no) enable_static=no ;;
3677 *)
3678 enable_static=no
3679 # Look at the argument we got. We use all the common list separators.
3680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681 for pkg in $enableval; do
3682 IFS="$lt_save_ifs"
3683 if test "X$pkg" = "X$p"; then
3684 enable_static=yes
3685 fi
3686 done
3687 IFS="$lt_save_ifs"
3688 ;;
3689 esac
3690 else
3691 enable_static=yes
3692 fi
3693
3694
3695 # Check whether --enable-fast-install was given.
3696 if test "${enable_fast_install+set}" = set; then
3697 enableval=$enable_fast_install; p=${PACKAGE-default}
3698 case $enableval in
3699 yes) enable_fast_install=yes ;;
3700 no) enable_fast_install=no ;;
3701 *)
3702 enable_fast_install=no
3703 # Look at the argument we got. We use all the common list separators.
3704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3705 for pkg in $enableval; do
3706 IFS="$lt_save_ifs"
3707 if test "X$pkg" = "X$p"; then
3708 enable_fast_install=yes
3709 fi
3710 done
3711 IFS="$lt_save_ifs"
3712 ;;
3713 esac
3714 else
3715 enable_fast_install=yes
3716 fi
3717
3718
3719 # Make sure we can run config.sub.
3720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3721 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3722 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3723 { (exit 1); exit 1; }; }
3724
3725 { echo "$as_me:$LINENO: checking build system type" >&5
3726 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3727 if test "${ac_cv_build+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 ac_build_alias=$build_alias
3731 test "x$ac_build_alias" = x &&
3732 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3733 test "x$ac_build_alias" = x &&
3734 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3735 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3736 { (exit 1); exit 1; }; }
3737 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3738 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3739 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3740 { (exit 1); exit 1; }; }
3741
3742 fi
3743 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3744 echo "${ECHO_T}$ac_cv_build" >&6; }
3745 case $ac_cv_build in
3746 *-*-*) ;;
3747 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3748 echo "$as_me: error: invalid value of canonical build" >&2;}
3749 { (exit 1); exit 1; }; };;
3750 esac
3751 build=$ac_cv_build
3752 ac_save_IFS=$IFS; IFS='-'
3753 set x $ac_cv_build
3754 shift
3755 build_cpu=$1
3756 build_vendor=$2
3757 shift; shift
3758 # Remember, the first character of IFS is used to create $*,
3759 # except with old shells:
3760 build_os=$*
3761 IFS=$ac_save_IFS
3762 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3763
3764
3765 { echo "$as_me:$LINENO: checking host system type" >&5
3766 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3767 if test "${ac_cv_host+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 if test "x$host_alias" = x; then
3771 ac_cv_host=$ac_cv_build
3772 else
3773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3774 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3775 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3776 { (exit 1); exit 1; }; }
3777 fi
3778
3779 fi
3780 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3781 echo "${ECHO_T}$ac_cv_host" >&6; }
3782 case $ac_cv_host in
3783 *-*-*) ;;
3784 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3785 echo "$as_me: error: invalid value of canonical host" >&2;}
3786 { (exit 1); exit 1; }; };;
3787 esac
3788 host=$ac_cv_host
3789 ac_save_IFS=$IFS; IFS='-'
3790 set x $ac_cv_host
3791 shift
3792 host_cpu=$1
3793 host_vendor=$2
3794 shift; shift
3795 # Remember, the first character of IFS is used to create $*,
3796 # except with old shells:
3797 host_os=$*
3798 IFS=$ac_save_IFS
3799 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3800
3801
3802 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3803 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3804 if test "${lt_cv_path_SED+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807 # Loop through the user's path and test for sed and gsed.
3808 # Then use that list of sed's as ones to test for truncation.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for lt_ac_prog in sed gsed; do
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3817 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3818 fi
3819 done
3820 done
3821 done
3822 lt_ac_max=0
3823 lt_ac_count=0
3824 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3825 # along with /bin/sed that truncates output.
3826 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3827 test ! -f $lt_ac_sed && continue
3828 cat /dev/null > conftest.in
3829 lt_ac_count=0
3830 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3831 # Check for GNU sed and select it if it is found.
3832 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3833 lt_cv_path_SED=$lt_ac_sed
3834 break
3835 fi
3836 while true; do
3837 cat conftest.in conftest.in >conftest.tmp
3838 mv conftest.tmp conftest.in
3839 cp conftest.in conftest.nl
3840 echo >>conftest.nl
3841 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3842 cmp -s conftest.out conftest.nl || break
3843 # 10000 chars as input seems more than enough
3844 test $lt_ac_count -gt 10 && break
3845 lt_ac_count=`expr $lt_ac_count + 1`
3846 if test $lt_ac_count -gt $lt_ac_max; then
3847 lt_ac_max=$lt_ac_count
3848 lt_cv_path_SED=$lt_ac_sed
3849 fi
3850 done
3851 done
3852
3853 fi
3854
3855 SED=$lt_cv_path_SED
3856 { echo "$as_me:$LINENO: result: $SED" >&5
3857 echo "${ECHO_T}$SED" >&6; }
3858
3859 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3860 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3861 if test "${ac_cv_path_GREP+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 # Extract the first word of "grep ggrep" to use in msg output
3865 if test -z "$GREP"; then
3866 set dummy grep ggrep; ac_prog_name=$2
3867 if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 ac_path_GREP_found=false
3871 # Loop through the user's path and test for each of PROGNAME-LIST
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874 do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in grep ggrep; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3880 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3881 # Check for GNU ac_path_GREP and select it if it is found.
3882 # Check for GNU $ac_path_GREP
3883 case `"$ac_path_GREP" --version 2>&1` in
3884 *GNU*)
3885 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3886 *)
3887 ac_count=0
3888 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889 while :
3890 do
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 echo 'GREP' >> "conftest.nl"
3895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897 ac_count=`expr $ac_count + 1`
3898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_GREP="$ac_path_GREP"
3901 ac_path_GREP_max=$ac_count
3902 fi
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3905 done
3906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907 esac
3908
3909
3910 $ac_path_GREP_found && break 3
3911 done
3912 done
3913
3914 done
3915 IFS=$as_save_IFS
3916
3917
3918 fi
3919
3920 GREP="$ac_cv_path_GREP"
3921 if test -z "$GREP"; then
3922 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924 { (exit 1); exit 1; }; }
3925 fi
3926
3927 else
3928 ac_cv_path_GREP=$GREP
3929 fi
3930
3931
3932 fi
3933 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3934 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3935 GREP="$ac_cv_path_GREP"
3936
3937
3938 { echo "$as_me:$LINENO: checking for egrep" >&5
3939 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_EGREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3944 then ac_cv_path_EGREP="$GREP -E"
3945 else
3946 # Extract the first word of "egrep" to use in msg output
3947 if test -z "$EGREP"; then
3948 set dummy egrep; ac_prog_name=$2
3949 if test "${ac_cv_path_EGREP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 ac_path_EGREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in egrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3963 # Check for GNU ac_path_EGREP and select it if it is found.
3964 # Check for GNU $ac_path_EGREP
3965 case `"$ac_path_EGREP" --version 2>&1` in
3966 *GNU*)
3967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968 *)
3969 ac_count=0
3970 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 echo 'EGREP' >> "conftest.nl"
3977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 ac_count=`expr $ac_count + 1`
3980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_EGREP="$ac_path_EGREP"
3983 ac_path_EGREP_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 esac
3990
3991
3992 $ac_path_EGREP_found && break 3
3993 done
3994 done
3995
3996 done
3997 IFS=$as_save_IFS
3998
3999
4000 fi
4001
4002 EGREP="$ac_cv_path_EGREP"
4003 if test -z "$EGREP"; then
4004 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4005 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4006 { (exit 1); exit 1; }; }
4007 fi
4008
4009 else
4010 ac_cv_path_EGREP=$EGREP
4011 fi
4012
4013
4014 fi
4015 fi
4016 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4017 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4018 EGREP="$ac_cv_path_EGREP"
4019
4020
4021
4022 # Check whether --with-gnu-ld was given.
4023 if test "${with_gnu_ld+set}" = set; then
4024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4025 else
4026 with_gnu_ld=no
4027 fi
4028
4029 ac_prog=ld
4030 if test "$GCC" = yes; then
4031 # Check if gcc -print-prog-name=ld gives a path.
4032 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4033 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4034 case $host in
4035 *-*-mingw*)
4036 # gcc leaves a trailing carriage return which upsets mingw
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4038 *)
4039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4040 esac
4041 case $ac_prog in
4042 # Accept absolute paths.
4043 [\\/]* | ?:[\\/]*)
4044 re_direlt='/[^/][^/]*/\.\./'
4045 # Canonicalize the pathname of ld
4046 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4047 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4048 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4049 done
4050 test -z "$LD" && LD="$ac_prog"
4051 ;;
4052 "")
4053 # If it fails, then pretend we aren't using GCC.
4054 ac_prog=ld
4055 ;;
4056 *)
4057 # If it is relative, then search for the first ld in PATH.
4058 with_gnu_ld=unknown
4059 ;;
4060 esac
4061 elif test "$with_gnu_ld" = yes; then
4062 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4063 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4064 else
4065 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4066 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4067 fi
4068 if test "${lt_cv_path_LD+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 if test -z "$LD"; then
4072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4073 for ac_dir in $PATH; do
4074 IFS="$lt_save_ifs"
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4077 lt_cv_path_LD="$ac_dir/$ac_prog"
4078 # Check to see if the program is GNU ld. I'd rather use --version,
4079 # but apparently some variants of GNU ld only accept -v.
4080 # Break only if it was the GNU/non-GNU ld that we prefer.
4081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4082 *GNU* | *'with BFD'*)
4083 test "$with_gnu_ld" != no && break
4084 ;;
4085 *)
4086 test "$with_gnu_ld" != yes && break
4087 ;;
4088 esac
4089 fi
4090 done
4091 IFS="$lt_save_ifs"
4092 else
4093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4094 fi
4095 fi
4096
4097 LD="$lt_cv_path_LD"
4098 if test -n "$LD"; then
4099 { echo "$as_me:$LINENO: result: $LD" >&5
4100 echo "${ECHO_T}$LD" >&6; }
4101 else
4102 { echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6; }
4104 fi
4105 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4106 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4107 { (exit 1); exit 1; }; }
4108 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4109 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4110 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4114 case `$LD -v 2>&1 </dev/null` in
4115 *GNU* | *'with BFD'*)
4116 lt_cv_prog_gnu_ld=yes
4117 ;;
4118 *)
4119 lt_cv_prog_gnu_ld=no
4120 ;;
4121 esac
4122 fi
4123 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4124 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4125 with_gnu_ld=$lt_cv_prog_gnu_ld
4126
4127
4128 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4129 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4130 if test "${lt_cv_ld_reload_flag+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 lt_cv_ld_reload_flag='-r'
4134 fi
4135 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4136 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4137 reload_flag=$lt_cv_ld_reload_flag
4138 case $reload_flag in
4139 "" | " "*) ;;
4140 *) reload_flag=" $reload_flag" ;;
4141 esac
4142 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4143 case $host_os in
4144 darwin*)
4145 if test "$GCC" = yes; then
4146 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4147 else
4148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149 fi
4150 ;;
4151 esac
4152
4153 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4154 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4155 if test "${lt_cv_path_NM+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 if test -n "$NM"; then
4159 # Let the user override the test.
4160 lt_cv_path_NM="$NM"
4161 else
4162 lt_nm_to_check="${ac_tool_prefix}nm"
4163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4164 lt_nm_to_check="$lt_nm_to_check nm"
4165 fi
4166 for lt_tmp_nm in $lt_nm_to_check; do
4167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4169 IFS="$lt_save_ifs"
4170 test -z "$ac_dir" && ac_dir=.
4171 tmp_nm="$ac_dir/$lt_tmp_nm"
4172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173 # Check to see if the nm accepts a BSD-compat flag.
4174 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175 # nm: unknown option "B" ignored
4176 # Tru64's nm complains that /dev/null is an invalid object file
4177 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178 */dev/null* | *'Invalid file or object type'*)
4179 lt_cv_path_NM="$tmp_nm -B"
4180 break
4181 ;;
4182 *)
4183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184 */dev/null*)
4185 lt_cv_path_NM="$tmp_nm -p"
4186 break
4187 ;;
4188 *)
4189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190 continue # so that we can try to find one that supports BSD flags
4191 ;;
4192 esac
4193 ;;
4194 esac
4195 fi
4196 done
4197 IFS="$lt_save_ifs"
4198 done
4199 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4200 fi
4201 fi
4202 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4203 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4204 NM="$lt_cv_path_NM"
4205
4206 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4207 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4208 LN_S=$as_ln_s
4209 if test "$LN_S" = "ln -s"; then
4210 { echo "$as_me:$LINENO: result: yes" >&5
4211 echo "${ECHO_T}yes" >&6; }
4212 else
4213 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4214 echo "${ECHO_T}no, using $LN_S" >&6; }
4215 fi
4216
4217 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4218 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4219 if test "${lt_cv_deplibs_check_method+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 lt_cv_file_magic_cmd='$MAGIC_CMD'
4223 lt_cv_file_magic_test_file=
4224 lt_cv_deplibs_check_method='unknown'
4225 # Need to set the preceding variable on all platforms that support
4226 # interlibrary dependencies.
4227 # 'none' -- dependencies not supported.
4228 # `unknown' -- same as none, but documents that we really don't know.
4229 # 'pass_all' -- all dependencies passed with no checks.
4230 # 'test_compile' -- check by making test program.
4231 # 'file_magic [[regex]]' -- check by looking for files in library path
4232 # which responds to the $file_magic_cmd with a given extended regex.
4233 # If you have `file' or equivalent on your system and you're not sure
4234 # whether `pass_all' will *always* work, you probably want this one.
4235
4236 case $host_os in
4237 aix4* | aix5*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
4240
4241 beos*)
4242 lt_cv_deplibs_check_method=pass_all
4243 ;;
4244
4245 bsdi[45]*)
4246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4247 lt_cv_file_magic_cmd='/usr/bin/file -L'
4248 lt_cv_file_magic_test_file=/shlib/libc.so
4249 ;;
4250
4251 cygwin*)
4252 # func_win32_libid is a shell function defined in ltmain.sh
4253 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4254 lt_cv_file_magic_cmd='func_win32_libid'
4255 ;;
4256
4257 mingw* | pw32*)
4258 # Base MSYS/MinGW do not provide the 'file' command needed by
4259 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4260 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4261 lt_cv_file_magic_cmd='$OBJDUMP -f'
4262 ;;
4263
4264 darwin* | rhapsody*)
4265 lt_cv_deplibs_check_method=pass_all
4266 ;;
4267
4268 freebsd* | dragonfly*)
4269 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4270 case $host_cpu in
4271 i*86 )
4272 # Not sure whether the presence of OpenBSD here was a mistake.
4273 # Let's accept both of them until this is cleared up.
4274 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4275 lt_cv_file_magic_cmd=/usr/bin/file
4276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4277 ;;
4278 esac
4279 else
4280 lt_cv_deplibs_check_method=pass_all
4281 fi
4282 ;;
4283
4284 gnu*)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287
4288 hpux10.20* | hpux11*)
4289 lt_cv_file_magic_cmd=/usr/bin/file
4290 case $host_cpu in
4291 ia64*)
4292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4293 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4294 ;;
4295 hppa*64*)
4296 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]'
4297 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4298 ;;
4299 *)
4300 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4301 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4302 ;;
4303 esac
4304 ;;
4305
4306 interix3*)
4307 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4309 ;;
4310
4311 irix5* | irix6* | nonstopux*)
4312 case $LD in
4313 *-32|*"-32 ") libmagic=32-bit;;
4314 *-n32|*"-n32 ") libmagic=N32;;
4315 *-64|*"-64 ") libmagic=64-bit;;
4316 *) libmagic=never-match;;
4317 esac
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
4321 # This must be Linux ELF.
4322 linux* | k*bsd*-gnu)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325
4326 netbsd* | netbsdelf*-gnu)
4327 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4329 else
4330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4331 fi
4332 ;;
4333
4334 newos6*)
4335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4336 lt_cv_file_magic_cmd=/usr/bin/file
4337 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4338 ;;
4339
4340 nto-qnx*)
4341 lt_cv_deplibs_check_method=unknown
4342 ;;
4343
4344 openbsd*)
4345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4347 else
4348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4349 fi
4350 ;;
4351
4352 osf3* | osf4* | osf5*)
4353 lt_cv_deplibs_check_method=pass_all
4354 ;;
4355
4356 solaris*)
4357 lt_cv_deplibs_check_method=pass_all
4358 ;;
4359
4360 sysv4 | sysv4.3*)
4361 case $host_vendor in
4362 motorola)
4363 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]'
4364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4365 ;;
4366 ncr)
4367 lt_cv_deplibs_check_method=pass_all
4368 ;;
4369 sequent)
4370 lt_cv_file_magic_cmd='/bin/file'
4371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4372 ;;
4373 sni)
4374 lt_cv_file_magic_cmd='/bin/file'
4375 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4376 lt_cv_file_magic_test_file=/lib/libc.so
4377 ;;
4378 siemens)
4379 lt_cv_deplibs_check_method=pass_all
4380 ;;
4381 pc)
4382 lt_cv_deplibs_check_method=pass_all
4383 ;;
4384 esac
4385 ;;
4386
4387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4388 lt_cv_deplibs_check_method=pass_all
4389 ;;
4390 esac
4391
4392 fi
4393 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4394 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4395 file_magic_cmd=$lt_cv_file_magic_cmd
4396 deplibs_check_method=$lt_cv_deplibs_check_method
4397 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4398
4399
4400
4401
4402 # If no C compiler was specified, use CC.
4403 LTCC=${LTCC-"$CC"}
4404
4405 # If no C compiler flags were specified, use CFLAGS.
4406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4407
4408 # Allow CC to be a program name with arguments.
4409 compiler=$CC
4410
4411
4412 # Check whether --enable-libtool-lock was given.
4413 if test "${enable_libtool_lock+set}" = set; then
4414 enableval=$enable_libtool_lock;
4415 fi
4416
4417 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4418
4419 # Some flags need to be propagated to the compiler or linker for good
4420 # libtool support.
4421 case $host in
4422 ia64-*-hpux*)
4423 # Find out which ABI we are using.
4424 echo 'int i;' > conftest.$ac_ext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; then
4430 case `/usr/bin/file conftest.$ac_objext` in
4431 *ELF-32*)
4432 HPUX_IA64_MODE="32"
4433 ;;
4434 *ELF-64*)
4435 HPUX_IA64_MODE="64"
4436 ;;
4437 esac
4438 fi
4439 rm -rf conftest*
4440 ;;
4441 *-*-irix6*)
4442 # Find out which ABI we are using.
4443 echo '#line 4443 "configure"' > conftest.$ac_ext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445 (eval $ac_compile) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; then
4449 if test "$lt_cv_prog_gnu_ld" = yes; then
4450 case `/usr/bin/file conftest.$ac_objext` in
4451 *32-bit*)
4452 LD="${LD-ld} -melf32bsmip"
4453 ;;
4454 *N32*)
4455 LD="${LD-ld} -melf32bmipn32"
4456 ;;
4457 *64-bit*)
4458 LD="${LD-ld} -melf64bmip"
4459 ;;
4460 esac
4461 else
4462 case `/usr/bin/file conftest.$ac_objext` in
4463 *32-bit*)
4464 LD="${LD-ld} -32"
4465 ;;
4466 *N32*)
4467 LD="${LD-ld} -n32"
4468 ;;
4469 *64-bit*)
4470 LD="${LD-ld} -64"
4471 ;;
4472 esac
4473 fi
4474 fi
4475 rm -rf conftest*
4476 ;;
4477
4478 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4479 # Find out which ABI we are using.
4480 echo 'int i;' > conftest.$ac_ext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; then
4486 case `/usr/bin/file conftest.o` in
4487 *32-bit*)
4488 case $host in
4489 x86_64-*linux*)
4490 LD="${LD-ld} -m elf_i386"
4491 ;;
4492 ppc64-*linux*|powerpc64-*linux*)
4493 LD="${LD-ld} -m elf32ppclinux"
4494 ;;
4495 s390x-*linux*)
4496 LD="${LD-ld} -m elf_s390"
4497 ;;
4498 sparc64-*linux*)
4499 LD="${LD-ld} -m elf32_sparc"
4500 ;;
4501 esac
4502 ;;
4503 *64-bit*)
4504 case $host in
4505 x86_64-*linux*)
4506 LD="${LD-ld} -m elf_x86_64"
4507 ;;
4508 ppc*-*linux*|powerpc*-*linux*)
4509 LD="${LD-ld} -m elf64ppc"
4510 ;;
4511 s390*-*linux*)
4512 LD="${LD-ld} -m elf64_s390"
4513 ;;
4514 sparc*-*linux*)
4515 LD="${LD-ld} -m elf64_sparc"
4516 ;;
4517 esac
4518 ;;
4519 esac
4520 fi
4521 rm -rf conftest*
4522 ;;
4523
4524 *-*-sco3.2v5*)
4525 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4526 SAVE_CFLAGS="$CFLAGS"
4527 CFLAGS="$CFLAGS -belf"
4528 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4529 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4530 if test "${lt_cv_cc_needs_belf+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 rm -f conftest.$ac_objext conftest$ac_exeext
4555 if { (ac_try="$ac_link"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_link") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4569 { (case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_try") 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest$ac_exeext'
4579 { (case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_try") 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 lt_cv_cc_needs_belf=yes
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 lt_cv_cc_needs_belf=no
4594 fi
4595
4596 rm -f core conftest.err conftest.$ac_objext \
4597 conftest$ac_exeext conftest.$ac_ext
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604 fi
4605 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4606 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4607 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4609 CFLAGS="$SAVE_CFLAGS"
4610 fi
4611 ;;
4612 sparc*-*solaris*)
4613 # Find out which ABI we are using.
4614 echo 'int i;' > conftest.$ac_ext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; then
4620 case `/usr/bin/file conftest.o` in
4621 *64-bit*)
4622 case $lt_cv_prog_gnu_ld in
4623 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4624 *) LD="${LD-ld} -64" ;;
4625 esac
4626 ;;
4627 esac
4628 fi
4629 rm -rf conftest*
4630 ;;
4631
4632
4633 esac
4634
4635 need_locks="$enable_libtool_lock"
4636
4637
4638 ac_ext=c
4639 ac_cpp='$CPP $CPPFLAGS'
4640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4644 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4645 # On Suns, sometimes $CPP names a directory.
4646 if test -n "$CPP" && test -d "$CPP"; then
4647 CPP=
4648 fi
4649 if test -z "$CPP"; then
4650 if test "${ac_cv_prog_CPP+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 # Double quotes because CPP needs to be expanded
4654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4655 do
4656 ac_preproc_ok=false
4657 for ac_c_preproc_warn_flag in '' yes
4658 do
4659 # Use a header file that comes with gcc, so configuring glibc
4660 # with a fresh cross-compiler works.
4661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662 # <limits.h> exists even on freestanding compilers.
4663 # On the NeXT, cc -E runs the code through the compiler's parser,
4664 # not just through cpp. "Syntax error" is here to catch this case.
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 #ifdef __STDC__
4672 # include <limits.h>
4673 #else
4674 # include <assert.h>
4675 #endif
4676 Syntax error
4677 _ACEOF
4678 if { (ac_try="$ac_cpp conftest.$ac_ext"
4679 case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null; then
4691 if test -s conftest.err; then
4692 ac_cpp_err=$ac_c_preproc_warn_flag
4693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4694 else
4695 ac_cpp_err=
4696 fi
4697 else
4698 ac_cpp_err=yes
4699 fi
4700 if test -z "$ac_cpp_err"; then
4701 :
4702 else
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 # Broken: fails on valid input.
4707 continue
4708 fi
4709
4710 rm -f conftest.err conftest.$ac_ext
4711
4712 # OK, works on sane cases. Now check whether nonexistent headers
4713 # can be detected and how.
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 #include <ac_nonexistent.h>
4721 _ACEOF
4722 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } >/dev/null; then
4735 if test -s conftest.err; then
4736 ac_cpp_err=$ac_c_preproc_warn_flag
4737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4738 else
4739 ac_cpp_err=
4740 fi
4741 else
4742 ac_cpp_err=yes
4743 fi
4744 if test -z "$ac_cpp_err"; then
4745 # Broken: success on invalid input.
4746 continue
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 # Passes both tests.
4752 ac_preproc_ok=:
4753 break
4754 fi
4755
4756 rm -f conftest.err conftest.$ac_ext
4757
4758 done
4759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4760 rm -f conftest.err conftest.$ac_ext
4761 if $ac_preproc_ok; then
4762 break
4763 fi
4764
4765 done
4766 ac_cv_prog_CPP=$CPP
4767
4768 fi
4769 CPP=$ac_cv_prog_CPP
4770 else
4771 ac_cv_prog_CPP=$CPP
4772 fi
4773 { echo "$as_me:$LINENO: result: $CPP" >&5
4774 echo "${ECHO_T}$CPP" >&6; }
4775 ac_preproc_ok=false
4776 for ac_c_preproc_warn_flag in '' yes
4777 do
4778 # Use a header file that comes with gcc, so configuring glibc
4779 # with a fresh cross-compiler works.
4780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4781 # <limits.h> exists even on freestanding compilers.
4782 # On the NeXT, cc -E runs the code through the compiler's parser,
4783 # not just through cpp. "Syntax error" is here to catch this case.
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #ifdef __STDC__
4791 # include <limits.h>
4792 #else
4793 # include <assert.h>
4794 #endif
4795 Syntax error
4796 _ACEOF
4797 if { (ac_try="$ac_cpp conftest.$ac_ext"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } >/dev/null; then
4810 if test -s conftest.err; then
4811 ac_cpp_err=$ac_c_preproc_warn_flag
4812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4813 else
4814 ac_cpp_err=
4815 fi
4816 else
4817 ac_cpp_err=yes
4818 fi
4819 if test -z "$ac_cpp_err"; then
4820 :
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 # Broken: fails on valid input.
4826 continue
4827 fi
4828
4829 rm -f conftest.err conftest.$ac_ext
4830
4831 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how.
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 #include <ac_nonexistent.h>
4840 _ACEOF
4841 if { (ac_try="$ac_cpp conftest.$ac_ext"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } >/dev/null; then
4854 if test -s conftest.err; then
4855 ac_cpp_err=$ac_c_preproc_warn_flag
4856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4857 else
4858 ac_cpp_err=
4859 fi
4860 else
4861 ac_cpp_err=yes
4862 fi
4863 if test -z "$ac_cpp_err"; then
4864 # Broken: success on invalid input.
4865 continue
4866 else
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 # Passes both tests.
4871 ac_preproc_ok=:
4872 break
4873 fi
4874
4875 rm -f conftest.err conftest.$ac_ext
4876
4877 done
4878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4879 rm -f conftest.err conftest.$ac_ext
4880 if $ac_preproc_ok; then
4881 :
4882 else
4883 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4886 See \`config.log' for more details." >&2;}
4887 { (exit 1); exit 1; }; }
4888 fi
4889
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
4896
4897 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4898 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4899 if test "${ac_cv_header_stdc+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <stdlib.h>
4909 #include <stdarg.h>
4910 #include <string.h>
4911 #include <float.h>
4912
4913 int
4914 main ()
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (ac_try="$ac_compile"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_compile") 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4936 { (case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_try") 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; } &&
4945 { ac_try='test -s conftest.$ac_objext'
4946 { (case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_try") 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_cv_header_stdc=yes
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_cv_header_stdc=no
4961 fi
4962
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964
4965 if test $ac_cv_header_stdc = yes; then
4966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #include <string.h>
4974
4975 _ACEOF
4976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4977 $EGREP "memchr" >/dev/null 2>&1; then
4978 :
4979 else
4980 ac_cv_header_stdc=no
4981 fi
4982 rm -f conftest*
4983
4984 fi
4985
4986 if test $ac_cv_header_stdc = yes; then
4987 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 #include <stdlib.h>
4995
4996 _ACEOF
4997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4998 $EGREP "free" >/dev/null 2>&1; then
4999 :
5000 else
5001 ac_cv_header_stdc=no
5002 fi
5003 rm -f conftest*
5004
5005 fi
5006
5007 if test $ac_cv_header_stdc = yes; then
5008 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5009 if test "$cross_compiling" = yes; then
5010 :
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <ctype.h>
5019 #include <stdlib.h>
5020 #if ((' ' & 0x0FF) == 0x020)
5021 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5022 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5023 #else
5024 # define ISLOWER(c) \
5025 (('a' <= (c) && (c) <= 'i') \
5026 || ('j' <= (c) && (c) <= 'r') \
5027 || ('s' <= (c) && (c) <= 'z'))
5028 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5029 #endif
5030
5031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5032 int
5033 main ()
5034 {
5035 int i;
5036 for (i = 0; i < 256; i++)
5037 if (XOR (islower (i), ISLOWER (i))
5038 || toupper (i) != TOUPPER (i))
5039 return 2;
5040 return 0;
5041 }
5042 _ACEOF
5043 rm -f conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054 { (case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_try") 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 :
5064 else
5065 echo "$as_me: program exited with status $ac_status" >&5
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 ( exit $ac_status )
5070 ac_cv_header_stdc=no
5071 fi
5072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5073 fi
5074
5075
5076 fi
5077 fi
5078 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5079 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5080 if test $ac_cv_header_stdc = yes; then
5081
5082 cat >>confdefs.h <<\_ACEOF
5083 #define STDC_HEADERS 1
5084 _ACEOF
5085
5086 fi
5087
5088 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5099 inttypes.h stdint.h unistd.h
5100 do
5101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5114
5115 #include <$ac_header>
5116 _ACEOF
5117 rm -f conftest.$ac_objext
5118 if { (ac_try="$ac_compile"
5119 case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122 esac
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_compile") 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5132 { (case "(($ac_try" in
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5135 esac
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_try") 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; } &&
5141 { ac_try='test -s conftest.$ac_objext'
5142 { (case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145 esac
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_try") 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 eval "$as_ac_Header=yes"
5152 else
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 eval "$as_ac_Header=no"
5157 fi
5158
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 fi
5161 ac_res=`eval echo '${'$as_ac_Header'}'`
5162 { echo "$as_me:$LINENO: result: $ac_res" >&5
5163 echo "${ECHO_T}$ac_res" >&6; }
5164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5165 cat >>confdefs.h <<_ACEOF
5166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5167 _ACEOF
5168
5169 fi
5170
5171 done
5172
5173
5174
5175 for ac_header in dlfcn.h
5176 do
5177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 fi
5184 ac_res=`eval echo '${'$as_ac_Header'}'`
5185 { echo "$as_me:$LINENO: result: $ac_res" >&5
5186 echo "${ECHO_T}$ac_res" >&6; }
5187 else
5188 # Is the header compilable?
5189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 $ac_includes_default
5198 #include <$ac_header>
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (ac_try="$ac_compile"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_compile") 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5215 { (case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218 esac
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_try") 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228 esac
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_try") 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_header_compiler=yes
5235 else
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 ac_header_compiler=no
5240 fi
5241
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5244 echo "${ECHO_T}$ac_header_compiler" >&6; }
5245
5246 # Is the header present?
5247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <$ac_header>
5256 _ACEOF
5257 if { (ac_try="$ac_cpp conftest.$ac_ext"
5258 case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273 else
5274 ac_cpp_err=
5275 fi
5276 else
5277 ac_cpp_err=yes
5278 fi
5279 if test -z "$ac_cpp_err"; then
5280 ac_header_preproc=yes
5281 else
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_header_preproc=no
5286 fi
5287
5288 rm -f conftest.err conftest.$ac_ext
5289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6; }
5291
5292 # So? What about this header?
5293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5294 yes:no: )
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5299 ac_header_preproc=yes
5300 ;;
5301 no:yes:* )
5302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5314 ( cat <<\_ASBOX
5315 ## ---------------------------------------------------------------------- ##
5316 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5317 ## ---------------------------------------------------------------------- ##
5318 _ASBOX
5319 ) | sed "s/^/$as_me: WARNING: /" >&2
5320 ;;
5321 esac
5322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327 eval "$as_ac_Header=\$ac_header_preproc"
5328 fi
5329 ac_res=`eval echo '${'$as_ac_Header'}'`
5330 { echo "$as_me:$LINENO: result: $ac_res" >&5
5331 echo "${ECHO_T}$ac_res" >&6; }
5332
5333 fi
5334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5335 cat >>confdefs.h <<_ACEOF
5336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337 _ACEOF
5338
5339 fi
5340
5341 done
5342
5343 ac_ext=cpp
5344 ac_cpp='$CXXCPP $CPPFLAGS'
5345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5348 if test -z "$CXX"; then
5349 if test -n "$CCC"; then
5350 CXX=$CCC
5351 else
5352 if test -n "$ac_tool_prefix"; then
5353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5354 do
5355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5359 if test "${ac_cv_prog_CXX+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -n "$CXX"; then
5363 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 CXX=$ac_cv_prog_CXX
5383 if test -n "$CXX"; then
5384 { echo "$as_me:$LINENO: result: $CXX" >&5
5385 echo "${ECHO_T}$CXX" >&6; }
5386 else
5387 { echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6; }
5389 fi
5390
5391
5392 test -n "$CXX" && break
5393 done
5394 fi
5395 if test -z "$CXX"; then
5396 ac_ct_CXX=$CXX
5397 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398 do
5399 # Extract the first word of "$ac_prog", so it can be a program name with args.
5400 set dummy $ac_prog; ac_word=$2
5401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5403 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 if test -n "$ac_ct_CXX"; then
5407 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_ac_ct_CXX="$ac_prog"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420 done
5421 done
5422 IFS=$as_save_IFS
5423
5424 fi
5425 fi
5426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5427 if test -n "$ac_ct_CXX"; then
5428 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5429 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5430 else
5431 { echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6; }
5433 fi
5434
5435
5436 test -n "$ac_ct_CXX" && break
5437 done
5438
5439 if test "x$ac_ct_CXX" = x; then
5440 CXX="g++"
5441 else
5442 case $cross_compiling:$ac_tool_warned in
5443 yes:)
5444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5445 whose name does not start with the host triplet. If you think this
5446 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5448 whose name does not start with the host triplet. If you think this
5449 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5450 ac_tool_warned=yes ;;
5451 esac
5452 CXX=$ac_ct_CXX
5453 fi
5454 fi
5455
5456 fi
5457 fi
5458 # Provide some information about the compiler.
5459 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5460 ac_compiler=`set X $ac_compile; echo $2`
5461 { (ac_try="$ac_compiler --version >&5"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compiler --version >&5") 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }
5471 { (ac_try="$ac_compiler -v >&5"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compiler -v >&5") 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }
5481 { (ac_try="$ac_compiler -V >&5"
5482 case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compiler -V >&5") 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }
5491
5492 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5493 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5494 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503
5504 int
5505 main ()
5506 {
5507 #ifndef __GNUC__
5508 choke me
5509 #endif
5510
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (ac_try="$ac_compile"
5517 case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_compile") 2>conftest.er1
5523 ac_status=$?
5524 grep -v '^ *+' conftest.er1 >conftest.err
5525 rm -f conftest.er1
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } &&
5529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5530 { (case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_compiler_gnu=yes
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ac_compiler_gnu=no
5555 fi
5556
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5559
5560 fi
5561 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5562 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5563 GXX=`test $ac_compiler_gnu = yes && echo yes`
5564 ac_test_CXXFLAGS=${CXXFLAGS+set}
5565 ac_save_CXXFLAGS=$CXXFLAGS
5566 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5567 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5568 if test "${ac_cv_prog_cxx_g+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5572 ac_cxx_werror_flag=yes
5573 ac_cv_prog_cxx_g=no
5574 CXXFLAGS="-g"
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581
5582 int
5583 main ()
5584 {
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5592 case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5598 ac_status=$?
5599 grep -v '^ *+' conftest.er1 >conftest.err
5600 rm -f conftest.er1
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_prog_cxx_g=yes
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 CXXFLAGS=""
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636
5637 int
5638 main ()
5639 {
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5647 case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_compile") 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5660 { (case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 :
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5685 CXXFLAGS="-g"
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692
5693 int
5694 main ()
5695 {
5696
5697 ;
5698 return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (ac_try="$ac_compile"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5716 { (case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_try") 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_try") 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5735 ac_cv_prog_cxx_g=yes
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740
5741 fi
5742
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 fi
5748
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5751 fi
5752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5753 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5754 if test "$ac_test_CXXFLAGS" = set; then
5755 CXXFLAGS=$ac_save_CXXFLAGS
5756 elif test $ac_cv_prog_cxx_g = yes; then
5757 if test "$GXX" = yes; then
5758 CXXFLAGS="-g -O2"
5759 else
5760 CXXFLAGS="-g"
5761 fi
5762 else
5763 if test "$GXX" = yes; then
5764 CXXFLAGS="-O2"
5765 else
5766 CXXFLAGS=
5767 fi
5768 fi
5769 ac_ext=cpp
5770 ac_cpp='$CXXCPP $CPPFLAGS'
5771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5774
5775 depcc="$CXX" am_compiler_list=
5776
5777 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5778 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5779 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5783 # We make a subdir and do the tests there. Otherwise we can end up
5784 # making bogus files that we don't know about and never remove. For
5785 # instance it was reported that on HP-UX the gcc test will end up
5786 # making a dummy file named `D' -- because `-MD' means `put the output
5787 # in D'.
5788 mkdir conftest.dir
5789 # Copy depcomp to subdir because otherwise we won't find it if we're
5790 # using a relative directory.
5791 cp "$am_depcomp" conftest.dir
5792 cd conftest.dir
5793 # We will build objects and dependencies in a subdirectory because
5794 # it helps to detect inapplicable dependency modes. For instance
5795 # both Tru64's cc and ICC support -MD to output dependencies as a
5796 # side effect of compilation, but ICC will put the dependencies in
5797 # the current directory while Tru64 will put them in the object
5798 # directory.
5799 mkdir sub
5800
5801 am_cv_CXX_dependencies_compiler_type=none
5802 if test "$am_compiler_list" = ""; then
5803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5804 fi
5805 for depmode in $am_compiler_list; do
5806 # Setup a source with many dependencies, because some compilers
5807 # like to wrap large dependency lists on column 80 (with \), and
5808 # we should not choose a depcomp mode which is confused by this.
5809 #
5810 # We need to recreate these files for each test, as the compiler may
5811 # overwrite some of them when testing with obscure command lines.
5812 # This happens at least with the AIX C compiler.
5813 : > sub/conftest.c
5814 for i in 1 2 3 4 5 6; do
5815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5817 # Solaris 8's {/usr,}/bin/sh.
5818 touch sub/conftst$i.h
5819 done
5820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5821
5822 case $depmode in
5823 nosideeffect)
5824 # after this tag, mechanisms are not by side-effect, so they'll
5825 # only be used when explicitly requested
5826 if test "x$enable_dependency_tracking" = xyes; then
5827 continue
5828 else
5829 break
5830 fi
5831 ;;
5832 none) break ;;
5833 esac
5834 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5835 # mode. It turns out that the SunPro C++ compiler does not properly
5836 # handle `-M -o', and we need to detect this.
5837 if depmode=$depmode \
5838 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5840 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5841 >/dev/null 2>conftest.err &&
5842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5843 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5845 # icc doesn't choke on unknown options, it will just issue warnings
5846 # or remarks (even with -Werror). So we grep stderr for any message
5847 # that says an option was ignored or not supported.
5848 # When given -MP, icc 7.0 and 7.1 complain thusly:
5849 # icc: Command line warning: ignoring option '-M'; no argument required
5850 # The diagnosis changed in icc 8.0:
5851 # icc: Command line remark: option '-MP' not supported
5852 if (grep 'ignoring option' conftest.err ||
5853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5854 am_cv_CXX_dependencies_compiler_type=$depmode
5855 break
5856 fi
5857 fi
5858 done
5859
5860 cd ..
5861 rm -rf conftest.dir
5862 else
5863 am_cv_CXX_dependencies_compiler_type=none
5864 fi
5865
5866 fi
5867 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5868 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5869 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5870
5871
5872
5873 if
5874 test "x$enable_dependency_tracking" != xno \
5875 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5876 am__fastdepCXX_TRUE=
5877 am__fastdepCXX_FALSE='#'
5878 else
5879 am__fastdepCXX_TRUE='#'
5880 am__fastdepCXX_FALSE=
5881 fi
5882
5883
5884
5885
5886 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5887 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5888 (test "X$CXX" != "Xg++"))) ; then
5889 ac_ext=cpp
5890 ac_cpp='$CXXCPP $CPPFLAGS'
5891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5895 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5896 if test -z "$CXXCPP"; then
5897 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 # Double quotes because CXXCPP needs to be expanded
5901 for CXXCPP in "$CXX -E" "/lib/cpp"
5902 do
5903 ac_preproc_ok=false
5904 for ac_cxx_preproc_warn_flag in '' yes
5905 do
5906 # Use a header file that comes with gcc, so configuring glibc
5907 # with a fresh cross-compiler works.
5908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909 # <limits.h> exists even on freestanding compilers.
5910 # On the NeXT, cc -E runs the code through the compiler's parser,
5911 # not just through cpp. "Syntax error" is here to catch this case.
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #ifdef __STDC__
5919 # include <limits.h>
5920 #else
5921 # include <assert.h>
5922 #endif
5923 Syntax error
5924 _ACEOF
5925 if { (ac_try="$ac_cpp conftest.$ac_ext"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null; then
5938 if test -s conftest.err; then
5939 ac_cpp_err=$ac_cxx_preproc_warn_flag
5940 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5941 else
5942 ac_cpp_err=
5943 fi
5944 else
5945 ac_cpp_err=yes
5946 fi
5947 if test -z "$ac_cpp_err"; then
5948 :
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 # Broken: fails on valid input.
5954 continue
5955 fi
5956
5957 rm -f conftest.err conftest.$ac_ext
5958
5959 # OK, works on sane cases. Now check whether nonexistent headers
5960 # can be detected and how.
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 #include <ac_nonexistent.h>
5968 _ACEOF
5969 if { (ac_try="$ac_cpp conftest.$ac_ext"
5970 case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } >/dev/null; then
5982 if test -s conftest.err; then
5983 ac_cpp_err=$ac_cxx_preproc_warn_flag
5984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5985 else
5986 ac_cpp_err=
5987 fi
5988 else
5989 ac_cpp_err=yes
5990 fi
5991 if test -z "$ac_cpp_err"; then
5992 # Broken: success on invalid input.
5993 continue
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 # Passes both tests.
5999 ac_preproc_ok=:
6000 break
6001 fi
6002
6003 rm -f conftest.err conftest.$ac_ext
6004
6005 done
6006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6007 rm -f conftest.err conftest.$ac_ext
6008 if $ac_preproc_ok; then
6009 break
6010 fi
6011
6012 done
6013 ac_cv_prog_CXXCPP=$CXXCPP
6014
6015 fi
6016 CXXCPP=$ac_cv_prog_CXXCPP
6017 else
6018 ac_cv_prog_CXXCPP=$CXXCPP
6019 fi
6020 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6021 echo "${ECHO_T}$CXXCPP" >&6; }
6022 ac_preproc_ok=false
6023 for ac_cxx_preproc_warn_flag in '' yes
6024 do
6025 # Use a header file that comes with gcc, so configuring glibc
6026 # with a fresh cross-compiler works.
6027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6028 # <limits.h> exists even on freestanding compilers.
6029 # On the NeXT, cc -E runs the code through the compiler's parser,
6030 # not just through cpp. "Syntax error" is here to catch this case.
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #ifdef __STDC__
6038 # include <limits.h>
6039 #else
6040 # include <assert.h>
6041 #endif
6042 Syntax error
6043 _ACEOF
6044 if { (ac_try="$ac_cpp conftest.$ac_ext"
6045 case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev/null; then
6057 if test -s conftest.err; then
6058 ac_cpp_err=$ac_cxx_preproc_warn_flag
6059 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6060 else
6061 ac_cpp_err=
6062 fi
6063 else
6064 ac_cpp_err=yes
6065 fi
6066 if test -z "$ac_cpp_err"; then
6067 :
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 # Broken: fails on valid input.
6073 continue
6074 fi
6075
6076 rm -f conftest.err conftest.$ac_ext
6077
6078 # OK, works on sane cases. Now check whether nonexistent headers
6079 # can be detected and how.
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <ac_nonexistent.h>
6087 _ACEOF
6088 if { (ac_try="$ac_cpp conftest.$ac_ext"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null; then
6101 if test -s conftest.err; then
6102 ac_cpp_err=$ac_cxx_preproc_warn_flag
6103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6104 else
6105 ac_cpp_err=
6106 fi
6107 else
6108 ac_cpp_err=yes
6109 fi
6110 if test -z "$ac_cpp_err"; then
6111 # Broken: success on invalid input.
6112 continue
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 # Passes both tests.
6118 ac_preproc_ok=:
6119 break
6120 fi
6121
6122 rm -f conftest.err conftest.$ac_ext
6123
6124 done
6125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6126 rm -f conftest.err conftest.$ac_ext
6127 if $ac_preproc_ok; then
6128 :
6129 else
6130 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6131 See \`config.log' for more details." >&5
6132 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6133 See \`config.log' for more details." >&2;}
6134 { (exit 1); exit 1; }; }
6135 fi
6136
6137 ac_ext=cpp
6138 ac_cpp='$CXXCPP $CPPFLAGS'
6139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142
6143 fi
6144
6145
6146 ac_ext=f
6147 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6148 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6150 if test -n "$ac_tool_prefix"; then
6151 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
6152 do
6153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6157 if test "${ac_cv_prog_F77+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160 if test -n "$F77"; then
6161 ac_cv_prog_F77="$F77" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 F77=$ac_cv_prog_F77
6181 if test -n "$F77"; then
6182 { echo "$as_me:$LINENO: result: $F77" >&5
6183 echo "${ECHO_T}$F77" >&6; }
6184 else
6185 { echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6; }
6187 fi
6188
6189
6190 test -n "$F77" && break
6191 done
6192 fi
6193 if test -z "$F77"; then
6194 ac_ct_F77=$F77
6195 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
6196 do
6197 # Extract the first word of "$ac_prog", so it can be a program name with args.
6198 set dummy $ac_prog; ac_word=$2
6199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6201 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 if test -n "$ac_ct_F77"; then
6205 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_ac_ct_F77="$ac_prog"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218 done
6219 done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6225 if test -n "$ac_ct_F77"; then
6226 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6227 echo "${ECHO_T}$ac_ct_F77" >&6; }
6228 else
6229 { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6231 fi
6232
6233
6234 test -n "$ac_ct_F77" && break
6235 done
6236
6237 if test "x$ac_ct_F77" = x; then
6238 F77=""
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6243 whose name does not start with the host triplet. If you think this
6244 configuration is useful to you, please write to autoconf@gnu.org." >&5
6245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6246 whose name does not start with the host triplet. If you think this
6247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6248 ac_tool_warned=yes ;;
6249 esac
6250 F77=$ac_ct_F77
6251 fi
6252 fi
6253
6254
6255 # Provide some information about the compiler.
6256 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6257 ac_compiler=`set X $ac_compile; echo $2`
6258 { (ac_try="$ac_compiler --version >&5"
6259 case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compiler --version >&5") 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }
6268 { (ac_try="$ac_compiler -v >&5"
6269 case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_compiler -v >&5") 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }
6278 { (ac_try="$ac_compiler -V >&5"
6279 case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compiler -V >&5") 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }
6288 rm -f a.out
6289
6290 # If we don't use `.F' as extension, the preprocessor is not run on the
6291 # input file. (Note that this only needs to work for GNU compilers.)
6292 ac_save_ext=$ac_ext
6293 ac_ext=F
6294 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6295 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6296 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6300 program main
6301 #ifndef __GNUC__
6302 choke me
6303 #endif
6304
6305 end
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (ac_try="$ac_compile"
6309 case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312 esac
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_compile") 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6322 { (case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_try") 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_try") 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_compiler_gnu=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_compiler_gnu=no
6347 fi
6348
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6351
6352 fi
6353 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6354 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6355 ac_ext=$ac_save_ext
6356 ac_test_FFLAGS=${FFLAGS+set}
6357 ac_save_FFLAGS=$FFLAGS
6358 FFLAGS=
6359 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6360 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6361 if test "${ac_cv_prog_f77_g+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 FFLAGS=-g
6365 cat >conftest.$ac_ext <<_ACEOF
6366 program main
6367
6368 end
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (ac_try="$ac_compile"
6372 case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6385 { (case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_try") 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_prog_f77_g=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_cv_prog_f77_g=no
6410 fi
6411
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413
6414 fi
6415 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6416 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6417 if test "$ac_test_FFLAGS" = set; then
6418 FFLAGS=$ac_save_FFLAGS
6419 elif test $ac_cv_prog_f77_g = yes; then
6420 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6421 FFLAGS="-g -O2"
6422 else
6423 FFLAGS="-g"
6424 fi
6425 else
6426 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6427 FFLAGS="-O2"
6428 else
6429 FFLAGS=
6430 fi
6431 fi
6432
6433 G77=`test $ac_compiler_gnu = yes && echo yes`
6434 ac_ext=c
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440
6441
6442 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6443
6444 # find the maximum length of command line arguments
6445 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6446 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6447 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 i=0
6451 teststring="ABCD"
6452
6453 case $build_os in
6454 msdosdjgpp*)
6455 # On DJGPP, this test can blow up pretty badly due to problems in libc
6456 # (any single argument exceeding 2000 bytes causes a buffer overrun
6457 # during glob expansion). Even if it were fixed, the result of this
6458 # check would be larger than it should be.
6459 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6460 ;;
6461
6462 gnu*)
6463 # Under GNU Hurd, this test is not required because there is
6464 # no limit to the length of command line arguments.
6465 # Libtool will interpret -1 as no limit whatsoever
6466 lt_cv_sys_max_cmd_len=-1;
6467 ;;
6468
6469 cygwin* | mingw*)
6470 # On Win9x/ME, this test blows up -- it succeeds, but takes
6471 # about 5 minutes as the teststring grows exponentially.
6472 # Worse, since 9x/ME are not pre-emptively multitasking,
6473 # you end up with a "frozen" computer, even though with patience
6474 # the test eventually succeeds (with a max line length of 256k).
6475 # Instead, let's just punt: use the minimum linelength reported by
6476 # all of the supported platforms: 8192 (on NT/2K/XP).
6477 lt_cv_sys_max_cmd_len=8192;
6478 ;;
6479
6480 amigaos*)
6481 # On AmigaOS with pdksh, this test takes hours, literally.
6482 # So we just punt and use a minimum line length of 8192.
6483 lt_cv_sys_max_cmd_len=8192;
6484 ;;
6485
6486 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6487 # This has been around since 386BSD, at least. Likely further.
6488 if test -x /sbin/sysctl; then
6489 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6490 elif test -x /usr/sbin/sysctl; then
6491 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6492 else
6493 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6494 fi
6495 # And add a safety zone
6496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6498 ;;
6499
6500 interix*)
6501 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6502 lt_cv_sys_max_cmd_len=196608
6503 ;;
6504
6505 osf*)
6506 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6507 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6508 # nice to cause kernel panics so lets avoid the loop below.
6509 # First set a reasonable default.
6510 lt_cv_sys_max_cmd_len=16384
6511 #
6512 if test -x /sbin/sysconfig; then
6513 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6514 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6515 esac
6516 fi
6517 ;;
6518 sco3.2v5*)
6519 lt_cv_sys_max_cmd_len=102400
6520 ;;
6521 sysv5* | sco5v6* | sysv4.2uw2*)
6522 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6523 if test -n "$kargmax"; then
6524 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6525 else
6526 lt_cv_sys_max_cmd_len=32768
6527 fi
6528 ;;
6529 *)
6530 # If test is not a shell built-in, we'll probably end up computing a
6531 # maximum length that is only half of the actual maximum length, but
6532 # we can't tell.
6533 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6534 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6535 = "XX$teststring") >/dev/null 2>&1 &&
6536 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6537 lt_cv_sys_max_cmd_len=$new_result &&
6538 test $i != 17 # 1/2 MB should be enough
6539 do
6540 i=`expr $i + 1`
6541 teststring=$teststring$teststring
6542 done
6543 teststring=
6544 # Add a significant safety factor because C++ compilers can tack on massive
6545 # amounts of additional arguments before passing them to the linker.
6546 # It appears as though 1/2 is a usable value.
6547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6548 ;;
6549 esac
6550
6551 fi
6552
6553 if test -n $lt_cv_sys_max_cmd_len ; then
6554 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6555 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: none" >&5
6558 echo "${ECHO_T}none" >&6; }
6559 fi
6560
6561
6562
6563
6564 # Check for command to grab the raw symbol name followed by C symbol from nm.
6565 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6566 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6567 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570
6571 # These are sane defaults that work on at least a few old systems.
6572 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6573
6574 # Character class describing NM global symbol codes.
6575 symcode='[BCDEGRST]'
6576
6577 # Regexp to match symbols that can be accessed directly from C.
6578 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6579
6580 # Transform an extracted symbol line into a proper C declaration
6581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6582
6583 # Transform an extracted symbol line into symbol name and symbol address
6584 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'"
6585
6586 # Define system-specific variables.
6587 case $host_os in
6588 aix*)
6589 symcode='[BCDT]'
6590 ;;
6591 cygwin* | mingw* | pw32*)
6592 symcode='[ABCDGISTW]'
6593 ;;
6594 hpux*) # Its linker distinguishes data from code symbols
6595 if test "$host_cpu" = ia64; then
6596 symcode='[ABCDEGRST]'
6597 fi
6598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6599 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'"
6600 ;;
6601 linux* | k*bsd*-gnu)
6602 if test "$host_cpu" = ia64; then
6603 symcode='[ABCDGIRSTW]'
6604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6605 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'"
6606 fi
6607 ;;
6608 irix* | nonstopux*)
6609 symcode='[BCDEGRST]'
6610 ;;
6611 osf*)
6612 symcode='[BCDEGQRST]'
6613 ;;
6614 solaris*)
6615 symcode='[BDRT]'
6616 ;;
6617 sco3.2v5*)
6618 symcode='[DT]'
6619 ;;
6620 sysv4.2uw2*)
6621 symcode='[DT]'
6622 ;;
6623 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6624 symcode='[ABDT]'
6625 ;;
6626 sysv4)
6627 symcode='[DFNSTU]'
6628 ;;
6629 esac
6630
6631 # Handle CRLF in mingw tool chain
6632 opt_cr=
6633 case $build_os in
6634 mingw*)
6635 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6636 ;;
6637 esac
6638
6639 # If we're using GNU nm, then use its standard symbol codes.
6640 case `$NM -V 2>&1` in
6641 *GNU* | *'with BFD'*)
6642 symcode='[ABCDGIRSTW]' ;;
6643 esac
6644
6645 # Try without a prefix undercore, then with it.
6646 for ac_symprfx in "" "_"; do
6647
6648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6649 symxfrm="\\1 $ac_symprfx\\2 \\2"
6650
6651 # Write the raw and C identifiers.
6652 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6653
6654 # Check to see that the pipe works correctly.
6655 pipe_works=no
6656
6657 rm -f conftest*
6658 cat > conftest.$ac_ext <<EOF
6659 #ifdef __cplusplus
6660 extern "C" {
6661 #endif
6662 char nm_test_var;
6663 void nm_test_func(){}
6664 #ifdef __cplusplus
6665 }
6666 #endif
6667 int main(){nm_test_var='a';nm_test_func();return(0);}
6668 EOF
6669
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; then
6675 # Now try to grab the symbols.
6676 nlist=conftest.nm
6677 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6678 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && test -s "$nlist"; then
6682 # Try sorting and uniquifying the output.
6683 if sort "$nlist" | uniq > "$nlist"T; then
6684 mv -f "$nlist"T "$nlist"
6685 else
6686 rm -f "$nlist"T
6687 fi
6688
6689 # Make sure that we snagged all the symbols we need.
6690 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6691 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6692 cat <<EOF > conftest.$ac_ext
6693 #ifdef __cplusplus
6694 extern "C" {
6695 #endif
6696
6697 EOF
6698 # Now generate the symbol file.
6699 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6700
6701 cat <<EOF >> conftest.$ac_ext
6702 #if defined (__STDC__) && __STDC__
6703 # define lt_ptr_t void *
6704 #else
6705 # define lt_ptr_t char *
6706 # define const
6707 #endif
6708
6709 /* The mapping between symbol names and symbols. */
6710 const struct {
6711 const char *name;
6712 lt_ptr_t address;
6713 }
6714 lt_preloaded_symbols[] =
6715 {
6716 EOF
6717 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6718 cat <<\EOF >> conftest.$ac_ext
6719 {0, (lt_ptr_t) 0}
6720 };
6721
6722 #ifdef __cplusplus
6723 }
6724 #endif
6725 EOF
6726 # Now try linking the two files.
6727 mv conftest.$ac_objext conftstm.$ac_objext
6728 lt_save_LIBS="$LIBS"
6729 lt_save_CFLAGS="$CFLAGS"
6730 LIBS="conftstm.$ac_objext"
6731 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6737 pipe_works=yes
6738 fi
6739 LIBS="$lt_save_LIBS"
6740 CFLAGS="$lt_save_CFLAGS"
6741 else
6742 echo "cannot find nm_test_func in $nlist" >&5
6743 fi
6744 else
6745 echo "cannot find nm_test_var in $nlist" >&5
6746 fi
6747 else
6748 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6749 fi
6750 else
6751 echo "$progname: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6753 fi
6754 rm -f conftest* conftst*
6755
6756 # Do not use the global_symbol_pipe unless it works.
6757 if test "$pipe_works" = yes; then
6758 break
6759 else
6760 lt_cv_sys_global_symbol_pipe=
6761 fi
6762 done
6763
6764 fi
6765
6766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6767 lt_cv_sys_global_symbol_to_cdecl=
6768 fi
6769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6770 { echo "$as_me:$LINENO: result: failed" >&5
6771 echo "${ECHO_T}failed" >&6; }
6772 else
6773 { echo "$as_me:$LINENO: result: ok" >&5
6774 echo "${ECHO_T}ok" >&6; }
6775 fi
6776
6777 { echo "$as_me:$LINENO: checking for objdir" >&5
6778 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6779 if test "${lt_cv_objdir+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 rm -f .libs 2>/dev/null
6783 mkdir .libs 2>/dev/null
6784 if test -d .libs; then
6785 lt_cv_objdir=.libs
6786 else
6787 # MS-DOS does not allow filenames that begin with a dot.
6788 lt_cv_objdir=_libs
6789 fi
6790 rmdir .libs 2>/dev/null
6791 fi
6792 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6793 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6794 objdir=$lt_cv_objdir
6795
6796
6797
6798
6799
6800 case $host_os in
6801 aix3*)
6802 # AIX sometimes has problems with the GCC collect2 program. For some
6803 # reason, if we set the COLLECT_NAMES environment variable, the problems
6804 # vanish in a puff of smoke.
6805 if test "X${COLLECT_NAMES+set}" != Xset; then
6806 COLLECT_NAMES=
6807 export COLLECT_NAMES
6808 fi
6809 ;;
6810 esac
6811
6812 # Sed substitution that helps us do robust quoting. It backslashifies
6813 # metacharacters that are still active within double-quoted strings.
6814 Xsed='sed -e 1s/^X//'
6815 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6816
6817 # Same as above, but do not quote variable references.
6818 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6819
6820 # Sed substitution to delay expansion of an escaped shell variable in a
6821 # double_quote_subst'ed string.
6822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6823
6824 # Sed substitution to avoid accidental globbing in evaled expressions
6825 no_glob_subst='s/\*/\\\*/g'
6826
6827 # Constants:
6828 rm="rm -f"
6829
6830 # Global variables:
6831 default_ofile=libtool
6832 can_build_shared=yes
6833
6834 # All known linkers require a `.a' archive for static linking (except MSVC,
6835 # which needs '.lib').
6836 libext=a
6837 ltmain="$ac_aux_dir/ltmain.sh"
6838 ofile="$default_ofile"
6839 with_gnu_ld="$lt_cv_prog_gnu_ld"
6840
6841 if test -n "$ac_tool_prefix"; then
6842 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}ar; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_prog_AR+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 if test -n "$AR"; then
6850 ac_cv_prog_AR="$AR" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_prog_AR="${ac_tool_prefix}ar"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6866
6867 fi
6868 fi
6869 AR=$ac_cv_prog_AR
6870 if test -n "$AR"; then
6871 { echo "$as_me:$LINENO: result: $AR" >&5
6872 echo "${ECHO_T}$AR" >&6; }
6873 else
6874 { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6876 fi
6877
6878
6879 fi
6880 if test -z "$ac_cv_prog_AR"; then
6881 ac_ct_AR=$AR
6882 # Extract the first word of "ar", so it can be a program name with args.
6883 set dummy ar; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 if test -n "$ac_ct_AR"; then
6890 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_prog_ac_ct_AR="ar"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6910 if test -n "$ac_ct_AR"; then
6911 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6912 echo "${ECHO_T}$ac_ct_AR" >&6; }
6913 else
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6916 fi
6917
6918 if test "x$ac_ct_AR" = x; then
6919 AR="false"
6920 else
6921 case $cross_compiling:$ac_tool_warned in
6922 yes:)
6923 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6924 whose name does not start with the host triplet. If you think this
6925 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6926 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6927 whose name does not start with the host triplet. If you think this
6928 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931 AR=$ac_ct_AR
6932 fi
6933 else
6934 AR="$ac_cv_prog_AR"
6935 fi
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942 if test "${ac_cv_prog_RANLIB+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 if test -n "$RANLIB"; then
6946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 RANLIB=$ac_cv_prog_RANLIB
6966 if test -n "$RANLIB"; then
6967 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6968 echo "${ECHO_T}$RANLIB" >&6; }
6969 else
6970 { echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6; }
6972 fi
6973
6974
6975 fi
6976 if test -z "$ac_cv_prog_RANLIB"; then
6977 ac_ct_RANLIB=$RANLIB
6978 # Extract the first word of "ranlib", so it can be a program name with args.
6979 set dummy ranlib; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 if test -n "$ac_ct_RANLIB"; then
6986 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_prog_ac_ct_RANLIB="ranlib"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7006 if test -n "$ac_ct_RANLIB"; then
7007 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7008 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7009 else
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7012 fi
7013
7014 if test "x$ac_ct_RANLIB" = x; then
7015 RANLIB=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7020 whose name does not start with the host triplet. If you think this
7021 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7023 whose name does not start with the host triplet. If you think this
7024 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7025 ac_tool_warned=yes ;;
7026 esac
7027 RANLIB=$ac_ct_RANLIB
7028 fi
7029 else
7030 RANLIB="$ac_cv_prog_RANLIB"
7031 fi
7032
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}strip; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_prog_STRIP+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 if test -n "$STRIP"; then
7042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 STRIP=$ac_cv_prog_STRIP
7062 if test -n "$STRIP"; then
7063 { echo "$as_me:$LINENO: result: $STRIP" >&5
7064 echo "${ECHO_T}$STRIP" >&6; }
7065 else
7066 { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7068 fi
7069
7070
7071 fi
7072 if test -z "$ac_cv_prog_STRIP"; then
7073 ac_ct_STRIP=$STRIP
7074 # Extract the first word of "strip", so it can be a program name with args.
7075 set dummy strip; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 if test -n "$ac_ct_STRIP"; then
7082 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_prog_ac_ct_STRIP="strip"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099 fi
7100 fi
7101 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7102 if test -n "$ac_ct_STRIP"; then
7103 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7104 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7105 else
7106 { echo "$as_me:$LINENO: result: no" >&5
7107 echo "${ECHO_T}no" >&6; }
7108 fi
7109
7110 if test "x$ac_ct_STRIP" = x; then
7111 STRIP=":"
7112 else
7113 case $cross_compiling:$ac_tool_warned in
7114 yes:)
7115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7116 whose name does not start with the host triplet. If you think this
7117 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7119 whose name does not start with the host triplet. If you think this
7120 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123 STRIP=$ac_ct_STRIP
7124 fi
7125 else
7126 STRIP="$ac_cv_prog_STRIP"
7127 fi
7128
7129
7130 old_CC="$CC"
7131 old_CFLAGS="$CFLAGS"
7132
7133 # Set sane defaults for various variables
7134 test -z "$AR" && AR=ar
7135 test -z "$AR_FLAGS" && AR_FLAGS=cru
7136 test -z "$AS" && AS=as
7137 test -z "$CC" && CC=cc
7138 test -z "$LTCC" && LTCC=$CC
7139 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7140 test -z "$DLLTOOL" && DLLTOOL=dlltool
7141 test -z "$LD" && LD=ld
7142 test -z "$LN_S" && LN_S="ln -s"
7143 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7144 test -z "$NM" && NM=nm
7145 test -z "$SED" && SED=sed
7146 test -z "$OBJDUMP" && OBJDUMP=objdump
7147 test -z "$RANLIB" && RANLIB=:
7148 test -z "$STRIP" && STRIP=:
7149 test -z "$ac_objext" && ac_objext=o
7150
7151 # Determine commands to create old-style static archives.
7152 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7153 old_postinstall_cmds='chmod 644 $oldlib'
7154 old_postuninstall_cmds=
7155
7156 if test -n "$RANLIB"; then
7157 case $host_os in
7158 openbsd*)
7159 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7160 ;;
7161 *)
7162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7163 ;;
7164 esac
7165 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7166 fi
7167
7168 for cc_temp in $compiler""; do
7169 case $cc_temp in
7170 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7171 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7172 \-*) ;;
7173 *) break;;
7174 esac
7175 done
7176 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7177
7178
7179 # Only perform the check for file, if the check method requires it
7180 case $deplibs_check_method in
7181 file_magic*)
7182 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7183 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7184 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 case $MAGIC_CMD in
7189 [\\/*] | ?:[\\/]*)
7190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7191 ;;
7192 *)
7193 lt_save_MAGIC_CMD="$MAGIC_CMD"
7194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7196 for ac_dir in $ac_dummy; do
7197 IFS="$lt_save_ifs"
7198 test -z "$ac_dir" && ac_dir=.
7199 if test -f $ac_dir/${ac_tool_prefix}file; then
7200 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7201 if test -n "$file_magic_test_file"; then
7202 case $deplibs_check_method in
7203 "file_magic "*)
7204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7207 $EGREP "$file_magic_regex" > /dev/null; then
7208 :
7209 else
7210 cat <<EOF 1>&2
7211
7212 *** Warning: the command libtool uses to detect shared libraries,
7213 *** $file_magic_cmd, produces output that libtool cannot recognize.
7214 *** The result is that libtool may fail to recognize shared libraries
7215 *** as such. This will affect the creation of libtool libraries that
7216 *** depend on shared libraries, but programs linked with such libtool
7217 *** libraries will work regardless of this problem. Nevertheless, you
7218 *** may want to report the problem to your system manager and/or to
7219 *** bug-libtool@gnu.org
7220
7221 EOF
7222 fi ;;
7223 esac
7224 fi
7225 break
7226 fi
7227 done
7228 IFS="$lt_save_ifs"
7229 MAGIC_CMD="$lt_save_MAGIC_CMD"
7230 ;;
7231 esac
7232 fi
7233
7234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7235 if test -n "$MAGIC_CMD"; then
7236 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7237 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7238 else
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7241 fi
7242
7243 if test -z "$lt_cv_path_MAGIC_CMD"; then
7244 if test -n "$ac_tool_prefix"; then
7245 { echo "$as_me:$LINENO: checking for file" >&5
7246 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7247 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 case $MAGIC_CMD in
7251 [\\/*] | ?:[\\/]*)
7252 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7253 ;;
7254 *)
7255 lt_save_MAGIC_CMD="$MAGIC_CMD"
7256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7258 for ac_dir in $ac_dummy; do
7259 IFS="$lt_save_ifs"
7260 test -z "$ac_dir" && ac_dir=.
7261 if test -f $ac_dir/file; then
7262 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7263 if test -n "$file_magic_test_file"; then
7264 case $deplibs_check_method in
7265 "file_magic "*)
7266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7269 $EGREP "$file_magic_regex" > /dev/null; then
7270 :
7271 else
7272 cat <<EOF 1>&2
7273
7274 *** Warning: the command libtool uses to detect shared libraries,
7275 *** $file_magic_cmd, produces output that libtool cannot recognize.
7276 *** The result is that libtool may fail to recognize shared libraries
7277 *** as such. This will affect the creation of libtool libraries that
7278 *** depend on shared libraries, but programs linked with such libtool
7279 *** libraries will work regardless of this problem. Nevertheless, you
7280 *** may want to report the problem to your system manager and/or to
7281 *** bug-libtool@gnu.org
7282
7283 EOF
7284 fi ;;
7285 esac
7286 fi
7287 break
7288 fi
7289 done
7290 IFS="$lt_save_ifs"
7291 MAGIC_CMD="$lt_save_MAGIC_CMD"
7292 ;;
7293 esac
7294 fi
7295
7296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7297 if test -n "$MAGIC_CMD"; then
7298 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7299 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7300 else
7301 { echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6; }
7303 fi
7304
7305 else
7306 MAGIC_CMD=:
7307 fi
7308 fi
7309
7310 fi
7311 ;;
7312 esac
7313
7314 enable_dlopen=no
7315 enable_win32_dll=no
7316
7317 # Check whether --enable-libtool-lock was given.
7318 if test "${enable_libtool_lock+set}" = set; then
7319 enableval=$enable_libtool_lock;
7320 fi
7321
7322 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7323
7324
7325 # Check whether --with-pic was given.
7326 if test "${with_pic+set}" = set; then
7327 withval=$with_pic; pic_mode="$withval"
7328 else
7329 pic_mode=default
7330 fi
7331
7332 test -z "$pic_mode" && pic_mode=default
7333
7334 # Use C for the default configuration in the libtool script
7335 tagname=
7336 lt_save_CC="$CC"
7337 ac_ext=c
7338 ac_cpp='$CPP $CPPFLAGS'
7339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7342
7343
7344 # Source file extension for C test sources.
7345 ac_ext=c
7346
7347 # Object file extension for compiled C test sources.
7348 objext=o
7349 objext=$objext
7350
7351 # Code to be used in simple compile tests
7352 lt_simple_compile_test_code="int some_variable = 0;\n"
7353
7354 # Code to be used in simple link tests
7355 lt_simple_link_test_code='int main(){return(0);}\n'
7356
7357
7358 # If no C compiler was specified, use CC.
7359 LTCC=${LTCC-"$CC"}
7360
7361 # If no C compiler flags were specified, use CFLAGS.
7362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7363
7364 # Allow CC to be a program name with arguments.
7365 compiler=$CC
7366
7367
7368 # save warnings/boilerplate of simple test code
7369 ac_outfile=conftest.$ac_objext
7370 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7372 _lt_compiler_boilerplate=`cat conftest.err`
7373 $rm conftest*
7374
7375 ac_outfile=conftest.$ac_objext
7376 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7378 _lt_linker_boilerplate=`cat conftest.err`
7379 $rm conftest*
7380
7381
7382
7383 lt_prog_compiler_no_builtin_flag=
7384
7385 if test "$GCC" = yes; then
7386 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7387
7388
7389 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7390 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 lt_cv_prog_compiler_rtti_exceptions=no
7395 ac_outfile=conftest.$ac_objext
7396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7397 lt_compiler_flag="-fno-rtti -fno-exceptions"
7398 # Insert the option either (1) after the last *FLAGS variable, or
7399 # (2) before a word containing "conftest.", or (3) at the end.
7400 # Note that $ac_compile itself does not contain backslashes and begins
7401 # with a dollar sign (not a hyphen), so the echo should work correctly.
7402 # The option is referenced via a variable to avoid confusing sed.
7403 lt_compile=`echo "$ac_compile" | $SED \
7404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7406 -e 's:$: $lt_compiler_flag:'`
7407 (eval echo "\"\$as_me:7407: $lt_compile\"" >&5)
7408 (eval "$lt_compile" 2>conftest.err)
7409 ac_status=$?
7410 cat conftest.err >&5
7411 echo "$as_me:7411: \$? = $ac_status" >&5
7412 if (exit $ac_status) && test -s "$ac_outfile"; then
7413 # The compiler can only warn and ignore the option if not recognized
7414 # So say no if there are warnings other than the usual output.
7415 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7418 lt_cv_prog_compiler_rtti_exceptions=yes
7419 fi
7420 fi
7421 $rm conftest*
7422
7423 fi
7424 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7425 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7426
7427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7429 else
7430 :
7431 fi
7432
7433 fi
7434
7435 lt_prog_compiler_wl=
7436 lt_prog_compiler_pic=
7437 lt_prog_compiler_static=
7438
7439 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7440 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7441
7442 if test "$GCC" = yes; then
7443 lt_prog_compiler_wl='-Wl,'
7444 lt_prog_compiler_static='-static'
7445
7446 case $host_os in
7447 aix*)
7448 # All AIX code is PIC.
7449 if test "$host_cpu" = ia64; then
7450 # AIX 5 now supports IA64 processor
7451 lt_prog_compiler_static='-Bstatic'
7452 fi
7453 ;;
7454
7455 amigaos*)
7456 # FIXME: we need at least 68020 code to build shared libraries, but
7457 # adding the `-m68020' flag to GCC prevents building anything better,
7458 # like `-m68040'.
7459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7460 ;;
7461
7462 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7463 # PIC is the default for these OSes.
7464 ;;
7465
7466 mingw* | pw32* | os2*)
7467 # This hack is so that the source file can tell whether it is being
7468 # built for inclusion in a dll (and should export symbols for example).
7469 lt_prog_compiler_pic='-DDLL_EXPORT'
7470 ;;
7471
7472 darwin* | rhapsody*)
7473 # PIC is the default on this platform
7474 # Common symbols not allowed in MH_DYLIB files
7475 lt_prog_compiler_pic='-fno-common'
7476 ;;
7477
7478 interix3*)
7479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7480 # Instead, we relocate shared libraries at runtime.
7481 ;;
7482
7483 msdosdjgpp*)
7484 # Just because we use GCC doesn't mean we suddenly get shared libraries
7485 # on systems that don't support them.
7486 lt_prog_compiler_can_build_shared=no
7487 enable_shared=no
7488 ;;
7489
7490 sysv4*MP*)
7491 if test -d /usr/nec; then
7492 lt_prog_compiler_pic=-Kconform_pic
7493 fi
7494 ;;
7495
7496 hpux*)
7497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7498 # not for PA HP-UX.
7499 case $host_cpu in
7500 hppa*64*|ia64*)
7501 # +Z the default
7502 ;;
7503 *)
7504 lt_prog_compiler_pic='-fPIC'
7505 ;;
7506 esac
7507 ;;
7508
7509 *)
7510 lt_prog_compiler_pic='-fPIC'
7511 ;;
7512 esac
7513 else
7514 # PORTME Check for flag to pass linker flags through the system compiler.
7515 case $host_os in
7516 aix*)
7517 lt_prog_compiler_wl='-Wl,'
7518 if test "$host_cpu" = ia64; then
7519 # AIX 5 now supports IA64 processor
7520 lt_prog_compiler_static='-Bstatic'
7521 else
7522 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7523 fi
7524 ;;
7525 darwin*)
7526 # PIC is the default on this platform
7527 # Common symbols not allowed in MH_DYLIB files
7528 case $cc_basename in
7529 xlc*)
7530 lt_prog_compiler_pic='-qnocommon'
7531 lt_prog_compiler_wl='-Wl,'
7532 ;;
7533 esac
7534 ;;
7535
7536 mingw* | pw32* | os2*)
7537 # This hack is so that the source file can tell whether it is being
7538 # built for inclusion in a dll (and should export symbols for example).
7539 lt_prog_compiler_pic='-DDLL_EXPORT'
7540 ;;
7541
7542 hpux9* | hpux10* | hpux11*)
7543 lt_prog_compiler_wl='-Wl,'
7544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7545 # not for PA HP-UX.
7546 case $host_cpu in
7547 hppa*64*|ia64*)
7548 # +Z the default
7549 ;;
7550 *)
7551 lt_prog_compiler_pic='+Z'
7552 ;;
7553 esac
7554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7555 lt_prog_compiler_static='${wl}-a ${wl}archive'
7556 ;;
7557
7558 irix5* | irix6* | nonstopux*)
7559 lt_prog_compiler_wl='-Wl,'
7560 # PIC (with -KPIC) is the default.
7561 lt_prog_compiler_static='-non_shared'
7562 ;;
7563
7564 newsos6)
7565 lt_prog_compiler_pic='-KPIC'
7566 lt_prog_compiler_static='-Bstatic'
7567 ;;
7568
7569 linux* | k*bsd*-gnu)
7570 case $cc_basename in
7571 icc* | ecc*)
7572 lt_prog_compiler_wl='-Wl,'
7573 lt_prog_compiler_pic='-KPIC'
7574 lt_prog_compiler_static='-static'
7575 ;;
7576 pgcc* | pgf77* | pgf90* | pgf95*)
7577 # Portland Group compilers (*not* the Pentium gcc compiler,
7578 # which looks to be a dead project)
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_pic='-fpic'
7581 lt_prog_compiler_static='-Bstatic'
7582 ;;
7583 ccc*)
7584 lt_prog_compiler_wl='-Wl,'
7585 # All Alpha code is PIC.
7586 lt_prog_compiler_static='-non_shared'
7587 ;;
7588 esac
7589 ;;
7590
7591 osf3* | osf4* | osf5*)
7592 lt_prog_compiler_wl='-Wl,'
7593 # All OSF/1 code is PIC.
7594 lt_prog_compiler_static='-non_shared'
7595 ;;
7596
7597 solaris*)
7598 lt_prog_compiler_pic='-KPIC'
7599 lt_prog_compiler_static='-Bstatic'
7600 case $cc_basename in
7601 f77* | f90* | f95*)
7602 lt_prog_compiler_wl='-Qoption ld ';;
7603 *)
7604 lt_prog_compiler_wl='-Wl,';;
7605 esac
7606 ;;
7607
7608 sunos4*)
7609 lt_prog_compiler_wl='-Qoption ld '
7610 lt_prog_compiler_pic='-PIC'
7611 lt_prog_compiler_static='-Bstatic'
7612 ;;
7613
7614 sysv4 | sysv4.2uw2* | sysv4.3*)
7615 lt_prog_compiler_wl='-Wl,'
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7618 ;;
7619
7620 sysv4*MP*)
7621 if test -d /usr/nec ;then
7622 lt_prog_compiler_pic='-Kconform_pic'
7623 lt_prog_compiler_static='-Bstatic'
7624 fi
7625 ;;
7626
7627 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7628 lt_prog_compiler_wl='-Wl,'
7629 lt_prog_compiler_pic='-KPIC'
7630 lt_prog_compiler_static='-Bstatic'
7631 ;;
7632
7633 unicos*)
7634 lt_prog_compiler_wl='-Wl,'
7635 lt_prog_compiler_can_build_shared=no
7636 ;;
7637
7638 uts4*)
7639 lt_prog_compiler_pic='-pic'
7640 lt_prog_compiler_static='-Bstatic'
7641 ;;
7642
7643 *)
7644 lt_prog_compiler_can_build_shared=no
7645 ;;
7646 esac
7647 fi
7648
7649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7650 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7651
7652 #
7653 # Check to make sure the PIC flag actually works.
7654 #
7655 if test -n "$lt_prog_compiler_pic"; then
7656
7657 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7658 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7659 if test "${lt_prog_compiler_pic_works+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662 lt_prog_compiler_pic_works=no
7663 ac_outfile=conftest.$ac_objext
7664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7665 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7666 # Insert the option either (1) after the last *FLAGS variable, or
7667 # (2) before a word containing "conftest.", or (3) at the end.
7668 # Note that $ac_compile itself does not contain backslashes and begins
7669 # with a dollar sign (not a hyphen), so the echo should work correctly.
7670 # The option is referenced via a variable to avoid confusing sed.
7671 lt_compile=`echo "$ac_compile" | $SED \
7672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7674 -e 's:$: $lt_compiler_flag:'`
7675 (eval echo "\"\$as_me:7675: $lt_compile\"" >&5)
7676 (eval "$lt_compile" 2>conftest.err)
7677 ac_status=$?
7678 cat conftest.err >&5
7679 echo "$as_me:7679: \$? = $ac_status" >&5
7680 if (exit $ac_status) && test -s "$ac_outfile"; then
7681 # The compiler can only warn and ignore the option if not recognized
7682 # So say no if there are warnings other than the usual output.
7683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7685 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7686 lt_prog_compiler_pic_works=yes
7687 fi
7688 fi
7689 $rm conftest*
7690
7691 fi
7692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7694
7695 if test x"$lt_prog_compiler_pic_works" = xyes; then
7696 case $lt_prog_compiler_pic in
7697 "" | " "*) ;;
7698 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7699 esac
7700 else
7701 lt_prog_compiler_pic=
7702 lt_prog_compiler_can_build_shared=no
7703 fi
7704
7705 fi
7706 case $host_os in
7707 # For platforms which do not support PIC, -DPIC is meaningless:
7708 *djgpp*)
7709 lt_prog_compiler_pic=
7710 ;;
7711 *)
7712 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7713 ;;
7714 esac
7715
7716 #
7717 # Check to make sure the static flag actually works.
7718 #
7719 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7720 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7721 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7722 if test "${lt_prog_compiler_static_works+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 lt_prog_compiler_static_works=no
7726 save_LDFLAGS="$LDFLAGS"
7727 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7728 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7730 # The linker can only warn and ignore the option if not recognized
7731 # So say no if there are warnings
7732 if test -s conftest.err; then
7733 # Append any errors to the config.log.
7734 cat conftest.err 1>&5
7735 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7737 if diff conftest.exp conftest.er2 >/dev/null; then
7738 lt_prog_compiler_static_works=yes
7739 fi
7740 else
7741 lt_prog_compiler_static_works=yes
7742 fi
7743 fi
7744 $rm conftest*
7745 LDFLAGS="$save_LDFLAGS"
7746
7747 fi
7748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7749 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7750
7751 if test x"$lt_prog_compiler_static_works" = xyes; then
7752 :
7753 else
7754 lt_prog_compiler_static=
7755 fi
7756
7757
7758 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7760 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 lt_cv_prog_compiler_c_o=no
7764 $rm -r conftest 2>/dev/null
7765 mkdir conftest
7766 cd conftest
7767 mkdir out
7768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7769
7770 lt_compiler_flag="-o out/conftest2.$ac_objext"
7771 # Insert the option either (1) after the last *FLAGS variable, or
7772 # (2) before a word containing "conftest.", or (3) at the end.
7773 # Note that $ac_compile itself does not contain backslashes and begins
7774 # with a dollar sign (not a hyphen), so the echo should work correctly.
7775 lt_compile=`echo "$ac_compile" | $SED \
7776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7778 -e 's:$: $lt_compiler_flag:'`
7779 (eval echo "\"\$as_me:7779: $lt_compile\"" >&5)
7780 (eval "$lt_compile" 2>out/conftest.err)
7781 ac_status=$?
7782 cat out/conftest.err >&5
7783 echo "$as_me:7783: \$? = $ac_status" >&5
7784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7785 then
7786 # The compiler can only warn and ignore the option if not recognized
7787 # So say no if there are warnings
7788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7791 lt_cv_prog_compiler_c_o=yes
7792 fi
7793 fi
7794 chmod u+w . 2>&5
7795 $rm conftest*
7796 # SGI C++ compiler will create directory out/ii_files/ for
7797 # template instantiation
7798 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7799 $rm out/* && rmdir out
7800 cd ..
7801 rmdir conftest
7802 $rm conftest*
7803
7804 fi
7805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7807
7808
7809 hard_links="nottested"
7810 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7811 # do not overwrite the value of need_locks provided by the user
7812 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7814 hard_links=yes
7815 $rm conftest*
7816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7817 touch conftest.a
7818 ln conftest.a conftest.b 2>&5 || hard_links=no
7819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7820 { echo "$as_me:$LINENO: result: $hard_links" >&5
7821 echo "${ECHO_T}$hard_links" >&6; }
7822 if test "$hard_links" = no; then
7823 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7825 need_locks=warn
7826 fi
7827 else
7828 need_locks=no
7829 fi
7830
7831 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7832 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7833
7834 runpath_var=
7835 allow_undefined_flag=
7836 enable_shared_with_static_runtimes=no
7837 archive_cmds=
7838 archive_expsym_cmds=
7839 old_archive_From_new_cmds=
7840 old_archive_from_expsyms_cmds=
7841 export_dynamic_flag_spec=
7842 whole_archive_flag_spec=
7843 thread_safe_flag_spec=
7844 hardcode_libdir_flag_spec=
7845 hardcode_libdir_flag_spec_ld=
7846 hardcode_libdir_separator=
7847 hardcode_direct=no
7848 hardcode_minus_L=no
7849 hardcode_shlibpath_var=unsupported
7850 link_all_deplibs=unknown
7851 hardcode_automatic=no
7852 module_cmds=
7853 module_expsym_cmds=
7854 always_export_symbols=no
7855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7856 # include_expsyms should be a list of space-separated symbols to be *always*
7857 # included in the symbol list
7858 include_expsyms=
7859 # exclude_expsyms can be an extended regexp of symbols to exclude
7860 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7861 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7862 # as well as any symbol that contains `d'.
7863 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7864 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7865 # platforms (ab)use it in PIC code, but their linkers get confused if
7866 # the symbol is explicitly referenced. Since portable code cannot
7867 # rely on this symbol name, it's probably fine to never include it in
7868 # preloaded symbol tables.
7869 extract_expsyms_cmds=
7870 # Just being paranoid about ensuring that cc_basename is set.
7871 for cc_temp in $compiler""; do
7872 case $cc_temp in
7873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7875 \-*) ;;
7876 *) break;;
7877 esac
7878 done
7879 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7880
7881 case $host_os in
7882 cygwin* | mingw* | pw32*)
7883 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7884 # When not using gcc, we currently assume that we are using
7885 # Microsoft Visual C++.
7886 if test "$GCC" != yes; then
7887 with_gnu_ld=no
7888 fi
7889 ;;
7890 interix*)
7891 # we just hope/assume this is gcc and not c89 (= MSVC++)
7892 with_gnu_ld=yes
7893 ;;
7894 openbsd*)
7895 with_gnu_ld=no
7896 ;;
7897 esac
7898
7899 ld_shlibs=yes
7900 if test "$with_gnu_ld" = yes; then
7901 # If archive_cmds runs LD, not CC, wlarc should be empty
7902 wlarc='${wl}'
7903
7904 # Set some defaults for GNU ld with shared library support. These
7905 # are reset later if shared libraries are not supported. Putting them
7906 # here allows them to be overridden if necessary.
7907 runpath_var=LD_RUN_PATH
7908 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7909 export_dynamic_flag_spec='${wl}--export-dynamic'
7910 # ancient GNU ld didn't support --whole-archive et. al.
7911 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7913 else
7914 whole_archive_flag_spec=
7915 fi
7916 supports_anon_versioning=no
7917 case `$LD -v 2>/dev/null` in
7918 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7919 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7920 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7921 *\ 2.11.*) ;; # other 2.11 versions
7922 *) supports_anon_versioning=yes ;;
7923 esac
7924
7925 # See if GNU ld supports shared libraries.
7926 case $host_os in
7927 aix3* | aix4* | aix5*)
7928 # On AIX/PPC, the GNU linker is very broken
7929 if test "$host_cpu" != ia64; then
7930 ld_shlibs=no
7931 cat <<EOF 1>&2
7932
7933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7934 *** to be unable to reliably create shared libraries on AIX.
7935 *** Therefore, libtool is disabling shared libraries support. If you
7936 *** really care for shared libraries, you may want to modify your PATH
7937 *** so that a non-GNU linker is found, and then restart.
7938
7939 EOF
7940 fi
7941 ;;
7942
7943 amigaos*)
7944 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)'
7945 hardcode_libdir_flag_spec='-L$libdir'
7946 hardcode_minus_L=yes
7947
7948 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7949 # that the semantics of dynamic libraries on AmigaOS, at least up
7950 # to version 4, is to share data among multiple programs linked
7951 # with the same dynamic library. Since this doesn't match the
7952 # behavior of shared libraries on other platforms, we can't use
7953 # them.
7954 ld_shlibs=no
7955 ;;
7956
7957 beos*)
7958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7959 allow_undefined_flag=unsupported
7960 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7961 # support --undefined. This deserves some investigation. FIXME
7962 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7963 else
7964 ld_shlibs=no
7965 fi
7966 ;;
7967
7968 cygwin* | mingw* | pw32*)
7969 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7970 # as there is no search path for DLLs.
7971 hardcode_libdir_flag_spec='-L$libdir'
7972 allow_undefined_flag=unsupported
7973 always_export_symbols=no
7974 enable_shared_with_static_runtimes=yes
7975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7976
7977 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7979 # If the export-symbols file already is a .def file (1st line
7980 # is EXPORTS), use it as is; otherwise, prepend...
7981 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7982 cp $export_symbols $output_objdir/$soname.def;
7983 else
7984 echo EXPORTS > $output_objdir/$soname.def;
7985 cat $export_symbols >> $output_objdir/$soname.def;
7986 fi~
7987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7988 else
7989 ld_shlibs=no
7990 fi
7991 ;;
7992
7993 interix3*)
7994 hardcode_direct=no
7995 hardcode_shlibpath_var=no
7996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7997 export_dynamic_flag_spec='${wl}-E'
7998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7999 # Instead, shared libraries are loaded at an image base (0x10000000 by
8000 # default) and relocated if they conflict, which is a slow very memory
8001 # consuming and fragmenting process. To avoid this, we pick a random,
8002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8005 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'
8006 ;;
8007
8008 linux* | k*bsd*-gnu)
8009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8010 tmp_addflag=
8011 case $cc_basename,$host_cpu in
8012 pgcc*) # Portland Group C compiler
8013 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'
8014 tmp_addflag=' $pic_flag'
8015 ;;
8016 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8017 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'
8018 tmp_addflag=' $pic_flag -Mnomain' ;;
8019 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8020 tmp_addflag=' -i_dynamic' ;;
8021 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8022 tmp_addflag=' -i_dynamic -nofor_main' ;;
8023 ifc* | ifort*) # Intel Fortran compiler
8024 tmp_addflag=' -nofor_main' ;;
8025 esac
8026 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027
8028 if test $supports_anon_versioning = yes; then
8029 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8030 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8031 $echo "local: *; };" >> $output_objdir/$libname.ver~
8032 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8033 fi
8034 link_all_deplibs=no
8035 else
8036 ld_shlibs=no
8037 fi
8038 ;;
8039
8040 netbsd* | netbsdelf*-gnu)
8041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8043 wlarc=
8044 else
8045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047 fi
8048 ;;
8049
8050 solaris*)
8051 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8052 ld_shlibs=no
8053 cat <<EOF 1>&2
8054
8055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8056 *** create shared libraries on Solaris systems. Therefore, libtool
8057 *** is disabling shared libraries support. We urge you to upgrade GNU
8058 *** binutils to release 2.9.1 or newer. Another option is to modify
8059 *** your PATH or compiler configuration so that the native linker is
8060 *** used, and then restart.
8061
8062 EOF
8063 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8066 else
8067 ld_shlibs=no
8068 fi
8069 ;;
8070
8071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8072 case `$LD -v 2>&1` in
8073 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8074 ld_shlibs=no
8075 cat <<_LT_EOF 1>&2
8076
8077 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8078 *** reliably create shared libraries on SCO systems. Therefore, libtool
8079 *** is disabling shared libraries support. We urge you to upgrade GNU
8080 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8081 *** your PATH or compiler configuration so that the native linker is
8082 *** used, and then restart.
8083
8084 _LT_EOF
8085 ;;
8086 *)
8087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8088 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8091 else
8092 ld_shlibs=no
8093 fi
8094 ;;
8095 esac
8096 ;;
8097
8098 sunos4*)
8099 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8100 wlarc=
8101 hardcode_direct=yes
8102 hardcode_shlibpath_var=no
8103 ;;
8104
8105 *)
8106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8109 else
8110 ld_shlibs=no
8111 fi
8112 ;;
8113 esac
8114
8115 if test "$ld_shlibs" = no; then
8116 runpath_var=
8117 hardcode_libdir_flag_spec=
8118 export_dynamic_flag_spec=
8119 whole_archive_flag_spec=
8120 fi
8121 else
8122 # PORTME fill in a description of your system's linker (not GNU ld)
8123 case $host_os in
8124 aix3*)
8125 allow_undefined_flag=unsupported
8126 always_export_symbols=yes
8127 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'
8128 # Note: this linker hardcodes the directories in LIBPATH if there
8129 # are no directories specified by -L.
8130 hardcode_minus_L=yes
8131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8132 # Neither direct hardcoding nor static linking is supported with a
8133 # broken collect2.
8134 hardcode_direct=unsupported
8135 fi
8136 ;;
8137
8138 aix4* | aix5*)
8139 if test "$host_cpu" = ia64; then
8140 # On IA64, the linker does run time linking by default, so we don't
8141 # have to do anything special.
8142 aix_use_runtimelinking=no
8143 exp_sym_flag='-Bexport'
8144 no_entry_flag=""
8145 else
8146 # If we're using GNU nm, then we don't want the "-C" option.
8147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8149 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'
8150 else
8151 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'
8152 fi
8153 aix_use_runtimelinking=no
8154
8155 # Test if we are trying to use run time linking or normal
8156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8157 # need to do runtime linking.
8158 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8159 for ld_flag in $LDFLAGS; do
8160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8161 aix_use_runtimelinking=yes
8162 break
8163 fi
8164 done
8165 ;;
8166 esac
8167
8168 exp_sym_flag='-bexport'
8169 no_entry_flag='-bnoentry'
8170 fi
8171
8172 # When large executables or shared objects are built, AIX ld can
8173 # have problems creating the table of contents. If linking a library
8174 # or program results in "error TOC overflow" add -mminimal-toc to
8175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8177
8178 archive_cmds=''
8179 hardcode_direct=yes
8180 hardcode_libdir_separator=':'
8181 link_all_deplibs=yes
8182
8183 if test "$GCC" = yes; then
8184 case $host_os in aix4.[012]|aix4.[012].*)
8185 # We only want to do this on AIX 4.2 and lower, the check
8186 # below for broken collect2 doesn't work under 4.3+
8187 collect2name=`${CC} -print-prog-name=collect2`
8188 if test -f "$collect2name" && \
8189 strings "$collect2name" | grep resolve_lib_name >/dev/null
8190 then
8191 # We have reworked collect2
8192 hardcode_direct=yes
8193 else
8194 # We have old collect2
8195 hardcode_direct=unsupported
8196 # It fails to find uninstalled libraries when the uninstalled
8197 # path is not listed in the libpath. Setting hardcode_minus_L
8198 # to unsupported forces relinking
8199 hardcode_minus_L=yes
8200 hardcode_libdir_flag_spec='-L$libdir'
8201 hardcode_libdir_separator=
8202 fi
8203 ;;
8204 esac
8205 shared_flag='-shared'
8206 if test "$aix_use_runtimelinking" = yes; then
8207 shared_flag="$shared_flag "'${wl}-G'
8208 fi
8209 else
8210 # not using gcc
8211 if test "$host_cpu" = ia64; then
8212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8213 # chokes on -Wl,-G. The following line is correct:
8214 shared_flag='-G'
8215 else
8216 if test "$aix_use_runtimelinking" = yes; then
8217 shared_flag='${wl}-G'
8218 else
8219 shared_flag='${wl}-bM:SRE'
8220 fi
8221 fi
8222 fi
8223
8224 # It seems that -bexpall does not export symbols beginning with
8225 # underscore (_), so it is better to generate a list of symbols to export.
8226 always_export_symbols=yes
8227 if test "$aix_use_runtimelinking" = yes; then
8228 # Warning - without using the other runtime loading flags (-brtl),
8229 # -berok will link without error, but may produce a broken library.
8230 allow_undefined_flag='-berok'
8231 # Determine the default libpath from the value encoded in an empty executable.
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238
8239 int
8240 main ()
8241 {
8242
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (ac_try="$ac_link"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_link") 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8262 { (case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_try") 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; } &&
8271 { ac_try='test -s conftest$ac_exeext'
8272 { (case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_try") 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281
8282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8283 }'`
8284 # Check for a 64-bit object if we didn't find anything.
8285 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; }
8286 }'`; fi
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291
8292 fi
8293
8294 rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8297
8298 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8299 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"
8300 else
8301 if test "$host_cpu" = ia64; then
8302 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8303 allow_undefined_flag="-z nodefs"
8304 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"
8305 else
8306 # Determine the default libpath from the value encoded in an empty executable.
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h. */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313
8314 int
8315 main ()
8316 {
8317
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (ac_try="$ac_link"
8324 case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_link") 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8337 { (case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340 esac
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_try") 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_try") 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356
8357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8358 }'`
8359 # Check for a 64-bit object if we didn't find anything.
8360 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; }
8361 }'`; fi
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366
8367 fi
8368
8369 rm -f core conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8372
8373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8374 # Warning - without using the other run time loading flags,
8375 # -berok will link without error, but may produce a broken library.
8376 no_undefined_flag=' ${wl}-bernotok'
8377 allow_undefined_flag=' ${wl}-berok'
8378 # Exported symbols can be pulled into shared objects from archives
8379 whole_archive_flag_spec='$convenience'
8380 archive_cmds_need_lc=yes
8381 # This is similar to how AIX traditionally builds its shared libraries.
8382 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'
8383 fi
8384 fi
8385 ;;
8386
8387 amigaos*)
8388 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)'
8389 hardcode_libdir_flag_spec='-L$libdir'
8390 hardcode_minus_L=yes
8391 # see comment about different semantics on the GNU ld section
8392 ld_shlibs=no
8393 ;;
8394
8395 bsdi[45]*)
8396 export_dynamic_flag_spec=-rdynamic
8397 ;;
8398
8399 cygwin* | mingw* | pw32*)
8400 # When not using gcc, we currently assume that we are using
8401 # Microsoft Visual C++.
8402 # hardcode_libdir_flag_spec is actually meaningless, as there is
8403 # no search path for DLLs.
8404 hardcode_libdir_flag_spec=' '
8405 allow_undefined_flag=unsupported
8406 # Tell ltmain to make .lib files, not .a files.
8407 libext=lib
8408 # Tell ltmain to make .dll files, not .so files.
8409 shrext_cmds=".dll"
8410 # FIXME: Setting linknames here is a bad hack.
8411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8412 # The linker will automatically build a .lib file if we build a DLL.
8413 old_archive_From_new_cmds='true'
8414 # FIXME: Should let the user specify the lib program.
8415 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8416 fix_srcfile_path='`cygpath -w "$srcfile"`'
8417 enable_shared_with_static_runtimes=yes
8418 ;;
8419
8420 darwin* | rhapsody*)
8421 case $host_os in
8422 rhapsody* | darwin1.[012])
8423 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8424 ;;
8425 *) # Darwin 1.3 on
8426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8427 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8428 else
8429 case ${MACOSX_DEPLOYMENT_TARGET} in
8430 10.[012])
8431 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8432 ;;
8433 10.*)
8434 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8435 ;;
8436 esac
8437 fi
8438 ;;
8439 esac
8440 archive_cmds_need_lc=no
8441 hardcode_direct=no
8442 hardcode_automatic=yes
8443 hardcode_shlibpath_var=unsupported
8444 whole_archive_flag_spec=''
8445 link_all_deplibs=yes
8446 if test "$GCC" = yes ; then
8447 output_verbose_link_cmd='echo'
8448 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8449 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8451 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}'
8452 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}'
8453 else
8454 case $cc_basename in
8455 xlc*)
8456 output_verbose_link_cmd='echo'
8457 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8458 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8460 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}'
8461 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}'
8462 ;;
8463 *)
8464 ld_shlibs=no
8465 ;;
8466 esac
8467 fi
8468 ;;
8469
8470 dgux*)
8471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472 hardcode_libdir_flag_spec='-L$libdir'
8473 hardcode_shlibpath_var=no
8474 ;;
8475
8476 freebsd1*)
8477 ld_shlibs=no
8478 ;;
8479
8480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8481 # support. Future versions do this automatically, but an explicit c++rt0.o
8482 # does not break anything, and helps significantly (at the cost of a little
8483 # extra space).
8484 freebsd2.2*)
8485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8486 hardcode_libdir_flag_spec='-R$libdir'
8487 hardcode_direct=yes
8488 hardcode_shlibpath_var=no
8489 ;;
8490
8491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8492 freebsd2*)
8493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8494 hardcode_direct=yes
8495 hardcode_minus_L=yes
8496 hardcode_shlibpath_var=no
8497 ;;
8498
8499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8500 freebsd* | dragonfly*)
8501 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8502 hardcode_libdir_flag_spec='-R$libdir'
8503 hardcode_direct=yes
8504 hardcode_shlibpath_var=no
8505 ;;
8506
8507 hpux9*)
8508 if test "$GCC" = yes; then
8509 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'
8510 else
8511 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'
8512 fi
8513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8514 hardcode_libdir_separator=:
8515 hardcode_direct=yes
8516
8517 # hardcode_minus_L: Not really in the search PATH,
8518 # but as the default location of the library.
8519 hardcode_minus_L=yes
8520 export_dynamic_flag_spec='${wl}-E'
8521 ;;
8522
8523 hpux10*)
8524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8526 else
8527 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8528 fi
8529 if test "$with_gnu_ld" = no; then
8530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8531 hardcode_libdir_separator=:
8532
8533 hardcode_direct=yes
8534 export_dynamic_flag_spec='${wl}-E'
8535
8536 # hardcode_minus_L: Not really in the search PATH,
8537 # but as the default location of the library.
8538 hardcode_minus_L=yes
8539 fi
8540 ;;
8541
8542 hpux11*)
8543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8544 case $host_cpu in
8545 hppa*64*)
8546 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547 ;;
8548 ia64*)
8549 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8550 ;;
8551 *)
8552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8553 ;;
8554 esac
8555 else
8556 case $host_cpu in
8557 hppa*64*)
8558 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559 ;;
8560 ia64*)
8561 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8562 ;;
8563 *)
8564 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8565 ;;
8566 esac
8567 fi
8568 if test "$with_gnu_ld" = no; then
8569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8570 hardcode_libdir_separator=:
8571
8572 case $host_cpu in
8573 hppa*64*|ia64*)
8574 hardcode_libdir_flag_spec_ld='+b $libdir'
8575 hardcode_direct=no
8576 hardcode_shlibpath_var=no
8577 ;;
8578 *)
8579 hardcode_direct=yes
8580 export_dynamic_flag_spec='${wl}-E'
8581
8582 # hardcode_minus_L: Not really in the search PATH,
8583 # but as the default location of the library.
8584 hardcode_minus_L=yes
8585 ;;
8586 esac
8587 fi
8588 ;;
8589
8590 irix5* | irix6* | nonstopux*)
8591 if test "$GCC" = yes; then
8592 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'
8593 else
8594 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'
8595 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8596 fi
8597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598 hardcode_libdir_separator=:
8599 link_all_deplibs=yes
8600 ;;
8601
8602 netbsd* | netbsdelf*-gnu)
8603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8605 else
8606 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8607 fi
8608 hardcode_libdir_flag_spec='-R$libdir'
8609 hardcode_direct=yes
8610 hardcode_shlibpath_var=no
8611 ;;
8612
8613 newsos6)
8614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615 hardcode_direct=yes
8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617 hardcode_libdir_separator=:
8618 hardcode_shlibpath_var=no
8619 ;;
8620
8621 openbsd*)
8622 hardcode_direct=yes
8623 hardcode_shlibpath_var=no
8624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8628 export_dynamic_flag_spec='${wl}-E'
8629 else
8630 case $host_os in
8631 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_libdir_flag_spec='-R$libdir'
8634 ;;
8635 *)
8636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8638 ;;
8639 esac
8640 fi
8641 ;;
8642
8643 os2*)
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_minus_L=yes
8646 allow_undefined_flag=unsupported
8647 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'
8648 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8649 ;;
8650
8651 osf3*)
8652 if test "$GCC" = yes; then
8653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8654 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'
8655 else
8656 allow_undefined_flag=' -expect_unresolved \*'
8657 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'
8658 fi
8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660 hardcode_libdir_separator=:
8661 ;;
8662
8663 osf4* | osf5*) # as osf3* with the addition of -msym flag
8664 if test "$GCC" = yes; then
8665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8666 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'
8667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668 else
8669 allow_undefined_flag=' -expect_unresolved \*'
8670 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'
8671 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8672 $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'
8673
8674 # Both c and cxx compiler support -rpath directly
8675 hardcode_libdir_flag_spec='-rpath $libdir'
8676 fi
8677 hardcode_libdir_separator=:
8678 ;;
8679
8680 solaris*)
8681 no_undefined_flag=' -z text'
8682 if test "$GCC" = yes; then
8683 wlarc='${wl}'
8684 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8685 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8686 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8687 else
8688 wlarc=''
8689 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8690 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8691 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8692 fi
8693 hardcode_libdir_flag_spec='-R$libdir'
8694 hardcode_shlibpath_var=no
8695 case $host_os in
8696 solaris2.[0-5] | solaris2.[0-5].*) ;;
8697 *)
8698 # The compiler driver will combine linker options so we
8699 # cannot just pass the convience library names through
8700 # without $wl, iff we do not link with $LD.
8701 # Luckily, gcc supports the same syntax we need for Sun Studio.
8702 # Supported since Solaris 2.6 (maybe 2.5.1?)
8703 case $wlarc in
8704 '')
8705 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8706 *)
8707 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' ;;
8708 esac ;;
8709 esac
8710 link_all_deplibs=yes
8711 ;;
8712
8713 sunos4*)
8714 if test "x$host_vendor" = xsequent; then
8715 # Use $CC to link under sequent, because it throws in some extra .o
8716 # files that make .init and .fini sections work.
8717 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8718 else
8719 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8720 fi
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 hardcode_direct=yes
8723 hardcode_minus_L=yes
8724 hardcode_shlibpath_var=no
8725 ;;
8726
8727 sysv4)
8728 case $host_vendor in
8729 sni)
8730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731 hardcode_direct=yes # is this really true???
8732 ;;
8733 siemens)
8734 ## LD is ld it makes a PLAMLIB
8735 ## CC just makes a GrossModule.
8736 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8737 reload_cmds='$CC -r -o $output$reload_objs'
8738 hardcode_direct=no
8739 ;;
8740 motorola)
8741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8742 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8743 ;;
8744 esac
8745 runpath_var='LD_RUN_PATH'
8746 hardcode_shlibpath_var=no
8747 ;;
8748
8749 sysv4.3*)
8750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8751 hardcode_shlibpath_var=no
8752 export_dynamic_flag_spec='-Bexport'
8753 ;;
8754
8755 sysv4*MP*)
8756 if test -d /usr/nec; then
8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_shlibpath_var=no
8759 runpath_var=LD_RUN_PATH
8760 hardcode_runpath_var=yes
8761 ld_shlibs=yes
8762 fi
8763 ;;
8764
8765 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8766 no_undefined_flag='${wl}-z,text'
8767 archive_cmds_need_lc=no
8768 hardcode_shlibpath_var=no
8769 runpath_var='LD_RUN_PATH'
8770
8771 if test "$GCC" = yes; then
8772 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8773 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 else
8775 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 fi
8778 ;;
8779
8780 sysv5* | sco3.2v5* | sco5v6*)
8781 # Note: We can NOT use -z defs as we might desire, because we do not
8782 # link with -lc, and that would cause any symbols used from libc to
8783 # always be unresolved, which means just about no library would
8784 # ever link correctly. If we're not using GNU ld we use -z text
8785 # though, which does catch some bad symbols but isn't as heavy-handed
8786 # as -z defs.
8787 no_undefined_flag='${wl}-z,text'
8788 allow_undefined_flag='${wl}-z,nodefs'
8789 archive_cmds_need_lc=no
8790 hardcode_shlibpath_var=no
8791 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8792 hardcode_libdir_separator=':'
8793 link_all_deplibs=yes
8794 export_dynamic_flag_spec='${wl}-Bexport'
8795 runpath_var='LD_RUN_PATH'
8796
8797 if test "$GCC" = yes; then
8798 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8800 else
8801 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8803 fi
8804 ;;
8805
8806 uts4*)
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_shlibpath_var=no
8810 ;;
8811
8812 *)
8813 ld_shlibs=no
8814 ;;
8815 esac
8816 fi
8817
8818 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8819 echo "${ECHO_T}$ld_shlibs" >&6; }
8820 test "$ld_shlibs" = no && can_build_shared=no
8821
8822 #
8823 # Do we need to explicitly link libc?
8824 #
8825 case "x$archive_cmds_need_lc" in
8826 x|xyes)
8827 # Assume -lc should be added
8828 archive_cmds_need_lc=yes
8829
8830 if test "$enable_shared" = yes && test "$GCC" = yes; then
8831 case $archive_cmds in
8832 *'~'*)
8833 # FIXME: we may have to deal with multi-command sequences.
8834 ;;
8835 '$CC '*)
8836 # Test whether the compiler implicitly links with -lc since on some
8837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8838 # to ld, don't add -lc before -lgcc.
8839 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8840 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8841 $rm conftest*
8842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8843
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } 2>conftest.err; then
8849 soname=conftest
8850 lib=conftest
8851 libobjs=conftest.$ac_objext
8852 deplibs=
8853 wl=$lt_prog_compiler_wl
8854 pic_flag=$lt_prog_compiler_pic
8855 compiler_flags=-v
8856 linker_flags=-v
8857 verstring=
8858 output_objdir=.
8859 libname=conftest
8860 lt_save_allow_undefined_flag=$allow_undefined_flag
8861 allow_undefined_flag=
8862 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8863 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }
8867 then
8868 archive_cmds_need_lc=no
8869 else
8870 archive_cmds_need_lc=yes
8871 fi
8872 allow_undefined_flag=$lt_save_allow_undefined_flag
8873 else
8874 cat conftest.err 1>&5
8875 fi
8876 $rm conftest*
8877 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8878 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8879 ;;
8880 esac
8881 fi
8882 ;;
8883 esac
8884
8885 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8886 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8887 library_names_spec=
8888 libname_spec='lib$name'
8889 soname_spec=
8890 shrext_cmds=".so"
8891 postinstall_cmds=
8892 postuninstall_cmds=
8893 finish_cmds=
8894 finish_eval=
8895 shlibpath_var=
8896 shlibpath_overrides_runpath=unknown
8897 version_type=none
8898 dynamic_linker="$host_os ld.so"
8899 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8900 if test "$GCC" = yes; then
8901 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8902 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8903 # if the path contains ";" then we assume it to be the separator
8904 # otherwise default to the standard path separator (i.e. ":") - it is
8905 # assumed that no part of a normal pathname contains ";" but that should
8906 # okay in the real world where ";" in dirpaths is itself problematic.
8907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8908 else
8909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8910 fi
8911 else
8912 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8913 fi
8914 need_lib_prefix=unknown
8915 hardcode_into_libs=no
8916
8917 # when you set need_version to no, make sure it does not cause -set_version
8918 # flags to be left without arguments
8919 need_version=unknown
8920
8921 case $host_os in
8922 aix3*)
8923 version_type=linux
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8925 shlibpath_var=LIBPATH
8926
8927 # AIX 3 has no versioning support, so we append a major version to the name.
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 ;;
8930
8931 aix4* | aix5*)
8932 version_type=linux
8933 need_lib_prefix=no
8934 need_version=no
8935 hardcode_into_libs=yes
8936 if test "$host_cpu" = ia64; then
8937 # AIX 5 supports IA64
8938 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 else
8941 # With GCC up to 2.95.x, collect2 would create an import file
8942 # for dependence libraries. The import file would start with
8943 # the line `#! .'. This would cause the generated library to
8944 # depend on `.', always an invalid library. This was fixed in
8945 # development snapshots of GCC prior to 3.0.
8946 case $host_os in
8947 aix4 | aix4.[01] | aix4.[01].*)
8948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8949 echo ' yes '
8950 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8951 :
8952 else
8953 can_build_shared=no
8954 fi
8955 ;;
8956 esac
8957 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8958 # soname into executable. Probably we can add versioning support to
8959 # collect2, so additional links can be useful in future.
8960 if test "$aix_use_runtimelinking" = yes; then
8961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8962 # instead of lib<name>.a to let people know that these are not
8963 # typical AIX shared libraries.
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 else
8966 # We preserve .a as extension for shared libraries through AIX4.2
8967 # and later when we are not doing run time linking.
8968 library_names_spec='${libname}${release}.a $libname.a'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 fi
8971 shlibpath_var=LIBPATH
8972 fi
8973 ;;
8974
8975 amigaos*)
8976 library_names_spec='$libname.ixlibrary $libname.a'
8977 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8978 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'
8979 ;;
8980
8981 beos*)
8982 library_names_spec='${libname}${shared_ext}'
8983 dynamic_linker="$host_os ld.so"
8984 shlibpath_var=LIBRARY_PATH
8985 ;;
8986
8987 bsdi[45]*)
8988 version_type=linux
8989 need_version=no
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8996 # the default ld.so.conf also contains /usr/contrib/lib and
8997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8998 # libtool to hard-code these into programs
8999 ;;
9000
9001 cygwin* | mingw* | pw32*)
9002 version_type=windows
9003 shrext_cmds=".dll"
9004 need_version=no
9005 need_lib_prefix=no
9006
9007 case $GCC,$host_os in
9008 yes,cygwin* | yes,mingw* | yes,pw32*)
9009 library_names_spec='$libname.dll.a'
9010 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9011 postinstall_cmds='base_file=`basename \${file}`~
9012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9013 dldir=$destdir/`dirname \$dlpath`~
9014 test -d \$dldir || mkdir -p \$dldir~
9015 $install_prog $dir/$dlname \$dldir/$dlname~
9016 chmod a+x \$dldir/$dlname'
9017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9018 dlpath=$dir/\$dldll~
9019 $rm \$dlpath'
9020 shlibpath_overrides_runpath=yes
9021
9022 case $host_os in
9023 cygwin*)
9024 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9026 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9027 ;;
9028 mingw*)
9029 # MinGW DLLs use traditional 'lib' prefix
9030 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9031 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9032 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9033 # It is most probably a Windows format PATH printed by
9034 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9035 # path with ; separators, and with drive letters. We can handle the
9036 # drive letters (cygwin fileutils understands them), so leave them,
9037 # especially as we might pass files found there to a mingw objdump,
9038 # which wouldn't understand a cygwinified path. Ahh.
9039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9040 else
9041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9042 fi
9043 ;;
9044 pw32*)
9045 # pw32 DLLs use 'pw' prefix rather than 'lib'
9046 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9047 ;;
9048 esac
9049 ;;
9050
9051 *)
9052 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9053 ;;
9054 esac
9055 dynamic_linker='Win32 ld.exe'
9056 # FIXME: first we should search . and the directory the executable is in
9057 shlibpath_var=PATH
9058 ;;
9059
9060 darwin* | rhapsody*)
9061 dynamic_linker="$host_os dyld"
9062 version_type=darwin
9063 need_lib_prefix=no
9064 need_version=no
9065 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9066 soname_spec='${libname}${release}${major}$shared_ext'
9067 shlibpath_overrides_runpath=yes
9068 shlibpath_var=DYLD_LIBRARY_PATH
9069 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9070 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9071 if test "$GCC" = yes; then
9072 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"`
9073 else
9074 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9075 fi
9076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9077 ;;
9078
9079 dgux*)
9080 version_type=linux
9081 need_lib_prefix=no
9082 need_version=no
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 ;;
9087
9088 freebsd1*)
9089 dynamic_linker=no
9090 ;;
9091
9092 freebsd* | dragonfly*)
9093 # DragonFly does not have aout. When/if they implement a new
9094 # versioning mechanism, adjust this.
9095 if test -x /usr/bin/objformat; then
9096 objformat=`/usr/bin/objformat`
9097 else
9098 case $host_os in
9099 freebsd[123]*) objformat=aout ;;
9100 *) objformat=elf ;;
9101 esac
9102 fi
9103 version_type=freebsd-$objformat
9104 case $version_type in
9105 freebsd-elf*)
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9107 need_version=no
9108 need_lib_prefix=no
9109 ;;
9110 freebsd-*)
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9112 need_version=yes
9113 ;;
9114 esac
9115 shlibpath_var=LD_LIBRARY_PATH
9116 case $host_os in
9117 freebsd2*)
9118 shlibpath_overrides_runpath=yes
9119 ;;
9120 freebsd3.[01]* | freebsdelf3.[01]*)
9121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9123 ;;
9124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9126 shlibpath_overrides_runpath=no
9127 hardcode_into_libs=yes
9128 ;;
9129 freebsd*) # from 4.6 on
9130 shlibpath_overrides_runpath=yes
9131 hardcode_into_libs=yes
9132 ;;
9133 esac
9134 ;;
9135
9136 gnu*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 hardcode_into_libs=yes
9144 ;;
9145
9146 hpux9* | hpux10* | hpux11*)
9147 # Give a soname corresponding to the major version so that dld.sl refuses to
9148 # link against other versions.
9149 version_type=sunos
9150 need_lib_prefix=no
9151 need_version=no
9152 case $host_cpu in
9153 ia64*)
9154 shrext_cmds='.so'
9155 hardcode_into_libs=yes
9156 dynamic_linker="$host_os dld.so"
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 if test "X$HPUX_IA64_MODE" = X32; then
9162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9163 else
9164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9165 fi
9166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9167 ;;
9168 hppa*64*)
9169 shrext_cmds='.sl'
9170 hardcode_into_libs=yes
9171 dynamic_linker="$host_os dld.sl"
9172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9178 ;;
9179 *)
9180 shrext_cmds='.sl'
9181 dynamic_linker="$host_os dld.sl"
9182 shlibpath_var=SHLIB_PATH
9183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 ;;
9187 esac
9188 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9189 postinstall_cmds='chmod 555 $lib'
9190 ;;
9191
9192 interix3*)
9193 version_type=linux
9194 need_lib_prefix=no
9195 need_version=no
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 ;;
9203
9204 irix5* | irix6* | nonstopux*)
9205 case $host_os in
9206 nonstopux*) version_type=nonstopux ;;
9207 *)
9208 if test "$lt_cv_prog_gnu_ld" = yes; then
9209 version_type=linux
9210 else
9211 version_type=irix
9212 fi ;;
9213 esac
9214 need_lib_prefix=no
9215 need_version=no
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9218 case $host_os in
9219 irix5* | nonstopux*)
9220 libsuff= shlibsuff=
9221 ;;
9222 *)
9223 case $LD in # libtool.m4 will add one of these switches to LD
9224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9225 libsuff= shlibsuff= libmagic=32-bit;;
9226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9227 libsuff=32 shlibsuff=N32 libmagic=N32;;
9228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9230 *) libsuff= shlibsuff= libmagic=never-match;;
9231 esac
9232 ;;
9233 esac
9234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9235 shlibpath_overrides_runpath=no
9236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9238 hardcode_into_libs=yes
9239 ;;
9240
9241 # No shared lib support for Linux oldld, aout, or coff.
9242 linux*oldld* | linux*aout* | linux*coff*)
9243 dynamic_linker=no
9244 ;;
9245
9246 # This must be Linux ELF.
9247 linux* | k*bsd*-gnu)
9248 version_type=linux
9249 need_lib_prefix=no
9250 need_version=no
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=no
9256 # This implies no fast_install, which is unacceptable.
9257 # Some rework will be needed to allow for fast_install
9258 # before this can be enabled.
9259 hardcode_into_libs=yes
9260
9261 # Append ld.so.conf contents to the search path
9262 if test -f /etc/ld.so.conf; then
9263 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' ' '`
9264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9265 fi
9266
9267 # We used to test for /lib/ld.so.1 and disable shared libraries on
9268 # powerpc, because MkLinux only supported shared libraries with the
9269 # GNU dynamic linker. Since this was broken with cross compilers,
9270 # most powerpc-linux boxes support dynamic linking these days and
9271 # people can always --disable-shared, the test was removed, and we
9272 # assume the GNU/Linux dynamic linker is in use.
9273 dynamic_linker='GNU/Linux ld.so'
9274 ;;
9275
9276 netbsdelf*-gnu)
9277 version_type=linux
9278 need_lib_prefix=no
9279 need_version=no
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=no
9284 hardcode_into_libs=yes
9285 dynamic_linker='NetBSD ld.elf_so'
9286 ;;
9287
9288 netbsd*)
9289 version_type=sunos
9290 need_lib_prefix=no
9291 need_version=no
9292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9295 dynamic_linker='NetBSD (a.out) ld.so'
9296 else
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 dynamic_linker='NetBSD ld.elf_so'
9300 fi
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=yes
9303 hardcode_into_libs=yes
9304 ;;
9305
9306 newsos6)
9307 version_type=linux
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9311 ;;
9312
9313 nto-qnx*)
9314 version_type=linux
9315 need_lib_prefix=no
9316 need_version=no
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=yes
9321 ;;
9322
9323 openbsd*)
9324 version_type=sunos
9325 sys_lib_dlsearch_path_spec="/usr/lib"
9326 need_lib_prefix=no
9327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9328 case $host_os in
9329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9330 *) need_version=no ;;
9331 esac
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9336 case $host_os in
9337 openbsd2.[89] | openbsd2.[89].*)
9338 shlibpath_overrides_runpath=no
9339 ;;
9340 *)
9341 shlibpath_overrides_runpath=yes
9342 ;;
9343 esac
9344 else
9345 shlibpath_overrides_runpath=yes
9346 fi
9347 ;;
9348
9349 os2*)
9350 libname_spec='$name'
9351 shrext_cmds=".dll"
9352 need_lib_prefix=no
9353 library_names_spec='$libname${shared_ext} $libname.a'
9354 dynamic_linker='OS/2 ld.exe'
9355 shlibpath_var=LIBPATH
9356 ;;
9357
9358 osf3* | osf4* | osf5*)
9359 version_type=osf
9360 need_lib_prefix=no
9361 need_version=no
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9367 ;;
9368
9369 solaris*)
9370 version_type=linux
9371 need_lib_prefix=no
9372 need_version=no
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=yes
9377 hardcode_into_libs=yes
9378 # ldd complains unless libraries are executable
9379 postinstall_cmds='chmod +x $lib'
9380 ;;
9381
9382 sunos4*)
9383 version_type=sunos
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 shlibpath_overrides_runpath=yes
9388 if test "$with_gnu_ld" = yes; then
9389 need_lib_prefix=no
9390 fi
9391 need_version=yes
9392 ;;
9393
9394 sysv4 | sysv4.3*)
9395 version_type=linux
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 case $host_vendor in
9400 sni)
9401 shlibpath_overrides_runpath=no
9402 need_lib_prefix=no
9403 export_dynamic_flag_spec='${wl}-Blargedynsym'
9404 runpath_var=LD_RUN_PATH
9405 ;;
9406 siemens)
9407 need_lib_prefix=no
9408 ;;
9409 motorola)
9410 need_lib_prefix=no
9411 need_version=no
9412 shlibpath_overrides_runpath=no
9413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9414 ;;
9415 esac
9416 ;;
9417
9418 sysv4*MP*)
9419 if test -d /usr/nec ;then
9420 version_type=linux
9421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9422 soname_spec='$libname${shared_ext}.$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 fi
9425 ;;
9426
9427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9428 version_type=freebsd-elf
9429 need_lib_prefix=no
9430 need_version=no
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 hardcode_into_libs=yes
9435 if test "$with_gnu_ld" = yes; then
9436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9437 shlibpath_overrides_runpath=no
9438 else
9439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9440 shlibpath_overrides_runpath=yes
9441 case $host_os in
9442 sco3.2v5*)
9443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9444 ;;
9445 esac
9446 fi
9447 sys_lib_dlsearch_path_spec='/usr/lib'
9448 ;;
9449
9450 uts4*)
9451 version_type=linux
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 ;;
9456
9457 *)
9458 dynamic_linker=no
9459 ;;
9460 esac
9461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462 echo "${ECHO_T}$dynamic_linker" >&6; }
9463 test "$dynamic_linker" = no && can_build_shared=no
9464
9465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466 if test "$GCC" = yes; then
9467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9468 fi
9469
9470 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9472 hardcode_action=
9473 if test -n "$hardcode_libdir_flag_spec" || \
9474 test -n "$runpath_var" || \
9475 test "X$hardcode_automatic" = "Xyes" ; then
9476
9477 # We can hardcode non-existant directories.
9478 if test "$hardcode_direct" != no &&
9479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9480 # have to relink, otherwise we might link with an installed library
9481 # when we should be linking with a yet-to-be-installed one
9482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9483 test "$hardcode_minus_L" != no; then
9484 # Linking always hardcodes the temporary library directory.
9485 hardcode_action=relink
9486 else
9487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9488 hardcode_action=immediate
9489 fi
9490 else
9491 # We cannot hardcode anything, or else we can only hardcode existing
9492 # directories.
9493 hardcode_action=unsupported
9494 fi
9495 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9496 echo "${ECHO_T}$hardcode_action" >&6; }
9497
9498 if test "$hardcode_action" = relink; then
9499 # Fast installation is not supported
9500 enable_fast_install=no
9501 elif test "$shlibpath_overrides_runpath" = yes ||
9502 test "$enable_shared" = no; then
9503 # Fast installation is not necessary
9504 enable_fast_install=needless
9505 fi
9506
9507 striplib=
9508 old_striplib=
9509 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9510 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9511 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9512 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9513 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9514 { echo "$as_me:$LINENO: result: yes" >&5
9515 echo "${ECHO_T}yes" >&6; }
9516 else
9517 # FIXME - insert some real tests, host_os isn't really good enough
9518 case $host_os in
9519 darwin*)
9520 if test -n "$STRIP" ; then
9521 striplib="$STRIP -x"
9522 { echo "$as_me:$LINENO: result: yes" >&5
9523 echo "${ECHO_T}yes" >&6; }
9524 else
9525 { echo "$as_me:$LINENO: result: no" >&5
9526 echo "${ECHO_T}no" >&6; }
9527 fi
9528 ;;
9529 *)
9530 { echo "$as_me:$LINENO: result: no" >&5
9531 echo "${ECHO_T}no" >&6; }
9532 ;;
9533 esac
9534 fi
9535
9536 if test "x$enable_dlopen" != xyes; then
9537 enable_dlopen=unknown
9538 enable_dlopen_self=unknown
9539 enable_dlopen_self_static=unknown
9540 else
9541 lt_cv_dlopen=no
9542 lt_cv_dlopen_libs=
9543
9544 case $host_os in
9545 beos*)
9546 lt_cv_dlopen="load_add_on"
9547 lt_cv_dlopen_libs=
9548 lt_cv_dlopen_self=yes
9549 ;;
9550
9551 mingw* | pw32*)
9552 lt_cv_dlopen="LoadLibrary"
9553 lt_cv_dlopen_libs=
9554 ;;
9555
9556 cygwin*)
9557 lt_cv_dlopen="dlopen"
9558 lt_cv_dlopen_libs=
9559 ;;
9560
9561 darwin*)
9562 # if libdl is installed we need to link against it
9563 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568 ac_check_lib_save_LIBS=$LIBS
9569 LIBS="-ldl $LIBS"
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576
9577 /* Override any GCC internal prototype to avoid an error.
9578 Use char because int might match the return type of a GCC
9579 builtin and then its argument prototype would still apply. */
9580 #ifdef __cplusplus
9581 extern "C"
9582 #endif
9583 char dlopen ();
9584 int
9585 main ()
9586 {
9587 return dlopen ();
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (ac_try="$ac_link"
9594 case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_link") 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9607 { (case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610 esac
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_try") 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (case "(($ac_try" in
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9620 esac
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622 (eval "$ac_try") 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_lib_dl_dlopen=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 ac_cv_lib_dl_dlopen=no
9632 fi
9633
9634 rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 LIBS=$ac_check_lib_save_LIBS
9637 fi
9638 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9639 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9640 if test $ac_cv_lib_dl_dlopen = yes; then
9641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9642 else
9643
9644 lt_cv_dlopen="dyld"
9645 lt_cv_dlopen_libs=
9646 lt_cv_dlopen_self=yes
9647
9648 fi
9649
9650 ;;
9651
9652 *)
9653 { echo "$as_me:$LINENO: checking for shl_load" >&5
9654 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9655 if test "${ac_cv_func_shl_load+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9666 #define shl_load innocuous_shl_load
9667
9668 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char shl_load (); below.
9670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9671 <limits.h> exists even on freestanding compilers. */
9672
9673 #ifdef __STDC__
9674 # include <limits.h>
9675 #else
9676 # include <assert.h>
9677 #endif
9678
9679 #undef shl_load
9680
9681 /* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 char shl_load ();
9688 /* The GNU C library defines this for functions which it implements
9689 to always fail with ENOSYS. Some functions are actually named
9690 something starting with __ and the normal name is an alias. */
9691 #if defined __stub_shl_load || defined __stub___shl_load
9692 choke me
9693 #endif
9694
9695 int
9696 main ()
9697 {
9698 return shl_load ();
9699 ;
9700 return 0;
9701 }
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9705 case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_link") 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_func_shl_load=yes
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 ac_cv_func_shl_load=no
9743 fi
9744
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 fi
9748 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9749 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9750 if test $ac_cv_func_shl_load = yes; then
9751 lt_cv_dlopen="shl_load"
9752 else
9753 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758 ac_check_lib_save_LIBS=$LIBS
9759 LIBS="-ldld $LIBS"
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h. */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char shl_load ();
9774 int
9775 main ()
9776 {
9777 return shl_load ();
9778 ;
9779 return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 ac_cv_lib_dld_shl_load=yes
9817 else
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_cv_lib_dld_shl_load=no
9822 fi
9823
9824 rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9827 fi
9828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830 if test $ac_cv_lib_dld_shl_load = yes; then
9831 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9832 else
9833 { echo "$as_me:$LINENO: checking for dlopen" >&5
9834 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9835 if test "${ac_cv_func_dlopen+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9846 #define dlopen innocuous_dlopen
9847
9848 /* System header to define __stub macros and hopefully few prototypes,
9849 which can conflict with char dlopen (); below.
9850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9851 <limits.h> exists even on freestanding compilers. */
9852
9853 #ifdef __STDC__
9854 # include <limits.h>
9855 #else
9856 # include <assert.h>
9857 #endif
9858
9859 #undef dlopen
9860
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9864 #ifdef __cplusplus
9865 extern "C"
9866 #endif
9867 char dlopen ();
9868 /* The GNU C library defines this for functions which it implements
9869 to always fail with ENOSYS. Some functions are actually named
9870 something starting with __ and the normal name is an alias. */
9871 #if defined __stub_dlopen || defined __stub___dlopen
9872 choke me
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 return dlopen ();
9879 ;
9880 return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9885 case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_link") 2>conftest.er1
9891 ac_status=$?
9892 grep -v '^ *+' conftest.er1 >conftest.err
9893 rm -f conftest.er1
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } &&
9897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest$ac_exeext'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_func_dlopen=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 ac_cv_func_dlopen=no
9923 fi
9924
9925 rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927 fi
9928 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9929 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9930 if test $ac_cv_func_dlopen = yes; then
9931 lt_cv_dlopen="dlopen"
9932 else
9933 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9934 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938 ac_check_lib_save_LIBS=$LIBS
9939 LIBS="-ldl $LIBS"
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946
9947 /* Override any GCC internal prototype to avoid an error.
9948 Use char because int might match the return type of a GCC
9949 builtin and then its argument prototype would still apply. */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 char dlopen ();
9954 int
9955 main ()
9956 {
9957 return dlopen ();
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9964 case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_link") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977 { (case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_try") 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_lib_dl_dlopen=yes
9997 else
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001 ac_cv_lib_dl_dlopen=no
10002 fi
10003
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10007 fi
10008 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10009 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10010 if test $ac_cv_lib_dl_dlopen = yes; then
10011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10012 else
10013 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10014 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lsvld $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char dlopen ();
10034 int
10035 main ()
10036 {
10037 return dlopen ();
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_svld_dlopen=yes
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_cv_lib_svld_dlopen=no
10082 fi
10083
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10087 fi
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10089 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10090 if test $ac_cv_lib_svld_dlopen = yes; then
10091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10092 else
10093 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10094 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10095 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098 ac_check_lib_save_LIBS=$LIBS
10099 LIBS="-ldld $LIBS"
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h. */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106
10107 /* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
10110 #ifdef __cplusplus
10111 extern "C"
10112 #endif
10113 char dld_link ();
10114 int
10115 main ()
10116 {
10117 return dld_link ();
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (ac_try="$ac_link"
10124 case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_link") 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10137 { (case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_try") 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_try") 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_lib_dld_dld_link=yes
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 ac_cv_lib_dld_dld_link=no
10162 fi
10163
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10167 fi
10168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10169 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10170 if test $ac_cv_lib_dld_dld_link = yes; then
10171 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10172 fi
10173
10174
10175 fi
10176
10177
10178 fi
10179
10180
10181 fi
10182
10183
10184 fi
10185
10186
10187 fi
10188
10189 ;;
10190 esac
10191
10192 if test "x$lt_cv_dlopen" != xno; then
10193 enable_dlopen=yes
10194 else
10195 enable_dlopen=no
10196 fi
10197
10198 case $lt_cv_dlopen in
10199 dlopen)
10200 save_CPPFLAGS="$CPPFLAGS"
10201 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10202
10203 save_LDFLAGS="$LDFLAGS"
10204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10205
10206 save_LIBS="$LIBS"
10207 LIBS="$lt_cv_dlopen_libs $LIBS"
10208
10209 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10210 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10211 if test "${lt_cv_dlopen_self+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214 if test "$cross_compiling" = yes; then :
10215 lt_cv_dlopen_self=cross
10216 else
10217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218 lt_status=$lt_dlunknown
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10222
10223 #if HAVE_DLFCN_H
10224 #include <dlfcn.h>
10225 #endif
10226
10227 #include <stdio.h>
10228
10229 #ifdef RTLD_GLOBAL
10230 # define LT_DLGLOBAL RTLD_GLOBAL
10231 #else
10232 # ifdef DL_GLOBAL
10233 # define LT_DLGLOBAL DL_GLOBAL
10234 # else
10235 # define LT_DLGLOBAL 0
10236 # endif
10237 #endif
10238
10239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240 find out it does not work in some platform. */
10241 #ifndef LT_DLLAZY_OR_NOW
10242 # ifdef RTLD_LAZY
10243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10244 # else
10245 # ifdef DL_LAZY
10246 # define LT_DLLAZY_OR_NOW DL_LAZY
10247 # else
10248 # ifdef RTLD_NOW
10249 # define LT_DLLAZY_OR_NOW RTLD_NOW
10250 # else
10251 # ifdef DL_NOW
10252 # define LT_DLLAZY_OR_NOW DL_NOW
10253 # else
10254 # define LT_DLLAZY_OR_NOW 0
10255 # endif
10256 # endif
10257 # endif
10258 # endif
10259 #endif
10260
10261 #ifdef __cplusplus
10262 extern "C" void exit (int);
10263 #endif
10264
10265 void fnord() { int i=42;}
10266 int main ()
10267 {
10268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269 int status = $lt_dlunknown;
10270
10271 if (self)
10272 {
10273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275 /* dlclose (self); */
10276 }
10277 else
10278 puts (dlerror ());
10279
10280 exit (status);
10281 }
10282 EOF
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284 (eval $ac_link) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10288 (./conftest; exit; ) >&5 2>/dev/null
10289 lt_status=$?
10290 case x$lt_status in
10291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10293 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10294 esac
10295 else :
10296 # compilation failed
10297 lt_cv_dlopen_self=no
10298 fi
10299 fi
10300 rm -fr conftest*
10301
10302
10303 fi
10304 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10305 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10306
10307 if test "x$lt_cv_dlopen_self" = xyes; then
10308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10309 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10310 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10311 if test "${lt_cv_dlopen_self_static+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 if test "$cross_compiling" = yes; then :
10315 lt_cv_dlopen_self_static=cross
10316 else
10317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318 lt_status=$lt_dlunknown
10319 cat > conftest.$ac_ext <<EOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10322
10323 #if HAVE_DLFCN_H
10324 #include <dlfcn.h>
10325 #endif
10326
10327 #include <stdio.h>
10328
10329 #ifdef RTLD_GLOBAL
10330 # define LT_DLGLOBAL RTLD_GLOBAL
10331 #else
10332 # ifdef DL_GLOBAL
10333 # define LT_DLGLOBAL DL_GLOBAL
10334 # else
10335 # define LT_DLGLOBAL 0
10336 # endif
10337 #endif
10338
10339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340 find out it does not work in some platform. */
10341 #ifndef LT_DLLAZY_OR_NOW
10342 # ifdef RTLD_LAZY
10343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10344 # else
10345 # ifdef DL_LAZY
10346 # define LT_DLLAZY_OR_NOW DL_LAZY
10347 # else
10348 # ifdef RTLD_NOW
10349 # define LT_DLLAZY_OR_NOW RTLD_NOW
10350 # else
10351 # ifdef DL_NOW
10352 # define LT_DLLAZY_OR_NOW DL_NOW
10353 # else
10354 # define LT_DLLAZY_OR_NOW 0
10355 # endif
10356 # endif
10357 # endif
10358 # endif
10359 #endif
10360
10361 #ifdef __cplusplus
10362 extern "C" void exit (int);
10363 #endif
10364
10365 void fnord() { int i=42;}
10366 int main ()
10367 {
10368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369 int status = $lt_dlunknown;
10370
10371 if (self)
10372 {
10373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375 /* dlclose (self); */
10376 }
10377 else
10378 puts (dlerror ());
10379
10380 exit (status);
10381 }
10382 EOF
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10388 (./conftest; exit; ) >&5 2>/dev/null
10389 lt_status=$?
10390 case x$lt_status in
10391 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10392 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10394 esac
10395 else :
10396 # compilation failed
10397 lt_cv_dlopen_self_static=no
10398 fi
10399 fi
10400 rm -fr conftest*
10401
10402
10403 fi
10404 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10405 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10406 fi
10407
10408 CPPFLAGS="$save_CPPFLAGS"
10409 LDFLAGS="$save_LDFLAGS"
10410 LIBS="$save_LIBS"
10411 ;;
10412 esac
10413
10414 case $lt_cv_dlopen_self in
10415 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10416 *) enable_dlopen_self=unknown ;;
10417 esac
10418
10419 case $lt_cv_dlopen_self_static in
10420 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10421 *) enable_dlopen_self_static=unknown ;;
10422 esac
10423 fi
10424
10425
10426 # Report which library types will actually be built
10427 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10428 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10429 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10430 echo "${ECHO_T}$can_build_shared" >&6; }
10431
10432 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10433 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10434 test "$can_build_shared" = "no" && enable_shared=no
10435
10436 # On AIX, shared libraries and static libraries use the same namespace, and
10437 # are all built from PIC.
10438 case $host_os in
10439 aix3*)
10440 test "$enable_shared" = yes && enable_static=no
10441 if test -n "$RANLIB"; then
10442 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10443 postinstall_cmds='$RANLIB $lib'
10444 fi
10445 ;;
10446
10447 aix4* | aix5*)
10448 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10449 test "$enable_shared" = yes && enable_static=no
10450 fi
10451 ;;
10452 esac
10453 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10454 echo "${ECHO_T}$enable_shared" >&6; }
10455
10456 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10457 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10458 # Make sure either enable_shared or enable_static is yes.
10459 test "$enable_shared" = yes || enable_static=yes
10460 { echo "$as_me:$LINENO: result: $enable_static" >&5
10461 echo "${ECHO_T}$enable_static" >&6; }
10462
10463 # The else clause should only fire when bootstrapping the
10464 # libtool distribution, otherwise you forgot to ship ltmain.sh
10465 # with your package, and you will get complaints that there are
10466 # no rules to generate ltmain.sh.
10467 if test -f "$ltmain"; then
10468 # See if we are running on zsh, and set the options which allow our commands through
10469 # without removal of \ escapes.
10470 if test -n "${ZSH_VERSION+set}" ; then
10471 setopt NO_GLOB_SUBST
10472 fi
10473 # Now quote all the things that may contain metacharacters while being
10474 # careful not to overquote the AC_SUBSTed values. We take copies of the
10475 # variables and quote the copies for generation of the libtool script.
10476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10477 SED SHELL STRIP \
10478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10480 deplibs_check_method reload_flag reload_cmds need_locks \
10481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10482 lt_cv_sys_global_symbol_to_c_name_address \
10483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10484 old_postinstall_cmds old_postuninstall_cmds \
10485 compiler \
10486 CC \
10487 LD \
10488 lt_prog_compiler_wl \
10489 lt_prog_compiler_pic \
10490 lt_prog_compiler_static \
10491 lt_prog_compiler_no_builtin_flag \
10492 export_dynamic_flag_spec \
10493 thread_safe_flag_spec \
10494 whole_archive_flag_spec \
10495 enable_shared_with_static_runtimes \
10496 old_archive_cmds \
10497 old_archive_from_new_cmds \
10498 predep_objects \
10499 postdep_objects \
10500 predeps \
10501 postdeps \
10502 compiler_lib_search_path \
10503 archive_cmds \
10504 archive_expsym_cmds \
10505 postinstall_cmds \
10506 postuninstall_cmds \
10507 old_archive_from_expsyms_cmds \
10508 allow_undefined_flag \
10509 no_undefined_flag \
10510 export_symbols_cmds \
10511 hardcode_libdir_flag_spec \
10512 hardcode_libdir_flag_spec_ld \
10513 hardcode_libdir_separator \
10514 hardcode_automatic \
10515 module_cmds \
10516 module_expsym_cmds \
10517 lt_cv_prog_compiler_c_o \
10518 exclude_expsyms \
10519 include_expsyms; do
10520
10521 case $var in
10522 old_archive_cmds | \
10523 old_archive_from_new_cmds | \
10524 archive_cmds | \
10525 archive_expsym_cmds | \
10526 module_cmds | \
10527 module_expsym_cmds | \
10528 old_archive_from_expsyms_cmds | \
10529 export_symbols_cmds | \
10530 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10531 postinstall_cmds | postuninstall_cmds | \
10532 old_postinstall_cmds | old_postuninstall_cmds | \
10533 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10534 # Double-quote double-evaled strings.
10535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10536 ;;
10537 *)
10538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10539 ;;
10540 esac
10541 done
10542
10543 case $lt_echo in
10544 *'\$0 --fallback-echo"')
10545 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10546 ;;
10547 esac
10548
10549 cfgfile="${ofile}T"
10550 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10551 $rm -f "$cfgfile"
10552 { echo "$as_me:$LINENO: creating $ofile" >&5
10553 echo "$as_me: creating $ofile" >&6;}
10554
10555 cat <<__EOF__ >> "$cfgfile"
10556 #! $SHELL
10557
10558 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10559 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10560 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10561 #
10562 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10563 # Free Software Foundation, Inc.
10564 #
10565 # This file is part of GNU Libtool:
10566 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10567 #
10568 # This program is free software; you can redistribute it and/or modify
10569 # it under the terms of the GNU General Public License as published by
10570 # the Free Software Foundation; either version 2 of the License, or
10571 # (at your option) any later version.
10572 #
10573 # This program is distributed in the hope that it will be useful, but
10574 # WITHOUT ANY WARRANTY; without even the implied warranty of
10575 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10576 # General Public License for more details.
10577 #
10578 # You should have received a copy of the GNU General Public License
10579 # along with this program; if not, write to the Free Software
10580 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10581 #
10582 # As a special exception to the GNU General Public License, if you
10583 # distribute this file as part of a program that contains a
10584 # configuration script generated by Autoconf, you may include it under
10585 # the same distribution terms that you use for the rest of that program.
10586
10587 # A sed program that does not truncate output.
10588 SED=$lt_SED
10589
10590 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10591 Xsed="$SED -e 1s/^X//"
10592
10593 # The HP-UX ksh and POSIX shell print the target directory to stdout
10594 # if CDPATH is set.
10595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10596
10597 # The names of the tagged configurations supported by this script.
10598 available_tags=
10599
10600 # ### BEGIN LIBTOOL CONFIG
10601
10602 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10603
10604 # Shell to use when invoking shell scripts.
10605 SHELL=$lt_SHELL
10606
10607 # Whether or not to build shared libraries.
10608 build_libtool_libs=$enable_shared
10609
10610 # Whether or not to build static libraries.
10611 build_old_libs=$enable_static
10612
10613 # Whether or not to add -lc for building shared libraries.
10614 build_libtool_need_lc=$archive_cmds_need_lc
10615
10616 # Whether or not to disallow shared libs when runtime libs are static
10617 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10618
10619 # Whether or not to optimize for fast installation.
10620 fast_install=$enable_fast_install
10621
10622 # The host system.
10623 host_alias=$host_alias
10624 host=$host
10625 host_os=$host_os
10626
10627 # The build system.
10628 build_alias=$build_alias
10629 build=$build
10630 build_os=$build_os
10631
10632 # An echo program that does not interpret backslashes.
10633 echo=$lt_echo
10634
10635 # The archiver.
10636 AR=$lt_AR
10637 AR_FLAGS=$lt_AR_FLAGS
10638
10639 # A C compiler.
10640 LTCC=$lt_LTCC
10641
10642 # LTCC compiler flags.
10643 LTCFLAGS=$lt_LTCFLAGS
10644
10645 # A language-specific compiler.
10646 CC=$lt_compiler
10647
10648 # Is the compiler the GNU C compiler?
10649 with_gcc=$GCC
10650
10651 # An ERE matcher.
10652 EGREP=$lt_EGREP
10653
10654 # The linker used to build libraries.
10655 LD=$lt_LD
10656
10657 # Whether we need hard or soft links.
10658 LN_S=$lt_LN_S
10659
10660 # A BSD-compatible nm program.
10661 NM=$lt_NM
10662
10663 # A symbol stripping program
10664 STRIP=$lt_STRIP
10665
10666 # Used to examine libraries when file_magic_cmd begins "file"
10667 MAGIC_CMD=$MAGIC_CMD
10668
10669 # Used on cygwin: DLL creation program.
10670 DLLTOOL="$DLLTOOL"
10671
10672 # Used on cygwin: object dumper.
10673 OBJDUMP="$OBJDUMP"
10674
10675 # Used on cygwin: assembler.
10676 AS="$AS"
10677
10678 # The name of the directory that contains temporary libtool files.
10679 objdir=$objdir
10680
10681 # How to create reloadable object files.
10682 reload_flag=$lt_reload_flag
10683 reload_cmds=$lt_reload_cmds
10684
10685 # How to pass a linker flag through the compiler.
10686 wl=$lt_lt_prog_compiler_wl
10687
10688 # Object file suffix (normally "o").
10689 objext="$ac_objext"
10690
10691 # Old archive suffix (normally "a").
10692 libext="$libext"
10693
10694 # Shared library suffix (normally ".so").
10695 shrext_cmds='$shrext_cmds'
10696
10697 # Executable file suffix (normally "").
10698 exeext="$exeext"
10699
10700 # Additional compiler flags for building library objects.
10701 pic_flag=$lt_lt_prog_compiler_pic
10702 pic_mode=$pic_mode
10703
10704 # What is the maximum length of a command?
10705 max_cmd_len=$lt_cv_sys_max_cmd_len
10706
10707 # Does compiler simultaneously support -c and -o options?
10708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10709
10710 # Must we lock files when doing compilation?
10711 need_locks=$lt_need_locks
10712
10713 # Do we need the lib prefix for modules?
10714 need_lib_prefix=$need_lib_prefix
10715
10716 # Do we need a version for libraries?
10717 need_version=$need_version
10718
10719 # Whether dlopen is supported.
10720 dlopen_support=$enable_dlopen
10721
10722 # Whether dlopen of programs is supported.
10723 dlopen_self=$enable_dlopen_self
10724
10725 # Whether dlopen of statically linked programs is supported.
10726 dlopen_self_static=$enable_dlopen_self_static
10727
10728 # Compiler flag to prevent dynamic linking.
10729 link_static_flag=$lt_lt_prog_compiler_static
10730
10731 # Compiler flag to turn off builtin functions.
10732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10733
10734 # Compiler flag to allow reflexive dlopens.
10735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10736
10737 # Compiler flag to generate shared objects directly from archives.
10738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10739
10740 # Compiler flag to generate thread-safe objects.
10741 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10742
10743 # Library versioning type.
10744 version_type=$version_type
10745
10746 # Format of library name prefix.
10747 libname_spec=$lt_libname_spec
10748
10749 # List of archive names. First name is the real one, the rest are links.
10750 # The last name is the one that the linker finds with -lNAME.
10751 library_names_spec=$lt_library_names_spec
10752
10753 # The coded name of the library, if different from the real name.
10754 soname_spec=$lt_soname_spec
10755
10756 # Commands used to build and install an old-style archive.
10757 RANLIB=$lt_RANLIB
10758 old_archive_cmds=$lt_old_archive_cmds
10759 old_postinstall_cmds=$lt_old_postinstall_cmds
10760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10761
10762 # Create an old-style archive from a shared archive.
10763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10764
10765 # Create a temporary old-style archive to link instead of a shared archive.
10766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10767
10768 # Commands used to build and install a shared archive.
10769 archive_cmds=$lt_archive_cmds
10770 archive_expsym_cmds=$lt_archive_expsym_cmds
10771 postinstall_cmds=$lt_postinstall_cmds
10772 postuninstall_cmds=$lt_postuninstall_cmds
10773
10774 # Commands used to build a loadable module (assumed same as above if empty)
10775 module_cmds=$lt_module_cmds
10776 module_expsym_cmds=$lt_module_expsym_cmds
10777
10778 # Commands to strip libraries.
10779 old_striplib=$lt_old_striplib
10780 striplib=$lt_striplib
10781
10782 # Dependencies to place before the objects being linked to create a
10783 # shared library.
10784 predep_objects=$lt_predep_objects
10785
10786 # Dependencies to place after the objects being linked to create a
10787 # shared library.
10788 postdep_objects=$lt_postdep_objects
10789
10790 # Dependencies to place before the objects being linked to create a
10791 # shared library.
10792 predeps=$lt_predeps
10793
10794 # Dependencies to place after the objects being linked to create a
10795 # shared library.
10796 postdeps=$lt_postdeps
10797
10798 # The library search path used internally by the compiler when linking
10799 # a shared library.
10800 compiler_lib_search_path=$lt_compiler_lib_search_path
10801
10802 # Method to check whether dependent libraries are shared objects.
10803 deplibs_check_method=$lt_deplibs_check_method
10804
10805 # Command to use when deplibs_check_method == file_magic.
10806 file_magic_cmd=$lt_file_magic_cmd
10807
10808 # Flag that allows shared libraries with undefined symbols to be built.
10809 allow_undefined_flag=$lt_allow_undefined_flag
10810
10811 # Flag that forces no undefined symbols.
10812 no_undefined_flag=$lt_no_undefined_flag
10813
10814 # Commands used to finish a libtool library installation in a directory.
10815 finish_cmds=$lt_finish_cmds
10816
10817 # Same as above, but a single script fragment to be evaled but not shown.
10818 finish_eval=$lt_finish_eval
10819
10820 # Take the output of nm and produce a listing of raw symbols and C names.
10821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10822
10823 # Transform the output of nm in a proper C declaration
10824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10825
10826 # Transform the output of nm in a C name address pair
10827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10828
10829 # This is the shared library runtime path variable.
10830 runpath_var=$runpath_var
10831
10832 # This is the shared library path variable.
10833 shlibpath_var=$shlibpath_var
10834
10835 # Is shlibpath searched before the hard-coded library search path?
10836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10837
10838 # How to hardcode a shared library path into an executable.
10839 hardcode_action=$hardcode_action
10840
10841 # Whether we should hardcode library paths into libraries.
10842 hardcode_into_libs=$hardcode_into_libs
10843
10844 # Flag to hardcode \$libdir into a binary during linking.
10845 # This must work even if \$libdir does not exist.
10846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10847
10848 # If ld is used when linking, flag to hardcode \$libdir into
10849 # a binary during linking. This must work even if \$libdir does
10850 # not exist.
10851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10852
10853 # Whether we need a single -rpath flag with a separated argument.
10854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10855
10856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10857 # resulting binary.
10858 hardcode_direct=$hardcode_direct
10859
10860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10861 # resulting binary.
10862 hardcode_minus_L=$hardcode_minus_L
10863
10864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10865 # the resulting binary.
10866 hardcode_shlibpath_var=$hardcode_shlibpath_var
10867
10868 # Set to yes if building a shared library automatically hardcodes DIR into the library
10869 # and all subsequent libraries and executables linked against it.
10870 hardcode_automatic=$hardcode_automatic
10871
10872 # Variables whose values should be saved in libtool wrapper scripts and
10873 # restored at relink time.
10874 variables_saved_for_relink="$variables_saved_for_relink"
10875
10876 # Whether libtool must link a program against all its dependency libraries.
10877 link_all_deplibs=$link_all_deplibs
10878
10879 # Compile-time system search path for libraries
10880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10881
10882 # Run-time system search path for libraries
10883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10884
10885 # Fix the shell variable \$srcfile for the compiler.
10886 fix_srcfile_path="$fix_srcfile_path"
10887
10888 # Set to yes if exported symbols are required.
10889 always_export_symbols=$always_export_symbols
10890
10891 # The commands to list exported symbols.
10892 export_symbols_cmds=$lt_export_symbols_cmds
10893
10894 # The commands to extract the exported symbol list from a shared archive.
10895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10896
10897 # Symbols that should not be listed in the preloaded symbols.
10898 exclude_expsyms=$lt_exclude_expsyms
10899
10900 # Symbols that must always be exported.
10901 include_expsyms=$lt_include_expsyms
10902
10903 # ### END LIBTOOL CONFIG
10904
10905 __EOF__
10906
10907
10908 case $host_os in
10909 aix3*)
10910 cat <<\EOF >> "$cfgfile"
10911
10912 # AIX sometimes has problems with the GCC collect2 program. For some
10913 # reason, if we set the COLLECT_NAMES environment variable, the problems
10914 # vanish in a puff of smoke.
10915 if test "X${COLLECT_NAMES+set}" != Xset; then
10916 COLLECT_NAMES=
10917 export COLLECT_NAMES
10918 fi
10919 EOF
10920 ;;
10921 esac
10922
10923 # We use sed instead of cat because bash on DJGPP gets confused if
10924 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10925 # text mode, it properly converts lines to CR/LF. This bash problem
10926 # is reportedly fixed, but why not run on old versions too?
10927 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10928
10929 mv -f "$cfgfile" "$ofile" || \
10930 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10931 chmod +x "$ofile"
10932
10933 else
10934 # If there is no Makefile yet, we rely on a make rule to execute
10935 # `config.status --recheck' to rerun these tests and create the
10936 # libtool script then.
10937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10938 if test -f "$ltmain_in"; then
10939 test -f Makefile && make "$ltmain"
10940 fi
10941 fi
10942
10943
10944 ac_ext=c
10945 ac_cpp='$CPP $CPPFLAGS'
10946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10949
10950 CC="$lt_save_CC"
10951
10952
10953 # Check whether --with-tags was given.
10954 if test "${with_tags+set}" = set; then
10955 withval=$with_tags; tagnames="$withval"
10956 fi
10957
10958
10959 if test -f "$ltmain" && test -n "$tagnames"; then
10960 if test ! -f "${ofile}"; then
10961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10962 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10963 fi
10964
10965 if test -z "$LTCC"; then
10966 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10967 if test -z "$LTCC"; then
10968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10969 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10970 else
10971 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10972 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10973 fi
10974 fi
10975 if test -z "$LTCFLAGS"; then
10976 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10977 fi
10978
10979 # Extract list of available tagged configurations in $ofile.
10980 # Note that this assumes the entire list is on one line.
10981 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10982
10983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10984 for tagname in $tagnames; do
10985 IFS="$lt_save_ifs"
10986 # Check whether tagname contains only valid characters
10987 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10988 "") ;;
10989 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10990 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10991 { (exit 1); exit 1; }; }
10992 ;;
10993 esac
10994
10995 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10996 then
10997 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10998 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10999 { (exit 1); exit 1; }; }
11000 fi
11001
11002 # Update the list of available tags.
11003 if test -n "$tagname"; then
11004 echo appending configuration tag \"$tagname\" to $ofile
11005
11006 case $tagname in
11007 CXX)
11008 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11009 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11010 (test "X$CXX" != "Xg++"))) ; then
11011 ac_ext=cpp
11012 ac_cpp='$CXXCPP $CPPFLAGS'
11013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11016
11017
11018
11019
11020 archive_cmds_need_lc_CXX=no
11021 allow_undefined_flag_CXX=
11022 always_export_symbols_CXX=no
11023 archive_expsym_cmds_CXX=
11024 export_dynamic_flag_spec_CXX=
11025 hardcode_direct_CXX=no
11026 hardcode_libdir_flag_spec_CXX=
11027 hardcode_libdir_flag_spec_ld_CXX=
11028 hardcode_libdir_separator_CXX=
11029 hardcode_minus_L_CXX=no
11030 hardcode_shlibpath_var_CXX=unsupported
11031 hardcode_automatic_CXX=no
11032 module_cmds_CXX=
11033 module_expsym_cmds_CXX=
11034 link_all_deplibs_CXX=unknown
11035 old_archive_cmds_CXX=$old_archive_cmds
11036 no_undefined_flag_CXX=
11037 whole_archive_flag_spec_CXX=
11038 enable_shared_with_static_runtimes_CXX=no
11039
11040 # Dependencies to place before and after the object being linked:
11041 predep_objects_CXX=
11042 postdep_objects_CXX=
11043 predeps_CXX=
11044 postdeps_CXX=
11045 compiler_lib_search_path_CXX=
11046
11047 # Source file extension for C++ test sources.
11048 ac_ext=cpp
11049
11050 # Object file extension for compiled C++ test sources.
11051 objext=o
11052 objext_CXX=$objext
11053
11054 # Code to be used in simple compile tests
11055 lt_simple_compile_test_code="int some_variable = 0;\n"
11056
11057 # Code to be used in simple link tests
11058 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11059
11060 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11061
11062 # If no C compiler was specified, use CC.
11063 LTCC=${LTCC-"$CC"}
11064
11065 # If no C compiler flags were specified, use CFLAGS.
11066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11067
11068 # Allow CC to be a program name with arguments.
11069 compiler=$CC
11070
11071
11072 # save warnings/boilerplate of simple test code
11073 ac_outfile=conftest.$ac_objext
11074 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11076 _lt_compiler_boilerplate=`cat conftest.err`
11077 $rm conftest*
11078
11079 ac_outfile=conftest.$ac_objext
11080 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11082 _lt_linker_boilerplate=`cat conftest.err`
11083 $rm conftest*
11084
11085
11086 # Allow CC to be a program name with arguments.
11087 lt_save_CC=$CC
11088 lt_save_LD=$LD
11089 lt_save_GCC=$GCC
11090 GCC=$GXX
11091 lt_save_with_gnu_ld=$with_gnu_ld
11092 lt_save_path_LD=$lt_cv_path_LD
11093 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11094 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11095 else
11096 $as_unset lt_cv_prog_gnu_ld
11097 fi
11098 if test -n "${lt_cv_path_LDCXX+set}"; then
11099 lt_cv_path_LD=$lt_cv_path_LDCXX
11100 else
11101 $as_unset lt_cv_path_LD
11102 fi
11103 test -z "${LDCXX+set}" || LD=$LDCXX
11104 CC=${CXX-"c++"}
11105 compiler=$CC
11106 compiler_CXX=$CC
11107 for cc_temp in $compiler""; do
11108 case $cc_temp in
11109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11111 \-*) ;;
11112 *) break;;
11113 esac
11114 done
11115 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11116
11117
11118 # We don't want -fno-exception wen compiling C++ code, so set the
11119 # no_builtin_flag separately
11120 if test "$GXX" = yes; then
11121 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11122 else
11123 lt_prog_compiler_no_builtin_flag_CXX=
11124 fi
11125
11126 if test "$GXX" = yes; then
11127 # Set up default GNU C++ configuration
11128
11129
11130 # Check whether --with-gnu-ld was given.
11131 if test "${with_gnu_ld+set}" = set; then
11132 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11133 else
11134 with_gnu_ld=no
11135 fi
11136
11137 ac_prog=ld
11138 if test "$GCC" = yes; then
11139 # Check if gcc -print-prog-name=ld gives a path.
11140 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11141 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11142 case $host in
11143 *-*-mingw*)
11144 # gcc leaves a trailing carriage return which upsets mingw
11145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11146 *)
11147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11148 esac
11149 case $ac_prog in
11150 # Accept absolute paths.
11151 [\\/]* | ?:[\\/]*)
11152 re_direlt='/[^/][^/]*/\.\./'
11153 # Canonicalize the pathname of ld
11154 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11155 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11156 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11157 done
11158 test -z "$LD" && LD="$ac_prog"
11159 ;;
11160 "")
11161 # If it fails, then pretend we aren't using GCC.
11162 ac_prog=ld
11163 ;;
11164 *)
11165 # If it is relative, then search for the first ld in PATH.
11166 with_gnu_ld=unknown
11167 ;;
11168 esac
11169 elif test "$with_gnu_ld" = yes; then
11170 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11171 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11172 else
11173 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11174 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11175 fi
11176 if test "${lt_cv_path_LD+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 if test -z "$LD"; then
11180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11181 for ac_dir in $PATH; do
11182 IFS="$lt_save_ifs"
11183 test -z "$ac_dir" && ac_dir=.
11184 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11185 lt_cv_path_LD="$ac_dir/$ac_prog"
11186 # Check to see if the program is GNU ld. I'd rather use --version,
11187 # but apparently some variants of GNU ld only accept -v.
11188 # Break only if it was the GNU/non-GNU ld that we prefer.
11189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11190 *GNU* | *'with BFD'*)
11191 test "$with_gnu_ld" != no && break
11192 ;;
11193 *)
11194 test "$with_gnu_ld" != yes && break
11195 ;;
11196 esac
11197 fi
11198 done
11199 IFS="$lt_save_ifs"
11200 else
11201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11202 fi
11203 fi
11204
11205 LD="$lt_cv_path_LD"
11206 if test -n "$LD"; then
11207 { echo "$as_me:$LINENO: result: $LD" >&5
11208 echo "${ECHO_T}$LD" >&6; }
11209 else
11210 { echo "$as_me:$LINENO: result: no" >&5
11211 echo "${ECHO_T}no" >&6; }
11212 fi
11213 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11214 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11215 { (exit 1); exit 1; }; }
11216 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11217 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11218 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11222 case `$LD -v 2>&1 </dev/null` in
11223 *GNU* | *'with BFD'*)
11224 lt_cv_prog_gnu_ld=yes
11225 ;;
11226 *)
11227 lt_cv_prog_gnu_ld=no
11228 ;;
11229 esac
11230 fi
11231 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11232 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11233 with_gnu_ld=$lt_cv_prog_gnu_ld
11234
11235
11236
11237 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11238 # archiving commands below assume that GNU ld is being used.
11239 if test "$with_gnu_ld" = yes; then
11240 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11241 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'
11242
11243 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11245
11246 # If archive_cmds runs LD, not CC, wlarc should be empty
11247 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11248 # investigate it a little bit more. (MM)
11249 wlarc='${wl}'
11250
11251 # ancient GNU ld didn't support --whole-archive et. al.
11252 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11253 grep 'no-whole-archive' > /dev/null; then
11254 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11255 else
11256 whole_archive_flag_spec_CXX=
11257 fi
11258 else
11259 with_gnu_ld=no
11260 wlarc=
11261
11262 # A generic and very simple default shared library creation
11263 # command for GNU C++ for the case where it uses the native
11264 # linker, instead of GNU ld. If possible, this setting should
11265 # overridden to take advantage of the native linker features on
11266 # the platform it is being used on.
11267 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11268 fi
11269
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11273 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11274
11275 else
11276 GXX=no
11277 with_gnu_ld=no
11278 wlarc=
11279 fi
11280
11281 # PORTME: fill in a description of your system's C++ link characteristics
11282 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11283 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11284 ld_shlibs_CXX=yes
11285 case $host_os in
11286 aix3*)
11287 # FIXME: insert proper C++ library support
11288 ld_shlibs_CXX=no
11289 ;;
11290 aix4* | aix5*)
11291 if test "$host_cpu" = ia64; then
11292 # On IA64, the linker does run time linking by default, so we don't
11293 # have to do anything special.
11294 aix_use_runtimelinking=no
11295 exp_sym_flag='-Bexport'
11296 no_entry_flag=""
11297 else
11298 aix_use_runtimelinking=no
11299
11300 # Test if we are trying to use run time linking or normal
11301 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11302 # need to do runtime linking.
11303 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11304 for ld_flag in $LDFLAGS; do
11305 case $ld_flag in
11306 *-brtl*)
11307 aix_use_runtimelinking=yes
11308 break
11309 ;;
11310 esac
11311 done
11312 ;;
11313 esac
11314
11315 exp_sym_flag='-bexport'
11316 no_entry_flag='-bnoentry'
11317 fi
11318
11319 # When large executables or shared objects are built, AIX ld can
11320 # have problems creating the table of contents. If linking a library
11321 # or program results in "error TOC overflow" add -mminimal-toc to
11322 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11323 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11324
11325 archive_cmds_CXX=''
11326 hardcode_direct_CXX=yes
11327 hardcode_libdir_separator_CXX=':'
11328 link_all_deplibs_CXX=yes
11329
11330 if test "$GXX" = yes; then
11331 case $host_os in aix4.[012]|aix4.[012].*)
11332 # We only want to do this on AIX 4.2 and lower, the check
11333 # below for broken collect2 doesn't work under 4.3+
11334 collect2name=`${CC} -print-prog-name=collect2`
11335 if test -f "$collect2name" && \
11336 strings "$collect2name" | grep resolve_lib_name >/dev/null
11337 then
11338 # We have reworked collect2
11339 hardcode_direct_CXX=yes
11340 else
11341 # We have old collect2
11342 hardcode_direct_CXX=unsupported
11343 # It fails to find uninstalled libraries when the uninstalled
11344 # path is not listed in the libpath. Setting hardcode_minus_L
11345 # to unsupported forces relinking
11346 hardcode_minus_L_CXX=yes
11347 hardcode_libdir_flag_spec_CXX='-L$libdir'
11348 hardcode_libdir_separator_CXX=
11349 fi
11350 ;;
11351 esac
11352 shared_flag='-shared'
11353 if test "$aix_use_runtimelinking" = yes; then
11354 shared_flag="$shared_flag "'${wl}-G'
11355 fi
11356 else
11357 # not using gcc
11358 if test "$host_cpu" = ia64; then
11359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11360 # chokes on -Wl,-G. The following line is correct:
11361 shared_flag='-G'
11362 else
11363 if test "$aix_use_runtimelinking" = yes; then
11364 shared_flag='${wl}-G'
11365 else
11366 shared_flag='${wl}-bM:SRE'
11367 fi
11368 fi
11369 fi
11370
11371 # It seems that -bexpall does not export symbols beginning with
11372 # underscore (_), so it is better to generate a list of symbols to export.
11373 always_export_symbols_CXX=yes
11374 if test "$aix_use_runtimelinking" = yes; then
11375 # Warning - without using the other runtime loading flags (-brtl),
11376 # -berok will link without error, but may produce a broken library.
11377 allow_undefined_flag_CXX='-berok'
11378 # Determine the default libpath from the value encoded in an empty executable.
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385
11386 int
11387 main ()
11388 {
11389
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (ac_try="$ac_link"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_link") 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest$ac_exeext'
11419 { (case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_try") 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428
11429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11430 }'`
11431 # Check for a 64-bit object if we didn't find anything.
11432 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; }
11433 }'`; fi
11434 else
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11437
11438
11439 fi
11440
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11444
11445 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11446
11447 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"
11448 else
11449 if test "$host_cpu" = ia64; then
11450 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11451 allow_undefined_flag_CXX="-z nodefs"
11452 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"
11453 else
11454 # Determine the default libpath from the value encoded in an empty executable.
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461
11462 int
11463 main ()
11464 {
11465
11466 ;
11467 return 0;
11468 }
11469 _ACEOF
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504
11505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11506 }'`
11507 # Check for a 64-bit object if we didn't find anything.
11508 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; }
11509 }'`; fi
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514
11515 fi
11516
11517 rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11520
11521 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11522 # Warning - without using the other run time loading flags,
11523 # -berok will link without error, but may produce a broken library.
11524 no_undefined_flag_CXX=' ${wl}-bernotok'
11525 allow_undefined_flag_CXX=' ${wl}-berok'
11526 # Exported symbols can be pulled into shared objects from archives
11527 whole_archive_flag_spec_CXX='$convenience'
11528 archive_cmds_need_lc_CXX=yes
11529 # This is similar to how AIX traditionally builds its shared libraries.
11530 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'
11531 fi
11532 fi
11533 ;;
11534
11535 beos*)
11536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11537 allow_undefined_flag_CXX=unsupported
11538 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11539 # support --undefined. This deserves some investigation. FIXME
11540 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11541 else
11542 ld_shlibs_CXX=no
11543 fi
11544 ;;
11545
11546 chorus*)
11547 case $cc_basename in
11548 *)
11549 # FIXME: insert proper C++ library support
11550 ld_shlibs_CXX=no
11551 ;;
11552 esac
11553 ;;
11554
11555 cygwin* | mingw* | pw32*)
11556 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11557 # as there is no search path for DLLs.
11558 hardcode_libdir_flag_spec_CXX='-L$libdir'
11559 allow_undefined_flag_CXX=unsupported
11560 always_export_symbols_CXX=no
11561 enable_shared_with_static_runtimes_CXX=yes
11562
11563 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11564 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'
11565 # If the export-symbols file already is a .def file (1st line
11566 # is EXPORTS), use it as is; otherwise, prepend...
11567 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11568 cp $export_symbols $output_objdir/$soname.def;
11569 else
11570 echo EXPORTS > $output_objdir/$soname.def;
11571 cat $export_symbols >> $output_objdir/$soname.def;
11572 fi~
11573 $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'
11574 else
11575 ld_shlibs_CXX=no
11576 fi
11577 ;;
11578 darwin* | rhapsody*)
11579 case $host_os in
11580 rhapsody* | darwin1.[012])
11581 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11582 ;;
11583 *) # Darwin 1.3 on
11584 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11585 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11586 else
11587 case ${MACOSX_DEPLOYMENT_TARGET} in
11588 10.[012])
11589 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11590 ;;
11591 10.*)
11592 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11593 ;;
11594 esac
11595 fi
11596 ;;
11597 esac
11598 archive_cmds_need_lc_CXX=no
11599 hardcode_direct_CXX=no
11600 hardcode_automatic_CXX=yes
11601 hardcode_shlibpath_var_CXX=unsupported
11602 whole_archive_flag_spec_CXX=''
11603 link_all_deplibs_CXX=yes
11604
11605 if test "$GXX" = yes ; then
11606 lt_int_apple_cc_single_mod=no
11607 output_verbose_link_cmd='echo'
11608 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11609 lt_int_apple_cc_single_mod=yes
11610 fi
11611 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11612 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11613 else
11614 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'
11615 fi
11616 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11618 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11619 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}'
11620 else
11621 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}'
11622 fi
11623 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}'
11624 else
11625 case $cc_basename in
11626 xlc*)
11627 output_verbose_link_cmd='echo'
11628 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'
11629 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11631 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}'
11632 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}'
11633 ;;
11634 *)
11635 ld_shlibs_CXX=no
11636 ;;
11637 esac
11638 fi
11639 ;;
11640
11641 dgux*)
11642 case $cc_basename in
11643 ec++*)
11644 # FIXME: insert proper C++ library support
11645 ld_shlibs_CXX=no
11646 ;;
11647 ghcx*)
11648 # Green Hills C++ Compiler
11649 # FIXME: insert proper C++ library support
11650 ld_shlibs_CXX=no
11651 ;;
11652 *)
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 esac
11657 ;;
11658 freebsd[12]*)
11659 # C++ shared libraries reported to be fairly broken before switch to ELF
11660 ld_shlibs_CXX=no
11661 ;;
11662 freebsd-elf*)
11663 archive_cmds_need_lc_CXX=no
11664 ;;
11665 freebsd* | dragonfly*)
11666 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11667 # conventions
11668 ld_shlibs_CXX=yes
11669 ;;
11670 gnu*)
11671 ;;
11672 hpux9*)
11673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11674 hardcode_libdir_separator_CXX=:
11675 export_dynamic_flag_spec_CXX='${wl}-E'
11676 hardcode_direct_CXX=yes
11677 hardcode_minus_L_CXX=yes # Not in the search PATH,
11678 # but as the default
11679 # location of the library.
11680
11681 case $cc_basename in
11682 CC*)
11683 # FIXME: insert proper C++ library support
11684 ld_shlibs_CXX=no
11685 ;;
11686 aCC*)
11687 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'
11688 # Commands to make compiler produce verbose output that lists
11689 # what "hidden" libraries, object files and flags are used when
11690 # linking a shared library.
11691 #
11692 # There doesn't appear to be a way to prevent this compiler from
11693 # explicitly linking system object files so we need to strip them
11694 # from the output so that they don't get included in the library
11695 # dependencies.
11696 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'
11697 ;;
11698 *)
11699 if test "$GXX" = yes; then
11700 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'
11701 else
11702 # FIXME: insert proper C++ library support
11703 ld_shlibs_CXX=no
11704 fi
11705 ;;
11706 esac
11707 ;;
11708 hpux10*|hpux11*)
11709 if test $with_gnu_ld = no; then
11710 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11711 hardcode_libdir_separator_CXX=:
11712
11713 case $host_cpu in
11714 hppa*64*|ia64*)
11715 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11716 ;;
11717 *)
11718 export_dynamic_flag_spec_CXX='${wl}-E'
11719 ;;
11720 esac
11721 fi
11722 case $host_cpu in
11723 hppa*64*|ia64*)
11724 hardcode_direct_CXX=no
11725 hardcode_shlibpath_var_CXX=no
11726 ;;
11727 *)
11728 hardcode_direct_CXX=yes
11729 hardcode_minus_L_CXX=yes # Not in the search PATH,
11730 # but as the default
11731 # location of the library.
11732 ;;
11733 esac
11734
11735 case $cc_basename in
11736 CC*)
11737 # FIXME: insert proper C++ library support
11738 ld_shlibs_CXX=no
11739 ;;
11740 aCC*)
11741 case $host_cpu in
11742 hppa*64*)
11743 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11744 ;;
11745 ia64*)
11746 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11747 ;;
11748 *)
11749 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11750 ;;
11751 esac
11752 # Commands to make compiler produce verbose output that lists
11753 # what "hidden" libraries, object files and flags are used when
11754 # linking a shared library.
11755 #
11756 # There doesn't appear to be a way to prevent this compiler from
11757 # explicitly linking system object files so we need to strip them
11758 # from the output so that they don't get included in the library
11759 # dependencies.
11760 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'
11761 ;;
11762 *)
11763 if test "$GXX" = yes; then
11764 if test $with_gnu_ld = no; then
11765 case $host_cpu in
11766 hppa*64*)
11767 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11768 ;;
11769 ia64*)
11770 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11771 ;;
11772 *)
11773 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'
11774 ;;
11775 esac
11776 fi
11777 else
11778 # FIXME: insert proper C++ library support
11779 ld_shlibs_CXX=no
11780 fi
11781 ;;
11782 esac
11783 ;;
11784 interix3*)
11785 hardcode_direct_CXX=no
11786 hardcode_shlibpath_var_CXX=no
11787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11788 export_dynamic_flag_spec_CXX='${wl}-E'
11789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11790 # Instead, shared libraries are loaded at an image base (0x10000000 by
11791 # default) and relocated if they conflict, which is a slow very memory
11792 # consuming and fragmenting process. To avoid this, we pick a random,
11793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11795 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'
11796 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'
11797 ;;
11798 irix5* | irix6*)
11799 case $cc_basename in
11800 CC*)
11801 # SGI C++
11802 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'
11803
11804 # Archives containing C++ object files must be created using
11805 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11806 # necessary to make sure instantiated templates are included
11807 # in the archive.
11808 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11809 ;;
11810 *)
11811 if test "$GXX" = yes; then
11812 if test "$with_gnu_ld" = no; then
11813 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'
11814 else
11815 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'
11816 fi
11817 fi
11818 link_all_deplibs_CXX=yes
11819 ;;
11820 esac
11821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11822 hardcode_libdir_separator_CXX=:
11823 ;;
11824 linux* | k*bsd*-gnu)
11825 case $cc_basename in
11826 KCC*)
11827 # Kuck and Associates, Inc. (KAI) C++ Compiler
11828
11829 # KCC will only create a shared library if the output file
11830 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11831 # to its proper name (with version) after linking.
11832 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'
11833 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'
11834 # Commands to make compiler produce verbose output that lists
11835 # what "hidden" libraries, object files and flags are used when
11836 # linking a shared library.
11837 #
11838 # There doesn't appear to be a way to prevent this compiler from
11839 # explicitly linking system object files so we need to strip them
11840 # from the output so that they don't get included in the library
11841 # dependencies.
11842 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'
11843
11844 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11845 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11846
11847 # Archives containing C++ object files must be created using
11848 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11849 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11850 ;;
11851 icpc*)
11852 # Intel C++
11853 with_gnu_ld=yes
11854 # version 8.0 and above of icpc choke on multiply defined symbols
11855 # if we add $predep_objects and $postdep_objects, however 7.1 and
11856 # earlier do not add the objects themselves.
11857 case `$CC -V 2>&1` in
11858 *"Version 7."*)
11859 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11860 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'
11861 ;;
11862 *) # Version 8.0 or newer
11863 tmp_idyn=
11864 case $host_cpu in
11865 ia64*) tmp_idyn=' -i_dynamic';;
11866 esac
11867 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11868 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'
11869 ;;
11870 esac
11871 archive_cmds_need_lc_CXX=no
11872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11874 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11875 ;;
11876 pgCC*)
11877 # Portland Group C++ compiler
11878 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11879 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'
11880
11881 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11883 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'
11884 ;;
11885 cxx*)
11886 # Compaq C++
11887 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11888 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'
11889
11890 runpath_var=LD_RUN_PATH
11891 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11892 hardcode_libdir_separator_CXX=:
11893
11894 # Commands to make compiler produce verbose output that lists
11895 # what "hidden" libraries, object files and flags are used when
11896 # linking a shared library.
11897 #
11898 # There doesn't appear to be a way to prevent this compiler from
11899 # explicitly linking system object files so we need to strip them
11900 # from the output so that they don't get included in the library
11901 # dependencies.
11902 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'
11903 ;;
11904 esac
11905 ;;
11906 lynxos*)
11907 # FIXME: insert proper C++ library support
11908 ld_shlibs_CXX=no
11909 ;;
11910 m88k*)
11911 # FIXME: insert proper C++ library support
11912 ld_shlibs_CXX=no
11913 ;;
11914 mvs*)
11915 case $cc_basename in
11916 cxx*)
11917 # FIXME: insert proper C++ library support
11918 ld_shlibs_CXX=no
11919 ;;
11920 *)
11921 # FIXME: insert proper C++ library support
11922 ld_shlibs_CXX=no
11923 ;;
11924 esac
11925 ;;
11926 netbsd* | netbsdelf*-gnu)
11927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11928 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11929 wlarc=
11930 hardcode_libdir_flag_spec_CXX='-R$libdir'
11931 hardcode_direct_CXX=yes
11932 hardcode_shlibpath_var_CXX=no
11933 fi
11934 # Workaround some broken pre-1.5 toolchains
11935 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11936 ;;
11937 openbsd2*)
11938 # C++ shared libraries are fairly broken
11939 ld_shlibs_CXX=no
11940 ;;
11941 openbsd*)
11942 hardcode_direct_CXX=yes
11943 hardcode_shlibpath_var_CXX=no
11944 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11947 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11948 export_dynamic_flag_spec_CXX='${wl}-E'
11949 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11950 fi
11951 output_verbose_link_cmd='echo'
11952 ;;
11953 osf3*)
11954 case $cc_basename in
11955 KCC*)
11956 # Kuck and Associates, Inc. (KAI) C++ Compiler
11957
11958 # KCC will only create a shared library if the output file
11959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11960 # to its proper name (with version) after linking.
11961 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'
11962
11963 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11964 hardcode_libdir_separator_CXX=:
11965
11966 # Archives containing C++ object files must be created using
11967 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11968 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11969
11970 ;;
11971 RCC*)
11972 # Rational C++ 2.4.1
11973 # FIXME: insert proper C++ library support
11974 ld_shlibs_CXX=no
11975 ;;
11976 cxx*)
11977 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11978 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'
11979
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11981 hardcode_libdir_separator_CXX=:
11982
11983 # Commands to make compiler produce verbose output that lists
11984 # what "hidden" libraries, object files and flags are used when
11985 # linking a shared library.
11986 #
11987 # There doesn't appear to be a way to prevent this compiler from
11988 # explicitly linking system object files so we need to strip them
11989 # from the output so that they don't get included in the library
11990 # dependencies.
11991 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'
11992 ;;
11993 *)
11994 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11995 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11996 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'
11997
11998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11999 hardcode_libdir_separator_CXX=:
12000
12001 # Commands to make compiler produce verbose output that lists
12002 # what "hidden" libraries, object files and flags are used when
12003 # linking a shared library.
12004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12005
12006 else
12007 # FIXME: insert proper C++ library support
12008 ld_shlibs_CXX=no
12009 fi
12010 ;;
12011 esac
12012 ;;
12013 osf4* | osf5*)
12014 case $cc_basename in
12015 KCC*)
12016 # Kuck and Associates, Inc. (KAI) C++ Compiler
12017
12018 # KCC will only create a shared library if the output file
12019 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12020 # to its proper name (with version) after linking.
12021 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'
12022
12023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12024 hardcode_libdir_separator_CXX=:
12025
12026 # Archives containing C++ object files must be created using
12027 # the KAI C++ compiler.
12028 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12029 ;;
12030 RCC*)
12031 # Rational C++ 2.4.1
12032 # FIXME: insert proper C++ library support
12033 ld_shlibs_CXX=no
12034 ;;
12035 cxx*)
12036 allow_undefined_flag_CXX=' -expect_unresolved \*'
12037 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'
12038 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12039 echo "-hidden">> $lib.exp~
12040 $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~
12041 $rm $lib.exp'
12042
12043 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12044 hardcode_libdir_separator_CXX=:
12045
12046 # Commands to make compiler produce verbose output that lists
12047 # what "hidden" libraries, object files and flags are used when
12048 # linking a shared library.
12049 #
12050 # There doesn't appear to be a way to prevent this compiler from
12051 # explicitly linking system object files so we need to strip them
12052 # from the output so that they don't get included in the library
12053 # dependencies.
12054 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'
12055 ;;
12056 *)
12057 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12058 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12059 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'
12060
12061 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12062 hardcode_libdir_separator_CXX=:
12063
12064 # Commands to make compiler produce verbose output that lists
12065 # what "hidden" libraries, object files and flags are used when
12066 # linking a shared library.
12067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12068
12069 else
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12072 fi
12073 ;;
12074 esac
12075 ;;
12076 psos*)
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12079 ;;
12080 sunos4*)
12081 case $cc_basename in
12082 CC*)
12083 # Sun C++ 4.x
12084 # FIXME: insert proper C++ library support
12085 ld_shlibs_CXX=no
12086 ;;
12087 lcc*)
12088 # Lucid
12089 # FIXME: insert proper C++ library support
12090 ld_shlibs_CXX=no
12091 ;;
12092 *)
12093 # FIXME: insert proper C++ library support
12094 ld_shlibs_CXX=no
12095 ;;
12096 esac
12097 ;;
12098 solaris*)
12099 case $cc_basename in
12100 CC*)
12101 # Sun C++ 4.2, 5.x and Centerline C++
12102 archive_cmds_need_lc_CXX=yes
12103 no_undefined_flag_CXX=' -zdefs'
12104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12105 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12106 $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'
12107
12108 hardcode_libdir_flag_spec_CXX='-R$libdir'
12109 hardcode_shlibpath_var_CXX=no
12110 case $host_os in
12111 solaris2.[0-5] | solaris2.[0-5].*) ;;
12112 *)
12113 # The C++ compiler is used as linker so we must use $wl
12114 # flag to pass the commands to the underlying system
12115 # linker. We must also pass each convience library through
12116 # to the system linker between allextract/defaultextract.
12117 # The C++ compiler will combine linker options so we
12118 # cannot just pass the convience library names through
12119 # without $wl.
12120 # Supported since Solaris 2.6 (maybe 2.5.1?)
12121 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'
12122 ;;
12123 esac
12124 link_all_deplibs_CXX=yes
12125
12126 output_verbose_link_cmd='echo'
12127
12128 # Archives containing C++ object files must be created using
12129 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12130 # necessary to make sure instantiated templates are included
12131 # in the archive.
12132 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12133 ;;
12134 gcx*)
12135 # Green Hills C++ Compiler
12136 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12137
12138 # The C++ compiler must be used to create the archive.
12139 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12140 ;;
12141 *)
12142 # GNU C++ compiler with Solaris linker
12143 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12144 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12145 if $CC --version | grep -v '^2\.7' > /dev/null; then
12146 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12147 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12148 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12149
12150 # Commands to make compiler produce verbose output that lists
12151 # what "hidden" libraries, object files and flags are used when
12152 # linking a shared library.
12153 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12154 else
12155 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12156 # platform.
12157 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12159 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12160
12161 # Commands to make compiler produce verbose output that lists
12162 # what "hidden" libraries, object files and flags are used when
12163 # linking a shared library.
12164 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12165 fi
12166
12167 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12168 fi
12169 ;;
12170 esac
12171 ;;
12172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12173 no_undefined_flag_CXX='${wl}-z,text'
12174 archive_cmds_need_lc_CXX=no
12175 hardcode_shlibpath_var_CXX=no
12176 runpath_var='LD_RUN_PATH'
12177
12178 case $cc_basename in
12179 CC*)
12180 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12181 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12182 ;;
12183 *)
12184 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12185 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12186 ;;
12187 esac
12188 ;;
12189 sysv5* | sco3.2v5* | sco5v6*)
12190 # Note: We can NOT use -z defs as we might desire, because we do not
12191 # link with -lc, and that would cause any symbols used from libc to
12192 # always be unresolved, which means just about no library would
12193 # ever link correctly. If we're not using GNU ld we use -z text
12194 # though, which does catch some bad symbols but isn't as heavy-handed
12195 # as -z defs.
12196 # For security reasons, it is highly recommended that you always
12197 # use absolute paths for naming shared libraries, and exclude the
12198 # DT_RUNPATH tag from executables and libraries. But doing so
12199 # requires that you compile everything twice, which is a pain.
12200 # So that behaviour is only enabled if SCOABSPATH is set to a
12201 # non-empty value in the environment. Most likely only useful for
12202 # creating official distributions of packages.
12203 # This is a hack until libtool officially supports absolute path
12204 # names for shared libraries.
12205 no_undefined_flag_CXX='${wl}-z,text'
12206 allow_undefined_flag_CXX='${wl}-z,nodefs'
12207 archive_cmds_need_lc_CXX=no
12208 hardcode_shlibpath_var_CXX=no
12209 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12210 hardcode_libdir_separator_CXX=':'
12211 link_all_deplibs_CXX=yes
12212 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12213 runpath_var='LD_RUN_PATH'
12214
12215 case $cc_basename in
12216 CC*)
12217 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12219 ;;
12220 *)
12221 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12222 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12223 ;;
12224 esac
12225 ;;
12226 tandem*)
12227 case $cc_basename in
12228 NCC*)
12229 # NonStop-UX NCC 3.20
12230 # FIXME: insert proper C++ library support
12231 ld_shlibs_CXX=no
12232 ;;
12233 *)
12234 # FIXME: insert proper C++ library support
12235 ld_shlibs_CXX=no
12236 ;;
12237 esac
12238 ;;
12239 vxworks*)
12240 # FIXME: insert proper C++ library support
12241 ld_shlibs_CXX=no
12242 ;;
12243 *)
12244 # FIXME: insert proper C++ library support
12245 ld_shlibs_CXX=no
12246 ;;
12247 esac
12248 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12249 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12250 test "$ld_shlibs_CXX" = no && can_build_shared=no
12251
12252 GCC_CXX="$GXX"
12253 LD_CXX="$LD"
12254
12255
12256 cat > conftest.$ac_ext <<EOF
12257 class Foo
12258 {
12259 public:
12260 Foo (void) { a = 0; }
12261 private:
12262 int a;
12263 };
12264 EOF
12265
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; then
12271 # Parse the compiler output and extract the necessary
12272 # objects, libraries and library flags.
12273
12274 # Sentinel used to keep track of whether or not we are before
12275 # the conftest object file.
12276 pre_test_object_deps_done=no
12277
12278 # The `*' in the case matches for architectures that use `case' in
12279 # $output_verbose_cmd can trigger glob expansion during the loop
12280 # eval without this substitution.
12281 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12282
12283 for p in `eval $output_verbose_link_cmd`; do
12284 case $p in
12285
12286 -L* | -R* | -l*)
12287 # Some compilers place space between "-{L,R}" and the path.
12288 # Remove the space.
12289 if test $p = "-L" \
12290 || test $p = "-R"; then
12291 prev=$p
12292 continue
12293 else
12294 prev=
12295 fi
12296
12297 if test "$pre_test_object_deps_done" = no; then
12298 case $p in
12299 -L* | -R*)
12300 # Internal compiler library paths should come after those
12301 # provided the user. The postdeps already come after the
12302 # user supplied libs so there is no need to process them.
12303 if test -z "$compiler_lib_search_path_CXX"; then
12304 compiler_lib_search_path_CXX="${prev}${p}"
12305 else
12306 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12307 fi
12308 ;;
12309 # The "-l" case would never come before the object being
12310 # linked, so don't bother handling this case.
12311 esac
12312 else
12313 if test -z "$postdeps_CXX"; then
12314 postdeps_CXX="${prev}${p}"
12315 else
12316 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12317 fi
12318 fi
12319 ;;
12320
12321 *.$objext)
12322 # This assumes that the test object file only shows up
12323 # once in the compiler output.
12324 if test "$p" = "conftest.$objext"; then
12325 pre_test_object_deps_done=yes
12326 continue
12327 fi
12328
12329 if test "$pre_test_object_deps_done" = no; then
12330 if test -z "$predep_objects_CXX"; then
12331 predep_objects_CXX="$p"
12332 else
12333 predep_objects_CXX="$predep_objects_CXX $p"
12334 fi
12335 else
12336 if test -z "$postdep_objects_CXX"; then
12337 postdep_objects_CXX="$p"
12338 else
12339 postdep_objects_CXX="$postdep_objects_CXX $p"
12340 fi
12341 fi
12342 ;;
12343
12344 *) ;; # Ignore the rest.
12345
12346 esac
12347 done
12348
12349 # Clean up.
12350 rm -f a.out a.exe
12351 else
12352 echo "libtool.m4: error: problem compiling CXX test program"
12353 fi
12354
12355 $rm -f confest.$objext
12356
12357 # PORTME: override above test on systems where it is broken
12358 case $host_os in
12359 interix3*)
12360 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12361 # hack all around it, let's just trust "g++" to DTRT.
12362 predep_objects_CXX=
12363 postdep_objects_CXX=
12364 postdeps_CXX=
12365 ;;
12366
12367 solaris*)
12368 case $cc_basename in
12369 CC*)
12370 # Adding this requires a known-good setup of shared libraries for
12371 # Sun compiler versions before 5.6, else PIC objects from an old
12372 # archive will be linked into the output, leading to subtle bugs.
12373 postdeps_CXX='-lCstd -lCrun'
12374 ;;
12375 esac
12376 ;;
12377 esac
12378
12379
12380 case " $postdeps_CXX " in
12381 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12382 esac
12383
12384 lt_prog_compiler_wl_CXX=
12385 lt_prog_compiler_pic_CXX=
12386 lt_prog_compiler_static_CXX=
12387
12388 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12389 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12390
12391 # C++ specific cases for pic, static, wl, etc.
12392 if test "$GXX" = yes; then
12393 lt_prog_compiler_wl_CXX='-Wl,'
12394 lt_prog_compiler_static_CXX='-static'
12395
12396 case $host_os in
12397 aix*)
12398 # All AIX code is PIC.
12399 if test "$host_cpu" = ia64; then
12400 # AIX 5 now supports IA64 processor
12401 lt_prog_compiler_static_CXX='-Bstatic'
12402 fi
12403 ;;
12404 amigaos*)
12405 # FIXME: we need at least 68020 code to build shared libraries, but
12406 # adding the `-m68020' flag to GCC prevents building anything better,
12407 # like `-m68040'.
12408 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12409 ;;
12410 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12411 # PIC is the default for these OSes.
12412 ;;
12413 mingw* | os2* | pw32*)
12414 # This hack is so that the source file can tell whether it is being
12415 # built for inclusion in a dll (and should export symbols for example).
12416 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12417 ;;
12418 darwin* | rhapsody*)
12419 # PIC is the default on this platform
12420 # Common symbols not allowed in MH_DYLIB files
12421 lt_prog_compiler_pic_CXX='-fno-common'
12422 ;;
12423 *djgpp*)
12424 # DJGPP does not support shared libraries at all
12425 lt_prog_compiler_pic_CXX=
12426 ;;
12427 interix3*)
12428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12429 # Instead, we relocate shared libraries at runtime.
12430 ;;
12431 sysv4*MP*)
12432 if test -d /usr/nec; then
12433 lt_prog_compiler_pic_CXX=-Kconform_pic
12434 fi
12435 ;;
12436 hpux*)
12437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12438 # not for PA HP-UX.
12439 case $host_cpu in
12440 hppa*64*|ia64*)
12441 ;;
12442 *)
12443 lt_prog_compiler_pic_CXX='-fPIC'
12444 ;;
12445 esac
12446 ;;
12447 *)
12448 lt_prog_compiler_pic_CXX='-fPIC'
12449 ;;
12450 esac
12451 else
12452 case $host_os in
12453 aix4* | aix5*)
12454 # All AIX code is PIC.
12455 if test "$host_cpu" = ia64; then
12456 # AIX 5 now supports IA64 processor
12457 lt_prog_compiler_static_CXX='-Bstatic'
12458 else
12459 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12460 fi
12461 ;;
12462 chorus*)
12463 case $cc_basename in
12464 cxch68*)
12465 # Green Hills C++ Compiler
12466 # _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"
12467 ;;
12468 esac
12469 ;;
12470 darwin*)
12471 # PIC is the default on this platform
12472 # Common symbols not allowed in MH_DYLIB files
12473 case $cc_basename in
12474 xlc*)
12475 lt_prog_compiler_pic_CXX='-qnocommon'
12476 lt_prog_compiler_wl_CXX='-Wl,'
12477 ;;
12478 esac
12479 ;;
12480 dgux*)
12481 case $cc_basename in
12482 ec++*)
12483 lt_prog_compiler_pic_CXX='-KPIC'
12484 ;;
12485 ghcx*)
12486 # Green Hills C++ Compiler
12487 lt_prog_compiler_pic_CXX='-pic'
12488 ;;
12489 *)
12490 ;;
12491 esac
12492 ;;
12493 freebsd* | dragonfly*)
12494 # FreeBSD uses GNU C++
12495 ;;
12496 hpux9* | hpux10* | hpux11*)
12497 case $cc_basename in
12498 CC*)
12499 lt_prog_compiler_wl_CXX='-Wl,'
12500 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12501 if test "$host_cpu" != ia64; then
12502 lt_prog_compiler_pic_CXX='+Z'
12503 fi
12504 ;;
12505 aCC*)
12506 lt_prog_compiler_wl_CXX='-Wl,'
12507 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12508 case $host_cpu in
12509 hppa*64*|ia64*)
12510 # +Z the default
12511 ;;
12512 *)
12513 lt_prog_compiler_pic_CXX='+Z'
12514 ;;
12515 esac
12516 ;;
12517 *)
12518 ;;
12519 esac
12520 ;;
12521 interix*)
12522 # This is c89, which is MS Visual C++ (no shared libs)
12523 # Anyone wants to do a port?
12524 ;;
12525 irix5* | irix6* | nonstopux*)
12526 case $cc_basename in
12527 CC*)
12528 lt_prog_compiler_wl_CXX='-Wl,'
12529 lt_prog_compiler_static_CXX='-non_shared'
12530 # CC pic flag -KPIC is the default.
12531 ;;
12532 *)
12533 ;;
12534 esac
12535 ;;
12536 linux* | k*bsd*-gnu)
12537 case $cc_basename in
12538 KCC*)
12539 # KAI C++ Compiler
12540 lt_prog_compiler_wl_CXX='--backend -Wl,'
12541 lt_prog_compiler_pic_CXX='-fPIC'
12542 ;;
12543 icpc* | ecpc*)
12544 # Intel C++
12545 lt_prog_compiler_wl_CXX='-Wl,'
12546 lt_prog_compiler_pic_CXX='-KPIC'
12547 lt_prog_compiler_static_CXX='-static'
12548 ;;
12549 pgCC*)
12550 # Portland Group C++ compiler.
12551 lt_prog_compiler_wl_CXX='-Wl,'
12552 lt_prog_compiler_pic_CXX='-fpic'
12553 lt_prog_compiler_static_CXX='-Bstatic'
12554 ;;
12555 cxx*)
12556 # Compaq C++
12557 # Make sure the PIC flag is empty. It appears that all Alpha
12558 # Linux and Compaq Tru64 Unix objects are PIC.
12559 lt_prog_compiler_pic_CXX=
12560 lt_prog_compiler_static_CXX='-non_shared'
12561 ;;
12562 *)
12563 ;;
12564 esac
12565 ;;
12566 lynxos*)
12567 ;;
12568 m88k*)
12569 ;;
12570 mvs*)
12571 case $cc_basename in
12572 cxx*)
12573 lt_prog_compiler_pic_CXX='-W c,exportall'
12574 ;;
12575 *)
12576 ;;
12577 esac
12578 ;;
12579 netbsd* | netbsdelf*-gnu)
12580 ;;
12581 osf3* | osf4* | osf5*)
12582 case $cc_basename in
12583 KCC*)
12584 lt_prog_compiler_wl_CXX='--backend -Wl,'
12585 ;;
12586 RCC*)
12587 # Rational C++ 2.4.1
12588 lt_prog_compiler_pic_CXX='-pic'
12589 ;;
12590 cxx*)
12591 # Digital/Compaq C++
12592 lt_prog_compiler_wl_CXX='-Wl,'
12593 # Make sure the PIC flag is empty. It appears that all Alpha
12594 # Linux and Compaq Tru64 Unix objects are PIC.
12595 lt_prog_compiler_pic_CXX=
12596 lt_prog_compiler_static_CXX='-non_shared'
12597 ;;
12598 *)
12599 ;;
12600 esac
12601 ;;
12602 psos*)
12603 ;;
12604 solaris*)
12605 case $cc_basename in
12606 CC*)
12607 # Sun C++ 4.2, 5.x and Centerline C++
12608 lt_prog_compiler_pic_CXX='-KPIC'
12609 lt_prog_compiler_static_CXX='-Bstatic'
12610 lt_prog_compiler_wl_CXX='-Qoption ld '
12611 ;;
12612 gcx*)
12613 # Green Hills C++ Compiler
12614 lt_prog_compiler_pic_CXX='-PIC'
12615 ;;
12616 *)
12617 ;;
12618 esac
12619 ;;
12620 sunos4*)
12621 case $cc_basename in
12622 CC*)
12623 # Sun C++ 4.x
12624 lt_prog_compiler_pic_CXX='-pic'
12625 lt_prog_compiler_static_CXX='-Bstatic'
12626 ;;
12627 lcc*)
12628 # Lucid
12629 lt_prog_compiler_pic_CXX='-pic'
12630 ;;
12631 *)
12632 ;;
12633 esac
12634 ;;
12635 tandem*)
12636 case $cc_basename in
12637 NCC*)
12638 # NonStop-UX NCC 3.20
12639 lt_prog_compiler_pic_CXX='-KPIC'
12640 ;;
12641 *)
12642 ;;
12643 esac
12644 ;;
12645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12646 case $cc_basename in
12647 CC*)
12648 lt_prog_compiler_wl_CXX='-Wl,'
12649 lt_prog_compiler_pic_CXX='-KPIC'
12650 lt_prog_compiler_static_CXX='-Bstatic'
12651 ;;
12652 esac
12653 ;;
12654 vxworks*)
12655 ;;
12656 *)
12657 lt_prog_compiler_can_build_shared_CXX=no
12658 ;;
12659 esac
12660 fi
12661
12662 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12663 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12664
12665 #
12666 # Check to make sure the PIC flag actually works.
12667 #
12668 if test -n "$lt_prog_compiler_pic_CXX"; then
12669
12670 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12671 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12672 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675 lt_prog_compiler_pic_works_CXX=no
12676 ac_outfile=conftest.$ac_objext
12677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12678 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12679 # Insert the option either (1) after the last *FLAGS variable, or
12680 # (2) before a word containing "conftest.", or (3) at the end.
12681 # Note that $ac_compile itself does not contain backslashes and begins
12682 # with a dollar sign (not a hyphen), so the echo should work correctly.
12683 # The option is referenced via a variable to avoid confusing sed.
12684 lt_compile=`echo "$ac_compile" | $SED \
12685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12687 -e 's:$: $lt_compiler_flag:'`
12688 (eval echo "\"\$as_me:12688: $lt_compile\"" >&5)
12689 (eval "$lt_compile" 2>conftest.err)
12690 ac_status=$?
12691 cat conftest.err >&5
12692 echo "$as_me:12692: \$? = $ac_status" >&5
12693 if (exit $ac_status) && test -s "$ac_outfile"; then
12694 # The compiler can only warn and ignore the option if not recognized
12695 # So say no if there are warnings other than the usual output.
12696 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12699 lt_prog_compiler_pic_works_CXX=yes
12700 fi
12701 fi
12702 $rm conftest*
12703
12704 fi
12705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12706 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12707
12708 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12709 case $lt_prog_compiler_pic_CXX in
12710 "" | " "*) ;;
12711 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12712 esac
12713 else
12714 lt_prog_compiler_pic_CXX=
12715 lt_prog_compiler_can_build_shared_CXX=no
12716 fi
12717
12718 fi
12719 case $host_os in
12720 # For platforms which do not support PIC, -DPIC is meaningless:
12721 *djgpp*)
12722 lt_prog_compiler_pic_CXX=
12723 ;;
12724 *)
12725 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12726 ;;
12727 esac
12728
12729 #
12730 # Check to make sure the static flag actually works.
12731 #
12732 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12733 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12734 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12735 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738 lt_prog_compiler_static_works_CXX=no
12739 save_LDFLAGS="$LDFLAGS"
12740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12741 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12743 # The linker can only warn and ignore the option if not recognized
12744 # So say no if there are warnings
12745 if test -s conftest.err; then
12746 # Append any errors to the config.log.
12747 cat conftest.err 1>&5
12748 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12750 if diff conftest.exp conftest.er2 >/dev/null; then
12751 lt_prog_compiler_static_works_CXX=yes
12752 fi
12753 else
12754 lt_prog_compiler_static_works_CXX=yes
12755 fi
12756 fi
12757 $rm conftest*
12758 LDFLAGS="$save_LDFLAGS"
12759
12760 fi
12761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12762 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12763
12764 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12765 :
12766 else
12767 lt_prog_compiler_static_CXX=
12768 fi
12769
12770
12771 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12772 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12773 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776 lt_cv_prog_compiler_c_o_CXX=no
12777 $rm -r conftest 2>/dev/null
12778 mkdir conftest
12779 cd conftest
12780 mkdir out
12781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12782
12783 lt_compiler_flag="-o out/conftest2.$ac_objext"
12784 # Insert the option either (1) after the last *FLAGS variable, or
12785 # (2) before a word containing "conftest.", or (3) at the end.
12786 # Note that $ac_compile itself does not contain backslashes and begins
12787 # with a dollar sign (not a hyphen), so the echo should work correctly.
12788 lt_compile=`echo "$ac_compile" | $SED \
12789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12791 -e 's:$: $lt_compiler_flag:'`
12792 (eval echo "\"\$as_me:12792: $lt_compile\"" >&5)
12793 (eval "$lt_compile" 2>out/conftest.err)
12794 ac_status=$?
12795 cat out/conftest.err >&5
12796 echo "$as_me:12796: \$? = $ac_status" >&5
12797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12798 then
12799 # The compiler can only warn and ignore the option if not recognized
12800 # So say no if there are warnings
12801 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12804 lt_cv_prog_compiler_c_o_CXX=yes
12805 fi
12806 fi
12807 chmod u+w . 2>&5
12808 $rm conftest*
12809 # SGI C++ compiler will create directory out/ii_files/ for
12810 # template instantiation
12811 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12812 $rm out/* && rmdir out
12813 cd ..
12814 rmdir conftest
12815 $rm conftest*
12816
12817 fi
12818 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12819 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12820
12821
12822 hard_links="nottested"
12823 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12824 # do not overwrite the value of need_locks provided by the user
12825 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12826 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12827 hard_links=yes
12828 $rm conftest*
12829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12830 touch conftest.a
12831 ln conftest.a conftest.b 2>&5 || hard_links=no
12832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12833 { echo "$as_me:$LINENO: result: $hard_links" >&5
12834 echo "${ECHO_T}$hard_links" >&6; }
12835 if test "$hard_links" = no; then
12836 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12837 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12838 need_locks=warn
12839 fi
12840 else
12841 need_locks=no
12842 fi
12843
12844 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12846
12847 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12848 case $host_os in
12849 aix4* | aix5*)
12850 # If we're using GNU nm, then we don't want the "-C" option.
12851 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12852 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12853 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'
12854 else
12855 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'
12856 fi
12857 ;;
12858 pw32*)
12859 export_symbols_cmds_CXX="$ltdll_cmds"
12860 ;;
12861 cygwin* | mingw*)
12862 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'
12863 ;;
12864 linux* | k*bsd*-gnu)
12865 link_all_deplibs_CXX=no
12866 ;;
12867 *)
12868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12869 ;;
12870 esac
12871
12872 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12873 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12874 test "$ld_shlibs_CXX" = no && can_build_shared=no
12875
12876 #
12877 # Do we need to explicitly link libc?
12878 #
12879 case "x$archive_cmds_need_lc_CXX" in
12880 x|xyes)
12881 # Assume -lc should be added
12882 archive_cmds_need_lc_CXX=yes
12883
12884 if test "$enable_shared" = yes && test "$GCC" = yes; then
12885 case $archive_cmds_CXX in
12886 *'~'*)
12887 # FIXME: we may have to deal with multi-command sequences.
12888 ;;
12889 '$CC '*)
12890 # Test whether the compiler implicitly links with -lc since on some
12891 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12892 # to ld, don't add -lc before -lgcc.
12893 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12894 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12895 $rm conftest*
12896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12897
12898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899 (eval $ac_compile) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } 2>conftest.err; then
12903 soname=conftest
12904 lib=conftest
12905 libobjs=conftest.$ac_objext
12906 deplibs=
12907 wl=$lt_prog_compiler_wl_CXX
12908 pic_flag=$lt_prog_compiler_pic_CXX
12909 compiler_flags=-v
12910 linker_flags=-v
12911 verstring=
12912 output_objdir=.
12913 libname=conftest
12914 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12915 allow_undefined_flag_CXX=
12916 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12917 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }
12921 then
12922 archive_cmds_need_lc_CXX=no
12923 else
12924 archive_cmds_need_lc_CXX=yes
12925 fi
12926 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12927 else
12928 cat conftest.err 1>&5
12929 fi
12930 $rm conftest*
12931 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12932 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12933 ;;
12934 esac
12935 fi
12936 ;;
12937 esac
12938
12939 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12941 library_names_spec=
12942 libname_spec='lib$name'
12943 soname_spec=
12944 shrext_cmds=".so"
12945 postinstall_cmds=
12946 postuninstall_cmds=
12947 finish_cmds=
12948 finish_eval=
12949 shlibpath_var=
12950 shlibpath_overrides_runpath=unknown
12951 version_type=none
12952 dynamic_linker="$host_os ld.so"
12953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12954 if test "$GCC" = yes; then
12955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12956 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12957 # if the path contains ";" then we assume it to be the separator
12958 # otherwise default to the standard path separator (i.e. ":") - it is
12959 # assumed that no part of a normal pathname contains ";" but that should
12960 # okay in the real world where ";" in dirpaths is itself problematic.
12961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12962 else
12963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12964 fi
12965 else
12966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12967 fi
12968 need_lib_prefix=unknown
12969 hardcode_into_libs=no
12970
12971 # when you set need_version to no, make sure it does not cause -set_version
12972 # flags to be left without arguments
12973 need_version=unknown
12974
12975 case $host_os in
12976 aix3*)
12977 version_type=linux
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12979 shlibpath_var=LIBPATH
12980
12981 # AIX 3 has no versioning support, so we append a major version to the name.
12982 soname_spec='${libname}${release}${shared_ext}$major'
12983 ;;
12984
12985 aix4* | aix5*)
12986 version_type=linux
12987 need_lib_prefix=no
12988 need_version=no
12989 hardcode_into_libs=yes
12990 if test "$host_cpu" = ia64; then
12991 # AIX 5 supports IA64
12992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 else
12995 # With GCC up to 2.95.x, collect2 would create an import file
12996 # for dependence libraries. The import file would start with
12997 # the line `#! .'. This would cause the generated library to
12998 # depend on `.', always an invalid library. This was fixed in
12999 # development snapshots of GCC prior to 3.0.
13000 case $host_os in
13001 aix4 | aix4.[01] | aix4.[01].*)
13002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13003 echo ' yes '
13004 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13005 :
13006 else
13007 can_build_shared=no
13008 fi
13009 ;;
13010 esac
13011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13012 # soname into executable. Probably we can add versioning support to
13013 # collect2, so additional links can be useful in future.
13014 if test "$aix_use_runtimelinking" = yes; then
13015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13016 # instead of lib<name>.a to let people know that these are not
13017 # typical AIX shared libraries.
13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13019 else
13020 # We preserve .a as extension for shared libraries through AIX4.2
13021 # and later when we are not doing run time linking.
13022 library_names_spec='${libname}${release}.a $libname.a'
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 fi
13025 shlibpath_var=LIBPATH
13026 fi
13027 ;;
13028
13029 amigaos*)
13030 library_names_spec='$libname.ixlibrary $libname.a'
13031 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13032 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'
13033 ;;
13034
13035 beos*)
13036 library_names_spec='${libname}${shared_ext}'
13037 dynamic_linker="$host_os ld.so"
13038 shlibpath_var=LIBRARY_PATH
13039 ;;
13040
13041 bsdi[45]*)
13042 version_type=linux
13043 need_version=no
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13047 shlibpath_var=LD_LIBRARY_PATH
13048 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13049 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13050 # the default ld.so.conf also contains /usr/contrib/lib and
13051 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13052 # libtool to hard-code these into programs
13053 ;;
13054
13055 cygwin* | mingw* | pw32*)
13056 version_type=windows
13057 shrext_cmds=".dll"
13058 need_version=no
13059 need_lib_prefix=no
13060
13061 case $GCC,$host_os in
13062 yes,cygwin* | yes,mingw* | yes,pw32*)
13063 library_names_spec='$libname.dll.a'
13064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13065 postinstall_cmds='base_file=`basename \${file}`~
13066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13067 dldir=$destdir/`dirname \$dlpath`~
13068 test -d \$dldir || mkdir -p \$dldir~
13069 $install_prog $dir/$dlname \$dldir/$dlname~
13070 chmod a+x \$dldir/$dlname'
13071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13072 dlpath=$dir/\$dldll~
13073 $rm \$dlpath'
13074 shlibpath_overrides_runpath=yes
13075
13076 case $host_os in
13077 cygwin*)
13078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13080 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13081 ;;
13082 mingw*)
13083 # MinGW DLLs use traditional 'lib' prefix
13084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13086 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13087 # It is most probably a Windows format PATH printed by
13088 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13089 # path with ; separators, and with drive letters. We can handle the
13090 # drive letters (cygwin fileutils understands them), so leave them,
13091 # especially as we might pass files found there to a mingw objdump,
13092 # which wouldn't understand a cygwinified path. Ahh.
13093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13094 else
13095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13096 fi
13097 ;;
13098 pw32*)
13099 # pw32 DLLs use 'pw' prefix rather than 'lib'
13100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13101 ;;
13102 esac
13103 ;;
13104
13105 *)
13106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13107 ;;
13108 esac
13109 dynamic_linker='Win32 ld.exe'
13110 # FIXME: first we should search . and the directory the executable is in
13111 shlibpath_var=PATH
13112 ;;
13113
13114 darwin* | rhapsody*)
13115 dynamic_linker="$host_os dyld"
13116 version_type=darwin
13117 need_lib_prefix=no
13118 need_version=no
13119 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13120 soname_spec='${libname}${release}${major}$shared_ext'
13121 shlibpath_overrides_runpath=yes
13122 shlibpath_var=DYLD_LIBRARY_PATH
13123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13124 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13125 if test "$GCC" = yes; then
13126 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"`
13127 else
13128 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13129 fi
13130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13131 ;;
13132
13133 dgux*)
13134 version_type=linux
13135 need_lib_prefix=no
13136 need_version=no
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13138 soname_spec='${libname}${release}${shared_ext}$major'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 ;;
13141
13142 freebsd1*)
13143 dynamic_linker=no
13144 ;;
13145
13146 freebsd* | dragonfly*)
13147 # DragonFly does not have aout. When/if they implement a new
13148 # versioning mechanism, adjust this.
13149 if test -x /usr/bin/objformat; then
13150 objformat=`/usr/bin/objformat`
13151 else
13152 case $host_os in
13153 freebsd[123]*) objformat=aout ;;
13154 *) objformat=elf ;;
13155 esac
13156 fi
13157 version_type=freebsd-$objformat
13158 case $version_type in
13159 freebsd-elf*)
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13161 need_version=no
13162 need_lib_prefix=no
13163 ;;
13164 freebsd-*)
13165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13166 need_version=yes
13167 ;;
13168 esac
13169 shlibpath_var=LD_LIBRARY_PATH
13170 case $host_os in
13171 freebsd2*)
13172 shlibpath_overrides_runpath=yes
13173 ;;
13174 freebsd3.[01]* | freebsdelf3.[01]*)
13175 shlibpath_overrides_runpath=yes
13176 hardcode_into_libs=yes
13177 ;;
13178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13180 shlibpath_overrides_runpath=no
13181 hardcode_into_libs=yes
13182 ;;
13183 freebsd*) # from 4.6 on
13184 shlibpath_overrides_runpath=yes
13185 hardcode_into_libs=yes
13186 ;;
13187 esac
13188 ;;
13189
13190 gnu*)
13191 version_type=linux
13192 need_lib_prefix=no
13193 need_version=no
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13195 soname_spec='${libname}${release}${shared_ext}$major'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 hardcode_into_libs=yes
13198 ;;
13199
13200 hpux9* | hpux10* | hpux11*)
13201 # Give a soname corresponding to the major version so that dld.sl refuses to
13202 # link against other versions.
13203 version_type=sunos
13204 need_lib_prefix=no
13205 need_version=no
13206 case $host_cpu in
13207 ia64*)
13208 shrext_cmds='.so'
13209 hardcode_into_libs=yes
13210 dynamic_linker="$host_os dld.so"
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214 soname_spec='${libname}${release}${shared_ext}$major'
13215 if test "X$HPUX_IA64_MODE" = X32; then
13216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13217 else
13218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13219 fi
13220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13221 ;;
13222 hppa*64*)
13223 shrext_cmds='.sl'
13224 hardcode_into_libs=yes
13225 dynamic_linker="$host_os dld.sl"
13226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 soname_spec='${libname}${release}${shared_ext}$major'
13230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13232 ;;
13233 *)
13234 shrext_cmds='.sl'
13235 dynamic_linker="$host_os dld.sl"
13236 shlibpath_var=SHLIB_PATH
13237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239 soname_spec='${libname}${release}${shared_ext}$major'
13240 ;;
13241 esac
13242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13243 postinstall_cmds='chmod 555 $lib'
13244 ;;
13245
13246 interix3*)
13247 version_type=linux
13248 need_lib_prefix=no
13249 need_version=no
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 shlibpath_overrides_runpath=no
13255 hardcode_into_libs=yes
13256 ;;
13257
13258 irix5* | irix6* | nonstopux*)
13259 case $host_os in
13260 nonstopux*) version_type=nonstopux ;;
13261 *)
13262 if test "$lt_cv_prog_gnu_ld" = yes; then
13263 version_type=linux
13264 else
13265 version_type=irix
13266 fi ;;
13267 esac
13268 need_lib_prefix=no
13269 need_version=no
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13272 case $host_os in
13273 irix5* | nonstopux*)
13274 libsuff= shlibsuff=
13275 ;;
13276 *)
13277 case $LD in # libtool.m4 will add one of these switches to LD
13278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13279 libsuff= shlibsuff= libmagic=32-bit;;
13280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13281 libsuff=32 shlibsuff=N32 libmagic=N32;;
13282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13284 *) libsuff= shlibsuff= libmagic=never-match;;
13285 esac
13286 ;;
13287 esac
13288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13289 shlibpath_overrides_runpath=no
13290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13292 hardcode_into_libs=yes
13293 ;;
13294
13295 # No shared lib support for Linux oldld, aout, or coff.
13296 linux*oldld* | linux*aout* | linux*coff*)
13297 dynamic_linker=no
13298 ;;
13299
13300 # This must be Linux ELF.
13301 linux* | k*bsd*-gnu)
13302 version_type=linux
13303 need_lib_prefix=no
13304 need_version=no
13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306 soname_spec='${libname}${release}${shared_ext}$major'
13307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13308 shlibpath_var=LD_LIBRARY_PATH
13309 shlibpath_overrides_runpath=no
13310 # This implies no fast_install, which is unacceptable.
13311 # Some rework will be needed to allow for fast_install
13312 # before this can be enabled.
13313 hardcode_into_libs=yes
13314
13315 # Append ld.so.conf contents to the search path
13316 if test -f /etc/ld.so.conf; then
13317 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' ' '`
13318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13319 fi
13320
13321 # We used to test for /lib/ld.so.1 and disable shared libraries on
13322 # powerpc, because MkLinux only supported shared libraries with the
13323 # GNU dynamic linker. Since this was broken with cross compilers,
13324 # most powerpc-linux boxes support dynamic linking these days and
13325 # people can always --disable-shared, the test was removed, and we
13326 # assume the GNU/Linux dynamic linker is in use.
13327 dynamic_linker='GNU/Linux ld.so'
13328 ;;
13329
13330 netbsdelf*-gnu)
13331 version_type=linux
13332 need_lib_prefix=no
13333 need_version=no
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=no
13338 hardcode_into_libs=yes
13339 dynamic_linker='NetBSD ld.elf_so'
13340 ;;
13341
13342 netbsd*)
13343 version_type=sunos
13344 need_lib_prefix=no
13345 need_version=no
13346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13349 dynamic_linker='NetBSD (a.out) ld.so'
13350 else
13351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13352 soname_spec='${libname}${release}${shared_ext}$major'
13353 dynamic_linker='NetBSD ld.elf_so'
13354 fi
13355 shlibpath_var=LD_LIBRARY_PATH
13356 shlibpath_overrides_runpath=yes
13357 hardcode_into_libs=yes
13358 ;;
13359
13360 newsos6)
13361 version_type=linux
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=yes
13365 ;;
13366
13367 nto-qnx*)
13368 version_type=linux
13369 need_lib_prefix=no
13370 need_version=no
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372 soname_spec='${libname}${release}${shared_ext}$major'
13373 shlibpath_var=LD_LIBRARY_PATH
13374 shlibpath_overrides_runpath=yes
13375 ;;
13376
13377 openbsd*)
13378 version_type=sunos
13379 sys_lib_dlsearch_path_spec="/usr/lib"
13380 need_lib_prefix=no
13381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13382 case $host_os in
13383 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13384 *) need_version=no ;;
13385 esac
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13390 case $host_os in
13391 openbsd2.[89] | openbsd2.[89].*)
13392 shlibpath_overrides_runpath=no
13393 ;;
13394 *)
13395 shlibpath_overrides_runpath=yes
13396 ;;
13397 esac
13398 else
13399 shlibpath_overrides_runpath=yes
13400 fi
13401 ;;
13402
13403 os2*)
13404 libname_spec='$name'
13405 shrext_cmds=".dll"
13406 need_lib_prefix=no
13407 library_names_spec='$libname${shared_ext} $libname.a'
13408 dynamic_linker='OS/2 ld.exe'
13409 shlibpath_var=LIBPATH
13410 ;;
13411
13412 osf3* | osf4* | osf5*)
13413 version_type=osf
13414 need_lib_prefix=no
13415 need_version=no
13416 soname_spec='${libname}${release}${shared_ext}$major'
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13421 ;;
13422
13423 solaris*)
13424 version_type=linux
13425 need_lib_prefix=no
13426 need_version=no
13427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13428 soname_spec='${libname}${release}${shared_ext}$major'
13429 shlibpath_var=LD_LIBRARY_PATH
13430 shlibpath_overrides_runpath=yes
13431 hardcode_into_libs=yes
13432 # ldd complains unless libraries are executable
13433 postinstall_cmds='chmod +x $lib'
13434 ;;
13435
13436 sunos4*)
13437 version_type=sunos
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes
13442 if test "$with_gnu_ld" = yes; then
13443 need_lib_prefix=no
13444 fi
13445 need_version=yes
13446 ;;
13447
13448 sysv4 | sysv4.3*)
13449 version_type=linux
13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451 soname_spec='${libname}${release}${shared_ext}$major'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 case $host_vendor in
13454 sni)
13455 shlibpath_overrides_runpath=no
13456 need_lib_prefix=no
13457 export_dynamic_flag_spec='${wl}-Blargedynsym'
13458 runpath_var=LD_RUN_PATH
13459 ;;
13460 siemens)
13461 need_lib_prefix=no
13462 ;;
13463 motorola)
13464 need_lib_prefix=no
13465 need_version=no
13466 shlibpath_overrides_runpath=no
13467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13468 ;;
13469 esac
13470 ;;
13471
13472 sysv4*MP*)
13473 if test -d /usr/nec ;then
13474 version_type=linux
13475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13476 soname_spec='$libname${shared_ext}.$major'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 fi
13479 ;;
13480
13481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13482 version_type=freebsd-elf
13483 need_lib_prefix=no
13484 need_version=no
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 hardcode_into_libs=yes
13489 if test "$with_gnu_ld" = yes; then
13490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13491 shlibpath_overrides_runpath=no
13492 else
13493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13494 shlibpath_overrides_runpath=yes
13495 case $host_os in
13496 sco3.2v5*)
13497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13498 ;;
13499 esac
13500 fi
13501 sys_lib_dlsearch_path_spec='/usr/lib'
13502 ;;
13503
13504 uts4*)
13505 version_type=linux
13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 ;;
13510
13511 *)
13512 dynamic_linker=no
13513 ;;
13514 esac
13515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13516 echo "${ECHO_T}$dynamic_linker" >&6; }
13517 test "$dynamic_linker" = no && can_build_shared=no
13518
13519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13520 if test "$GCC" = yes; then
13521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13522 fi
13523
13524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13525 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13526 hardcode_action_CXX=
13527 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13528 test -n "$runpath_var_CXX" || \
13529 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13530
13531 # We can hardcode non-existant directories.
13532 if test "$hardcode_direct_CXX" != no &&
13533 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13534 # have to relink, otherwise we might link with an installed library
13535 # when we should be linking with a yet-to-be-installed one
13536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13537 test "$hardcode_minus_L_CXX" != no; then
13538 # Linking always hardcodes the temporary library directory.
13539 hardcode_action_CXX=relink
13540 else
13541 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13542 hardcode_action_CXX=immediate
13543 fi
13544 else
13545 # We cannot hardcode anything, or else we can only hardcode existing
13546 # directories.
13547 hardcode_action_CXX=unsupported
13548 fi
13549 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13550 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13551
13552 if test "$hardcode_action_CXX" = relink; then
13553 # Fast installation is not supported
13554 enable_fast_install=no
13555 elif test "$shlibpath_overrides_runpath" = yes ||
13556 test "$enable_shared" = no; then
13557 # Fast installation is not necessary
13558 enable_fast_install=needless
13559 fi
13560
13561
13562 # The else clause should only fire when bootstrapping the
13563 # libtool distribution, otherwise you forgot to ship ltmain.sh
13564 # with your package, and you will get complaints that there are
13565 # no rules to generate ltmain.sh.
13566 if test -f "$ltmain"; then
13567 # See if we are running on zsh, and set the options which allow our commands through
13568 # without removal of \ escapes.
13569 if test -n "${ZSH_VERSION+set}" ; then
13570 setopt NO_GLOB_SUBST
13571 fi
13572 # Now quote all the things that may contain metacharacters while being
13573 # careful not to overquote the AC_SUBSTed values. We take copies of the
13574 # variables and quote the copies for generation of the libtool script.
13575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13576 SED SHELL STRIP \
13577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13579 deplibs_check_method reload_flag reload_cmds need_locks \
13580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13581 lt_cv_sys_global_symbol_to_c_name_address \
13582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13583 old_postinstall_cmds old_postuninstall_cmds \
13584 compiler_CXX \
13585 CC_CXX \
13586 LD_CXX \
13587 lt_prog_compiler_wl_CXX \
13588 lt_prog_compiler_pic_CXX \
13589 lt_prog_compiler_static_CXX \
13590 lt_prog_compiler_no_builtin_flag_CXX \
13591 export_dynamic_flag_spec_CXX \
13592 thread_safe_flag_spec_CXX \
13593 whole_archive_flag_spec_CXX \
13594 enable_shared_with_static_runtimes_CXX \
13595 old_archive_cmds_CXX \
13596 old_archive_from_new_cmds_CXX \
13597 predep_objects_CXX \
13598 postdep_objects_CXX \
13599 predeps_CXX \
13600 postdeps_CXX \
13601 compiler_lib_search_path_CXX \
13602 archive_cmds_CXX \
13603 archive_expsym_cmds_CXX \
13604 postinstall_cmds_CXX \
13605 postuninstall_cmds_CXX \
13606 old_archive_from_expsyms_cmds_CXX \
13607 allow_undefined_flag_CXX \
13608 no_undefined_flag_CXX \
13609 export_symbols_cmds_CXX \
13610 hardcode_libdir_flag_spec_CXX \
13611 hardcode_libdir_flag_spec_ld_CXX \
13612 hardcode_libdir_separator_CXX \
13613 hardcode_automatic_CXX \
13614 module_cmds_CXX \
13615 module_expsym_cmds_CXX \
13616 lt_cv_prog_compiler_c_o_CXX \
13617 exclude_expsyms_CXX \
13618 include_expsyms_CXX; do
13619
13620 case $var in
13621 old_archive_cmds_CXX | \
13622 old_archive_from_new_cmds_CXX | \
13623 archive_cmds_CXX | \
13624 archive_expsym_cmds_CXX | \
13625 module_cmds_CXX | \
13626 module_expsym_cmds_CXX | \
13627 old_archive_from_expsyms_cmds_CXX | \
13628 export_symbols_cmds_CXX | \
13629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13630 postinstall_cmds | postuninstall_cmds | \
13631 old_postinstall_cmds | old_postuninstall_cmds | \
13632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13633 # Double-quote double-evaled strings.
13634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13635 ;;
13636 *)
13637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13638 ;;
13639 esac
13640 done
13641
13642 case $lt_echo in
13643 *'\$0 --fallback-echo"')
13644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13645 ;;
13646 esac
13647
13648 cfgfile="$ofile"
13649
13650 cat <<__EOF__ >> "$cfgfile"
13651 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13652
13653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13654
13655 # Shell to use when invoking shell scripts.
13656 SHELL=$lt_SHELL
13657
13658 # Whether or not to build shared libraries.
13659 build_libtool_libs=$enable_shared
13660
13661 # Whether or not to build static libraries.
13662 build_old_libs=$enable_static
13663
13664 # Whether or not to add -lc for building shared libraries.
13665 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13666
13667 # Whether or not to disallow shared libs when runtime libs are static
13668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13669
13670 # Whether or not to optimize for fast installation.
13671 fast_install=$enable_fast_install
13672
13673 # The host system.
13674 host_alias=$host_alias
13675 host=$host
13676 host_os=$host_os
13677
13678 # The build system.
13679 build_alias=$build_alias
13680 build=$build
13681 build_os=$build_os
13682
13683 # An echo program that does not interpret backslashes.
13684 echo=$lt_echo
13685
13686 # The archiver.
13687 AR=$lt_AR
13688 AR_FLAGS=$lt_AR_FLAGS
13689
13690 # A C compiler.
13691 LTCC=$lt_LTCC
13692
13693 # LTCC compiler flags.
13694 LTCFLAGS=$lt_LTCFLAGS
13695
13696 # A language-specific compiler.
13697 CC=$lt_compiler_CXX
13698
13699 # Is the compiler the GNU C compiler?
13700 with_gcc=$GCC_CXX
13701
13702 # An ERE matcher.
13703 EGREP=$lt_EGREP
13704
13705 # The linker used to build libraries.
13706 LD=$lt_LD_CXX
13707
13708 # Whether we need hard or soft links.
13709 LN_S=$lt_LN_S
13710
13711 # A BSD-compatible nm program.
13712 NM=$lt_NM
13713
13714 # A symbol stripping program
13715 STRIP=$lt_STRIP
13716
13717 # Used to examine libraries when file_magic_cmd begins "file"
13718 MAGIC_CMD=$MAGIC_CMD
13719
13720 # Used on cygwin: DLL creation program.
13721 DLLTOOL="$DLLTOOL"
13722
13723 # Used on cygwin: object dumper.
13724 OBJDUMP="$OBJDUMP"
13725
13726 # Used on cygwin: assembler.
13727 AS="$AS"
13728
13729 # The name of the directory that contains temporary libtool files.
13730 objdir=$objdir
13731
13732 # How to create reloadable object files.
13733 reload_flag=$lt_reload_flag
13734 reload_cmds=$lt_reload_cmds
13735
13736 # How to pass a linker flag through the compiler.
13737 wl=$lt_lt_prog_compiler_wl_CXX
13738
13739 # Object file suffix (normally "o").
13740 objext="$ac_objext"
13741
13742 # Old archive suffix (normally "a").
13743 libext="$libext"
13744
13745 # Shared library suffix (normally ".so").
13746 shrext_cmds='$shrext_cmds'
13747
13748 # Executable file suffix (normally "").
13749 exeext="$exeext"
13750
13751 # Additional compiler flags for building library objects.
13752 pic_flag=$lt_lt_prog_compiler_pic_CXX
13753 pic_mode=$pic_mode
13754
13755 # What is the maximum length of a command?
13756 max_cmd_len=$lt_cv_sys_max_cmd_len
13757
13758 # Does compiler simultaneously support -c and -o options?
13759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13760
13761 # Must we lock files when doing compilation?
13762 need_locks=$lt_need_locks
13763
13764 # Do we need the lib prefix for modules?
13765 need_lib_prefix=$need_lib_prefix
13766
13767 # Do we need a version for libraries?
13768 need_version=$need_version
13769
13770 # Whether dlopen is supported.
13771 dlopen_support=$enable_dlopen
13772
13773 # Whether dlopen of programs is supported.
13774 dlopen_self=$enable_dlopen_self
13775
13776 # Whether dlopen of statically linked programs is supported.
13777 dlopen_self_static=$enable_dlopen_self_static
13778
13779 # Compiler flag to prevent dynamic linking.
13780 link_static_flag=$lt_lt_prog_compiler_static_CXX
13781
13782 # Compiler flag to turn off builtin functions.
13783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13784
13785 # Compiler flag to allow reflexive dlopens.
13786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13787
13788 # Compiler flag to generate shared objects directly from archives.
13789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13790
13791 # Compiler flag to generate thread-safe objects.
13792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13793
13794 # Library versioning type.
13795 version_type=$version_type
13796
13797 # Format of library name prefix.
13798 libname_spec=$lt_libname_spec
13799
13800 # List of archive names. First name is the real one, the rest are links.
13801 # The last name is the one that the linker finds with -lNAME.
13802 library_names_spec=$lt_library_names_spec
13803
13804 # The coded name of the library, if different from the real name.
13805 soname_spec=$lt_soname_spec
13806
13807 # Commands used to build and install an old-style archive.
13808 RANLIB=$lt_RANLIB
13809 old_archive_cmds=$lt_old_archive_cmds_CXX
13810 old_postinstall_cmds=$lt_old_postinstall_cmds
13811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13812
13813 # Create an old-style archive from a shared archive.
13814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13815
13816 # Create a temporary old-style archive to link instead of a shared archive.
13817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13818
13819 # Commands used to build and install a shared archive.
13820 archive_cmds=$lt_archive_cmds_CXX
13821 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13822 postinstall_cmds=$lt_postinstall_cmds
13823 postuninstall_cmds=$lt_postuninstall_cmds
13824
13825 # Commands used to build a loadable module (assumed same as above if empty)
13826 module_cmds=$lt_module_cmds_CXX
13827 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13828
13829 # Commands to strip libraries.
13830 old_striplib=$lt_old_striplib
13831 striplib=$lt_striplib
13832
13833 # Dependencies to place before the objects being linked to create a
13834 # shared library.
13835 predep_objects=$lt_predep_objects_CXX
13836
13837 # Dependencies to place after the objects being linked to create a
13838 # shared library.
13839 postdep_objects=$lt_postdep_objects_CXX
13840
13841 # Dependencies to place before the objects being linked to create a
13842 # shared library.
13843 predeps=$lt_predeps_CXX
13844
13845 # Dependencies to place after the objects being linked to create a
13846 # shared library.
13847 postdeps=$lt_postdeps_CXX
13848
13849 # The library search path used internally by the compiler when linking
13850 # a shared library.
13851 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13852
13853 # Method to check whether dependent libraries are shared objects.
13854 deplibs_check_method=$lt_deplibs_check_method
13855
13856 # Command to use when deplibs_check_method == file_magic.
13857 file_magic_cmd=$lt_file_magic_cmd
13858
13859 # Flag that allows shared libraries with undefined symbols to be built.
13860 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13861
13862 # Flag that forces no undefined symbols.
13863 no_undefined_flag=$lt_no_undefined_flag_CXX
13864
13865 # Commands used to finish a libtool library installation in a directory.
13866 finish_cmds=$lt_finish_cmds
13867
13868 # Same as above, but a single script fragment to be evaled but not shown.
13869 finish_eval=$lt_finish_eval
13870
13871 # Take the output of nm and produce a listing of raw symbols and C names.
13872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13873
13874 # Transform the output of nm in a proper C declaration
13875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13876
13877 # Transform the output of nm in a C name address pair
13878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13879
13880 # This is the shared library runtime path variable.
13881 runpath_var=$runpath_var
13882
13883 # This is the shared library path variable.
13884 shlibpath_var=$shlibpath_var
13885
13886 # Is shlibpath searched before the hard-coded library search path?
13887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13888
13889 # How to hardcode a shared library path into an executable.
13890 hardcode_action=$hardcode_action_CXX
13891
13892 # Whether we should hardcode library paths into libraries.
13893 hardcode_into_libs=$hardcode_into_libs
13894
13895 # Flag to hardcode \$libdir into a binary during linking.
13896 # This must work even if \$libdir does not exist.
13897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13898
13899 # If ld is used when linking, flag to hardcode \$libdir into
13900 # a binary during linking. This must work even if \$libdir does
13901 # not exist.
13902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13903
13904 # Whether we need a single -rpath flag with a separated argument.
13905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13906
13907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13908 # resulting binary.
13909 hardcode_direct=$hardcode_direct_CXX
13910
13911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13912 # resulting binary.
13913 hardcode_minus_L=$hardcode_minus_L_CXX
13914
13915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13916 # the resulting binary.
13917 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13918
13919 # Set to yes if building a shared library automatically hardcodes DIR into the library
13920 # and all subsequent libraries and executables linked against it.
13921 hardcode_automatic=$hardcode_automatic_CXX
13922
13923 # Variables whose values should be saved in libtool wrapper scripts and
13924 # restored at relink time.
13925 variables_saved_for_relink="$variables_saved_for_relink"
13926
13927 # Whether libtool must link a program against all its dependency libraries.
13928 link_all_deplibs=$link_all_deplibs_CXX
13929
13930 # Compile-time system search path for libraries
13931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13932
13933 # Run-time system search path for libraries
13934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13935
13936 # Fix the shell variable \$srcfile for the compiler.
13937 fix_srcfile_path="$fix_srcfile_path_CXX"
13938
13939 # Set to yes if exported symbols are required.
13940 always_export_symbols=$always_export_symbols_CXX
13941
13942 # The commands to list exported symbols.
13943 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13944
13945 # The commands to extract the exported symbol list from a shared archive.
13946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13947
13948 # Symbols that should not be listed in the preloaded symbols.
13949 exclude_expsyms=$lt_exclude_expsyms_CXX
13950
13951 # Symbols that must always be exported.
13952 include_expsyms=$lt_include_expsyms_CXX
13953
13954 # ### END LIBTOOL TAG CONFIG: $tagname
13955
13956 __EOF__
13957
13958
13959 else
13960 # If there is no Makefile yet, we rely on a make rule to execute
13961 # `config.status --recheck' to rerun these tests and create the
13962 # libtool script then.
13963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13964 if test -f "$ltmain_in"; then
13965 test -f Makefile && make "$ltmain"
13966 fi
13967 fi
13968
13969
13970 ac_ext=c
13971 ac_cpp='$CPP $CPPFLAGS'
13972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13975
13976 CC=$lt_save_CC
13977 LDCXX=$LD
13978 LD=$lt_save_LD
13979 GCC=$lt_save_GCC
13980 with_gnu_ldcxx=$with_gnu_ld
13981 with_gnu_ld=$lt_save_with_gnu_ld
13982 lt_cv_path_LDCXX=$lt_cv_path_LD
13983 lt_cv_path_LD=$lt_save_path_LD
13984 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13985 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13986
13987 else
13988 tagname=""
13989 fi
13990 ;;
13991
13992 F77)
13993 if test -n "$F77" && test "X$F77" != "Xno"; then
13994
13995 ac_ext=f
13996 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13997 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13999
14000
14001 archive_cmds_need_lc_F77=no
14002 allow_undefined_flag_F77=
14003 always_export_symbols_F77=no
14004 archive_expsym_cmds_F77=
14005 export_dynamic_flag_spec_F77=
14006 hardcode_direct_F77=no
14007 hardcode_libdir_flag_spec_F77=
14008 hardcode_libdir_flag_spec_ld_F77=
14009 hardcode_libdir_separator_F77=
14010 hardcode_minus_L_F77=no
14011 hardcode_automatic_F77=no
14012 module_cmds_F77=
14013 module_expsym_cmds_F77=
14014 link_all_deplibs_F77=unknown
14015 old_archive_cmds_F77=$old_archive_cmds
14016 no_undefined_flag_F77=
14017 whole_archive_flag_spec_F77=
14018 enable_shared_with_static_runtimes_F77=no
14019
14020 # Source file extension for f77 test sources.
14021 ac_ext=f
14022
14023 # Object file extension for compiled f77 test sources.
14024 objext=o
14025 objext_F77=$objext
14026
14027 # Code to be used in simple compile tests
14028 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14029
14030 # Code to be used in simple link tests
14031 lt_simple_link_test_code=" program t\n end\n"
14032
14033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14034
14035 # If no C compiler was specified, use CC.
14036 LTCC=${LTCC-"$CC"}
14037
14038 # If no C compiler flags were specified, use CFLAGS.
14039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14040
14041 # Allow CC to be a program name with arguments.
14042 compiler=$CC
14043
14044
14045 # save warnings/boilerplate of simple test code
14046 ac_outfile=conftest.$ac_objext
14047 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14049 _lt_compiler_boilerplate=`cat conftest.err`
14050 $rm conftest*
14051
14052 ac_outfile=conftest.$ac_objext
14053 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14054 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14055 _lt_linker_boilerplate=`cat conftest.err`
14056 $rm conftest*
14057
14058
14059 # Allow CC to be a program name with arguments.
14060 lt_save_CC="$CC"
14061 CC=${F77-"f77"}
14062 compiler=$CC
14063 compiler_F77=$CC
14064 for cc_temp in $compiler""; do
14065 case $cc_temp in
14066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14068 \-*) ;;
14069 *) break;;
14070 esac
14071 done
14072 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14073
14074
14075 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14076 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14077 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14078 echo "${ECHO_T}$can_build_shared" >&6; }
14079
14080 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14081 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14082 test "$can_build_shared" = "no" && enable_shared=no
14083
14084 # On AIX, shared libraries and static libraries use the same namespace, and
14085 # are all built from PIC.
14086 case $host_os in
14087 aix3*)
14088 test "$enable_shared" = yes && enable_static=no
14089 if test -n "$RANLIB"; then
14090 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14091 postinstall_cmds='$RANLIB $lib'
14092 fi
14093 ;;
14094 aix4* | aix5*)
14095 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14096 test "$enable_shared" = yes && enable_static=no
14097 fi
14098 ;;
14099 esac
14100 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14101 echo "${ECHO_T}$enable_shared" >&6; }
14102
14103 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14104 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14105 # Make sure either enable_shared or enable_static is yes.
14106 test "$enable_shared" = yes || enable_static=yes
14107 { echo "$as_me:$LINENO: result: $enable_static" >&5
14108 echo "${ECHO_T}$enable_static" >&6; }
14109
14110 GCC_F77="$G77"
14111 LD_F77="$LD"
14112
14113 lt_prog_compiler_wl_F77=
14114 lt_prog_compiler_pic_F77=
14115 lt_prog_compiler_static_F77=
14116
14117 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14118 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14119
14120 if test "$GCC" = yes; then
14121 lt_prog_compiler_wl_F77='-Wl,'
14122 lt_prog_compiler_static_F77='-static'
14123
14124 case $host_os in
14125 aix*)
14126 # All AIX code is PIC.
14127 if test "$host_cpu" = ia64; then
14128 # AIX 5 now supports IA64 processor
14129 lt_prog_compiler_static_F77='-Bstatic'
14130 fi
14131 ;;
14132
14133 amigaos*)
14134 # FIXME: we need at least 68020 code to build shared libraries, but
14135 # adding the `-m68020' flag to GCC prevents building anything better,
14136 # like `-m68040'.
14137 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14138 ;;
14139
14140 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14141 # PIC is the default for these OSes.
14142 ;;
14143
14144 mingw* | pw32* | os2*)
14145 # This hack is so that the source file can tell whether it is being
14146 # built for inclusion in a dll (and should export symbols for example).
14147 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14148 ;;
14149
14150 darwin* | rhapsody*)
14151 # PIC is the default on this platform
14152 # Common symbols not allowed in MH_DYLIB files
14153 lt_prog_compiler_pic_F77='-fno-common'
14154 ;;
14155
14156 interix3*)
14157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14158 # Instead, we relocate shared libraries at runtime.
14159 ;;
14160
14161 msdosdjgpp*)
14162 # Just because we use GCC doesn't mean we suddenly get shared libraries
14163 # on systems that don't support them.
14164 lt_prog_compiler_can_build_shared_F77=no
14165 enable_shared=no
14166 ;;
14167
14168 sysv4*MP*)
14169 if test -d /usr/nec; then
14170 lt_prog_compiler_pic_F77=-Kconform_pic
14171 fi
14172 ;;
14173
14174 hpux*)
14175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14176 # not for PA HP-UX.
14177 case $host_cpu in
14178 hppa*64*|ia64*)
14179 # +Z the default
14180 ;;
14181 *)
14182 lt_prog_compiler_pic_F77='-fPIC'
14183 ;;
14184 esac
14185 ;;
14186
14187 *)
14188 lt_prog_compiler_pic_F77='-fPIC'
14189 ;;
14190 esac
14191 else
14192 # PORTME Check for flag to pass linker flags through the system compiler.
14193 case $host_os in
14194 aix*)
14195 lt_prog_compiler_wl_F77='-Wl,'
14196 if test "$host_cpu" = ia64; then
14197 # AIX 5 now supports IA64 processor
14198 lt_prog_compiler_static_F77='-Bstatic'
14199 else
14200 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14201 fi
14202 ;;
14203 darwin*)
14204 # PIC is the default on this platform
14205 # Common symbols not allowed in MH_DYLIB files
14206 case $cc_basename in
14207 xlc*)
14208 lt_prog_compiler_pic_F77='-qnocommon'
14209 lt_prog_compiler_wl_F77='-Wl,'
14210 ;;
14211 esac
14212 ;;
14213
14214 mingw* | pw32* | os2*)
14215 # This hack is so that the source file can tell whether it is being
14216 # built for inclusion in a dll (and should export symbols for example).
14217 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14218 ;;
14219
14220 hpux9* | hpux10* | hpux11*)
14221 lt_prog_compiler_wl_F77='-Wl,'
14222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14223 # not for PA HP-UX.
14224 case $host_cpu in
14225 hppa*64*|ia64*)
14226 # +Z the default
14227 ;;
14228 *)
14229 lt_prog_compiler_pic_F77='+Z'
14230 ;;
14231 esac
14232 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14233 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14234 ;;
14235
14236 irix5* | irix6* | nonstopux*)
14237 lt_prog_compiler_wl_F77='-Wl,'
14238 # PIC (with -KPIC) is the default.
14239 lt_prog_compiler_static_F77='-non_shared'
14240 ;;
14241
14242 newsos6)
14243 lt_prog_compiler_pic_F77='-KPIC'
14244 lt_prog_compiler_static_F77='-Bstatic'
14245 ;;
14246
14247 linux* | k*bsd*-gnu)
14248 case $cc_basename in
14249 icc* | ecc*)
14250 lt_prog_compiler_wl_F77='-Wl,'
14251 lt_prog_compiler_pic_F77='-KPIC'
14252 lt_prog_compiler_static_F77='-static'
14253 ;;
14254 pgcc* | pgf77* | pgf90* | pgf95*)
14255 # Portland Group compilers (*not* the Pentium gcc compiler,
14256 # which looks to be a dead project)
14257 lt_prog_compiler_wl_F77='-Wl,'
14258 lt_prog_compiler_pic_F77='-fpic'
14259 lt_prog_compiler_static_F77='-Bstatic'
14260 ;;
14261 ccc*)
14262 lt_prog_compiler_wl_F77='-Wl,'
14263 # All Alpha code is PIC.
14264 lt_prog_compiler_static_F77='-non_shared'
14265 ;;
14266 esac
14267 ;;
14268
14269 osf3* | osf4* | osf5*)
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 # All OSF/1 code is PIC.
14272 lt_prog_compiler_static_F77='-non_shared'
14273 ;;
14274
14275 solaris*)
14276 lt_prog_compiler_pic_F77='-KPIC'
14277 lt_prog_compiler_static_F77='-Bstatic'
14278 case $cc_basename in
14279 f77* | f90* | f95*)
14280 lt_prog_compiler_wl_F77='-Qoption ld ';;
14281 *)
14282 lt_prog_compiler_wl_F77='-Wl,';;
14283 esac
14284 ;;
14285
14286 sunos4*)
14287 lt_prog_compiler_wl_F77='-Qoption ld '
14288 lt_prog_compiler_pic_F77='-PIC'
14289 lt_prog_compiler_static_F77='-Bstatic'
14290 ;;
14291
14292 sysv4 | sysv4.2uw2* | sysv4.3*)
14293 lt_prog_compiler_wl_F77='-Wl,'
14294 lt_prog_compiler_pic_F77='-KPIC'
14295 lt_prog_compiler_static_F77='-Bstatic'
14296 ;;
14297
14298 sysv4*MP*)
14299 if test -d /usr/nec ;then
14300 lt_prog_compiler_pic_F77='-Kconform_pic'
14301 lt_prog_compiler_static_F77='-Bstatic'
14302 fi
14303 ;;
14304
14305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14306 lt_prog_compiler_wl_F77='-Wl,'
14307 lt_prog_compiler_pic_F77='-KPIC'
14308 lt_prog_compiler_static_F77='-Bstatic'
14309 ;;
14310
14311 unicos*)
14312 lt_prog_compiler_wl_F77='-Wl,'
14313 lt_prog_compiler_can_build_shared_F77=no
14314 ;;
14315
14316 uts4*)
14317 lt_prog_compiler_pic_F77='-pic'
14318 lt_prog_compiler_static_F77='-Bstatic'
14319 ;;
14320
14321 *)
14322 lt_prog_compiler_can_build_shared_F77=no
14323 ;;
14324 esac
14325 fi
14326
14327 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14328 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14329
14330 #
14331 # Check to make sure the PIC flag actually works.
14332 #
14333 if test -n "$lt_prog_compiler_pic_F77"; then
14334
14335 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14336 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14337 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 lt_prog_compiler_pic_works_F77=no
14341 ac_outfile=conftest.$ac_objext
14342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14343 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14344 # Insert the option either (1) after the last *FLAGS variable, or
14345 # (2) before a word containing "conftest.", or (3) at the end.
14346 # Note that $ac_compile itself does not contain backslashes and begins
14347 # with a dollar sign (not a hyphen), so the echo should work correctly.
14348 # The option is referenced via a variable to avoid confusing sed.
14349 lt_compile=`echo "$ac_compile" | $SED \
14350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14352 -e 's:$: $lt_compiler_flag:'`
14353 (eval echo "\"\$as_me:14353: $lt_compile\"" >&5)
14354 (eval "$lt_compile" 2>conftest.err)
14355 ac_status=$?
14356 cat conftest.err >&5
14357 echo "$as_me:14357: \$? = $ac_status" >&5
14358 if (exit $ac_status) && test -s "$ac_outfile"; then
14359 # The compiler can only warn and ignore the option if not recognized
14360 # So say no if there are warnings other than the usual output.
14361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14364 lt_prog_compiler_pic_works_F77=yes
14365 fi
14366 fi
14367 $rm conftest*
14368
14369 fi
14370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14371 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14372
14373 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14374 case $lt_prog_compiler_pic_F77 in
14375 "" | " "*) ;;
14376 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14377 esac
14378 else
14379 lt_prog_compiler_pic_F77=
14380 lt_prog_compiler_can_build_shared_F77=no
14381 fi
14382
14383 fi
14384 case $host_os in
14385 # For platforms which do not support PIC, -DPIC is meaningless:
14386 *djgpp*)
14387 lt_prog_compiler_pic_F77=
14388 ;;
14389 *)
14390 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14391 ;;
14392 esac
14393
14394 #
14395 # Check to make sure the static flag actually works.
14396 #
14397 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14398 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14399 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14400 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403 lt_prog_compiler_static_works_F77=no
14404 save_LDFLAGS="$LDFLAGS"
14405 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14406 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14408 # The linker can only warn and ignore the option if not recognized
14409 # So say no if there are warnings
14410 if test -s conftest.err; then
14411 # Append any errors to the config.log.
14412 cat conftest.err 1>&5
14413 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14415 if diff conftest.exp conftest.er2 >/dev/null; then
14416 lt_prog_compiler_static_works_F77=yes
14417 fi
14418 else
14419 lt_prog_compiler_static_works_F77=yes
14420 fi
14421 fi
14422 $rm conftest*
14423 LDFLAGS="$save_LDFLAGS"
14424
14425 fi
14426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14427 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14428
14429 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14430 :
14431 else
14432 lt_prog_compiler_static_F77=
14433 fi
14434
14435
14436 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14438 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441 lt_cv_prog_compiler_c_o_F77=no
14442 $rm -r conftest 2>/dev/null
14443 mkdir conftest
14444 cd conftest
14445 mkdir out
14446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14447
14448 lt_compiler_flag="-o out/conftest2.$ac_objext"
14449 # Insert the option either (1) after the last *FLAGS variable, or
14450 # (2) before a word containing "conftest.", or (3) at the end.
14451 # Note that $ac_compile itself does not contain backslashes and begins
14452 # with a dollar sign (not a hyphen), so the echo should work correctly.
14453 lt_compile=`echo "$ac_compile" | $SED \
14454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14456 -e 's:$: $lt_compiler_flag:'`
14457 (eval echo "\"\$as_me:14457: $lt_compile\"" >&5)
14458 (eval "$lt_compile" 2>out/conftest.err)
14459 ac_status=$?
14460 cat out/conftest.err >&5
14461 echo "$as_me:14461: \$? = $ac_status" >&5
14462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14463 then
14464 # The compiler can only warn and ignore the option if not recognized
14465 # So say no if there are warnings
14466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14469 lt_cv_prog_compiler_c_o_F77=yes
14470 fi
14471 fi
14472 chmod u+w . 2>&5
14473 $rm conftest*
14474 # SGI C++ compiler will create directory out/ii_files/ for
14475 # template instantiation
14476 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14477 $rm out/* && rmdir out
14478 cd ..
14479 rmdir conftest
14480 $rm conftest*
14481
14482 fi
14483 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14484 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14485
14486
14487 hard_links="nottested"
14488 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14489 # do not overwrite the value of need_locks provided by the user
14490 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14491 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14492 hard_links=yes
14493 $rm conftest*
14494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14495 touch conftest.a
14496 ln conftest.a conftest.b 2>&5 || hard_links=no
14497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14498 { echo "$as_me:$LINENO: result: $hard_links" >&5
14499 echo "${ECHO_T}$hard_links" >&6; }
14500 if test "$hard_links" = no; then
14501 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14502 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14503 need_locks=warn
14504 fi
14505 else
14506 need_locks=no
14507 fi
14508
14509 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14510 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14511
14512 runpath_var=
14513 allow_undefined_flag_F77=
14514 enable_shared_with_static_runtimes_F77=no
14515 archive_cmds_F77=
14516 archive_expsym_cmds_F77=
14517 old_archive_From_new_cmds_F77=
14518 old_archive_from_expsyms_cmds_F77=
14519 export_dynamic_flag_spec_F77=
14520 whole_archive_flag_spec_F77=
14521 thread_safe_flag_spec_F77=
14522 hardcode_libdir_flag_spec_F77=
14523 hardcode_libdir_flag_spec_ld_F77=
14524 hardcode_libdir_separator_F77=
14525 hardcode_direct_F77=no
14526 hardcode_minus_L_F77=no
14527 hardcode_shlibpath_var_F77=unsupported
14528 link_all_deplibs_F77=unknown
14529 hardcode_automatic_F77=no
14530 module_cmds_F77=
14531 module_expsym_cmds_F77=
14532 always_export_symbols_F77=no
14533 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14534 # include_expsyms should be a list of space-separated symbols to be *always*
14535 # included in the symbol list
14536 include_expsyms_F77=
14537 # exclude_expsyms can be an extended regexp of symbols to exclude
14538 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14540 # as well as any symbol that contains `d'.
14541 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14543 # platforms (ab)use it in PIC code, but their linkers get confused if
14544 # the symbol is explicitly referenced. Since portable code cannot
14545 # rely on this symbol name, it's probably fine to never include it in
14546 # preloaded symbol tables.
14547 extract_expsyms_cmds=
14548 # Just being paranoid about ensuring that cc_basename is set.
14549 for cc_temp in $compiler""; do
14550 case $cc_temp in
14551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14553 \-*) ;;
14554 *) break;;
14555 esac
14556 done
14557 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14558
14559 case $host_os in
14560 cygwin* | mingw* | pw32*)
14561 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14562 # When not using gcc, we currently assume that we are using
14563 # Microsoft Visual C++.
14564 if test "$GCC" != yes; then
14565 with_gnu_ld=no
14566 fi
14567 ;;
14568 interix*)
14569 # we just hope/assume this is gcc and not c89 (= MSVC++)
14570 with_gnu_ld=yes
14571 ;;
14572 openbsd*)
14573 with_gnu_ld=no
14574 ;;
14575 esac
14576
14577 ld_shlibs_F77=yes
14578 if test "$with_gnu_ld" = yes; then
14579 # If archive_cmds runs LD, not CC, wlarc should be empty
14580 wlarc='${wl}'
14581
14582 # Set some defaults for GNU ld with shared library support. These
14583 # are reset later if shared libraries are not supported. Putting them
14584 # here allows them to be overridden if necessary.
14585 runpath_var=LD_RUN_PATH
14586 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14587 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14588 # ancient GNU ld didn't support --whole-archive et. al.
14589 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14590 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14591 else
14592 whole_archive_flag_spec_F77=
14593 fi
14594 supports_anon_versioning=no
14595 case `$LD -v 2>/dev/null` in
14596 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14599 *\ 2.11.*) ;; # other 2.11 versions
14600 *) supports_anon_versioning=yes ;;
14601 esac
14602
14603 # See if GNU ld supports shared libraries.
14604 case $host_os in
14605 aix3* | aix4* | aix5*)
14606 # On AIX/PPC, the GNU linker is very broken
14607 if test "$host_cpu" != ia64; then
14608 ld_shlibs_F77=no
14609 cat <<EOF 1>&2
14610
14611 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14612 *** to be unable to reliably create shared libraries on AIX.
14613 *** Therefore, libtool is disabling shared libraries support. If you
14614 *** really care for shared libraries, you may want to modify your PATH
14615 *** so that a non-GNU linker is found, and then restart.
14616
14617 EOF
14618 fi
14619 ;;
14620
14621 amigaos*)
14622 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)'
14623 hardcode_libdir_flag_spec_F77='-L$libdir'
14624 hardcode_minus_L_F77=yes
14625
14626 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14627 # that the semantics of dynamic libraries on AmigaOS, at least up
14628 # to version 4, is to share data among multiple programs linked
14629 # with the same dynamic library. Since this doesn't match the
14630 # behavior of shared libraries on other platforms, we can't use
14631 # them.
14632 ld_shlibs_F77=no
14633 ;;
14634
14635 beos*)
14636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14637 allow_undefined_flag_F77=unsupported
14638 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14639 # support --undefined. This deserves some investigation. FIXME
14640 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14641 else
14642 ld_shlibs_F77=no
14643 fi
14644 ;;
14645
14646 cygwin* | mingw* | pw32*)
14647 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14648 # as there is no search path for DLLs.
14649 hardcode_libdir_flag_spec_F77='-L$libdir'
14650 allow_undefined_flag_F77=unsupported
14651 always_export_symbols_F77=no
14652 enable_shared_with_static_runtimes_F77=yes
14653 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14654
14655 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14657 # If the export-symbols file already is a .def file (1st line
14658 # is EXPORTS), use it as is; otherwise, prepend...
14659 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14660 cp $export_symbols $output_objdir/$soname.def;
14661 else
14662 echo EXPORTS > $output_objdir/$soname.def;
14663 cat $export_symbols >> $output_objdir/$soname.def;
14664 fi~
14665 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14666 else
14667 ld_shlibs_F77=no
14668 fi
14669 ;;
14670
14671 interix3*)
14672 hardcode_direct_F77=no
14673 hardcode_shlibpath_var_F77=no
14674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14675 export_dynamic_flag_spec_F77='${wl}-E'
14676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14677 # Instead, shared libraries are loaded at an image base (0x10000000 by
14678 # default) and relocated if they conflict, which is a slow very memory
14679 # consuming and fragmenting process. To avoid this, we pick a random,
14680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14682 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'
14683 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'
14684 ;;
14685
14686 linux* | k*bsd*-gnu)
14687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14688 tmp_addflag=
14689 case $cc_basename,$host_cpu in
14690 pgcc*) # Portland Group C compiler
14691 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'
14692 tmp_addflag=' $pic_flag'
14693 ;;
14694 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14695 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'
14696 tmp_addflag=' $pic_flag -Mnomain' ;;
14697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14698 tmp_addflag=' -i_dynamic' ;;
14699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14700 tmp_addflag=' -i_dynamic -nofor_main' ;;
14701 ifc* | ifort*) # Intel Fortran compiler
14702 tmp_addflag=' -nofor_main' ;;
14703 esac
14704 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14705
14706 if test $supports_anon_versioning = yes; then
14707 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14709 $echo "local: *; };" >> $output_objdir/$libname.ver~
14710 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14711 fi
14712 link_all_deplibs_F77=no
14713 else
14714 ld_shlibs_F77=no
14715 fi
14716 ;;
14717
14718 netbsd* | netbsdelf*-gnu)
14719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14720 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14721 wlarc=
14722 else
14723 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14724 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14725 fi
14726 ;;
14727
14728 solaris*)
14729 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14730 ld_shlibs_F77=no
14731 cat <<EOF 1>&2
14732
14733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14734 *** create shared libraries on Solaris systems. Therefore, libtool
14735 *** is disabling shared libraries support. We urge you to upgrade GNU
14736 *** binutils to release 2.9.1 or newer. Another option is to modify
14737 *** your PATH or compiler configuration so that the native linker is
14738 *** used, and then restart.
14739
14740 EOF
14741 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14742 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14743 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14744 else
14745 ld_shlibs_F77=no
14746 fi
14747 ;;
14748
14749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14750 case `$LD -v 2>&1` in
14751 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14752 ld_shlibs_F77=no
14753 cat <<_LT_EOF 1>&2
14754
14755 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14756 *** reliably create shared libraries on SCO systems. Therefore, libtool
14757 *** is disabling shared libraries support. We urge you to upgrade GNU
14758 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14759 *** your PATH or compiler configuration so that the native linker is
14760 *** used, and then restart.
14761
14762 _LT_EOF
14763 ;;
14764 *)
14765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14766 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14767 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14768 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14769 else
14770 ld_shlibs_F77=no
14771 fi
14772 ;;
14773 esac
14774 ;;
14775
14776 sunos4*)
14777 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14778 wlarc=
14779 hardcode_direct_F77=yes
14780 hardcode_shlibpath_var_F77=no
14781 ;;
14782
14783 *)
14784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14785 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14787 else
14788 ld_shlibs_F77=no
14789 fi
14790 ;;
14791 esac
14792
14793 if test "$ld_shlibs_F77" = no; then
14794 runpath_var=
14795 hardcode_libdir_flag_spec_F77=
14796 export_dynamic_flag_spec_F77=
14797 whole_archive_flag_spec_F77=
14798 fi
14799 else
14800 # PORTME fill in a description of your system's linker (not GNU ld)
14801 case $host_os in
14802 aix3*)
14803 allow_undefined_flag_F77=unsupported
14804 always_export_symbols_F77=yes
14805 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'
14806 # Note: this linker hardcodes the directories in LIBPATH if there
14807 # are no directories specified by -L.
14808 hardcode_minus_L_F77=yes
14809 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14810 # Neither direct hardcoding nor static linking is supported with a
14811 # broken collect2.
14812 hardcode_direct_F77=unsupported
14813 fi
14814 ;;
14815
14816 aix4* | aix5*)
14817 if test "$host_cpu" = ia64; then
14818 # On IA64, the linker does run time linking by default, so we don't
14819 # have to do anything special.
14820 aix_use_runtimelinking=no
14821 exp_sym_flag='-Bexport'
14822 no_entry_flag=""
14823 else
14824 # If we're using GNU nm, then we don't want the "-C" option.
14825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14826 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14827 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'
14828 else
14829 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'
14830 fi
14831 aix_use_runtimelinking=no
14832
14833 # Test if we are trying to use run time linking or normal
14834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14835 # need to do runtime linking.
14836 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14837 for ld_flag in $LDFLAGS; do
14838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14839 aix_use_runtimelinking=yes
14840 break
14841 fi
14842 done
14843 ;;
14844 esac
14845
14846 exp_sym_flag='-bexport'
14847 no_entry_flag='-bnoentry'
14848 fi
14849
14850 # When large executables or shared objects are built, AIX ld can
14851 # have problems creating the table of contents. If linking a library
14852 # or program results in "error TOC overflow" add -mminimal-toc to
14853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14855
14856 archive_cmds_F77=''
14857 hardcode_direct_F77=yes
14858 hardcode_libdir_separator_F77=':'
14859 link_all_deplibs_F77=yes
14860
14861 if test "$GCC" = yes; then
14862 case $host_os in aix4.[012]|aix4.[012].*)
14863 # We only want to do this on AIX 4.2 and lower, the check
14864 # below for broken collect2 doesn't work under 4.3+
14865 collect2name=`${CC} -print-prog-name=collect2`
14866 if test -f "$collect2name" && \
14867 strings "$collect2name" | grep resolve_lib_name >/dev/null
14868 then
14869 # We have reworked collect2
14870 hardcode_direct_F77=yes
14871 else
14872 # We have old collect2
14873 hardcode_direct_F77=unsupported
14874 # It fails to find uninstalled libraries when the uninstalled
14875 # path is not listed in the libpath. Setting hardcode_minus_L
14876 # to unsupported forces relinking
14877 hardcode_minus_L_F77=yes
14878 hardcode_libdir_flag_spec_F77='-L$libdir'
14879 hardcode_libdir_separator_F77=
14880 fi
14881 ;;
14882 esac
14883 shared_flag='-shared'
14884 if test "$aix_use_runtimelinking" = yes; then
14885 shared_flag="$shared_flag "'${wl}-G'
14886 fi
14887 else
14888 # not using gcc
14889 if test "$host_cpu" = ia64; then
14890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14891 # chokes on -Wl,-G. The following line is correct:
14892 shared_flag='-G'
14893 else
14894 if test "$aix_use_runtimelinking" = yes; then
14895 shared_flag='${wl}-G'
14896 else
14897 shared_flag='${wl}-bM:SRE'
14898 fi
14899 fi
14900 fi
14901
14902 # It seems that -bexpall does not export symbols beginning with
14903 # underscore (_), so it is better to generate a list of symbols to export.
14904 always_export_symbols_F77=yes
14905 if test "$aix_use_runtimelinking" = yes; then
14906 # Warning - without using the other runtime loading flags (-brtl),
14907 # -berok will link without error, but may produce a broken library.
14908 allow_undefined_flag_F77='-berok'
14909 # Determine the default libpath from the value encoded in an empty executable.
14910 cat >conftest.$ac_ext <<_ACEOF
14911 program main
14912
14913 end
14914 _ACEOF
14915 rm -f conftest.$ac_objext conftest$ac_exeext
14916 if { (ac_try="$ac_link"
14917 case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14920 esac
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_link") 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14930 { (case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933 esac
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_try") 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest$ac_exeext'
14940 { (case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_try") 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949
14950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14951 }'`
14952 # Check for a 64-bit object if we didn't find anything.
14953 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; }
14954 }'`; fi
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14958
14959
14960 fi
14961
14962 rm -f core conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext conftest.$ac_ext
14964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14965
14966 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14967 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"
14968 else
14969 if test "$host_cpu" = ia64; then
14970 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14971 allow_undefined_flag_F77="-z nodefs"
14972 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"
14973 else
14974 # Determine the default libpath from the value encoded in an empty executable.
14975 cat >conftest.$ac_ext <<_ACEOF
14976 program main
14977
14978 end
14979 _ACEOF
14980 rm -f conftest.$ac_objext conftest$ac_exeext
14981 if { (ac_try="$ac_link"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_link") 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14995 { (case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_try") 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest$ac_exeext'
15005 { (case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_try") 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014
15015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15016 }'`
15017 # Check for a 64-bit object if we didn't find anything.
15018 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; }
15019 }'`; fi
15020 else
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024
15025 fi
15026
15027 rm -f core conftest.err conftest.$ac_objext \
15028 conftest$ac_exeext conftest.$ac_ext
15029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15030
15031 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15032 # Warning - without using the other run time loading flags,
15033 # -berok will link without error, but may produce a broken library.
15034 no_undefined_flag_F77=' ${wl}-bernotok'
15035 allow_undefined_flag_F77=' ${wl}-berok'
15036 # Exported symbols can be pulled into shared objects from archives
15037 whole_archive_flag_spec_F77='$convenience'
15038 archive_cmds_need_lc_F77=yes
15039 # This is similar to how AIX traditionally builds its shared libraries.
15040 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'
15041 fi
15042 fi
15043 ;;
15044
15045 amigaos*)
15046 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)'
15047 hardcode_libdir_flag_spec_F77='-L$libdir'
15048 hardcode_minus_L_F77=yes
15049 # see comment about different semantics on the GNU ld section
15050 ld_shlibs_F77=no
15051 ;;
15052
15053 bsdi[45]*)
15054 export_dynamic_flag_spec_F77=-rdynamic
15055 ;;
15056
15057 cygwin* | mingw* | pw32*)
15058 # When not using gcc, we currently assume that we are using
15059 # Microsoft Visual C++.
15060 # hardcode_libdir_flag_spec is actually meaningless, as there is
15061 # no search path for DLLs.
15062 hardcode_libdir_flag_spec_F77=' '
15063 allow_undefined_flag_F77=unsupported
15064 # Tell ltmain to make .lib files, not .a files.
15065 libext=lib
15066 # Tell ltmain to make .dll files, not .so files.
15067 shrext_cmds=".dll"
15068 # FIXME: Setting linknames here is a bad hack.
15069 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15070 # The linker will automatically build a .lib file if we build a DLL.
15071 old_archive_From_new_cmds_F77='true'
15072 # FIXME: Should let the user specify the lib program.
15073 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15074 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15075 enable_shared_with_static_runtimes_F77=yes
15076 ;;
15077
15078 darwin* | rhapsody*)
15079 case $host_os in
15080 rhapsody* | darwin1.[012])
15081 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15082 ;;
15083 *) # Darwin 1.3 on
15084 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15085 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15086 else
15087 case ${MACOSX_DEPLOYMENT_TARGET} in
15088 10.[012])
15089 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15090 ;;
15091 10.*)
15092 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15093 ;;
15094 esac
15095 fi
15096 ;;
15097 esac
15098 archive_cmds_need_lc_F77=no
15099 hardcode_direct_F77=no
15100 hardcode_automatic_F77=yes
15101 hardcode_shlibpath_var_F77=unsupported
15102 whole_archive_flag_spec_F77=''
15103 link_all_deplibs_F77=yes
15104 if test "$GCC" = yes ; then
15105 output_verbose_link_cmd='echo'
15106 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15107 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15109 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}'
15110 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}'
15111 else
15112 case $cc_basename in
15113 xlc*)
15114 output_verbose_link_cmd='echo'
15115 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15116 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15118 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}'
15119 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}'
15120 ;;
15121 *)
15122 ld_shlibs_F77=no
15123 ;;
15124 esac
15125 fi
15126 ;;
15127
15128 dgux*)
15129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15130 hardcode_libdir_flag_spec_F77='-L$libdir'
15131 hardcode_shlibpath_var_F77=no
15132 ;;
15133
15134 freebsd1*)
15135 ld_shlibs_F77=no
15136 ;;
15137
15138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15139 # support. Future versions do this automatically, but an explicit c++rt0.o
15140 # does not break anything, and helps significantly (at the cost of a little
15141 # extra space).
15142 freebsd2.2*)
15143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15144 hardcode_libdir_flag_spec_F77='-R$libdir'
15145 hardcode_direct_F77=yes
15146 hardcode_shlibpath_var_F77=no
15147 ;;
15148
15149 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15150 freebsd2*)
15151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_direct_F77=yes
15153 hardcode_minus_L_F77=yes
15154 hardcode_shlibpath_var_F77=no
15155 ;;
15156
15157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15158 freebsd* | dragonfly*)
15159 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15160 hardcode_libdir_flag_spec_F77='-R$libdir'
15161 hardcode_direct_F77=yes
15162 hardcode_shlibpath_var_F77=no
15163 ;;
15164
15165 hpux9*)
15166 if test "$GCC" = yes; then
15167 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'
15168 else
15169 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'
15170 fi
15171 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15172 hardcode_libdir_separator_F77=:
15173 hardcode_direct_F77=yes
15174
15175 # hardcode_minus_L: Not really in the search PATH,
15176 # but as the default location of the library.
15177 hardcode_minus_L_F77=yes
15178 export_dynamic_flag_spec_F77='${wl}-E'
15179 ;;
15180
15181 hpux10*)
15182 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15183 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15184 else
15185 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15186 fi
15187 if test "$with_gnu_ld" = no; then
15188 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15189 hardcode_libdir_separator_F77=:
15190
15191 hardcode_direct_F77=yes
15192 export_dynamic_flag_spec_F77='${wl}-E'
15193
15194 # hardcode_minus_L: Not really in the search PATH,
15195 # but as the default location of the library.
15196 hardcode_minus_L_F77=yes
15197 fi
15198 ;;
15199
15200 hpux11*)
15201 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15202 case $host_cpu in
15203 hppa*64*)
15204 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15205 ;;
15206 ia64*)
15207 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15208 ;;
15209 *)
15210 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15211 ;;
15212 esac
15213 else
15214 case $host_cpu in
15215 hppa*64*)
15216 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15217 ;;
15218 ia64*)
15219 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15220 ;;
15221 *)
15222 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15223 ;;
15224 esac
15225 fi
15226 if test "$with_gnu_ld" = no; then
15227 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15228 hardcode_libdir_separator_F77=:
15229
15230 case $host_cpu in
15231 hppa*64*|ia64*)
15232 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15233 hardcode_direct_F77=no
15234 hardcode_shlibpath_var_F77=no
15235 ;;
15236 *)
15237 hardcode_direct_F77=yes
15238 export_dynamic_flag_spec_F77='${wl}-E'
15239
15240 # hardcode_minus_L: Not really in the search PATH,
15241 # but as the default location of the library.
15242 hardcode_minus_L_F77=yes
15243 ;;
15244 esac
15245 fi
15246 ;;
15247
15248 irix5* | irix6* | nonstopux*)
15249 if test "$GCC" = yes; then
15250 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'
15251 else
15252 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'
15253 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15254 fi
15255 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15256 hardcode_libdir_separator_F77=:
15257 link_all_deplibs_F77=yes
15258 ;;
15259
15260 netbsd* | netbsdelf*-gnu)
15261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15262 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15263 else
15264 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15265 fi
15266 hardcode_libdir_flag_spec_F77='-R$libdir'
15267 hardcode_direct_F77=yes
15268 hardcode_shlibpath_var_F77=no
15269 ;;
15270
15271 newsos6)
15272 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15273 hardcode_direct_F77=yes
15274 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15275 hardcode_libdir_separator_F77=:
15276 hardcode_shlibpath_var_F77=no
15277 ;;
15278
15279 openbsd*)
15280 hardcode_direct_F77=yes
15281 hardcode_shlibpath_var_F77=no
15282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15283 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15284 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15285 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15286 export_dynamic_flag_spec_F77='${wl}-E'
15287 else
15288 case $host_os in
15289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15290 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15291 hardcode_libdir_flag_spec_F77='-R$libdir'
15292 ;;
15293 *)
15294 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15295 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15296 ;;
15297 esac
15298 fi
15299 ;;
15300
15301 os2*)
15302 hardcode_libdir_flag_spec_F77='-L$libdir'
15303 hardcode_minus_L_F77=yes
15304 allow_undefined_flag_F77=unsupported
15305 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'
15306 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15307 ;;
15308
15309 osf3*)
15310 if test "$GCC" = yes; then
15311 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15312 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'
15313 else
15314 allow_undefined_flag_F77=' -expect_unresolved \*'
15315 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'
15316 fi
15317 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15318 hardcode_libdir_separator_F77=:
15319 ;;
15320
15321 osf4* | osf5*) # as osf3* with the addition of -msym flag
15322 if test "$GCC" = yes; then
15323 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15324 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'
15325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326 else
15327 allow_undefined_flag_F77=' -expect_unresolved \*'
15328 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'
15329 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~
15330 $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'
15331
15332 # Both c and cxx compiler support -rpath directly
15333 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15334 fi
15335 hardcode_libdir_separator_F77=:
15336 ;;
15337
15338 solaris*)
15339 no_undefined_flag_F77=' -z text'
15340 if test "$GCC" = yes; then
15341 wlarc='${wl}'
15342 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15343 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15344 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15345 else
15346 wlarc=''
15347 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15348 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15350 fi
15351 hardcode_libdir_flag_spec_F77='-R$libdir'
15352 hardcode_shlibpath_var_F77=no
15353 case $host_os in
15354 solaris2.[0-5] | solaris2.[0-5].*) ;;
15355 *)
15356 # The compiler driver will combine linker options so we
15357 # cannot just pass the convience library names through
15358 # without $wl, iff we do not link with $LD.
15359 # Luckily, gcc supports the same syntax we need for Sun Studio.
15360 # Supported since Solaris 2.6 (maybe 2.5.1?)
15361 case $wlarc in
15362 '')
15363 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15364 *)
15365 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' ;;
15366 esac ;;
15367 esac
15368 link_all_deplibs_F77=yes
15369 ;;
15370
15371 sunos4*)
15372 if test "x$host_vendor" = xsequent; then
15373 # Use $CC to link under sequent, because it throws in some extra .o
15374 # files that make .init and .fini sections work.
15375 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15376 else
15377 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15378 fi
15379 hardcode_libdir_flag_spec_F77='-L$libdir'
15380 hardcode_direct_F77=yes
15381 hardcode_minus_L_F77=yes
15382 hardcode_shlibpath_var_F77=no
15383 ;;
15384
15385 sysv4)
15386 case $host_vendor in
15387 sni)
15388 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15389 hardcode_direct_F77=yes # is this really true???
15390 ;;
15391 siemens)
15392 ## LD is ld it makes a PLAMLIB
15393 ## CC just makes a GrossModule.
15394 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15395 reload_cmds_F77='$CC -r -o $output$reload_objs'
15396 hardcode_direct_F77=no
15397 ;;
15398 motorola)
15399 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15400 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15401 ;;
15402 esac
15403 runpath_var='LD_RUN_PATH'
15404 hardcode_shlibpath_var_F77=no
15405 ;;
15406
15407 sysv4.3*)
15408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_shlibpath_var_F77=no
15410 export_dynamic_flag_spec_F77='-Bexport'
15411 ;;
15412
15413 sysv4*MP*)
15414 if test -d /usr/nec; then
15415 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15416 hardcode_shlibpath_var_F77=no
15417 runpath_var=LD_RUN_PATH
15418 hardcode_runpath_var=yes
15419 ld_shlibs_F77=yes
15420 fi
15421 ;;
15422
15423 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15424 no_undefined_flag_F77='${wl}-z,text'
15425 archive_cmds_need_lc_F77=no
15426 hardcode_shlibpath_var_F77=no
15427 runpath_var='LD_RUN_PATH'
15428
15429 if test "$GCC" = yes; then
15430 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15431 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15432 else
15433 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15434 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15435 fi
15436 ;;
15437
15438 sysv5* | sco3.2v5* | sco5v6*)
15439 # Note: We can NOT use -z defs as we might desire, because we do not
15440 # link with -lc, and that would cause any symbols used from libc to
15441 # always be unresolved, which means just about no library would
15442 # ever link correctly. If we're not using GNU ld we use -z text
15443 # though, which does catch some bad symbols but isn't as heavy-handed
15444 # as -z defs.
15445 no_undefined_flag_F77='${wl}-z,text'
15446 allow_undefined_flag_F77='${wl}-z,nodefs'
15447 archive_cmds_need_lc_F77=no
15448 hardcode_shlibpath_var_F77=no
15449 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15450 hardcode_libdir_separator_F77=':'
15451 link_all_deplibs_F77=yes
15452 export_dynamic_flag_spec_F77='${wl}-Bexport'
15453 runpath_var='LD_RUN_PATH'
15454
15455 if test "$GCC" = yes; then
15456 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15457 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15458 else
15459 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15460 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15461 fi
15462 ;;
15463
15464 uts4*)
15465 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466 hardcode_libdir_flag_spec_F77='-L$libdir'
15467 hardcode_shlibpath_var_F77=no
15468 ;;
15469
15470 *)
15471 ld_shlibs_F77=no
15472 ;;
15473 esac
15474 fi
15475
15476 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15477 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15478 test "$ld_shlibs_F77" = no && can_build_shared=no
15479
15480 #
15481 # Do we need to explicitly link libc?
15482 #
15483 case "x$archive_cmds_need_lc_F77" in
15484 x|xyes)
15485 # Assume -lc should be added
15486 archive_cmds_need_lc_F77=yes
15487
15488 if test "$enable_shared" = yes && test "$GCC" = yes; then
15489 case $archive_cmds_F77 in
15490 *'~'*)
15491 # FIXME: we may have to deal with multi-command sequences.
15492 ;;
15493 '$CC '*)
15494 # Test whether the compiler implicitly links with -lc since on some
15495 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15496 # to ld, don't add -lc before -lgcc.
15497 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15498 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15499 $rm conftest*
15500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15501
15502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15503 (eval $ac_compile) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } 2>conftest.err; then
15507 soname=conftest
15508 lib=conftest
15509 libobjs=conftest.$ac_objext
15510 deplibs=
15511 wl=$lt_prog_compiler_wl_F77
15512 pic_flag=$lt_prog_compiler_pic_F77
15513 compiler_flags=-v
15514 linker_flags=-v
15515 verstring=
15516 output_objdir=.
15517 libname=conftest
15518 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15519 allow_undefined_flag_F77=
15520 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15521 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15522 ac_status=$?
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }
15525 then
15526 archive_cmds_need_lc_F77=no
15527 else
15528 archive_cmds_need_lc_F77=yes
15529 fi
15530 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15531 else
15532 cat conftest.err 1>&5
15533 fi
15534 $rm conftest*
15535 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15536 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15537 ;;
15538 esac
15539 fi
15540 ;;
15541 esac
15542
15543 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15544 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15545 library_names_spec=
15546 libname_spec='lib$name'
15547 soname_spec=
15548 shrext_cmds=".so"
15549 postinstall_cmds=
15550 postuninstall_cmds=
15551 finish_cmds=
15552 finish_eval=
15553 shlibpath_var=
15554 shlibpath_overrides_runpath=unknown
15555 version_type=none
15556 dynamic_linker="$host_os ld.so"
15557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15558 if test "$GCC" = yes; then
15559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15561 # if the path contains ";" then we assume it to be the separator
15562 # otherwise default to the standard path separator (i.e. ":") - it is
15563 # assumed that no part of a normal pathname contains ";" but that should
15564 # okay in the real world where ";" in dirpaths is itself problematic.
15565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15566 else
15567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15568 fi
15569 else
15570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15571 fi
15572 need_lib_prefix=unknown
15573 hardcode_into_libs=no
15574
15575 # when you set need_version to no, make sure it does not cause -set_version
15576 # flags to be left without arguments
15577 need_version=unknown
15578
15579 case $host_os in
15580 aix3*)
15581 version_type=linux
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15583 shlibpath_var=LIBPATH
15584
15585 # AIX 3 has no versioning support, so we append a major version to the name.
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 ;;
15588
15589 aix4* | aix5*)
15590 version_type=linux
15591 need_lib_prefix=no
15592 need_version=no
15593 hardcode_into_libs=yes
15594 if test "$host_cpu" = ia64; then
15595 # AIX 5 supports IA64
15596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 else
15599 # With GCC up to 2.95.x, collect2 would create an import file
15600 # for dependence libraries. The import file would start with
15601 # the line `#! .'. This would cause the generated library to
15602 # depend on `.', always an invalid library. This was fixed in
15603 # development snapshots of GCC prior to 3.0.
15604 case $host_os in
15605 aix4 | aix4.[01] | aix4.[01].*)
15606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15607 echo ' yes '
15608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15609 :
15610 else
15611 can_build_shared=no
15612 fi
15613 ;;
15614 esac
15615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15616 # soname into executable. Probably we can add versioning support to
15617 # collect2, so additional links can be useful in future.
15618 if test "$aix_use_runtimelinking" = yes; then
15619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15620 # instead of lib<name>.a to let people know that these are not
15621 # typical AIX shared libraries.
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 else
15624 # We preserve .a as extension for shared libraries through AIX4.2
15625 # and later when we are not doing run time linking.
15626 library_names_spec='${libname}${release}.a $libname.a'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 fi
15629 shlibpath_var=LIBPATH
15630 fi
15631 ;;
15632
15633 amigaos*)
15634 library_names_spec='$libname.ixlibrary $libname.a'
15635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15636 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'
15637 ;;
15638
15639 beos*)
15640 library_names_spec='${libname}${shared_ext}'
15641 dynamic_linker="$host_os ld.so"
15642 shlibpath_var=LIBRARY_PATH
15643 ;;
15644
15645 bsdi[45]*)
15646 version_type=linux
15647 need_version=no
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15654 # the default ld.so.conf also contains /usr/contrib/lib and
15655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15656 # libtool to hard-code these into programs
15657 ;;
15658
15659 cygwin* | mingw* | pw32*)
15660 version_type=windows
15661 shrext_cmds=".dll"
15662 need_version=no
15663 need_lib_prefix=no
15664
15665 case $GCC,$host_os in
15666 yes,cygwin* | yes,mingw* | yes,pw32*)
15667 library_names_spec='$libname.dll.a'
15668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15669 postinstall_cmds='base_file=`basename \${file}`~
15670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15671 dldir=$destdir/`dirname \$dlpath`~
15672 test -d \$dldir || mkdir -p \$dldir~
15673 $install_prog $dir/$dlname \$dldir/$dlname~
15674 chmod a+x \$dldir/$dlname'
15675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15676 dlpath=$dir/\$dldll~
15677 $rm \$dlpath'
15678 shlibpath_overrides_runpath=yes
15679
15680 case $host_os in
15681 cygwin*)
15682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15685 ;;
15686 mingw*)
15687 # MinGW DLLs use traditional 'lib' prefix
15688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15691 # It is most probably a Windows format PATH printed by
15692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15693 # path with ; separators, and with drive letters. We can handle the
15694 # drive letters (cygwin fileutils understands them), so leave them,
15695 # especially as we might pass files found there to a mingw objdump,
15696 # which wouldn't understand a cygwinified path. Ahh.
15697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15698 else
15699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15700 fi
15701 ;;
15702 pw32*)
15703 # pw32 DLLs use 'pw' prefix rather than 'lib'
15704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15705 ;;
15706 esac
15707 ;;
15708
15709 *)
15710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15711 ;;
15712 esac
15713 dynamic_linker='Win32 ld.exe'
15714 # FIXME: first we should search . and the directory the executable is in
15715 shlibpath_var=PATH
15716 ;;
15717
15718 darwin* | rhapsody*)
15719 dynamic_linker="$host_os dyld"
15720 version_type=darwin
15721 need_lib_prefix=no
15722 need_version=no
15723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15724 soname_spec='${libname}${release}${major}$shared_ext'
15725 shlibpath_overrides_runpath=yes
15726 shlibpath_var=DYLD_LIBRARY_PATH
15727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15729 if test "$GCC" = yes; then
15730 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"`
15731 else
15732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15733 fi
15734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15735 ;;
15736
15737 dgux*)
15738 version_type=linux
15739 need_lib_prefix=no
15740 need_version=no
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 ;;
15745
15746 freebsd1*)
15747 dynamic_linker=no
15748 ;;
15749
15750 freebsd* | dragonfly*)
15751 # DragonFly does not have aout. When/if they implement a new
15752 # versioning mechanism, adjust this.
15753 if test -x /usr/bin/objformat; then
15754 objformat=`/usr/bin/objformat`
15755 else
15756 case $host_os in
15757 freebsd[123]*) objformat=aout ;;
15758 *) objformat=elf ;;
15759 esac
15760 fi
15761 version_type=freebsd-$objformat
15762 case $version_type in
15763 freebsd-elf*)
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765 need_version=no
15766 need_lib_prefix=no
15767 ;;
15768 freebsd-*)
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15770 need_version=yes
15771 ;;
15772 esac
15773 shlibpath_var=LD_LIBRARY_PATH
15774 case $host_os in
15775 freebsd2*)
15776 shlibpath_overrides_runpath=yes
15777 ;;
15778 freebsd3.[01]* | freebsdelf3.[01]*)
15779 shlibpath_overrides_runpath=yes
15780 hardcode_into_libs=yes
15781 ;;
15782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15784 shlibpath_overrides_runpath=no
15785 hardcode_into_libs=yes
15786 ;;
15787 freebsd*) # from 4.6 on
15788 shlibpath_overrides_runpath=yes
15789 hardcode_into_libs=yes
15790 ;;
15791 esac
15792 ;;
15793
15794 gnu*)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 hardcode_into_libs=yes
15802 ;;
15803
15804 hpux9* | hpux10* | hpux11*)
15805 # Give a soname corresponding to the major version so that dld.sl refuses to
15806 # link against other versions.
15807 version_type=sunos
15808 need_lib_prefix=no
15809 need_version=no
15810 case $host_cpu in
15811 ia64*)
15812 shrext_cmds='.so'
15813 hardcode_into_libs=yes
15814 dynamic_linker="$host_os dld.so"
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 if test "X$HPUX_IA64_MODE" = X32; then
15820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15821 else
15822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15823 fi
15824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15825 ;;
15826 hppa*64*)
15827 shrext_cmds='.sl'
15828 hardcode_into_libs=yes
15829 dynamic_linker="$host_os dld.sl"
15830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15836 ;;
15837 *)
15838 shrext_cmds='.sl'
15839 dynamic_linker="$host_os dld.sl"
15840 shlibpath_var=SHLIB_PATH
15841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 soname_spec='${libname}${release}${shared_ext}$major'
15844 ;;
15845 esac
15846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15847 postinstall_cmds='chmod 555 $lib'
15848 ;;
15849
15850 interix3*)
15851 version_type=linux
15852 need_lib_prefix=no
15853 need_version=no
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 shlibpath_overrides_runpath=no
15859 hardcode_into_libs=yes
15860 ;;
15861
15862 irix5* | irix6* | nonstopux*)
15863 case $host_os in
15864 nonstopux*) version_type=nonstopux ;;
15865 *)
15866 if test "$lt_cv_prog_gnu_ld" = yes; then
15867 version_type=linux
15868 else
15869 version_type=irix
15870 fi ;;
15871 esac
15872 need_lib_prefix=no
15873 need_version=no
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15876 case $host_os in
15877 irix5* | nonstopux*)
15878 libsuff= shlibsuff=
15879 ;;
15880 *)
15881 case $LD in # libtool.m4 will add one of these switches to LD
15882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15883 libsuff= shlibsuff= libmagic=32-bit;;
15884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15885 libsuff=32 shlibsuff=N32 libmagic=N32;;
15886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15887 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15888 *) libsuff= shlibsuff= libmagic=never-match;;
15889 esac
15890 ;;
15891 esac
15892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15893 shlibpath_overrides_runpath=no
15894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15896 hardcode_into_libs=yes
15897 ;;
15898
15899 # No shared lib support for Linux oldld, aout, or coff.
15900 linux*oldld* | linux*aout* | linux*coff*)
15901 dynamic_linker=no
15902 ;;
15903
15904 # This must be Linux ELF.
15905 linux* | k*bsd*-gnu)
15906 version_type=linux
15907 need_lib_prefix=no
15908 need_version=no
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15912 shlibpath_var=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath=no
15914 # This implies no fast_install, which is unacceptable.
15915 # Some rework will be needed to allow for fast_install
15916 # before this can be enabled.
15917 hardcode_into_libs=yes
15918
15919 # Append ld.so.conf contents to the search path
15920 if test -f /etc/ld.so.conf; then
15921 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' ' '`
15922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15923 fi
15924
15925 # We used to test for /lib/ld.so.1 and disable shared libraries on
15926 # powerpc, because MkLinux only supported shared libraries with the
15927 # GNU dynamic linker. Since this was broken with cross compilers,
15928 # most powerpc-linux boxes support dynamic linking these days and
15929 # people can always --disable-shared, the test was removed, and we
15930 # assume the GNU/Linux dynamic linker is in use.
15931 dynamic_linker='GNU/Linux ld.so'
15932 ;;
15933
15934 netbsdelf*-gnu)
15935 version_type=linux
15936 need_lib_prefix=no
15937 need_version=no
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 shlibpath_var=LD_LIBRARY_PATH
15941 shlibpath_overrides_runpath=no
15942 hardcode_into_libs=yes
15943 dynamic_linker='NetBSD ld.elf_so'
15944 ;;
15945
15946 netbsd*)
15947 version_type=sunos
15948 need_lib_prefix=no
15949 need_version=no
15950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15953 dynamic_linker='NetBSD (a.out) ld.so'
15954 else
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 dynamic_linker='NetBSD ld.elf_so'
15958 fi
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes
15961 hardcode_into_libs=yes
15962 ;;
15963
15964 newsos6)
15965 version_type=linux
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes
15969 ;;
15970
15971 nto-qnx*)
15972 version_type=linux
15973 need_lib_prefix=no
15974 need_version=no
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=yes
15979 ;;
15980
15981 openbsd*)
15982 version_type=sunos
15983 sys_lib_dlsearch_path_spec="/usr/lib"
15984 need_lib_prefix=no
15985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15986 case $host_os in
15987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15988 *) need_version=no ;;
15989 esac
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15992 shlibpath_var=LD_LIBRARY_PATH
15993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15994 case $host_os in
15995 openbsd2.[89] | openbsd2.[89].*)
15996 shlibpath_overrides_runpath=no
15997 ;;
15998 *)
15999 shlibpath_overrides_runpath=yes
16000 ;;
16001 esac
16002 else
16003 shlibpath_overrides_runpath=yes
16004 fi
16005 ;;
16006
16007 os2*)
16008 libname_spec='$name'
16009 shrext_cmds=".dll"
16010 need_lib_prefix=no
16011 library_names_spec='$libname${shared_ext} $libname.a'
16012 dynamic_linker='OS/2 ld.exe'
16013 shlibpath_var=LIBPATH
16014 ;;
16015
16016 osf3* | osf4* | osf5*)
16017 version_type=osf
16018 need_lib_prefix=no
16019 need_version=no
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 shlibpath_var=LD_LIBRARY_PATH
16023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16025 ;;
16026
16027 solaris*)
16028 version_type=linux
16029 need_lib_prefix=no
16030 need_version=no
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 shlibpath_overrides_runpath=yes
16035 hardcode_into_libs=yes
16036 # ldd complains unless libraries are executable
16037 postinstall_cmds='chmod +x $lib'
16038 ;;
16039
16040 sunos4*)
16041 version_type=sunos
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=yes
16046 if test "$with_gnu_ld" = yes; then
16047 need_lib_prefix=no
16048 fi
16049 need_version=yes
16050 ;;
16051
16052 sysv4 | sysv4.3*)
16053 version_type=linux
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 case $host_vendor in
16058 sni)
16059 shlibpath_overrides_runpath=no
16060 need_lib_prefix=no
16061 export_dynamic_flag_spec='${wl}-Blargedynsym'
16062 runpath_var=LD_RUN_PATH
16063 ;;
16064 siemens)
16065 need_lib_prefix=no
16066 ;;
16067 motorola)
16068 need_lib_prefix=no
16069 need_version=no
16070 shlibpath_overrides_runpath=no
16071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16072 ;;
16073 esac
16074 ;;
16075
16076 sysv4*MP*)
16077 if test -d /usr/nec ;then
16078 version_type=linux
16079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16080 soname_spec='$libname${shared_ext}.$major'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 fi
16083 ;;
16084
16085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16086 version_type=freebsd-elf
16087 need_lib_prefix=no
16088 need_version=no
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 hardcode_into_libs=yes
16093 if test "$with_gnu_ld" = yes; then
16094 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16095 shlibpath_overrides_runpath=no
16096 else
16097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16098 shlibpath_overrides_runpath=yes
16099 case $host_os in
16100 sco3.2v5*)
16101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16102 ;;
16103 esac
16104 fi
16105 sys_lib_dlsearch_path_spec='/usr/lib'
16106 ;;
16107
16108 uts4*)
16109 version_type=linux
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 ;;
16114
16115 *)
16116 dynamic_linker=no
16117 ;;
16118 esac
16119 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16120 echo "${ECHO_T}$dynamic_linker" >&6; }
16121 test "$dynamic_linker" = no && can_build_shared=no
16122
16123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16124 if test "$GCC" = yes; then
16125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16126 fi
16127
16128 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16129 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16130 hardcode_action_F77=
16131 if test -n "$hardcode_libdir_flag_spec_F77" || \
16132 test -n "$runpath_var_F77" || \
16133 test "X$hardcode_automatic_F77" = "Xyes" ; then
16134
16135 # We can hardcode non-existant directories.
16136 if test "$hardcode_direct_F77" != no &&
16137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16138 # have to relink, otherwise we might link with an installed library
16139 # when we should be linking with a yet-to-be-installed one
16140 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16141 test "$hardcode_minus_L_F77" != no; then
16142 # Linking always hardcodes the temporary library directory.
16143 hardcode_action_F77=relink
16144 else
16145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16146 hardcode_action_F77=immediate
16147 fi
16148 else
16149 # We cannot hardcode anything, or else we can only hardcode existing
16150 # directories.
16151 hardcode_action_F77=unsupported
16152 fi
16153 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16154 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16155
16156 if test "$hardcode_action_F77" = relink; then
16157 # Fast installation is not supported
16158 enable_fast_install=no
16159 elif test "$shlibpath_overrides_runpath" = yes ||
16160 test "$enable_shared" = no; then
16161 # Fast installation is not necessary
16162 enable_fast_install=needless
16163 fi
16164
16165
16166 # The else clause should only fire when bootstrapping the
16167 # libtool distribution, otherwise you forgot to ship ltmain.sh
16168 # with your package, and you will get complaints that there are
16169 # no rules to generate ltmain.sh.
16170 if test -f "$ltmain"; then
16171 # See if we are running on zsh, and set the options which allow our commands through
16172 # without removal of \ escapes.
16173 if test -n "${ZSH_VERSION+set}" ; then
16174 setopt NO_GLOB_SUBST
16175 fi
16176 # Now quote all the things that may contain metacharacters while being
16177 # careful not to overquote the AC_SUBSTed values. We take copies of the
16178 # variables and quote the copies for generation of the libtool script.
16179 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16180 SED SHELL STRIP \
16181 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16182 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16183 deplibs_check_method reload_flag reload_cmds need_locks \
16184 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16185 lt_cv_sys_global_symbol_to_c_name_address \
16186 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16187 old_postinstall_cmds old_postuninstall_cmds \
16188 compiler_F77 \
16189 CC_F77 \
16190 LD_F77 \
16191 lt_prog_compiler_wl_F77 \
16192 lt_prog_compiler_pic_F77 \
16193 lt_prog_compiler_static_F77 \
16194 lt_prog_compiler_no_builtin_flag_F77 \
16195 export_dynamic_flag_spec_F77 \
16196 thread_safe_flag_spec_F77 \
16197 whole_archive_flag_spec_F77 \
16198 enable_shared_with_static_runtimes_F77 \
16199 old_archive_cmds_F77 \
16200 old_archive_from_new_cmds_F77 \
16201 predep_objects_F77 \
16202 postdep_objects_F77 \
16203 predeps_F77 \
16204 postdeps_F77 \
16205 compiler_lib_search_path_F77 \
16206 archive_cmds_F77 \
16207 archive_expsym_cmds_F77 \
16208 postinstall_cmds_F77 \
16209 postuninstall_cmds_F77 \
16210 old_archive_from_expsyms_cmds_F77 \
16211 allow_undefined_flag_F77 \
16212 no_undefined_flag_F77 \
16213 export_symbols_cmds_F77 \
16214 hardcode_libdir_flag_spec_F77 \
16215 hardcode_libdir_flag_spec_ld_F77 \
16216 hardcode_libdir_separator_F77 \
16217 hardcode_automatic_F77 \
16218 module_cmds_F77 \
16219 module_expsym_cmds_F77 \
16220 lt_cv_prog_compiler_c_o_F77 \
16221 exclude_expsyms_F77 \
16222 include_expsyms_F77; do
16223
16224 case $var in
16225 old_archive_cmds_F77 | \
16226 old_archive_from_new_cmds_F77 | \
16227 archive_cmds_F77 | \
16228 archive_expsym_cmds_F77 | \
16229 module_cmds_F77 | \
16230 module_expsym_cmds_F77 | \
16231 old_archive_from_expsyms_cmds_F77 | \
16232 export_symbols_cmds_F77 | \
16233 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16234 postinstall_cmds | postuninstall_cmds | \
16235 old_postinstall_cmds | old_postuninstall_cmds | \
16236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16237 # Double-quote double-evaled strings.
16238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16239 ;;
16240 *)
16241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16242 ;;
16243 esac
16244 done
16245
16246 case $lt_echo in
16247 *'\$0 --fallback-echo"')
16248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16249 ;;
16250 esac
16251
16252 cfgfile="$ofile"
16253
16254 cat <<__EOF__ >> "$cfgfile"
16255 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16256
16257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16258
16259 # Shell to use when invoking shell scripts.
16260 SHELL=$lt_SHELL
16261
16262 # Whether or not to build shared libraries.
16263 build_libtool_libs=$enable_shared
16264
16265 # Whether or not to build static libraries.
16266 build_old_libs=$enable_static
16267
16268 # Whether or not to add -lc for building shared libraries.
16269 build_libtool_need_lc=$archive_cmds_need_lc_F77
16270
16271 # Whether or not to disallow shared libs when runtime libs are static
16272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16273
16274 # Whether or not to optimize for fast installation.
16275 fast_install=$enable_fast_install
16276
16277 # The host system.
16278 host_alias=$host_alias
16279 host=$host
16280 host_os=$host_os
16281
16282 # The build system.
16283 build_alias=$build_alias
16284 build=$build
16285 build_os=$build_os
16286
16287 # An echo program that does not interpret backslashes.
16288 echo=$lt_echo
16289
16290 # The archiver.
16291 AR=$lt_AR
16292 AR_FLAGS=$lt_AR_FLAGS
16293
16294 # A C compiler.
16295 LTCC=$lt_LTCC
16296
16297 # LTCC compiler flags.
16298 LTCFLAGS=$lt_LTCFLAGS
16299
16300 # A language-specific compiler.
16301 CC=$lt_compiler_F77
16302
16303 # Is the compiler the GNU C compiler?
16304 with_gcc=$GCC_F77
16305
16306 # An ERE matcher.
16307 EGREP=$lt_EGREP
16308
16309 # The linker used to build libraries.
16310 LD=$lt_LD_F77
16311
16312 # Whether we need hard or soft links.
16313 LN_S=$lt_LN_S
16314
16315 # A BSD-compatible nm program.
16316 NM=$lt_NM
16317
16318 # A symbol stripping program
16319 STRIP=$lt_STRIP
16320
16321 # Used to examine libraries when file_magic_cmd begins "file"
16322 MAGIC_CMD=$MAGIC_CMD
16323
16324 # Used on cygwin: DLL creation program.
16325 DLLTOOL="$DLLTOOL"
16326
16327 # Used on cygwin: object dumper.
16328 OBJDUMP="$OBJDUMP"
16329
16330 # Used on cygwin: assembler.
16331 AS="$AS"
16332
16333 # The name of the directory that contains temporary libtool files.
16334 objdir=$objdir
16335
16336 # How to create reloadable object files.
16337 reload_flag=$lt_reload_flag
16338 reload_cmds=$lt_reload_cmds
16339
16340 # How to pass a linker flag through the compiler.
16341 wl=$lt_lt_prog_compiler_wl_F77
16342
16343 # Object file suffix (normally "o").
16344 objext="$ac_objext"
16345
16346 # Old archive suffix (normally "a").
16347 libext="$libext"
16348
16349 # Shared library suffix (normally ".so").
16350 shrext_cmds='$shrext_cmds'
16351
16352 # Executable file suffix (normally "").
16353 exeext="$exeext"
16354
16355 # Additional compiler flags for building library objects.
16356 pic_flag=$lt_lt_prog_compiler_pic_F77
16357 pic_mode=$pic_mode
16358
16359 # What is the maximum length of a command?
16360 max_cmd_len=$lt_cv_sys_max_cmd_len
16361
16362 # Does compiler simultaneously support -c and -o options?
16363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16364
16365 # Must we lock files when doing compilation?
16366 need_locks=$lt_need_locks
16367
16368 # Do we need the lib prefix for modules?
16369 need_lib_prefix=$need_lib_prefix
16370
16371 # Do we need a version for libraries?
16372 need_version=$need_version
16373
16374 # Whether dlopen is supported.
16375 dlopen_support=$enable_dlopen
16376
16377 # Whether dlopen of programs is supported.
16378 dlopen_self=$enable_dlopen_self
16379
16380 # Whether dlopen of statically linked programs is supported.
16381 dlopen_self_static=$enable_dlopen_self_static
16382
16383 # Compiler flag to prevent dynamic linking.
16384 link_static_flag=$lt_lt_prog_compiler_static_F77
16385
16386 # Compiler flag to turn off builtin functions.
16387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16388
16389 # Compiler flag to allow reflexive dlopens.
16390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16391
16392 # Compiler flag to generate shared objects directly from archives.
16393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16394
16395 # Compiler flag to generate thread-safe objects.
16396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16397
16398 # Library versioning type.
16399 version_type=$version_type
16400
16401 # Format of library name prefix.
16402 libname_spec=$lt_libname_spec
16403
16404 # List of archive names. First name is the real one, the rest are links.
16405 # The last name is the one that the linker finds with -lNAME.
16406 library_names_spec=$lt_library_names_spec
16407
16408 # The coded name of the library, if different from the real name.
16409 soname_spec=$lt_soname_spec
16410
16411 # Commands used to build and install an old-style archive.
16412 RANLIB=$lt_RANLIB
16413 old_archive_cmds=$lt_old_archive_cmds_F77
16414 old_postinstall_cmds=$lt_old_postinstall_cmds
16415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16416
16417 # Create an old-style archive from a shared archive.
16418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16419
16420 # Create a temporary old-style archive to link instead of a shared archive.
16421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16422
16423 # Commands used to build and install a shared archive.
16424 archive_cmds=$lt_archive_cmds_F77
16425 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16426 postinstall_cmds=$lt_postinstall_cmds
16427 postuninstall_cmds=$lt_postuninstall_cmds
16428
16429 # Commands used to build a loadable module (assumed same as above if empty)
16430 module_cmds=$lt_module_cmds_F77
16431 module_expsym_cmds=$lt_module_expsym_cmds_F77
16432
16433 # Commands to strip libraries.
16434 old_striplib=$lt_old_striplib
16435 striplib=$lt_striplib
16436
16437 # Dependencies to place before the objects being linked to create a
16438 # shared library.
16439 predep_objects=$lt_predep_objects_F77
16440
16441 # Dependencies to place after the objects being linked to create a
16442 # shared library.
16443 postdep_objects=$lt_postdep_objects_F77
16444
16445 # Dependencies to place before the objects being linked to create a
16446 # shared library.
16447 predeps=$lt_predeps_F77
16448
16449 # Dependencies to place after the objects being linked to create a
16450 # shared library.
16451 postdeps=$lt_postdeps_F77
16452
16453 # The library search path used internally by the compiler when linking
16454 # a shared library.
16455 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16456
16457 # Method to check whether dependent libraries are shared objects.
16458 deplibs_check_method=$lt_deplibs_check_method
16459
16460 # Command to use when deplibs_check_method == file_magic.
16461 file_magic_cmd=$lt_file_magic_cmd
16462
16463 # Flag that allows shared libraries with undefined symbols to be built.
16464 allow_undefined_flag=$lt_allow_undefined_flag_F77
16465
16466 # Flag that forces no undefined symbols.
16467 no_undefined_flag=$lt_no_undefined_flag_F77
16468
16469 # Commands used to finish a libtool library installation in a directory.
16470 finish_cmds=$lt_finish_cmds
16471
16472 # Same as above, but a single script fragment to be evaled but not shown.
16473 finish_eval=$lt_finish_eval
16474
16475 # Take the output of nm and produce a listing of raw symbols and C names.
16476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16477
16478 # Transform the output of nm in a proper C declaration
16479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16480
16481 # Transform the output of nm in a C name address pair
16482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16483
16484 # This is the shared library runtime path variable.
16485 runpath_var=$runpath_var
16486
16487 # This is the shared library path variable.
16488 shlibpath_var=$shlibpath_var
16489
16490 # Is shlibpath searched before the hard-coded library search path?
16491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16492
16493 # How to hardcode a shared library path into an executable.
16494 hardcode_action=$hardcode_action_F77
16495
16496 # Whether we should hardcode library paths into libraries.
16497 hardcode_into_libs=$hardcode_into_libs
16498
16499 # Flag to hardcode \$libdir into a binary during linking.
16500 # This must work even if \$libdir does not exist.
16501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16502
16503 # If ld is used when linking, flag to hardcode \$libdir into
16504 # a binary during linking. This must work even if \$libdir does
16505 # not exist.
16506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16507
16508 # Whether we need a single -rpath flag with a separated argument.
16509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16510
16511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16512 # resulting binary.
16513 hardcode_direct=$hardcode_direct_F77
16514
16515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16516 # resulting binary.
16517 hardcode_minus_L=$hardcode_minus_L_F77
16518
16519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16520 # the resulting binary.
16521 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16522
16523 # Set to yes if building a shared library automatically hardcodes DIR into the library
16524 # and all subsequent libraries and executables linked against it.
16525 hardcode_automatic=$hardcode_automatic_F77
16526
16527 # Variables whose values should be saved in libtool wrapper scripts and
16528 # restored at relink time.
16529 variables_saved_for_relink="$variables_saved_for_relink"
16530
16531 # Whether libtool must link a program against all its dependency libraries.
16532 link_all_deplibs=$link_all_deplibs_F77
16533
16534 # Compile-time system search path for libraries
16535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16536
16537 # Run-time system search path for libraries
16538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16539
16540 # Fix the shell variable \$srcfile for the compiler.
16541 fix_srcfile_path="$fix_srcfile_path_F77"
16542
16543 # Set to yes if exported symbols are required.
16544 always_export_symbols=$always_export_symbols_F77
16545
16546 # The commands to list exported symbols.
16547 export_symbols_cmds=$lt_export_symbols_cmds_F77
16548
16549 # The commands to extract the exported symbol list from a shared archive.
16550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16551
16552 # Symbols that should not be listed in the preloaded symbols.
16553 exclude_expsyms=$lt_exclude_expsyms_F77
16554
16555 # Symbols that must always be exported.
16556 include_expsyms=$lt_include_expsyms_F77
16557
16558 # ### END LIBTOOL TAG CONFIG: $tagname
16559
16560 __EOF__
16561
16562
16563 else
16564 # If there is no Makefile yet, we rely on a make rule to execute
16565 # `config.status --recheck' to rerun these tests and create the
16566 # libtool script then.
16567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16568 if test -f "$ltmain_in"; then
16569 test -f Makefile && make "$ltmain"
16570 fi
16571 fi
16572
16573
16574 ac_ext=c
16575 ac_cpp='$CPP $CPPFLAGS'
16576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16579
16580 CC="$lt_save_CC"
16581
16582 else
16583 tagname=""
16584 fi
16585 ;;
16586
16587 GCJ)
16588 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16589
16590
16591 # Source file extension for Java test sources.
16592 ac_ext=java
16593
16594 # Object file extension for compiled Java test sources.
16595 objext=o
16596 objext_GCJ=$objext
16597
16598 # Code to be used in simple compile tests
16599 lt_simple_compile_test_code="class foo {}\n"
16600
16601 # Code to be used in simple link tests
16602 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16603
16604 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16605
16606 # If no C compiler was specified, use CC.
16607 LTCC=${LTCC-"$CC"}
16608
16609 # If no C compiler flags were specified, use CFLAGS.
16610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16611
16612 # Allow CC to be a program name with arguments.
16613 compiler=$CC
16614
16615
16616 # save warnings/boilerplate of simple test code
16617 ac_outfile=conftest.$ac_objext
16618 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16620 _lt_compiler_boilerplate=`cat conftest.err`
16621 $rm conftest*
16622
16623 ac_outfile=conftest.$ac_objext
16624 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16626 _lt_linker_boilerplate=`cat conftest.err`
16627 $rm conftest*
16628
16629
16630 # Allow CC to be a program name with arguments.
16631 lt_save_CC="$CC"
16632 CC=${GCJ-"gcj"}
16633 compiler=$CC
16634 compiler_GCJ=$CC
16635 for cc_temp in $compiler""; do
16636 case $cc_temp in
16637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16639 \-*) ;;
16640 *) break;;
16641 esac
16642 done
16643 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16644
16645
16646 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16647 archive_cmds_need_lc_GCJ=no
16648
16649 old_archive_cmds_GCJ=$old_archive_cmds
16650
16651
16652 lt_prog_compiler_no_builtin_flag_GCJ=
16653
16654 if test "$GCC" = yes; then
16655 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16656
16657
16658 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663 lt_cv_prog_compiler_rtti_exceptions=no
16664 ac_outfile=conftest.$ac_objext
16665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16666 lt_compiler_flag="-fno-rtti -fno-exceptions"
16667 # Insert the option either (1) after the last *FLAGS variable, or
16668 # (2) before a word containing "conftest.", or (3) at the end.
16669 # Note that $ac_compile itself does not contain backslashes and begins
16670 # with a dollar sign (not a hyphen), so the echo should work correctly.
16671 # The option is referenced via a variable to avoid confusing sed.
16672 lt_compile=`echo "$ac_compile" | $SED \
16673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16675 -e 's:$: $lt_compiler_flag:'`
16676 (eval echo "\"\$as_me:16676: $lt_compile\"" >&5)
16677 (eval "$lt_compile" 2>conftest.err)
16678 ac_status=$?
16679 cat conftest.err >&5
16680 echo "$as_me:16680: \$? = $ac_status" >&5
16681 if (exit $ac_status) && test -s "$ac_outfile"; then
16682 # The compiler can only warn and ignore the option if not recognized
16683 # So say no if there are warnings other than the usual output.
16684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16687 lt_cv_prog_compiler_rtti_exceptions=yes
16688 fi
16689 fi
16690 $rm conftest*
16691
16692 fi
16693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16694 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16695
16696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16697 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16698 else
16699 :
16700 fi
16701
16702 fi
16703
16704 lt_prog_compiler_wl_GCJ=
16705 lt_prog_compiler_pic_GCJ=
16706 lt_prog_compiler_static_GCJ=
16707
16708 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16709 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16710
16711 if test "$GCC" = yes; then
16712 lt_prog_compiler_wl_GCJ='-Wl,'
16713 lt_prog_compiler_static_GCJ='-static'
16714
16715 case $host_os in
16716 aix*)
16717 # All AIX code is PIC.
16718 if test "$host_cpu" = ia64; then
16719 # AIX 5 now supports IA64 processor
16720 lt_prog_compiler_static_GCJ='-Bstatic'
16721 fi
16722 ;;
16723
16724 amigaos*)
16725 # FIXME: we need at least 68020 code to build shared libraries, but
16726 # adding the `-m68020' flag to GCC prevents building anything better,
16727 # like `-m68040'.
16728 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16729 ;;
16730
16731 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16732 # PIC is the default for these OSes.
16733 ;;
16734
16735 mingw* | pw32* | os2*)
16736 # This hack is so that the source file can tell whether it is being
16737 # built for inclusion in a dll (and should export symbols for example).
16738 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16739 ;;
16740
16741 darwin* | rhapsody*)
16742 # PIC is the default on this platform
16743 # Common symbols not allowed in MH_DYLIB files
16744 lt_prog_compiler_pic_GCJ='-fno-common'
16745 ;;
16746
16747 interix3*)
16748 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16749 # Instead, we relocate shared libraries at runtime.
16750 ;;
16751
16752 msdosdjgpp*)
16753 # Just because we use GCC doesn't mean we suddenly get shared libraries
16754 # on systems that don't support them.
16755 lt_prog_compiler_can_build_shared_GCJ=no
16756 enable_shared=no
16757 ;;
16758
16759 sysv4*MP*)
16760 if test -d /usr/nec; then
16761 lt_prog_compiler_pic_GCJ=-Kconform_pic
16762 fi
16763 ;;
16764
16765 hpux*)
16766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16767 # not for PA HP-UX.
16768 case $host_cpu in
16769 hppa*64*|ia64*)
16770 # +Z the default
16771 ;;
16772 *)
16773 lt_prog_compiler_pic_GCJ='-fPIC'
16774 ;;
16775 esac
16776 ;;
16777
16778 *)
16779 lt_prog_compiler_pic_GCJ='-fPIC'
16780 ;;
16781 esac
16782 else
16783 # PORTME Check for flag to pass linker flags through the system compiler.
16784 case $host_os in
16785 aix*)
16786 lt_prog_compiler_wl_GCJ='-Wl,'
16787 if test "$host_cpu" = ia64; then
16788 # AIX 5 now supports IA64 processor
16789 lt_prog_compiler_static_GCJ='-Bstatic'
16790 else
16791 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16792 fi
16793 ;;
16794 darwin*)
16795 # PIC is the default on this platform
16796 # Common symbols not allowed in MH_DYLIB files
16797 case $cc_basename in
16798 xlc*)
16799 lt_prog_compiler_pic_GCJ='-qnocommon'
16800 lt_prog_compiler_wl_GCJ='-Wl,'
16801 ;;
16802 esac
16803 ;;
16804
16805 mingw* | pw32* | os2*)
16806 # This hack is so that the source file can tell whether it is being
16807 # built for inclusion in a dll (and should export symbols for example).
16808 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16809 ;;
16810
16811 hpux9* | hpux10* | hpux11*)
16812 lt_prog_compiler_wl_GCJ='-Wl,'
16813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16814 # not for PA HP-UX.
16815 case $host_cpu in
16816 hppa*64*|ia64*)
16817 # +Z the default
16818 ;;
16819 *)
16820 lt_prog_compiler_pic_GCJ='+Z'
16821 ;;
16822 esac
16823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16824 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16825 ;;
16826
16827 irix5* | irix6* | nonstopux*)
16828 lt_prog_compiler_wl_GCJ='-Wl,'
16829 # PIC (with -KPIC) is the default.
16830 lt_prog_compiler_static_GCJ='-non_shared'
16831 ;;
16832
16833 newsos6)
16834 lt_prog_compiler_pic_GCJ='-KPIC'
16835 lt_prog_compiler_static_GCJ='-Bstatic'
16836 ;;
16837
16838 linux* | k*bsd*-gnu)
16839 case $cc_basename in
16840 icc* | ecc*)
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 lt_prog_compiler_pic_GCJ='-KPIC'
16843 lt_prog_compiler_static_GCJ='-static'
16844 ;;
16845 pgcc* | pgf77* | pgf90* | pgf95*)
16846 # Portland Group compilers (*not* the Pentium gcc compiler,
16847 # which looks to be a dead project)
16848 lt_prog_compiler_wl_GCJ='-Wl,'
16849 lt_prog_compiler_pic_GCJ='-fpic'
16850 lt_prog_compiler_static_GCJ='-Bstatic'
16851 ;;
16852 ccc*)
16853 lt_prog_compiler_wl_GCJ='-Wl,'
16854 # All Alpha code is PIC.
16855 lt_prog_compiler_static_GCJ='-non_shared'
16856 ;;
16857 esac
16858 ;;
16859
16860 osf3* | osf4* | osf5*)
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16862 # All OSF/1 code is PIC.
16863 lt_prog_compiler_static_GCJ='-non_shared'
16864 ;;
16865
16866 solaris*)
16867 lt_prog_compiler_pic_GCJ='-KPIC'
16868 lt_prog_compiler_static_GCJ='-Bstatic'
16869 case $cc_basename in
16870 f77* | f90* | f95*)
16871 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16872 *)
16873 lt_prog_compiler_wl_GCJ='-Wl,';;
16874 esac
16875 ;;
16876
16877 sunos4*)
16878 lt_prog_compiler_wl_GCJ='-Qoption ld '
16879 lt_prog_compiler_pic_GCJ='-PIC'
16880 lt_prog_compiler_static_GCJ='-Bstatic'
16881 ;;
16882
16883 sysv4 | sysv4.2uw2* | sysv4.3*)
16884 lt_prog_compiler_wl_GCJ='-Wl,'
16885 lt_prog_compiler_pic_GCJ='-KPIC'
16886 lt_prog_compiler_static_GCJ='-Bstatic'
16887 ;;
16888
16889 sysv4*MP*)
16890 if test -d /usr/nec ;then
16891 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16892 lt_prog_compiler_static_GCJ='-Bstatic'
16893 fi
16894 ;;
16895
16896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16897 lt_prog_compiler_wl_GCJ='-Wl,'
16898 lt_prog_compiler_pic_GCJ='-KPIC'
16899 lt_prog_compiler_static_GCJ='-Bstatic'
16900 ;;
16901
16902 unicos*)
16903 lt_prog_compiler_wl_GCJ='-Wl,'
16904 lt_prog_compiler_can_build_shared_GCJ=no
16905 ;;
16906
16907 uts4*)
16908 lt_prog_compiler_pic_GCJ='-pic'
16909 lt_prog_compiler_static_GCJ='-Bstatic'
16910 ;;
16911
16912 *)
16913 lt_prog_compiler_can_build_shared_GCJ=no
16914 ;;
16915 esac
16916 fi
16917
16918 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16919 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16920
16921 #
16922 # Check to make sure the PIC flag actually works.
16923 #
16924 if test -n "$lt_prog_compiler_pic_GCJ"; then
16925
16926 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16927 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16928 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931 lt_prog_compiler_pic_works_GCJ=no
16932 ac_outfile=conftest.$ac_objext
16933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16934 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16935 # Insert the option either (1) after the last *FLAGS variable, or
16936 # (2) before a word containing "conftest.", or (3) at the end.
16937 # Note that $ac_compile itself does not contain backslashes and begins
16938 # with a dollar sign (not a hyphen), so the echo should work correctly.
16939 # The option is referenced via a variable to avoid confusing sed.
16940 lt_compile=`echo "$ac_compile" | $SED \
16941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16943 -e 's:$: $lt_compiler_flag:'`
16944 (eval echo "\"\$as_me:16944: $lt_compile\"" >&5)
16945 (eval "$lt_compile" 2>conftest.err)
16946 ac_status=$?
16947 cat conftest.err >&5
16948 echo "$as_me:16948: \$? = $ac_status" >&5
16949 if (exit $ac_status) && test -s "$ac_outfile"; then
16950 # The compiler can only warn and ignore the option if not recognized
16951 # So say no if there are warnings other than the usual output.
16952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16955 lt_prog_compiler_pic_works_GCJ=yes
16956 fi
16957 fi
16958 $rm conftest*
16959
16960 fi
16961 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16962 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16963
16964 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16965 case $lt_prog_compiler_pic_GCJ in
16966 "" | " "*) ;;
16967 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16968 esac
16969 else
16970 lt_prog_compiler_pic_GCJ=
16971 lt_prog_compiler_can_build_shared_GCJ=no
16972 fi
16973
16974 fi
16975 case $host_os in
16976 # For platforms which do not support PIC, -DPIC is meaningless:
16977 *djgpp*)
16978 lt_prog_compiler_pic_GCJ=
16979 ;;
16980 *)
16981 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16982 ;;
16983 esac
16984
16985 #
16986 # Check to make sure the static flag actually works.
16987 #
16988 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16989 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16990 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16991 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994 lt_prog_compiler_static_works_GCJ=no
16995 save_LDFLAGS="$LDFLAGS"
16996 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16997 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16999 # The linker can only warn and ignore the option if not recognized
17000 # So say no if there are warnings
17001 if test -s conftest.err; then
17002 # Append any errors to the config.log.
17003 cat conftest.err 1>&5
17004 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17006 if diff conftest.exp conftest.er2 >/dev/null; then
17007 lt_prog_compiler_static_works_GCJ=yes
17008 fi
17009 else
17010 lt_prog_compiler_static_works_GCJ=yes
17011 fi
17012 fi
17013 $rm conftest*
17014 LDFLAGS="$save_LDFLAGS"
17015
17016 fi
17017 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17018 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17019
17020 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17021 :
17022 else
17023 lt_prog_compiler_static_GCJ=
17024 fi
17025
17026
17027 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17029 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032 lt_cv_prog_compiler_c_o_GCJ=no
17033 $rm -r conftest 2>/dev/null
17034 mkdir conftest
17035 cd conftest
17036 mkdir out
17037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17038
17039 lt_compiler_flag="-o out/conftest2.$ac_objext"
17040 # Insert the option either (1) after the last *FLAGS variable, or
17041 # (2) before a word containing "conftest.", or (3) at the end.
17042 # Note that $ac_compile itself does not contain backslashes and begins
17043 # with a dollar sign (not a hyphen), so the echo should work correctly.
17044 lt_compile=`echo "$ac_compile" | $SED \
17045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17047 -e 's:$: $lt_compiler_flag:'`
17048 (eval echo "\"\$as_me:17048: $lt_compile\"" >&5)
17049 (eval "$lt_compile" 2>out/conftest.err)
17050 ac_status=$?
17051 cat out/conftest.err >&5
17052 echo "$as_me:17052: \$? = $ac_status" >&5
17053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17054 then
17055 # The compiler can only warn and ignore the option if not recognized
17056 # So say no if there are warnings
17057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17060 lt_cv_prog_compiler_c_o_GCJ=yes
17061 fi
17062 fi
17063 chmod u+w . 2>&5
17064 $rm conftest*
17065 # SGI C++ compiler will create directory out/ii_files/ for
17066 # template instantiation
17067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17068 $rm out/* && rmdir out
17069 cd ..
17070 rmdir conftest
17071 $rm conftest*
17072
17073 fi
17074 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17076
17077
17078 hard_links="nottested"
17079 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17080 # do not overwrite the value of need_locks provided by the user
17081 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17083 hard_links=yes
17084 $rm conftest*
17085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17086 touch conftest.a
17087 ln conftest.a conftest.b 2>&5 || hard_links=no
17088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17089 { echo "$as_me:$LINENO: result: $hard_links" >&5
17090 echo "${ECHO_T}$hard_links" >&6; }
17091 if test "$hard_links" = no; then
17092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17094 need_locks=warn
17095 fi
17096 else
17097 need_locks=no
17098 fi
17099
17100 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17102
17103 runpath_var=
17104 allow_undefined_flag_GCJ=
17105 enable_shared_with_static_runtimes_GCJ=no
17106 archive_cmds_GCJ=
17107 archive_expsym_cmds_GCJ=
17108 old_archive_From_new_cmds_GCJ=
17109 old_archive_from_expsyms_cmds_GCJ=
17110 export_dynamic_flag_spec_GCJ=
17111 whole_archive_flag_spec_GCJ=
17112 thread_safe_flag_spec_GCJ=
17113 hardcode_libdir_flag_spec_GCJ=
17114 hardcode_libdir_flag_spec_ld_GCJ=
17115 hardcode_libdir_separator_GCJ=
17116 hardcode_direct_GCJ=no
17117 hardcode_minus_L_GCJ=no
17118 hardcode_shlibpath_var_GCJ=unsupported
17119 link_all_deplibs_GCJ=unknown
17120 hardcode_automatic_GCJ=no
17121 module_cmds_GCJ=
17122 module_expsym_cmds_GCJ=
17123 always_export_symbols_GCJ=no
17124 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17125 # include_expsyms should be a list of space-separated symbols to be *always*
17126 # included in the symbol list
17127 include_expsyms_GCJ=
17128 # exclude_expsyms can be an extended regexp of symbols to exclude
17129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17131 # as well as any symbol that contains `d'.
17132 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17134 # platforms (ab)use it in PIC code, but their linkers get confused if
17135 # the symbol is explicitly referenced. Since portable code cannot
17136 # rely on this symbol name, it's probably fine to never include it in
17137 # preloaded symbol tables.
17138 extract_expsyms_cmds=
17139 # Just being paranoid about ensuring that cc_basename is set.
17140 for cc_temp in $compiler""; do
17141 case $cc_temp in
17142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17144 \-*) ;;
17145 *) break;;
17146 esac
17147 done
17148 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17149
17150 case $host_os in
17151 cygwin* | mingw* | pw32*)
17152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17153 # When not using gcc, we currently assume that we are using
17154 # Microsoft Visual C++.
17155 if test "$GCC" != yes; then
17156 with_gnu_ld=no
17157 fi
17158 ;;
17159 interix*)
17160 # we just hope/assume this is gcc and not c89 (= MSVC++)
17161 with_gnu_ld=yes
17162 ;;
17163 openbsd*)
17164 with_gnu_ld=no
17165 ;;
17166 esac
17167
17168 ld_shlibs_GCJ=yes
17169 if test "$with_gnu_ld" = yes; then
17170 # If archive_cmds runs LD, not CC, wlarc should be empty
17171 wlarc='${wl}'
17172
17173 # Set some defaults for GNU ld with shared library support. These
17174 # are reset later if shared libraries are not supported. Putting them
17175 # here allows them to be overridden if necessary.
17176 runpath_var=LD_RUN_PATH
17177 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17178 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17179 # ancient GNU ld didn't support --whole-archive et. al.
17180 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17181 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17182 else
17183 whole_archive_flag_spec_GCJ=
17184 fi
17185 supports_anon_versioning=no
17186 case `$LD -v 2>/dev/null` in
17187 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17190 *\ 2.11.*) ;; # other 2.11 versions
17191 *) supports_anon_versioning=yes ;;
17192 esac
17193
17194 # See if GNU ld supports shared libraries.
17195 case $host_os in
17196 aix3* | aix4* | aix5*)
17197 # On AIX/PPC, the GNU linker is very broken
17198 if test "$host_cpu" != ia64; then
17199 ld_shlibs_GCJ=no
17200 cat <<EOF 1>&2
17201
17202 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17203 *** to be unable to reliably create shared libraries on AIX.
17204 *** Therefore, libtool is disabling shared libraries support. If you
17205 *** really care for shared libraries, you may want to modify your PATH
17206 *** so that a non-GNU linker is found, and then restart.
17207
17208 EOF
17209 fi
17210 ;;
17211
17212 amigaos*)
17213 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)'
17214 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17215 hardcode_minus_L_GCJ=yes
17216
17217 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17218 # that the semantics of dynamic libraries on AmigaOS, at least up
17219 # to version 4, is to share data among multiple programs linked
17220 # with the same dynamic library. Since this doesn't match the
17221 # behavior of shared libraries on other platforms, we can't use
17222 # them.
17223 ld_shlibs_GCJ=no
17224 ;;
17225
17226 beos*)
17227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17228 allow_undefined_flag_GCJ=unsupported
17229 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17230 # support --undefined. This deserves some investigation. FIXME
17231 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17232 else
17233 ld_shlibs_GCJ=no
17234 fi
17235 ;;
17236
17237 cygwin* | mingw* | pw32*)
17238 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17239 # as there is no search path for DLLs.
17240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17241 allow_undefined_flag_GCJ=unsupported
17242 always_export_symbols_GCJ=no
17243 enable_shared_with_static_runtimes_GCJ=yes
17244 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17245
17246 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17247 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17248 # If the export-symbols file already is a .def file (1st line
17249 # is EXPORTS), use it as is; otherwise, prepend...
17250 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17251 cp $export_symbols $output_objdir/$soname.def;
17252 else
17253 echo EXPORTS > $output_objdir/$soname.def;
17254 cat $export_symbols >> $output_objdir/$soname.def;
17255 fi~
17256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17257 else
17258 ld_shlibs_GCJ=no
17259 fi
17260 ;;
17261
17262 interix3*)
17263 hardcode_direct_GCJ=no
17264 hardcode_shlibpath_var_GCJ=no
17265 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17266 export_dynamic_flag_spec_GCJ='${wl}-E'
17267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17268 # Instead, shared libraries are loaded at an image base (0x10000000 by
17269 # default) and relocated if they conflict, which is a slow very memory
17270 # consuming and fragmenting process. To avoid this, we pick a random,
17271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17273 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'
17274 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'
17275 ;;
17276
17277 linux* | k*bsd*-gnu)
17278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17279 tmp_addflag=
17280 case $cc_basename,$host_cpu in
17281 pgcc*) # Portland Group C compiler
17282 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'
17283 tmp_addflag=' $pic_flag'
17284 ;;
17285 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17286 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'
17287 tmp_addflag=' $pic_flag -Mnomain' ;;
17288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17289 tmp_addflag=' -i_dynamic' ;;
17290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17291 tmp_addflag=' -i_dynamic -nofor_main' ;;
17292 ifc* | ifort*) # Intel Fortran compiler
17293 tmp_addflag=' -nofor_main' ;;
17294 esac
17295 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17296
17297 if test $supports_anon_versioning = yes; then
17298 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17300 $echo "local: *; };" >> $output_objdir/$libname.ver~
17301 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17302 fi
17303 link_all_deplibs_GCJ=no
17304 else
17305 ld_shlibs_GCJ=no
17306 fi
17307 ;;
17308
17309 netbsd* | netbsdelf*-gnu)
17310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17311 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17312 wlarc=
17313 else
17314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17316 fi
17317 ;;
17318
17319 solaris*)
17320 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17321 ld_shlibs_GCJ=no
17322 cat <<EOF 1>&2
17323
17324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17325 *** create shared libraries on Solaris systems. Therefore, libtool
17326 *** is disabling shared libraries support. We urge you to upgrade GNU
17327 *** binutils to release 2.9.1 or newer. Another option is to modify
17328 *** your PATH or compiler configuration so that the native linker is
17329 *** used, and then restart.
17330
17331 EOF
17332 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17333 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17334 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17335 else
17336 ld_shlibs_GCJ=no
17337 fi
17338 ;;
17339
17340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17341 case `$LD -v 2>&1` in
17342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17343 ld_shlibs_GCJ=no
17344 cat <<_LT_EOF 1>&2
17345
17346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17347 *** reliably create shared libraries on SCO systems. Therefore, libtool
17348 *** is disabling shared libraries support. We urge you to upgrade GNU
17349 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17350 *** your PATH or compiler configuration so that the native linker is
17351 *** used, and then restart.
17352
17353 _LT_EOF
17354 ;;
17355 *)
17356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17357 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17358 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17359 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17360 else
17361 ld_shlibs_GCJ=no
17362 fi
17363 ;;
17364 esac
17365 ;;
17366
17367 sunos4*)
17368 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17369 wlarc=
17370 hardcode_direct_GCJ=yes
17371 hardcode_shlibpath_var_GCJ=no
17372 ;;
17373
17374 *)
17375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17378 else
17379 ld_shlibs_GCJ=no
17380 fi
17381 ;;
17382 esac
17383
17384 if test "$ld_shlibs_GCJ" = no; then
17385 runpath_var=
17386 hardcode_libdir_flag_spec_GCJ=
17387 export_dynamic_flag_spec_GCJ=
17388 whole_archive_flag_spec_GCJ=
17389 fi
17390 else
17391 # PORTME fill in a description of your system's linker (not GNU ld)
17392 case $host_os in
17393 aix3*)
17394 allow_undefined_flag_GCJ=unsupported
17395 always_export_symbols_GCJ=yes
17396 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'
17397 # Note: this linker hardcodes the directories in LIBPATH if there
17398 # are no directories specified by -L.
17399 hardcode_minus_L_GCJ=yes
17400 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17401 # Neither direct hardcoding nor static linking is supported with a
17402 # broken collect2.
17403 hardcode_direct_GCJ=unsupported
17404 fi
17405 ;;
17406
17407 aix4* | aix5*)
17408 if test "$host_cpu" = ia64; then
17409 # On IA64, the linker does run time linking by default, so we don't
17410 # have to do anything special.
17411 aix_use_runtimelinking=no
17412 exp_sym_flag='-Bexport'
17413 no_entry_flag=""
17414 else
17415 # If we're using GNU nm, then we don't want the "-C" option.
17416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17417 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17418 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'
17419 else
17420 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'
17421 fi
17422 aix_use_runtimelinking=no
17423
17424 # Test if we are trying to use run time linking or normal
17425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17426 # need to do runtime linking.
17427 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17428 for ld_flag in $LDFLAGS; do
17429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17430 aix_use_runtimelinking=yes
17431 break
17432 fi
17433 done
17434 ;;
17435 esac
17436
17437 exp_sym_flag='-bexport'
17438 no_entry_flag='-bnoentry'
17439 fi
17440
17441 # When large executables or shared objects are built, AIX ld can
17442 # have problems creating the table of contents. If linking a library
17443 # or program results in "error TOC overflow" add -mminimal-toc to
17444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17446
17447 archive_cmds_GCJ=''
17448 hardcode_direct_GCJ=yes
17449 hardcode_libdir_separator_GCJ=':'
17450 link_all_deplibs_GCJ=yes
17451
17452 if test "$GCC" = yes; then
17453 case $host_os in aix4.[012]|aix4.[012].*)
17454 # We only want to do this on AIX 4.2 and lower, the check
17455 # below for broken collect2 doesn't work under 4.3+
17456 collect2name=`${CC} -print-prog-name=collect2`
17457 if test -f "$collect2name" && \
17458 strings "$collect2name" | grep resolve_lib_name >/dev/null
17459 then
17460 # We have reworked collect2
17461 hardcode_direct_GCJ=yes
17462 else
17463 # We have old collect2
17464 hardcode_direct_GCJ=unsupported
17465 # It fails to find uninstalled libraries when the uninstalled
17466 # path is not listed in the libpath. Setting hardcode_minus_L
17467 # to unsupported forces relinking
17468 hardcode_minus_L_GCJ=yes
17469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17470 hardcode_libdir_separator_GCJ=
17471 fi
17472 ;;
17473 esac
17474 shared_flag='-shared'
17475 if test "$aix_use_runtimelinking" = yes; then
17476 shared_flag="$shared_flag "'${wl}-G'
17477 fi
17478 else
17479 # not using gcc
17480 if test "$host_cpu" = ia64; then
17481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17482 # chokes on -Wl,-G. The following line is correct:
17483 shared_flag='-G'
17484 else
17485 if test "$aix_use_runtimelinking" = yes; then
17486 shared_flag='${wl}-G'
17487 else
17488 shared_flag='${wl}-bM:SRE'
17489 fi
17490 fi
17491 fi
17492
17493 # It seems that -bexpall does not export symbols beginning with
17494 # underscore (_), so it is better to generate a list of symbols to export.
17495 always_export_symbols_GCJ=yes
17496 if test "$aix_use_runtimelinking" = yes; then
17497 # Warning - without using the other runtime loading flags (-brtl),
17498 # -berok will link without error, but may produce a broken library.
17499 allow_undefined_flag_GCJ='-berok'
17500 # Determine the default libpath from the value encoded in an empty executable.
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507
17508 int
17509 main ()
17510 {
17511
17512 ;
17513 return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550
17551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17552 }'`
17553 # Check for a 64-bit object if we didn't find anything.
17554 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; }
17555 }'`; fi
17556 else
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17559
17560
17561 fi
17562
17563 rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17566
17567 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17568 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"
17569 else
17570 if test "$host_cpu" = ia64; then
17571 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17572 allow_undefined_flag_GCJ="-z nodefs"
17573 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"
17574 else
17575 # Determine the default libpath from the value encoded in an empty executable.
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582
17583 int
17584 main ()
17585 {
17586
17587 ;
17588 return 0;
17589 }
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_link") 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606 { (case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_try") 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest$ac_exeext'
17616 { (case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_try") 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625
17626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17627 }'`
17628 # Check for a 64-bit object if we didn't find anything.
17629 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; }
17630 }'`; fi
17631 else
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635
17636 fi
17637
17638 rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17641
17642 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17643 # Warning - without using the other run time loading flags,
17644 # -berok will link without error, but may produce a broken library.
17645 no_undefined_flag_GCJ=' ${wl}-bernotok'
17646 allow_undefined_flag_GCJ=' ${wl}-berok'
17647 # Exported symbols can be pulled into shared objects from archives
17648 whole_archive_flag_spec_GCJ='$convenience'
17649 archive_cmds_need_lc_GCJ=yes
17650 # This is similar to how AIX traditionally builds its shared libraries.
17651 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'
17652 fi
17653 fi
17654 ;;
17655
17656 amigaos*)
17657 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)'
17658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17659 hardcode_minus_L_GCJ=yes
17660 # see comment about different semantics on the GNU ld section
17661 ld_shlibs_GCJ=no
17662 ;;
17663
17664 bsdi[45]*)
17665 export_dynamic_flag_spec_GCJ=-rdynamic
17666 ;;
17667
17668 cygwin* | mingw* | pw32*)
17669 # When not using gcc, we currently assume that we are using
17670 # Microsoft Visual C++.
17671 # hardcode_libdir_flag_spec is actually meaningless, as there is
17672 # no search path for DLLs.
17673 hardcode_libdir_flag_spec_GCJ=' '
17674 allow_undefined_flag_GCJ=unsupported
17675 # Tell ltmain to make .lib files, not .a files.
17676 libext=lib
17677 # Tell ltmain to make .dll files, not .so files.
17678 shrext_cmds=".dll"
17679 # FIXME: Setting linknames here is a bad hack.
17680 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17681 # The linker will automatically build a .lib file if we build a DLL.
17682 old_archive_From_new_cmds_GCJ='true'
17683 # FIXME: Should let the user specify the lib program.
17684 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17685 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17686 enable_shared_with_static_runtimes_GCJ=yes
17687 ;;
17688
17689 darwin* | rhapsody*)
17690 case $host_os in
17691 rhapsody* | darwin1.[012])
17692 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17693 ;;
17694 *) # Darwin 1.3 on
17695 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17696 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17697 else
17698 case ${MACOSX_DEPLOYMENT_TARGET} in
17699 10.[012])
17700 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17701 ;;
17702 10.*)
17703 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17704 ;;
17705 esac
17706 fi
17707 ;;
17708 esac
17709 archive_cmds_need_lc_GCJ=no
17710 hardcode_direct_GCJ=no
17711 hardcode_automatic_GCJ=yes
17712 hardcode_shlibpath_var_GCJ=unsupported
17713 whole_archive_flag_spec_GCJ=''
17714 link_all_deplibs_GCJ=yes
17715 if test "$GCC" = yes ; then
17716 output_verbose_link_cmd='echo'
17717 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17718 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17719 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17720 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}'
17721 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}'
17722 else
17723 case $cc_basename in
17724 xlc*)
17725 output_verbose_link_cmd='echo'
17726 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17727 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17728 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17729 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}'
17730 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}'
17731 ;;
17732 *)
17733 ld_shlibs_GCJ=no
17734 ;;
17735 esac
17736 fi
17737 ;;
17738
17739 dgux*)
17740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_shlibpath_var_GCJ=no
17743 ;;
17744
17745 freebsd1*)
17746 ld_shlibs_GCJ=no
17747 ;;
17748
17749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17750 # support. Future versions do this automatically, but an explicit c++rt0.o
17751 # does not break anything, and helps significantly (at the cost of a little
17752 # extra space).
17753 freebsd2.2*)
17754 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17755 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17756 hardcode_direct_GCJ=yes
17757 hardcode_shlibpath_var_GCJ=no
17758 ;;
17759
17760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17761 freebsd2*)
17762 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17763 hardcode_direct_GCJ=yes
17764 hardcode_minus_L_GCJ=yes
17765 hardcode_shlibpath_var_GCJ=no
17766 ;;
17767
17768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17769 freebsd* | dragonfly*)
17770 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17771 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17772 hardcode_direct_GCJ=yes
17773 hardcode_shlibpath_var_GCJ=no
17774 ;;
17775
17776 hpux9*)
17777 if test "$GCC" = yes; then
17778 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'
17779 else
17780 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'
17781 fi
17782 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17783 hardcode_libdir_separator_GCJ=:
17784 hardcode_direct_GCJ=yes
17785
17786 # hardcode_minus_L: Not really in the search PATH,
17787 # but as the default location of the library.
17788 hardcode_minus_L_GCJ=yes
17789 export_dynamic_flag_spec_GCJ='${wl}-E'
17790 ;;
17791
17792 hpux10*)
17793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17794 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17795 else
17796 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17797 fi
17798 if test "$with_gnu_ld" = no; then
17799 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17800 hardcode_libdir_separator_GCJ=:
17801
17802 hardcode_direct_GCJ=yes
17803 export_dynamic_flag_spec_GCJ='${wl}-E'
17804
17805 # hardcode_minus_L: Not really in the search PATH,
17806 # but as the default location of the library.
17807 hardcode_minus_L_GCJ=yes
17808 fi
17809 ;;
17810
17811 hpux11*)
17812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17813 case $host_cpu in
17814 hppa*64*)
17815 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17816 ;;
17817 ia64*)
17818 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17819 ;;
17820 *)
17821 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17822 ;;
17823 esac
17824 else
17825 case $host_cpu in
17826 hppa*64*)
17827 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828 ;;
17829 ia64*)
17830 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17831 ;;
17832 *)
17833 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17834 ;;
17835 esac
17836 fi
17837 if test "$with_gnu_ld" = no; then
17838 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17839 hardcode_libdir_separator_GCJ=:
17840
17841 case $host_cpu in
17842 hppa*64*|ia64*)
17843 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17844 hardcode_direct_GCJ=no
17845 hardcode_shlibpath_var_GCJ=no
17846 ;;
17847 *)
17848 hardcode_direct_GCJ=yes
17849 export_dynamic_flag_spec_GCJ='${wl}-E'
17850
17851 # hardcode_minus_L: Not really in the search PATH,
17852 # but as the default location of the library.
17853 hardcode_minus_L_GCJ=yes
17854 ;;
17855 esac
17856 fi
17857 ;;
17858
17859 irix5* | irix6* | nonstopux*)
17860 if test "$GCC" = yes; then
17861 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'
17862 else
17863 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'
17864 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17865 fi
17866 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17867 hardcode_libdir_separator_GCJ=:
17868 link_all_deplibs_GCJ=yes
17869 ;;
17870
17871 netbsd* | netbsdelf*-gnu)
17872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17874 else
17875 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17876 fi
17877 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17878 hardcode_direct_GCJ=yes
17879 hardcode_shlibpath_var_GCJ=no
17880 ;;
17881
17882 newsos6)
17883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17884 hardcode_direct_GCJ=yes
17885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17886 hardcode_libdir_separator_GCJ=:
17887 hardcode_shlibpath_var_GCJ=no
17888 ;;
17889
17890 openbsd*)
17891 hardcode_direct_GCJ=yes
17892 hardcode_shlibpath_var_GCJ=no
17893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17894 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17895 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17897 export_dynamic_flag_spec_GCJ='${wl}-E'
17898 else
17899 case $host_os in
17900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17902 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17903 ;;
17904 *)
17905 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17907 ;;
17908 esac
17909 fi
17910 ;;
17911
17912 os2*)
17913 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17914 hardcode_minus_L_GCJ=yes
17915 allow_undefined_flag_GCJ=unsupported
17916 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'
17917 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17918 ;;
17919
17920 osf3*)
17921 if test "$GCC" = yes; then
17922 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17923 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'
17924 else
17925 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17926 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'
17927 fi
17928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17929 hardcode_libdir_separator_GCJ=:
17930 ;;
17931
17932 osf4* | osf5*) # as osf3* with the addition of -msym flag
17933 if test "$GCC" = yes; then
17934 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17935 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'
17936 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17937 else
17938 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17939 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'
17940 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~
17941 $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'
17942
17943 # Both c and cxx compiler support -rpath directly
17944 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17945 fi
17946 hardcode_libdir_separator_GCJ=:
17947 ;;
17948
17949 solaris*)
17950 no_undefined_flag_GCJ=' -z text'
17951 if test "$GCC" = yes; then
17952 wlarc='${wl}'
17953 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17954 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17955 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17956 else
17957 wlarc=''
17958 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17959 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17961 fi
17962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963 hardcode_shlibpath_var_GCJ=no
17964 case $host_os in
17965 solaris2.[0-5] | solaris2.[0-5].*) ;;
17966 *)
17967 # The compiler driver will combine linker options so we
17968 # cannot just pass the convience library names through
17969 # without $wl, iff we do not link with $LD.
17970 # Luckily, gcc supports the same syntax we need for Sun Studio.
17971 # Supported since Solaris 2.6 (maybe 2.5.1?)
17972 case $wlarc in
17973 '')
17974 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17975 *)
17976 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' ;;
17977 esac ;;
17978 esac
17979 link_all_deplibs_GCJ=yes
17980 ;;
17981
17982 sunos4*)
17983 if test "x$host_vendor" = xsequent; then
17984 # Use $CC to link under sequent, because it throws in some extra .o
17985 # files that make .init and .fini sections work.
17986 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17987 else
17988 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17989 fi
17990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17991 hardcode_direct_GCJ=yes
17992 hardcode_minus_L_GCJ=yes
17993 hardcode_shlibpath_var_GCJ=no
17994 ;;
17995
17996 sysv4)
17997 case $host_vendor in
17998 sni)
17999 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18000 hardcode_direct_GCJ=yes # is this really true???
18001 ;;
18002 siemens)
18003 ## LD is ld it makes a PLAMLIB
18004 ## CC just makes a GrossModule.
18005 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18006 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18007 hardcode_direct_GCJ=no
18008 ;;
18009 motorola)
18010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18012 ;;
18013 esac
18014 runpath_var='LD_RUN_PATH'
18015 hardcode_shlibpath_var_GCJ=no
18016 ;;
18017
18018 sysv4.3*)
18019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 hardcode_shlibpath_var_GCJ=no
18021 export_dynamic_flag_spec_GCJ='-Bexport'
18022 ;;
18023
18024 sysv4*MP*)
18025 if test -d /usr/nec; then
18026 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027 hardcode_shlibpath_var_GCJ=no
18028 runpath_var=LD_RUN_PATH
18029 hardcode_runpath_var=yes
18030 ld_shlibs_GCJ=yes
18031 fi
18032 ;;
18033
18034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18035 no_undefined_flag_GCJ='${wl}-z,text'
18036 archive_cmds_need_lc_GCJ=no
18037 hardcode_shlibpath_var_GCJ=no
18038 runpath_var='LD_RUN_PATH'
18039
18040 if test "$GCC" = yes; then
18041 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18042 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 else
18044 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18045 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046 fi
18047 ;;
18048
18049 sysv5* | sco3.2v5* | sco5v6*)
18050 # Note: We can NOT use -z defs as we might desire, because we do not
18051 # link with -lc, and that would cause any symbols used from libc to
18052 # always be unresolved, which means just about no library would
18053 # ever link correctly. If we're not using GNU ld we use -z text
18054 # though, which does catch some bad symbols but isn't as heavy-handed
18055 # as -z defs.
18056 no_undefined_flag_GCJ='${wl}-z,text'
18057 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18058 archive_cmds_need_lc_GCJ=no
18059 hardcode_shlibpath_var_GCJ=no
18060 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18061 hardcode_libdir_separator_GCJ=':'
18062 link_all_deplibs_GCJ=yes
18063 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18064 runpath_var='LD_RUN_PATH'
18065
18066 if test "$GCC" = yes; then
18067 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18068 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069 else
18070 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18072 fi
18073 ;;
18074
18075 uts4*)
18076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18078 hardcode_shlibpath_var_GCJ=no
18079 ;;
18080
18081 *)
18082 ld_shlibs_GCJ=no
18083 ;;
18084 esac
18085 fi
18086
18087 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18088 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18089 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18090
18091 #
18092 # Do we need to explicitly link libc?
18093 #
18094 case "x$archive_cmds_need_lc_GCJ" in
18095 x|xyes)
18096 # Assume -lc should be added
18097 archive_cmds_need_lc_GCJ=yes
18098
18099 if test "$enable_shared" = yes && test "$GCC" = yes; then
18100 case $archive_cmds_GCJ in
18101 *'~'*)
18102 # FIXME: we may have to deal with multi-command sequences.
18103 ;;
18104 '$CC '*)
18105 # Test whether the compiler implicitly links with -lc since on some
18106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18107 # to ld, don't add -lc before -lgcc.
18108 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18109 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18110 $rm conftest*
18111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18112
18113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18114 (eval $ac_compile) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } 2>conftest.err; then
18118 soname=conftest
18119 lib=conftest
18120 libobjs=conftest.$ac_objext
18121 deplibs=
18122 wl=$lt_prog_compiler_wl_GCJ
18123 pic_flag=$lt_prog_compiler_pic_GCJ
18124 compiler_flags=-v
18125 linker_flags=-v
18126 verstring=
18127 output_objdir=.
18128 libname=conftest
18129 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18130 allow_undefined_flag_GCJ=
18131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18132 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }
18136 then
18137 archive_cmds_need_lc_GCJ=no
18138 else
18139 archive_cmds_need_lc_GCJ=yes
18140 fi
18141 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18142 else
18143 cat conftest.err 1>&5
18144 fi
18145 $rm conftest*
18146 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18147 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18148 ;;
18149 esac
18150 fi
18151 ;;
18152 esac
18153
18154 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18155 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18156 library_names_spec=
18157 libname_spec='lib$name'
18158 soname_spec=
18159 shrext_cmds=".so"
18160 postinstall_cmds=
18161 postuninstall_cmds=
18162 finish_cmds=
18163 finish_eval=
18164 shlibpath_var=
18165 shlibpath_overrides_runpath=unknown
18166 version_type=none
18167 dynamic_linker="$host_os ld.so"
18168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18169 if test "$GCC" = yes; then
18170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18171 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18172 # if the path contains ";" then we assume it to be the separator
18173 # otherwise default to the standard path separator (i.e. ":") - it is
18174 # assumed that no part of a normal pathname contains ";" but that should
18175 # okay in the real world where ";" in dirpaths is itself problematic.
18176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18177 else
18178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18179 fi
18180 else
18181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18182 fi
18183 need_lib_prefix=unknown
18184 hardcode_into_libs=no
18185
18186 # when you set need_version to no, make sure it does not cause -set_version
18187 # flags to be left without arguments
18188 need_version=unknown
18189
18190 case $host_os in
18191 aix3*)
18192 version_type=linux
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18194 shlibpath_var=LIBPATH
18195
18196 # AIX 3 has no versioning support, so we append a major version to the name.
18197 soname_spec='${libname}${release}${shared_ext}$major'
18198 ;;
18199
18200 aix4* | aix5*)
18201 version_type=linux
18202 need_lib_prefix=no
18203 need_version=no
18204 hardcode_into_libs=yes
18205 if test "$host_cpu" = ia64; then
18206 # AIX 5 supports IA64
18207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 else
18210 # With GCC up to 2.95.x, collect2 would create an import file
18211 # for dependence libraries. The import file would start with
18212 # the line `#! .'. This would cause the generated library to
18213 # depend on `.', always an invalid library. This was fixed in
18214 # development snapshots of GCC prior to 3.0.
18215 case $host_os in
18216 aix4 | aix4.[01] | aix4.[01].*)
18217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18218 echo ' yes '
18219 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18220 :
18221 else
18222 can_build_shared=no
18223 fi
18224 ;;
18225 esac
18226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18227 # soname into executable. Probably we can add versioning support to
18228 # collect2, so additional links can be useful in future.
18229 if test "$aix_use_runtimelinking" = yes; then
18230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18231 # instead of lib<name>.a to let people know that these are not
18232 # typical AIX shared libraries.
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234 else
18235 # We preserve .a as extension for shared libraries through AIX4.2
18236 # and later when we are not doing run time linking.
18237 library_names_spec='${libname}${release}.a $libname.a'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18239 fi
18240 shlibpath_var=LIBPATH
18241 fi
18242 ;;
18243
18244 amigaos*)
18245 library_names_spec='$libname.ixlibrary $libname.a'
18246 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18247 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'
18248 ;;
18249
18250 beos*)
18251 library_names_spec='${libname}${shared_ext}'
18252 dynamic_linker="$host_os ld.so"
18253 shlibpath_var=LIBRARY_PATH
18254 ;;
18255
18256 bsdi[45]*)
18257 version_type=linux
18258 need_version=no
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 soname_spec='${libname}${release}${shared_ext}$major'
18261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18265 # the default ld.so.conf also contains /usr/contrib/lib and
18266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18267 # libtool to hard-code these into programs
18268 ;;
18269
18270 cygwin* | mingw* | pw32*)
18271 version_type=windows
18272 shrext_cmds=".dll"
18273 need_version=no
18274 need_lib_prefix=no
18275
18276 case $GCC,$host_os in
18277 yes,cygwin* | yes,mingw* | yes,pw32*)
18278 library_names_spec='$libname.dll.a'
18279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18280 postinstall_cmds='base_file=`basename \${file}`~
18281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18282 dldir=$destdir/`dirname \$dlpath`~
18283 test -d \$dldir || mkdir -p \$dldir~
18284 $install_prog $dir/$dlname \$dldir/$dlname~
18285 chmod a+x \$dldir/$dlname'
18286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18287 dlpath=$dir/\$dldll~
18288 $rm \$dlpath'
18289 shlibpath_overrides_runpath=yes
18290
18291 case $host_os in
18292 cygwin*)
18293 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18295 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18296 ;;
18297 mingw*)
18298 # MinGW DLLs use traditional 'lib' prefix
18299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18301 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18302 # It is most probably a Windows format PATH printed by
18303 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18304 # path with ; separators, and with drive letters. We can handle the
18305 # drive letters (cygwin fileutils understands them), so leave them,
18306 # especially as we might pass files found there to a mingw objdump,
18307 # which wouldn't understand a cygwinified path. Ahh.
18308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18309 else
18310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18311 fi
18312 ;;
18313 pw32*)
18314 # pw32 DLLs use 'pw' prefix rather than 'lib'
18315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18316 ;;
18317 esac
18318 ;;
18319
18320 *)
18321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18322 ;;
18323 esac
18324 dynamic_linker='Win32 ld.exe'
18325 # FIXME: first we should search . and the directory the executable is in
18326 shlibpath_var=PATH
18327 ;;
18328
18329 darwin* | rhapsody*)
18330 dynamic_linker="$host_os dyld"
18331 version_type=darwin
18332 need_lib_prefix=no
18333 need_version=no
18334 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18335 soname_spec='${libname}${release}${major}$shared_ext'
18336 shlibpath_overrides_runpath=yes
18337 shlibpath_var=DYLD_LIBRARY_PATH
18338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18339 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18340 if test "$GCC" = yes; then
18341 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"`
18342 else
18343 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18344 fi
18345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18346 ;;
18347
18348 dgux*)
18349 version_type=linux
18350 need_lib_prefix=no
18351 need_version=no
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 shlibpath_var=LD_LIBRARY_PATH
18355 ;;
18356
18357 freebsd1*)
18358 dynamic_linker=no
18359 ;;
18360
18361 freebsd* | dragonfly*)
18362 # DragonFly does not have aout. When/if they implement a new
18363 # versioning mechanism, adjust this.
18364 if test -x /usr/bin/objformat; then
18365 objformat=`/usr/bin/objformat`
18366 else
18367 case $host_os in
18368 freebsd[123]*) objformat=aout ;;
18369 *) objformat=elf ;;
18370 esac
18371 fi
18372 version_type=freebsd-$objformat
18373 case $version_type in
18374 freebsd-elf*)
18375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18376 need_version=no
18377 need_lib_prefix=no
18378 ;;
18379 freebsd-*)
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18381 need_version=yes
18382 ;;
18383 esac
18384 shlibpath_var=LD_LIBRARY_PATH
18385 case $host_os in
18386 freebsd2*)
18387 shlibpath_overrides_runpath=yes
18388 ;;
18389 freebsd3.[01]* | freebsdelf3.[01]*)
18390 shlibpath_overrides_runpath=yes
18391 hardcode_into_libs=yes
18392 ;;
18393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18395 shlibpath_overrides_runpath=no
18396 hardcode_into_libs=yes
18397 ;;
18398 freebsd*) # from 4.6 on
18399 shlibpath_overrides_runpath=yes
18400 hardcode_into_libs=yes
18401 ;;
18402 esac
18403 ;;
18404
18405 gnu*)
18406 version_type=linux
18407 need_lib_prefix=no
18408 need_version=no
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18410 soname_spec='${libname}${release}${shared_ext}$major'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 hardcode_into_libs=yes
18413 ;;
18414
18415 hpux9* | hpux10* | hpux11*)
18416 # Give a soname corresponding to the major version so that dld.sl refuses to
18417 # link against other versions.
18418 version_type=sunos
18419 need_lib_prefix=no
18420 need_version=no
18421 case $host_cpu in
18422 ia64*)
18423 shrext_cmds='.so'
18424 hardcode_into_libs=yes
18425 dynamic_linker="$host_os dld.so"
18426 shlibpath_var=LD_LIBRARY_PATH
18427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429 soname_spec='${libname}${release}${shared_ext}$major'
18430 if test "X$HPUX_IA64_MODE" = X32; then
18431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18432 else
18433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18434 fi
18435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18436 ;;
18437 hppa*64*)
18438 shrext_cmds='.sl'
18439 hardcode_into_libs=yes
18440 dynamic_linker="$host_os dld.sl"
18441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18447 ;;
18448 *)
18449 shrext_cmds='.sl'
18450 dynamic_linker="$host_os dld.sl"
18451 shlibpath_var=SHLIB_PATH
18452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 ;;
18456 esac
18457 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18458 postinstall_cmds='chmod 555 $lib'
18459 ;;
18460
18461 interix3*)
18462 version_type=linux
18463 need_lib_prefix=no
18464 need_version=no
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18468 shlibpath_var=LD_LIBRARY_PATH
18469 shlibpath_overrides_runpath=no
18470 hardcode_into_libs=yes
18471 ;;
18472
18473 irix5* | irix6* | nonstopux*)
18474 case $host_os in
18475 nonstopux*) version_type=nonstopux ;;
18476 *)
18477 if test "$lt_cv_prog_gnu_ld" = yes; then
18478 version_type=linux
18479 else
18480 version_type=irix
18481 fi ;;
18482 esac
18483 need_lib_prefix=no
18484 need_version=no
18485 soname_spec='${libname}${release}${shared_ext}$major'
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18487 case $host_os in
18488 irix5* | nonstopux*)
18489 libsuff= shlibsuff=
18490 ;;
18491 *)
18492 case $LD in # libtool.m4 will add one of these switches to LD
18493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18494 libsuff= shlibsuff= libmagic=32-bit;;
18495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18496 libsuff=32 shlibsuff=N32 libmagic=N32;;
18497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18499 *) libsuff= shlibsuff= libmagic=never-match;;
18500 esac
18501 ;;
18502 esac
18503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18504 shlibpath_overrides_runpath=no
18505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18507 hardcode_into_libs=yes
18508 ;;
18509
18510 # No shared lib support for Linux oldld, aout, or coff.
18511 linux*oldld* | linux*aout* | linux*coff*)
18512 dynamic_linker=no
18513 ;;
18514
18515 # This must be Linux ELF.
18516 linux* | k*bsd*-gnu)
18517 version_type=linux
18518 need_lib_prefix=no
18519 need_version=no
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18521 soname_spec='${libname}${release}${shared_ext}$major'
18522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=no
18525 # This implies no fast_install, which is unacceptable.
18526 # Some rework will be needed to allow for fast_install
18527 # before this can be enabled.
18528 hardcode_into_libs=yes
18529
18530 # Append ld.so.conf contents to the search path
18531 if test -f /etc/ld.so.conf; then
18532 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' ' '`
18533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18534 fi
18535
18536 # We used to test for /lib/ld.so.1 and disable shared libraries on
18537 # powerpc, because MkLinux only supported shared libraries with the
18538 # GNU dynamic linker. Since this was broken with cross compilers,
18539 # most powerpc-linux boxes support dynamic linking these days and
18540 # people can always --disable-shared, the test was removed, and we
18541 # assume the GNU/Linux dynamic linker is in use.
18542 dynamic_linker='GNU/Linux ld.so'
18543 ;;
18544
18545 netbsdelf*-gnu)
18546 version_type=linux
18547 need_lib_prefix=no
18548 need_version=no
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18550 soname_spec='${libname}${release}${shared_ext}$major'
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=no
18553 hardcode_into_libs=yes
18554 dynamic_linker='NetBSD ld.elf_so'
18555 ;;
18556
18557 netbsd*)
18558 version_type=sunos
18559 need_lib_prefix=no
18560 need_version=no
18561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18564 dynamic_linker='NetBSD (a.out) ld.so'
18565 else
18566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18567 soname_spec='${libname}${release}${shared_ext}$major'
18568 dynamic_linker='NetBSD ld.elf_so'
18569 fi
18570 shlibpath_var=LD_LIBRARY_PATH
18571 shlibpath_overrides_runpath=yes
18572 hardcode_into_libs=yes
18573 ;;
18574
18575 newsos6)
18576 version_type=linux
18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578 shlibpath_var=LD_LIBRARY_PATH
18579 shlibpath_overrides_runpath=yes
18580 ;;
18581
18582 nto-qnx*)
18583 version_type=linux
18584 need_lib_prefix=no
18585 need_version=no
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18587 soname_spec='${libname}${release}${shared_ext}$major'
18588 shlibpath_var=LD_LIBRARY_PATH
18589 shlibpath_overrides_runpath=yes
18590 ;;
18591
18592 openbsd*)
18593 version_type=sunos
18594 sys_lib_dlsearch_path_spec="/usr/lib"
18595 need_lib_prefix=no
18596 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18597 case $host_os in
18598 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18599 *) need_version=no ;;
18600 esac
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18605 case $host_os in
18606 openbsd2.[89] | openbsd2.[89].*)
18607 shlibpath_overrides_runpath=no
18608 ;;
18609 *)
18610 shlibpath_overrides_runpath=yes
18611 ;;
18612 esac
18613 else
18614 shlibpath_overrides_runpath=yes
18615 fi
18616 ;;
18617
18618 os2*)
18619 libname_spec='$name'
18620 shrext_cmds=".dll"
18621 need_lib_prefix=no
18622 library_names_spec='$libname${shared_ext} $libname.a'
18623 dynamic_linker='OS/2 ld.exe'
18624 shlibpath_var=LIBPATH
18625 ;;
18626
18627 osf3* | osf4* | osf5*)
18628 version_type=osf
18629 need_lib_prefix=no
18630 need_version=no
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18635 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18636 ;;
18637
18638 solaris*)
18639 version_type=linux
18640 need_lib_prefix=no
18641 need_version=no
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643 soname_spec='${libname}${release}${shared_ext}$major'
18644 shlibpath_var=LD_LIBRARY_PATH
18645 shlibpath_overrides_runpath=yes
18646 hardcode_into_libs=yes
18647 # ldd complains unless libraries are executable
18648 postinstall_cmds='chmod +x $lib'
18649 ;;
18650
18651 sunos4*)
18652 version_type=sunos
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 shlibpath_overrides_runpath=yes
18657 if test "$with_gnu_ld" = yes; then
18658 need_lib_prefix=no
18659 fi
18660 need_version=yes
18661 ;;
18662
18663 sysv4 | sysv4.3*)
18664 version_type=linux
18665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18666 soname_spec='${libname}${release}${shared_ext}$major'
18667 shlibpath_var=LD_LIBRARY_PATH
18668 case $host_vendor in
18669 sni)
18670 shlibpath_overrides_runpath=no
18671 need_lib_prefix=no
18672 export_dynamic_flag_spec='${wl}-Blargedynsym'
18673 runpath_var=LD_RUN_PATH
18674 ;;
18675 siemens)
18676 need_lib_prefix=no
18677 ;;
18678 motorola)
18679 need_lib_prefix=no
18680 need_version=no
18681 shlibpath_overrides_runpath=no
18682 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18683 ;;
18684 esac
18685 ;;
18686
18687 sysv4*MP*)
18688 if test -d /usr/nec ;then
18689 version_type=linux
18690 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18691 soname_spec='$libname${shared_ext}.$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 fi
18694 ;;
18695
18696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18697 version_type=freebsd-elf
18698 need_lib_prefix=no
18699 need_version=no
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18701 soname_spec='${libname}${release}${shared_ext}$major'
18702 shlibpath_var=LD_LIBRARY_PATH
18703 hardcode_into_libs=yes
18704 if test "$with_gnu_ld" = yes; then
18705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18706 shlibpath_overrides_runpath=no
18707 else
18708 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18709 shlibpath_overrides_runpath=yes
18710 case $host_os in
18711 sco3.2v5*)
18712 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18713 ;;
18714 esac
18715 fi
18716 sys_lib_dlsearch_path_spec='/usr/lib'
18717 ;;
18718
18719 uts4*)
18720 version_type=linux
18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722 soname_spec='${libname}${release}${shared_ext}$major'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 ;;
18725
18726 *)
18727 dynamic_linker=no
18728 ;;
18729 esac
18730 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18731 echo "${ECHO_T}$dynamic_linker" >&6; }
18732 test "$dynamic_linker" = no && can_build_shared=no
18733
18734 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18735 if test "$GCC" = yes; then
18736 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18737 fi
18738
18739 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18740 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18741 hardcode_action_GCJ=
18742 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18743 test -n "$runpath_var_GCJ" || \
18744 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18745
18746 # We can hardcode non-existant directories.
18747 if test "$hardcode_direct_GCJ" != no &&
18748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18749 # have to relink, otherwise we might link with an installed library
18750 # when we should be linking with a yet-to-be-installed one
18751 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18752 test "$hardcode_minus_L_GCJ" != no; then
18753 # Linking always hardcodes the temporary library directory.
18754 hardcode_action_GCJ=relink
18755 else
18756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18757 hardcode_action_GCJ=immediate
18758 fi
18759 else
18760 # We cannot hardcode anything, or else we can only hardcode existing
18761 # directories.
18762 hardcode_action_GCJ=unsupported
18763 fi
18764 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18765 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18766
18767 if test "$hardcode_action_GCJ" = relink; then
18768 # Fast installation is not supported
18769 enable_fast_install=no
18770 elif test "$shlibpath_overrides_runpath" = yes ||
18771 test "$enable_shared" = no; then
18772 # Fast installation is not necessary
18773 enable_fast_install=needless
18774 fi
18775
18776
18777 # The else clause should only fire when bootstrapping the
18778 # libtool distribution, otherwise you forgot to ship ltmain.sh
18779 # with your package, and you will get complaints that there are
18780 # no rules to generate ltmain.sh.
18781 if test -f "$ltmain"; then
18782 # See if we are running on zsh, and set the options which allow our commands through
18783 # without removal of \ escapes.
18784 if test -n "${ZSH_VERSION+set}" ; then
18785 setopt NO_GLOB_SUBST
18786 fi
18787 # Now quote all the things that may contain metacharacters while being
18788 # careful not to overquote the AC_SUBSTed values. We take copies of the
18789 # variables and quote the copies for generation of the libtool script.
18790 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18791 SED SHELL STRIP \
18792 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18793 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18794 deplibs_check_method reload_flag reload_cmds need_locks \
18795 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18796 lt_cv_sys_global_symbol_to_c_name_address \
18797 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18798 old_postinstall_cmds old_postuninstall_cmds \
18799 compiler_GCJ \
18800 CC_GCJ \
18801 LD_GCJ \
18802 lt_prog_compiler_wl_GCJ \
18803 lt_prog_compiler_pic_GCJ \
18804 lt_prog_compiler_static_GCJ \
18805 lt_prog_compiler_no_builtin_flag_GCJ \
18806 export_dynamic_flag_spec_GCJ \
18807 thread_safe_flag_spec_GCJ \
18808 whole_archive_flag_spec_GCJ \
18809 enable_shared_with_static_runtimes_GCJ \
18810 old_archive_cmds_GCJ \
18811 old_archive_from_new_cmds_GCJ \
18812 predep_objects_GCJ \
18813 postdep_objects_GCJ \
18814 predeps_GCJ \
18815 postdeps_GCJ \
18816 compiler_lib_search_path_GCJ \
18817 archive_cmds_GCJ \
18818 archive_expsym_cmds_GCJ \
18819 postinstall_cmds_GCJ \
18820 postuninstall_cmds_GCJ \
18821 old_archive_from_expsyms_cmds_GCJ \
18822 allow_undefined_flag_GCJ \
18823 no_undefined_flag_GCJ \
18824 export_symbols_cmds_GCJ \
18825 hardcode_libdir_flag_spec_GCJ \
18826 hardcode_libdir_flag_spec_ld_GCJ \
18827 hardcode_libdir_separator_GCJ \
18828 hardcode_automatic_GCJ \
18829 module_cmds_GCJ \
18830 module_expsym_cmds_GCJ \
18831 lt_cv_prog_compiler_c_o_GCJ \
18832 exclude_expsyms_GCJ \
18833 include_expsyms_GCJ; do
18834
18835 case $var in
18836 old_archive_cmds_GCJ | \
18837 old_archive_from_new_cmds_GCJ | \
18838 archive_cmds_GCJ | \
18839 archive_expsym_cmds_GCJ | \
18840 module_cmds_GCJ | \
18841 module_expsym_cmds_GCJ | \
18842 old_archive_from_expsyms_cmds_GCJ | \
18843 export_symbols_cmds_GCJ | \
18844 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18845 postinstall_cmds | postuninstall_cmds | \
18846 old_postinstall_cmds | old_postuninstall_cmds | \
18847 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18848 # Double-quote double-evaled strings.
18849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18850 ;;
18851 *)
18852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18853 ;;
18854 esac
18855 done
18856
18857 case $lt_echo in
18858 *'\$0 --fallback-echo"')
18859 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18860 ;;
18861 esac
18862
18863 cfgfile="$ofile"
18864
18865 cat <<__EOF__ >> "$cfgfile"
18866 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18867
18868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18869
18870 # Shell to use when invoking shell scripts.
18871 SHELL=$lt_SHELL
18872
18873 # Whether or not to build shared libraries.
18874 build_libtool_libs=$enable_shared
18875
18876 # Whether or not to build static libraries.
18877 build_old_libs=$enable_static
18878
18879 # Whether or not to add -lc for building shared libraries.
18880 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18881
18882 # Whether or not to disallow shared libs when runtime libs are static
18883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18884
18885 # Whether or not to optimize for fast installation.
18886 fast_install=$enable_fast_install
18887
18888 # The host system.
18889 host_alias=$host_alias
18890 host=$host
18891 host_os=$host_os
18892
18893 # The build system.
18894 build_alias=$build_alias
18895 build=$build
18896 build_os=$build_os
18897
18898 # An echo program that does not interpret backslashes.
18899 echo=$lt_echo
18900
18901 # The archiver.
18902 AR=$lt_AR
18903 AR_FLAGS=$lt_AR_FLAGS
18904
18905 # A C compiler.
18906 LTCC=$lt_LTCC
18907
18908 # LTCC compiler flags.
18909 LTCFLAGS=$lt_LTCFLAGS
18910
18911 # A language-specific compiler.
18912 CC=$lt_compiler_GCJ
18913
18914 # Is the compiler the GNU C compiler?
18915 with_gcc=$GCC_GCJ
18916
18917 # An ERE matcher.
18918 EGREP=$lt_EGREP
18919
18920 # The linker used to build libraries.
18921 LD=$lt_LD_GCJ
18922
18923 # Whether we need hard or soft links.
18924 LN_S=$lt_LN_S
18925
18926 # A BSD-compatible nm program.
18927 NM=$lt_NM
18928
18929 # A symbol stripping program
18930 STRIP=$lt_STRIP
18931
18932 # Used to examine libraries when file_magic_cmd begins "file"
18933 MAGIC_CMD=$MAGIC_CMD
18934
18935 # Used on cygwin: DLL creation program.
18936 DLLTOOL="$DLLTOOL"
18937
18938 # Used on cygwin: object dumper.
18939 OBJDUMP="$OBJDUMP"
18940
18941 # Used on cygwin: assembler.
18942 AS="$AS"
18943
18944 # The name of the directory that contains temporary libtool files.
18945 objdir=$objdir
18946
18947 # How to create reloadable object files.
18948 reload_flag=$lt_reload_flag
18949 reload_cmds=$lt_reload_cmds
18950
18951 # How to pass a linker flag through the compiler.
18952 wl=$lt_lt_prog_compiler_wl_GCJ
18953
18954 # Object file suffix (normally "o").
18955 objext="$ac_objext"
18956
18957 # Old archive suffix (normally "a").
18958 libext="$libext"
18959
18960 # Shared library suffix (normally ".so").
18961 shrext_cmds='$shrext_cmds'
18962
18963 # Executable file suffix (normally "").
18964 exeext="$exeext"
18965
18966 # Additional compiler flags for building library objects.
18967 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18968 pic_mode=$pic_mode
18969
18970 # What is the maximum length of a command?
18971 max_cmd_len=$lt_cv_sys_max_cmd_len
18972
18973 # Does compiler simultaneously support -c and -o options?
18974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18975
18976 # Must we lock files when doing compilation?
18977 need_locks=$lt_need_locks
18978
18979 # Do we need the lib prefix for modules?
18980 need_lib_prefix=$need_lib_prefix
18981
18982 # Do we need a version for libraries?
18983 need_version=$need_version
18984
18985 # Whether dlopen is supported.
18986 dlopen_support=$enable_dlopen
18987
18988 # Whether dlopen of programs is supported.
18989 dlopen_self=$enable_dlopen_self
18990
18991 # Whether dlopen of statically linked programs is supported.
18992 dlopen_self_static=$enable_dlopen_self_static
18993
18994 # Compiler flag to prevent dynamic linking.
18995 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18996
18997 # Compiler flag to turn off builtin functions.
18998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18999
19000 # Compiler flag to allow reflexive dlopens.
19001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19002
19003 # Compiler flag to generate shared objects directly from archives.
19004 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19005
19006 # Compiler flag to generate thread-safe objects.
19007 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19008
19009 # Library versioning type.
19010 version_type=$version_type
19011
19012 # Format of library name prefix.
19013 libname_spec=$lt_libname_spec
19014
19015 # List of archive names. First name is the real one, the rest are links.
19016 # The last name is the one that the linker finds with -lNAME.
19017 library_names_spec=$lt_library_names_spec
19018
19019 # The coded name of the library, if different from the real name.
19020 soname_spec=$lt_soname_spec
19021
19022 # Commands used to build and install an old-style archive.
19023 RANLIB=$lt_RANLIB
19024 old_archive_cmds=$lt_old_archive_cmds_GCJ
19025 old_postinstall_cmds=$lt_old_postinstall_cmds
19026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19027
19028 # Create an old-style archive from a shared archive.
19029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19030
19031 # Create a temporary old-style archive to link instead of a shared archive.
19032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19033
19034 # Commands used to build and install a shared archive.
19035 archive_cmds=$lt_archive_cmds_GCJ
19036 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19037 postinstall_cmds=$lt_postinstall_cmds
19038 postuninstall_cmds=$lt_postuninstall_cmds
19039
19040 # Commands used to build a loadable module (assumed same as above if empty)
19041 module_cmds=$lt_module_cmds_GCJ
19042 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19043
19044 # Commands to strip libraries.
19045 old_striplib=$lt_old_striplib
19046 striplib=$lt_striplib
19047
19048 # Dependencies to place before the objects being linked to create a
19049 # shared library.
19050 predep_objects=$lt_predep_objects_GCJ
19051
19052 # Dependencies to place after the objects being linked to create a
19053 # shared library.
19054 postdep_objects=$lt_postdep_objects_GCJ
19055
19056 # Dependencies to place before the objects being linked to create a
19057 # shared library.
19058 predeps=$lt_predeps_GCJ
19059
19060 # Dependencies to place after the objects being linked to create a
19061 # shared library.
19062 postdeps=$lt_postdeps_GCJ
19063
19064 # The library search path used internally by the compiler when linking
19065 # a shared library.
19066 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19067
19068 # Method to check whether dependent libraries are shared objects.
19069 deplibs_check_method=$lt_deplibs_check_method
19070
19071 # Command to use when deplibs_check_method == file_magic.
19072 file_magic_cmd=$lt_file_magic_cmd
19073
19074 # Flag that allows shared libraries with undefined symbols to be built.
19075 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19076
19077 # Flag that forces no undefined symbols.
19078 no_undefined_flag=$lt_no_undefined_flag_GCJ
19079
19080 # Commands used to finish a libtool library installation in a directory.
19081 finish_cmds=$lt_finish_cmds
19082
19083 # Same as above, but a single script fragment to be evaled but not shown.
19084 finish_eval=$lt_finish_eval
19085
19086 # Take the output of nm and produce a listing of raw symbols and C names.
19087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19088
19089 # Transform the output of nm in a proper C declaration
19090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19091
19092 # Transform the output of nm in a C name address pair
19093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19094
19095 # This is the shared library runtime path variable.
19096 runpath_var=$runpath_var
19097
19098 # This is the shared library path variable.
19099 shlibpath_var=$shlibpath_var
19100
19101 # Is shlibpath searched before the hard-coded library search path?
19102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19103
19104 # How to hardcode a shared library path into an executable.
19105 hardcode_action=$hardcode_action_GCJ
19106
19107 # Whether we should hardcode library paths into libraries.
19108 hardcode_into_libs=$hardcode_into_libs
19109
19110 # Flag to hardcode \$libdir into a binary during linking.
19111 # This must work even if \$libdir does not exist.
19112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19113
19114 # If ld is used when linking, flag to hardcode \$libdir into
19115 # a binary during linking. This must work even if \$libdir does
19116 # not exist.
19117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19118
19119 # Whether we need a single -rpath flag with a separated argument.
19120 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19121
19122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19123 # resulting binary.
19124 hardcode_direct=$hardcode_direct_GCJ
19125
19126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19127 # resulting binary.
19128 hardcode_minus_L=$hardcode_minus_L_GCJ
19129
19130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19131 # the resulting binary.
19132 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19133
19134 # Set to yes if building a shared library automatically hardcodes DIR into the library
19135 # and all subsequent libraries and executables linked against it.
19136 hardcode_automatic=$hardcode_automatic_GCJ
19137
19138 # Variables whose values should be saved in libtool wrapper scripts and
19139 # restored at relink time.
19140 variables_saved_for_relink="$variables_saved_for_relink"
19141
19142 # Whether libtool must link a program against all its dependency libraries.
19143 link_all_deplibs=$link_all_deplibs_GCJ
19144
19145 # Compile-time system search path for libraries
19146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19147
19148 # Run-time system search path for libraries
19149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19150
19151 # Fix the shell variable \$srcfile for the compiler.
19152 fix_srcfile_path="$fix_srcfile_path_GCJ"
19153
19154 # Set to yes if exported symbols are required.
19155 always_export_symbols=$always_export_symbols_GCJ
19156
19157 # The commands to list exported symbols.
19158 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19159
19160 # The commands to extract the exported symbol list from a shared archive.
19161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19162
19163 # Symbols that should not be listed in the preloaded symbols.
19164 exclude_expsyms=$lt_exclude_expsyms_GCJ
19165
19166 # Symbols that must always be exported.
19167 include_expsyms=$lt_include_expsyms_GCJ
19168
19169 # ### END LIBTOOL TAG CONFIG: $tagname
19170
19171 __EOF__
19172
19173
19174 else
19175 # If there is no Makefile yet, we rely on a make rule to execute
19176 # `config.status --recheck' to rerun these tests and create the
19177 # libtool script then.
19178 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19179 if test -f "$ltmain_in"; then
19180 test -f Makefile && make "$ltmain"
19181 fi
19182 fi
19183
19184
19185 ac_ext=c
19186 ac_cpp='$CPP $CPPFLAGS'
19187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19190
19191 CC="$lt_save_CC"
19192
19193 else
19194 tagname=""
19195 fi
19196 ;;
19197
19198 RC)
19199
19200
19201 # Source file extension for RC test sources.
19202 ac_ext=rc
19203
19204 # Object file extension for compiled RC test sources.
19205 objext=o
19206 objext_RC=$objext
19207
19208 # Code to be used in simple compile tests
19209 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19210
19211 # Code to be used in simple link tests
19212 lt_simple_link_test_code="$lt_simple_compile_test_code"
19213
19214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19215
19216 # If no C compiler was specified, use CC.
19217 LTCC=${LTCC-"$CC"}
19218
19219 # If no C compiler flags were specified, use CFLAGS.
19220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19221
19222 # Allow CC to be a program name with arguments.
19223 compiler=$CC
19224
19225
19226 # save warnings/boilerplate of simple test code
19227 ac_outfile=conftest.$ac_objext
19228 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19229 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19230 _lt_compiler_boilerplate=`cat conftest.err`
19231 $rm conftest*
19232
19233 ac_outfile=conftest.$ac_objext
19234 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19235 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19236 _lt_linker_boilerplate=`cat conftest.err`
19237 $rm conftest*
19238
19239
19240 # Allow CC to be a program name with arguments.
19241 lt_save_CC="$CC"
19242 CC=${RC-"windres"}
19243 compiler=$CC
19244 compiler_RC=$CC
19245 for cc_temp in $compiler""; do
19246 case $cc_temp in
19247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19249 \-*) ;;
19250 *) break;;
19251 esac
19252 done
19253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19254
19255 lt_cv_prog_compiler_c_o_RC=yes
19256
19257 # The else clause should only fire when bootstrapping the
19258 # libtool distribution, otherwise you forgot to ship ltmain.sh
19259 # with your package, and you will get complaints that there are
19260 # no rules to generate ltmain.sh.
19261 if test -f "$ltmain"; then
19262 # See if we are running on zsh, and set the options which allow our commands through
19263 # without removal of \ escapes.
19264 if test -n "${ZSH_VERSION+set}" ; then
19265 setopt NO_GLOB_SUBST
19266 fi
19267 # Now quote all the things that may contain metacharacters while being
19268 # careful not to overquote the AC_SUBSTed values. We take copies of the
19269 # variables and quote the copies for generation of the libtool script.
19270 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19271 SED SHELL STRIP \
19272 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19273 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19274 deplibs_check_method reload_flag reload_cmds need_locks \
19275 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19276 lt_cv_sys_global_symbol_to_c_name_address \
19277 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19278 old_postinstall_cmds old_postuninstall_cmds \
19279 compiler_RC \
19280 CC_RC \
19281 LD_RC \
19282 lt_prog_compiler_wl_RC \
19283 lt_prog_compiler_pic_RC \
19284 lt_prog_compiler_static_RC \
19285 lt_prog_compiler_no_builtin_flag_RC \
19286 export_dynamic_flag_spec_RC \
19287 thread_safe_flag_spec_RC \
19288 whole_archive_flag_spec_RC \
19289 enable_shared_with_static_runtimes_RC \
19290 old_archive_cmds_RC \
19291 old_archive_from_new_cmds_RC \
19292 predep_objects_RC \
19293 postdep_objects_RC \
19294 predeps_RC \
19295 postdeps_RC \
19296 compiler_lib_search_path_RC \
19297 archive_cmds_RC \
19298 archive_expsym_cmds_RC \
19299 postinstall_cmds_RC \
19300 postuninstall_cmds_RC \
19301 old_archive_from_expsyms_cmds_RC \
19302 allow_undefined_flag_RC \
19303 no_undefined_flag_RC \
19304 export_symbols_cmds_RC \
19305 hardcode_libdir_flag_spec_RC \
19306 hardcode_libdir_flag_spec_ld_RC \
19307 hardcode_libdir_separator_RC \
19308 hardcode_automatic_RC \
19309 module_cmds_RC \
19310 module_expsym_cmds_RC \
19311 lt_cv_prog_compiler_c_o_RC \
19312 exclude_expsyms_RC \
19313 include_expsyms_RC; do
19314
19315 case $var in
19316 old_archive_cmds_RC | \
19317 old_archive_from_new_cmds_RC | \
19318 archive_cmds_RC | \
19319 archive_expsym_cmds_RC | \
19320 module_cmds_RC | \
19321 module_expsym_cmds_RC | \
19322 old_archive_from_expsyms_cmds_RC | \
19323 export_symbols_cmds_RC | \
19324 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19325 postinstall_cmds | postuninstall_cmds | \
19326 old_postinstall_cmds | old_postuninstall_cmds | \
19327 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19328 # Double-quote double-evaled strings.
19329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19330 ;;
19331 *)
19332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19333 ;;
19334 esac
19335 done
19336
19337 case $lt_echo in
19338 *'\$0 --fallback-echo"')
19339 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19340 ;;
19341 esac
19342
19343 cfgfile="$ofile"
19344
19345 cat <<__EOF__ >> "$cfgfile"
19346 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19347
19348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19349
19350 # Shell to use when invoking shell scripts.
19351 SHELL=$lt_SHELL
19352
19353 # Whether or not to build shared libraries.
19354 build_libtool_libs=$enable_shared
19355
19356 # Whether or not to build static libraries.
19357 build_old_libs=$enable_static
19358
19359 # Whether or not to add -lc for building shared libraries.
19360 build_libtool_need_lc=$archive_cmds_need_lc_RC
19361
19362 # Whether or not to disallow shared libs when runtime libs are static
19363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19364
19365 # Whether or not to optimize for fast installation.
19366 fast_install=$enable_fast_install
19367
19368 # The host system.
19369 host_alias=$host_alias
19370 host=$host
19371 host_os=$host_os
19372
19373 # The build system.
19374 build_alias=$build_alias
19375 build=$build
19376 build_os=$build_os
19377
19378 # An echo program that does not interpret backslashes.
19379 echo=$lt_echo
19380
19381 # The archiver.
19382 AR=$lt_AR
19383 AR_FLAGS=$lt_AR_FLAGS
19384
19385 # A C compiler.
19386 LTCC=$lt_LTCC
19387
19388 # LTCC compiler flags.
19389 LTCFLAGS=$lt_LTCFLAGS
19390
19391 # A language-specific compiler.
19392 CC=$lt_compiler_RC
19393
19394 # Is the compiler the GNU C compiler?
19395 with_gcc=$GCC_RC
19396
19397 # An ERE matcher.
19398 EGREP=$lt_EGREP
19399
19400 # The linker used to build libraries.
19401 LD=$lt_LD_RC
19402
19403 # Whether we need hard or soft links.
19404 LN_S=$lt_LN_S
19405
19406 # A BSD-compatible nm program.
19407 NM=$lt_NM
19408
19409 # A symbol stripping program
19410 STRIP=$lt_STRIP
19411
19412 # Used to examine libraries when file_magic_cmd begins "file"
19413 MAGIC_CMD=$MAGIC_CMD
19414
19415 # Used on cygwin: DLL creation program.
19416 DLLTOOL="$DLLTOOL"
19417
19418 # Used on cygwin: object dumper.
19419 OBJDUMP="$OBJDUMP"
19420
19421 # Used on cygwin: assembler.
19422 AS="$AS"
19423
19424 # The name of the directory that contains temporary libtool files.
19425 objdir=$objdir
19426
19427 # How to create reloadable object files.
19428 reload_flag=$lt_reload_flag
19429 reload_cmds=$lt_reload_cmds
19430
19431 # How to pass a linker flag through the compiler.
19432 wl=$lt_lt_prog_compiler_wl_RC
19433
19434 # Object file suffix (normally "o").
19435 objext="$ac_objext"
19436
19437 # Old archive suffix (normally "a").
19438 libext="$libext"
19439
19440 # Shared library suffix (normally ".so").
19441 shrext_cmds='$shrext_cmds'
19442
19443 # Executable file suffix (normally "").
19444 exeext="$exeext"
19445
19446 # Additional compiler flags for building library objects.
19447 pic_flag=$lt_lt_prog_compiler_pic_RC
19448 pic_mode=$pic_mode
19449
19450 # What is the maximum length of a command?
19451 max_cmd_len=$lt_cv_sys_max_cmd_len
19452
19453 # Does compiler simultaneously support -c and -o options?
19454 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19455
19456 # Must we lock files when doing compilation?
19457 need_locks=$lt_need_locks
19458
19459 # Do we need the lib prefix for modules?
19460 need_lib_prefix=$need_lib_prefix
19461
19462 # Do we need a version for libraries?
19463 need_version=$need_version
19464
19465 # Whether dlopen is supported.
19466 dlopen_support=$enable_dlopen
19467
19468 # Whether dlopen of programs is supported.
19469 dlopen_self=$enable_dlopen_self
19470
19471 # Whether dlopen of statically linked programs is supported.
19472 dlopen_self_static=$enable_dlopen_self_static
19473
19474 # Compiler flag to prevent dynamic linking.
19475 link_static_flag=$lt_lt_prog_compiler_static_RC
19476
19477 # Compiler flag to turn off builtin functions.
19478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19479
19480 # Compiler flag to allow reflexive dlopens.
19481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19482
19483 # Compiler flag to generate shared objects directly from archives.
19484 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19485
19486 # Compiler flag to generate thread-safe objects.
19487 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19488
19489 # Library versioning type.
19490 version_type=$version_type
19491
19492 # Format of library name prefix.
19493 libname_spec=$lt_libname_spec
19494
19495 # List of archive names. First name is the real one, the rest are links.
19496 # The last name is the one that the linker finds with -lNAME.
19497 library_names_spec=$lt_library_names_spec
19498
19499 # The coded name of the library, if different from the real name.
19500 soname_spec=$lt_soname_spec
19501
19502 # Commands used to build and install an old-style archive.
19503 RANLIB=$lt_RANLIB
19504 old_archive_cmds=$lt_old_archive_cmds_RC
19505 old_postinstall_cmds=$lt_old_postinstall_cmds
19506 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19507
19508 # Create an old-style archive from a shared archive.
19509 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19510
19511 # Create a temporary old-style archive to link instead of a shared archive.
19512 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19513
19514 # Commands used to build and install a shared archive.
19515 archive_cmds=$lt_archive_cmds_RC
19516 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19517 postinstall_cmds=$lt_postinstall_cmds
19518 postuninstall_cmds=$lt_postuninstall_cmds
19519
19520 # Commands used to build a loadable module (assumed same as above if empty)
19521 module_cmds=$lt_module_cmds_RC
19522 module_expsym_cmds=$lt_module_expsym_cmds_RC
19523
19524 # Commands to strip libraries.
19525 old_striplib=$lt_old_striplib
19526 striplib=$lt_striplib
19527
19528 # Dependencies to place before the objects being linked to create a
19529 # shared library.
19530 predep_objects=$lt_predep_objects_RC
19531
19532 # Dependencies to place after the objects being linked to create a
19533 # shared library.
19534 postdep_objects=$lt_postdep_objects_RC
19535
19536 # Dependencies to place before the objects being linked to create a
19537 # shared library.
19538 predeps=$lt_predeps_RC
19539
19540 # Dependencies to place after the objects being linked to create a
19541 # shared library.
19542 postdeps=$lt_postdeps_RC
19543
19544 # The library search path used internally by the compiler when linking
19545 # a shared library.
19546 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19547
19548 # Method to check whether dependent libraries are shared objects.
19549 deplibs_check_method=$lt_deplibs_check_method
19550
19551 # Command to use when deplibs_check_method == file_magic.
19552 file_magic_cmd=$lt_file_magic_cmd
19553
19554 # Flag that allows shared libraries with undefined symbols to be built.
19555 allow_undefined_flag=$lt_allow_undefined_flag_RC
19556
19557 # Flag that forces no undefined symbols.
19558 no_undefined_flag=$lt_no_undefined_flag_RC
19559
19560 # Commands used to finish a libtool library installation in a directory.
19561 finish_cmds=$lt_finish_cmds
19562
19563 # Same as above, but a single script fragment to be evaled but not shown.
19564 finish_eval=$lt_finish_eval
19565
19566 # Take the output of nm and produce a listing of raw symbols and C names.
19567 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19568
19569 # Transform the output of nm in a proper C declaration
19570 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19571
19572 # Transform the output of nm in a C name address pair
19573 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19574
19575 # This is the shared library runtime path variable.
19576 runpath_var=$runpath_var
19577
19578 # This is the shared library path variable.
19579 shlibpath_var=$shlibpath_var
19580
19581 # Is shlibpath searched before the hard-coded library search path?
19582 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19583
19584 # How to hardcode a shared library path into an executable.
19585 hardcode_action=$hardcode_action_RC
19586
19587 # Whether we should hardcode library paths into libraries.
19588 hardcode_into_libs=$hardcode_into_libs
19589
19590 # Flag to hardcode \$libdir into a binary during linking.
19591 # This must work even if \$libdir does not exist.
19592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19593
19594 # If ld is used when linking, flag to hardcode \$libdir into
19595 # a binary during linking. This must work even if \$libdir does
19596 # not exist.
19597 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19598
19599 # Whether we need a single -rpath flag with a separated argument.
19600 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19601
19602 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19603 # resulting binary.
19604 hardcode_direct=$hardcode_direct_RC
19605
19606 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19607 # resulting binary.
19608 hardcode_minus_L=$hardcode_minus_L_RC
19609
19610 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19611 # the resulting binary.
19612 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19613
19614 # Set to yes if building a shared library automatically hardcodes DIR into the library
19615 # and all subsequent libraries and executables linked against it.
19616 hardcode_automatic=$hardcode_automatic_RC
19617
19618 # Variables whose values should be saved in libtool wrapper scripts and
19619 # restored at relink time.
19620 variables_saved_for_relink="$variables_saved_for_relink"
19621
19622 # Whether libtool must link a program against all its dependency libraries.
19623 link_all_deplibs=$link_all_deplibs_RC
19624
19625 # Compile-time system search path for libraries
19626 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19627
19628 # Run-time system search path for libraries
19629 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19630
19631 # Fix the shell variable \$srcfile for the compiler.
19632 fix_srcfile_path="$fix_srcfile_path_RC"
19633
19634 # Set to yes if exported symbols are required.
19635 always_export_symbols=$always_export_symbols_RC
19636
19637 # The commands to list exported symbols.
19638 export_symbols_cmds=$lt_export_symbols_cmds_RC
19639
19640 # The commands to extract the exported symbol list from a shared archive.
19641 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19642
19643 # Symbols that should not be listed in the preloaded symbols.
19644 exclude_expsyms=$lt_exclude_expsyms_RC
19645
19646 # Symbols that must always be exported.
19647 include_expsyms=$lt_include_expsyms_RC
19648
19649 # ### END LIBTOOL TAG CONFIG: $tagname
19650
19651 __EOF__
19652
19653
19654 else
19655 # If there is no Makefile yet, we rely on a make rule to execute
19656 # `config.status --recheck' to rerun these tests and create the
19657 # libtool script then.
19658 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19659 if test -f "$ltmain_in"; then
19660 test -f Makefile && make "$ltmain"
19661 fi
19662 fi
19663
19664
19665 ac_ext=c
19666 ac_cpp='$CPP $CPPFLAGS'
19667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670
19671 CC="$lt_save_CC"
19672
19673 ;;
19674
19675 *)
19676 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19677 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19678 { (exit 1); exit 1; }; }
19679 ;;
19680 esac
19681
19682 # Append the new tag name to the list of available tags.
19683 if test -n "$tagname" ; then
19684 available_tags="$available_tags $tagname"
19685 fi
19686 fi
19687 done
19688 IFS="$lt_save_ifs"
19689
19690 # Now substitute the updated list of available tags.
19691 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19692 mv "${ofile}T" "$ofile"
19693 chmod +x "$ofile"
19694 else
19695 rm -f "${ofile}T"
19696 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19697 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19698 { (exit 1); exit 1; }; }
19699 fi
19700 fi
19701
19702
19703
19704 # This can be used to rebuild libtool when needed
19705 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19706
19707 # Always use our own libtool.
19708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19709
19710 # Prevent multiple expansion
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732 # Check for X
19733
19734
19735 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19736 if test -n "$ac_tool_prefix"; then
19737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19738 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744 case $PKG_CONFIG in
19745 [\\/]* | ?:[\\/]*)
19746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19747 ;;
19748 *)
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19751 do
19752 IFS=$as_save_IFS
19753 test -z "$as_dir" && as_dir=.
19754 for ac_exec_ext in '' $ac_executable_extensions; do
19755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19758 break 2
19759 fi
19760 done
19761 done
19762 IFS=$as_save_IFS
19763
19764 ;;
19765 esac
19766 fi
19767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19768 if test -n "$PKG_CONFIG"; then
19769 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19770 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19771 else
19772 { echo "$as_me:$LINENO: result: no" >&5
19773 echo "${ECHO_T}no" >&6; }
19774 fi
19775
19776
19777 fi
19778 if test -z "$ac_cv_path_PKG_CONFIG"; then
19779 ac_pt_PKG_CONFIG=$PKG_CONFIG
19780 # Extract the first word of "pkg-config", so it can be a program name with args.
19781 set dummy pkg-config; ac_word=$2
19782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19784 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787 case $ac_pt_PKG_CONFIG in
19788 [\\/]* | ?:[\\/]*)
19789 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19790 ;;
19791 *)
19792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19793 for as_dir in $PATH
19794 do
19795 IFS=$as_save_IFS
19796 test -z "$as_dir" && as_dir=.
19797 for ac_exec_ext in '' $ac_executable_extensions; do
19798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19801 break 2
19802 fi
19803 done
19804 done
19805 IFS=$as_save_IFS
19806
19807 ;;
19808 esac
19809 fi
19810 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19811 if test -n "$ac_pt_PKG_CONFIG"; then
19812 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19813 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19814 else
19815 { echo "$as_me:$LINENO: result: no" >&5
19816 echo "${ECHO_T}no" >&6; }
19817 fi
19818
19819 if test "x$ac_pt_PKG_CONFIG" = x; then
19820 PKG_CONFIG=""
19821 else
19822 case $cross_compiling:$ac_tool_warned in
19823 yes:)
19824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19825 whose name does not start with the host triplet. If you think this
19826 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19828 whose name does not start with the host triplet. If you think this
19829 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19830 ac_tool_warned=yes ;;
19831 esac
19832 PKG_CONFIG=$ac_pt_PKG_CONFIG
19833 fi
19834 else
19835 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19836 fi
19837
19838 fi
19839 if test -n "$PKG_CONFIG"; then
19840 _pkg_min_version=0.9.0
19841 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19842 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19843 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19844 { echo "$as_me:$LINENO: result: yes" >&5
19845 echo "${ECHO_T}yes" >&6; }
19846 else
19847 { echo "$as_me:$LINENO: result: no" >&5
19848 echo "${ECHO_T}no" >&6; }
19849 PKG_CONFIG=""
19850 fi
19851
19852 fi
19853
19854 pkg_failed=no
19855 { echo "$as_me:$LINENO: checking for X" >&5
19856 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19857
19858 if test -n "$PKG_CONFIG"; then
19859 if test -n "$X_CFLAGS"; then
19860 pkg_cv_X_CFLAGS="$X_CFLAGS"
19861 else
19862 if test -n "$PKG_CONFIG" && \
19863 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19864 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; then
19868 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
19869 else
19870 pkg_failed=yes
19871 fi
19872 fi
19873 else
19874 pkg_failed=untried
19875 fi
19876 if test -n "$PKG_CONFIG"; then
19877 if test -n "$X_LIBS"; then
19878 pkg_cv_X_LIBS="$X_LIBS"
19879 else
19880 if test -n "$PKG_CONFIG" && \
19881 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19882 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; then
19886 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
19887 else
19888 pkg_failed=yes
19889 fi
19890 fi
19891 else
19892 pkg_failed=untried
19893 fi
19894
19895
19896
19897 if test $pkg_failed = yes; then
19898
19899 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19900 _pkg_short_errors_supported=yes
19901 else
19902 _pkg_short_errors_supported=no
19903 fi
19904 if test $_pkg_short_errors_supported = yes; then
19905 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
19906 else
19907 X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
19908 fi
19909 # Put the nasty error message in config.log where it belongs
19910 echo "$X_PKG_ERRORS" >&5
19911
19912 { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
19913
19914 $X_PKG_ERRORS
19915
19916 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19917 installed software in a non-standard prefix.
19918
19919 Alternatively, you may set the environment variables X_CFLAGS
19920 and X_LIBS to avoid the need to call pkg-config.
19921 See the pkg-config man page for more details.
19922 " >&5
19923 echo "$as_me: error: Package requirements (x11) were not met:
19924
19925 $X_PKG_ERRORS
19926
19927 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19928 installed software in a non-standard prefix.
19929
19930 Alternatively, you may set the environment variables X_CFLAGS
19931 and X_LIBS to avoid the need to call pkg-config.
19932 See the pkg-config man page for more details.
19933 " >&2;}
19934 { (exit 1); exit 1; }; }
19935 elif test $pkg_failed = untried; then
19936 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19937 is in your PATH or set the PKG_CONFIG environment variable to the full
19938 path to pkg-config.
19939
19940 Alternatively, you may set the environment variables X_CFLAGS
19941 and X_LIBS to avoid the need to call pkg-config.
19942 See the pkg-config man page for more details.
19943
19944 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19945 See \`config.log' for more details." >&5
19946 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19947 is in your PATH or set the PKG_CONFIG environment variable to the full
19948 path to pkg-config.
19949
19950 Alternatively, you may set the environment variables X_CFLAGS
19951 and X_LIBS to avoid the need to call pkg-config.
19952 See the pkg-config man page for more details.
19953
19954 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19955 See \`config.log' for more details." >&2;}
19956 { (exit 1); exit 1; }; }
19957 else
19958 X_CFLAGS=$pkg_cv_X_CFLAGS
19959 X_LIBS=$pkg_cv_X_LIBS
19960 { echo "$as_me:$LINENO: result: yes" >&5
19961 echo "${ECHO_T}yes" >&6; }
19962 :
19963 fi
19964
19965
19966
19967
19968 # Check fixesext configuration, strip extra digits from package version to
19969 # find the required protocol version
19970
19971 FIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19972
19973
19974 pkg_failed=no
19975 { echo "$as_me:$LINENO: checking for FIXESEXT" >&5
19976 echo $ECHO_N "checking for FIXESEXT... $ECHO_C" >&6; }
19977
19978 if test -n "$PKG_CONFIG"; then
19979 if test -n "$FIXESEXT_CFLAGS"; then
19980 pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS"
19981 else
19982 if test -n "$PKG_CONFIG" && \
19983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto\"") >&5
19984 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto") 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; then
19988 pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto fixesproto >= $FIXESEXT_VERSION xextproto" 2>/dev/null`
19989 else
19990 pkg_failed=yes
19991 fi
19992 fi
19993 else
19994 pkg_failed=untried
19995 fi
19996 if test -n "$PKG_CONFIG"; then
19997 if test -n "$FIXESEXT_LIBS"; then
19998 pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS"
19999 else
20000 if test -n "$PKG_CONFIG" && \
20001 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto\"") >&5
20002 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto") 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; then
20006 pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto" 2>/dev/null`
20007 else
20008 pkg_failed=yes
20009 fi
20010 fi
20011 else
20012 pkg_failed=untried
20013 fi
20014
20015
20016
20017 if test $pkg_failed = yes; then
20018
20019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20020 _pkg_short_errors_supported=yes
20021 else
20022 _pkg_short_errors_supported=no
20023 fi
20024 if test $_pkg_short_errors_supported = yes; then
20025 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto"`
20026 else
20027 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto"`
20028 fi
20029 # Put the nasty error message in config.log where it belongs
20030 echo "$FIXESEXT_PKG_ERRORS" >&5
20031
20032 { { echo "$as_me:$LINENO: error: Package requirements (xproto fixesproto >= $FIXESEXT_VERSION xextproto) were not met:
20033
20034 $FIXESEXT_PKG_ERRORS
20035
20036 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20037 installed software in a non-standard prefix.
20038
20039 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
20040 and FIXESEXT_LIBS to avoid the need to call pkg-config.
20041 See the pkg-config man page for more details.
20042 " >&5
20043 echo "$as_me: error: Package requirements (xproto fixesproto >= $FIXESEXT_VERSION xextproto) were not met:
20044
20045 $FIXESEXT_PKG_ERRORS
20046
20047 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20048 installed software in a non-standard prefix.
20049
20050 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
20051 and FIXESEXT_LIBS to avoid the need to call pkg-config.
20052 See the pkg-config man page for more details.
20053 " >&2;}
20054 { (exit 1); exit 1; }; }
20055 elif test $pkg_failed = untried; then
20056 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20057 is in your PATH or set the PKG_CONFIG environment variable to the full
20058 path to pkg-config.
20059
20060 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
20061 and FIXESEXT_LIBS to avoid the need to call pkg-config.
20062 See the pkg-config man page for more details.
20063
20064 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20065 See \`config.log' for more details." >&5
20066 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20067 is in your PATH or set the PKG_CONFIG environment variable to the full
20068 path to pkg-config.
20069
20070 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
20071 and FIXESEXT_LIBS to avoid the need to call pkg-config.
20072 See the pkg-config man page for more details.
20073
20074 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20075 See \`config.log' for more details." >&2;}
20076 { (exit 1); exit 1; }; }
20077 else
20078 FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS
20079 FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS
20080 { echo "$as_me:$LINENO: result: yes" >&5
20081 echo "${ECHO_T}yes" >&6; }
20082 :
20083 fi
20084
20085
20086
20087
20088
20089
20090 if test x$APP_MAN_SUFFIX = x ; then
20091 case $host_os in
20092 linux*) APP_MAN_SUFFIX=1x ;;
20093 *) APP_MAN_SUFFIX=1 ;;
20094 esac
20095 fi
20096 if test x$APP_MAN_DIR = x ; then
20097 case $host_os in
20098 linux*) APP_MAN_DIR='$(mandir)/man1' ;;
20099 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
20100 esac
20101 fi
20102
20103 if test x$LIB_MAN_SUFFIX = x ; then
20104 case $host_os in
20105 linux*) LIB_MAN_SUFFIX=3x ;;
20106 *) LIB_MAN_SUFFIX=3 ;;
20107 esac
20108 fi
20109 if test x$LIB_MAN_DIR = x ; then
20110 case $host_os in
20111 linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
20112 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
20113 esac
20114 fi
20115
20116 if test x$FILE_MAN_SUFFIX = x ; then
20117 case $host_os in
20118 linux*) FILE_MAN_SUFFIX=5x ;;
20119 solaris*) FILE_MAN_SUFFIX=4 ;;
20120 *) FILE_MAN_SUFFIX=5 ;;
20121 esac
20122 fi
20123 if test x$FILE_MAN_DIR = x ; then
20124 case $host_os in
20125 linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
20126 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
20127 esac
20128 fi
20129
20130 # In Imake's linux.cf, the misc man suffix & dir was only changed for
20131 # LinuxDebian, not other Linuxes, so we leave it unchanged here
20132 if test x$MISC_MAN_SUFFIX = x ; then
20133 case $host_os in
20134 # linux*) MISC_MAN_SUFFIX=7x ;;
20135 solaris*) MISC_MAN_SUFFIX=5 ;;
20136 *) MISC_MAN_SUFFIX=7 ;;
20137 esac
20138 fi
20139 if test x$MISC_MAN_DIR = x ; then
20140 case $host_os in
20141 # linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
20142 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
20143 esac
20144 fi
20145
20146 # In Imake's linux.cf, the driver man suffix & dir was only changed for
20147 # LinuxDebian, not other Linuxes, so we leave it unchanged here
20148 if test x$DRIVER_MAN_SUFFIX = x ; then
20149 case $host_os in
20150 # linux*) DRIVER_MAN_SUFFIX=4x ;;
20151 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20152 *) DRIVER_MAN_SUFFIX=4 ;;
20153 esac
20154 fi
20155 if test x$DRIVER_MAN_DIR = x ; then
20156 case $host_os in
20157 # linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
20158 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
20159 esac
20160 fi
20161
20162 if test x$ADMIN_MAN_SUFFIX = x ; then
20163 case $host_os in
20164 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20165 *) ADMIN_MAN_SUFFIX=8 ;;
20166 esac
20167 fi
20168 if test x$ADMIN_MAN_DIR = x ; then
20169 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20170 fi
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188 # Check whether --with-release-version was given.
20189 if test "${with_release_version+set}" = set; then
20190 withval=$with_release_version; RELEASE_VERSION="$withval"
20191 else
20192 RELEASE_VERSION=""
20193 fi
20194
20195 if test "x$RELEASE_VERSION" != "x"; then
20196 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20197 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20198 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20199 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20200 fi
20201
20202
20203 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc"
20204
20205 cat >confcache <<\_ACEOF
20206 # This file is a shell script that caches the results of configure
20207 # tests run on this system so they can be shared between configure
20208 # scripts and configure runs, see configure's option --config-cache.
20209 # It is not useful on other systems. If it contains results you don't
20210 # want to keep, you may remove or edit it.
20211 #
20212 # config.status only pays attention to the cache file if you give it
20213 # the --recheck option to rerun configure.
20214 #
20215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20217 # following values.
20218
20219 _ACEOF
20220
20221 # The following way of writing the cache mishandles newlines in values,
20222 # but we know of no workaround that is simple, portable, and efficient.
20223 # So, we kill variables containing newlines.
20224 # Ultrix sh set writes to stderr and can't be redirected directly,
20225 # and sets the high bit in the cache file unless we assign to the vars.
20226 (
20227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20228 eval ac_val=\$$ac_var
20229 case $ac_val in #(
20230 *${as_nl}*)
20231 case $ac_var in #(
20232 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20233 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20234 esac
20235 case $ac_var in #(
20236 _ | IFS | as_nl) ;; #(
20237 *) $as_unset $ac_var ;;
20238 esac ;;
20239 esac
20240 done
20241
20242 (set) 2>&1 |
20243 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20244 *${as_nl}ac_space=\ *)
20245 # `set' does not quote correctly, so add quotes (double-quote
20246 # substitution turns \\\\ into \\, and sed turns \\ into \).
20247 sed -n \
20248 "s/'/'\\\\''/g;
20249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20250 ;; #(
20251 *)
20252 # `set' quotes correctly as required by POSIX, so do not add quotes.
20253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20254 ;;
20255 esac |
20256 sort
20257 ) |
20258 sed '
20259 /^ac_cv_env_/b end
20260 t clear
20261 :clear
20262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20263 t end
20264 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20265 :end' >>confcache
20266 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20267 if test -w "$cache_file"; then
20268 test "x$cache_file" != "x/dev/null" &&
20269 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20270 echo "$as_me: updating cache $cache_file" >&6;}
20271 cat confcache >$cache_file
20272 else
20273 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20274 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20275 fi
20276 fi
20277 rm -f confcache
20278
20279 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20280 # Let make expand exec_prefix.
20281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20282
20283 DEFS=-DHAVE_CONFIG_H
20284
20285 ac_libobjs=
20286 ac_ltlibobjs=
20287 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20288 # 1. Remove the extension, and $U if already installed.
20289 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20290 ac_i=`echo "$ac_i" | sed "$ac_script"`
20291 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20292 # will be set to the directory where LIBOBJS objects are built.
20293 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20294 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20295 done
20296 LIBOBJS=$ac_libobjs
20297
20298 LTLIBOBJS=$ac_ltlibobjs
20299
20300
20301 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20302 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20303 Usually this means the macro was only invoked conditionally." >&5
20304 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20305 Usually this means the macro was only invoked conditionally." >&2;}
20306 { (exit 1); exit 1; }; }
20307 fi
20308 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20309 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20310 Usually this means the macro was only invoked conditionally." >&5
20311 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20312 Usually this means the macro was only invoked conditionally." >&2;}
20313 { (exit 1); exit 1; }; }
20314 fi
20315 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20316 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20317 Usually this means the macro was only invoked conditionally." >&5
20318 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20319 Usually this means the macro was only invoked conditionally." >&2;}
20320 { (exit 1); exit 1; }; }
20321 fi
20322 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20323 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20324 Usually this means the macro was only invoked conditionally." >&5
20325 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20326 Usually this means the macro was only invoked conditionally." >&2;}
20327 { (exit 1); exit 1; }; }
20328 fi
20329
20330 : ${CONFIG_STATUS=./config.status}
20331 ac_clean_files_save=$ac_clean_files
20332 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20333 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20334 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20335 cat >$CONFIG_STATUS <<_ACEOF
20336 #! $SHELL
20337 # Generated by $as_me.
20338 # Run this file to recreate the current configuration.
20339 # Compiler output produced by configure, useful for debugging
20340 # configure, is in config.log if it exists.
20341
20342 debug=false
20343 ac_cs_recheck=false
20344 ac_cs_silent=false
20345 SHELL=\${CONFIG_SHELL-$SHELL}
20346 _ACEOF
20347
20348 cat >>$CONFIG_STATUS <<\_ACEOF
20349 ## --------------------- ##
20350 ## M4sh Initialization. ##
20351 ## --------------------- ##
20352
20353 # Be Bourne compatible
20354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20355 emulate sh
20356 NULLCMD=:
20357 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20358 # is contrary to our usage. Disable this feature.
20359 alias -g '${1+"$@"}'='"$@"'
20360 setopt NO_GLOB_SUBST
20361 else
20362 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20363 fi
20364 BIN_SH=xpg4; export BIN_SH # for Tru64
20365 DUALCASE=1; export DUALCASE # for MKS sh
20366
20367
20368 # PATH needs CR
20369 # Avoid depending upon Character Ranges.
20370 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20371 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20372 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20373 as_cr_digits='0123456789'
20374 as_cr_alnum=$as_cr_Letters$as_cr_digits
20375
20376 # The user is always right.
20377 if test "${PATH_SEPARATOR+set}" != set; then
20378 echo "#! /bin/sh" >conf$$.sh
20379 echo "exit 0" >>conf$$.sh
20380 chmod +x conf$$.sh
20381 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20382 PATH_SEPARATOR=';'
20383 else
20384 PATH_SEPARATOR=:
20385 fi
20386 rm -f conf$$.sh
20387 fi
20388
20389 # Support unset when possible.
20390 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20391 as_unset=unset
20392 else
20393 as_unset=false
20394 fi
20395
20396
20397 # IFS
20398 # We need space, tab and new line, in precisely that order. Quoting is
20399 # there to prevent editors from complaining about space-tab.
20400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20401 # splitting by setting IFS to empty value.)
20402 as_nl='
20403 '
20404 IFS=" "" $as_nl"
20405
20406 # Find who we are. Look in the path if we contain no directory separator.
20407 case $0 in
20408 *[\\/]* ) as_myself=$0 ;;
20409 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20410 for as_dir in $PATH
20411 do
20412 IFS=$as_save_IFS
20413 test -z "$as_dir" && as_dir=.
20414 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20415 done
20416 IFS=$as_save_IFS
20417
20418 ;;
20419 esac
20420 # We did not find ourselves, most probably we were run as `sh COMMAND'
20421 # in which case we are not to be found in the path.
20422 if test "x$as_myself" = x; then
20423 as_myself=$0
20424 fi
20425 if test ! -f "$as_myself"; then
20426 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20427 { (exit 1); exit 1; }
20428 fi
20429
20430 # Work around bugs in pre-3.0 UWIN ksh.
20431 for as_var in ENV MAIL MAILPATH
20432 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20433 done
20434 PS1='$ '
20435 PS2='> '
20436 PS4='+ '
20437
20438 # NLS nuisances.
20439 for as_var in \
20440 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20441 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20442 LC_TELEPHONE LC_TIME
20443 do
20444 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20445 eval $as_var=C; export $as_var
20446 else
20447 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20448 fi
20449 done
20450
20451 # Required to use basename.
20452 if expr a : '\(a\)' >/dev/null 2>&1 &&
20453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20454 as_expr=expr
20455 else
20456 as_expr=false
20457 fi
20458
20459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20460 as_basename=basename
20461 else
20462 as_basename=false
20463 fi
20464
20465
20466 # Name of the executable.
20467 as_me=`$as_basename -- "$0" ||
20468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20469 X"$0" : 'X\(//\)$' \| \
20470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20471 echo X/"$0" |
20472 sed '/^.*\/\([^/][^/]*\)\/*$/{
20473 s//\1/
20474 q
20475 }
20476 /^X\/\(\/\/\)$/{
20477 s//\1/
20478 q
20479 }
20480 /^X\/\(\/\).*/{
20481 s//\1/
20482 q
20483 }
20484 s/.*/./; q'`
20485
20486 # CDPATH.
20487 $as_unset CDPATH
20488
20489
20490
20491 as_lineno_1=$LINENO
20492 as_lineno_2=$LINENO
20493 test "x$as_lineno_1" != "x$as_lineno_2" &&
20494 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20495
20496 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20497 # uniformly replaced by the line number. The first 'sed' inserts a
20498 # line-number line after each line using $LINENO; the second 'sed'
20499 # does the real work. The second script uses 'N' to pair each
20500 # line-number line with the line containing $LINENO, and appends
20501 # trailing '-' during substitution so that $LINENO is not a special
20502 # case at line end.
20503 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20504 # scripts with optimization help from Paolo Bonzini. Blame Lee
20505 # E. McMahon (1931-1989) for sed's syntax. :-)
20506 sed -n '
20507 p
20508 /[$]LINENO/=
20509 ' <$as_myself |
20510 sed '
20511 s/[$]LINENO.*/&-/
20512 t lineno
20513 b
20514 :lineno
20515 N
20516 :loop
20517 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20518 t loop
20519 s/-\n.*//
20520 ' >$as_me.lineno &&
20521 chmod +x "$as_me.lineno" ||
20522 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20523 { (exit 1); exit 1; }; }
20524
20525 # Don't try to exec as it changes $[0], causing all sort of problems
20526 # (the dirname of $[0] is not the place where we might find the
20527 # original and so on. Autoconf is especially sensitive to this).
20528 . "./$as_me.lineno"
20529 # Exit status is that of the last command.
20530 exit
20531 }
20532
20533
20534 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20535 as_dirname=dirname
20536 else
20537 as_dirname=false
20538 fi
20539
20540 ECHO_C= ECHO_N= ECHO_T=
20541 case `echo -n x` in
20542 -n*)
20543 case `echo 'x\c'` in
20544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20545 *) ECHO_C='\c';;
20546 esac;;
20547 *)
20548 ECHO_N='-n';;
20549 esac
20550
20551 if expr a : '\(a\)' >/dev/null 2>&1 &&
20552 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20553 as_expr=expr
20554 else
20555 as_expr=false
20556 fi
20557
20558 rm -f conf$$ conf$$.exe conf$$.file
20559 if test -d conf$$.dir; then
20560 rm -f conf$$.dir/conf$$.file
20561 else
20562 rm -f conf$$.dir
20563 mkdir conf$$.dir
20564 fi
20565 echo >conf$$.file
20566 if ln -s conf$$.file conf$$ 2>/dev/null; then
20567 as_ln_s='ln -s'
20568 # ... but there are two gotchas:
20569 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20570 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20571 # In both cases, we have to default to `cp -p'.
20572 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20573 as_ln_s='cp -p'
20574 elif ln conf$$.file conf$$ 2>/dev/null; then
20575 as_ln_s=ln
20576 else
20577 as_ln_s='cp -p'
20578 fi
20579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20580 rmdir conf$$.dir 2>/dev/null
20581
20582 if mkdir -p . 2>/dev/null; then
20583 as_mkdir_p=:
20584 else
20585 test -d ./-p && rmdir ./-p
20586 as_mkdir_p=false
20587 fi
20588
20589 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20590 # systems may use methods other than mode bits to determine executability.
20591 cat >conf$$.file <<_ASEOF
20592 #! /bin/sh
20593 exit 0
20594 _ASEOF
20595 chmod +x conf$$.file
20596 if test -x conf$$.file >/dev/null 2>&1; then
20597 as_executable_p="test -x"
20598 else
20599 as_executable_p=:
20600 fi
20601 rm -f conf$$.file
20602
20603 # Sed expression to map a string onto a valid CPP name.
20604 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20605
20606 # Sed expression to map a string onto a valid variable name.
20607 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20608
20609
20610 exec 6>&1
20611
20612 # Save the log message, to keep $[0] and so on meaningful, and to
20613 # report actual input values of CONFIG_FILES etc. instead of their
20614 # values after options handling.
20615 ac_log="
20616 This file was extended by libXfixes $as_me 4.0.3, which was
20617 generated by GNU Autoconf 2.60. Invocation command line was
20618
20619 CONFIG_FILES = $CONFIG_FILES
20620 CONFIG_HEADERS = $CONFIG_HEADERS
20621 CONFIG_LINKS = $CONFIG_LINKS
20622 CONFIG_COMMANDS = $CONFIG_COMMANDS
20623 $ $0 $@
20624
20625 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20626 "
20627
20628 _ACEOF
20629
20630 cat >>$CONFIG_STATUS <<_ACEOF
20631 # Files that config.status was made for.
20632 config_files="$ac_config_files"
20633 config_headers="$ac_config_headers"
20634 config_commands="$ac_config_commands"
20635
20636 _ACEOF
20637
20638 cat >>$CONFIG_STATUS <<\_ACEOF
20639 ac_cs_usage="\
20640 \`$as_me' instantiates files from templates according to the
20641 current configuration.
20642
20643 Usage: $0 [OPTIONS] [FILE]...
20644
20645 -h, --help print this help, then exit
20646 -V, --version print version number, then exit
20647 -q, --quiet do not print progress messages
20648 -d, --debug don't remove temporary files
20649 --recheck update $as_me by reconfiguring in the same conditions
20650 --file=FILE[:TEMPLATE]
20651 instantiate the configuration file FILE
20652 --header=FILE[:TEMPLATE]
20653 instantiate the configuration header FILE
20654
20655 Configuration files:
20656 $config_files
20657
20658 Configuration headers:
20659 $config_headers
20660
20661 Configuration commands:
20662 $config_commands
20663
20664 Report bugs to <bug-autoconf@gnu.org>."
20665
20666 _ACEOF
20667 cat >>$CONFIG_STATUS <<_ACEOF
20668 ac_cs_version="\\
20669 libXfixes config.status 4.0.3
20670 configured by $0, generated by GNU Autoconf 2.60,
20671 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20672
20673 Copyright (C) 2006 Free Software Foundation, Inc.
20674 This config.status script is free software; the Free Software Foundation
20675 gives unlimited permission to copy, distribute and modify it."
20676
20677 ac_pwd='$ac_pwd'
20678 srcdir='$srcdir'
20679 INSTALL='$INSTALL'
20680 _ACEOF
20681
20682 cat >>$CONFIG_STATUS <<\_ACEOF
20683 # If no file are specified by the user, then we need to provide default
20684 # value. By we need to know if files were specified by the user.
20685 ac_need_defaults=:
20686 while test $# != 0
20687 do
20688 case $1 in
20689 --*=*)
20690 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20691 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20692 ac_shift=:
20693 ;;
20694 *)
20695 ac_option=$1
20696 ac_optarg=$2
20697 ac_shift=shift
20698 ;;
20699 esac
20700
20701 case $ac_option in
20702 # Handling of the options.
20703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20704 ac_cs_recheck=: ;;
20705 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20706 echo "$ac_cs_version"; exit ;;
20707 --debug | --debu | --deb | --de | --d | -d )
20708 debug=: ;;
20709 --file | --fil | --fi | --f )
20710 $ac_shift
20711 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20712 ac_need_defaults=false;;
20713 --header | --heade | --head | --hea )
20714 $ac_shift
20715 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20716 ac_need_defaults=false;;
20717 --he | --h)
20718 # Conflict between --help and --header
20719 { echo "$as_me: error: ambiguous option: $1
20720 Try \`$0 --help' for more information." >&2
20721 { (exit 1); exit 1; }; };;
20722 --help | --hel | -h )
20723 echo "$ac_cs_usage"; exit ;;
20724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20725 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20726 ac_cs_silent=: ;;
20727
20728 # This is an error.
20729 -*) { echo "$as_me: error: unrecognized option: $1
20730 Try \`$0 --help' for more information." >&2
20731 { (exit 1); exit 1; }; } ;;
20732
20733 *) ac_config_targets="$ac_config_targets $1"
20734 ac_need_defaults=false ;;
20735
20736 esac
20737 shift
20738 done
20739
20740 ac_configure_extra_args=
20741
20742 if $ac_cs_silent; then
20743 exec 6>/dev/null
20744 ac_configure_extra_args="$ac_configure_extra_args --silent"
20745 fi
20746
20747 _ACEOF
20748 cat >>$CONFIG_STATUS <<_ACEOF
20749 if \$ac_cs_recheck; then
20750 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20751 CONFIG_SHELL=$SHELL
20752 export CONFIG_SHELL
20753 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20754 fi
20755
20756 _ACEOF
20757 cat >>$CONFIG_STATUS <<\_ACEOF
20758 exec 5>>config.log
20759 {
20760 echo
20761 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20762 ## Running $as_me. ##
20763 _ASBOX
20764 echo "$ac_log"
20765 } >&5
20766
20767 _ACEOF
20768 cat >>$CONFIG_STATUS <<_ACEOF
20769 #
20770 # INIT-COMMANDS
20771 #
20772 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20773
20774 _ACEOF
20775
20776 cat >>$CONFIG_STATUS <<\_ACEOF
20777
20778 # Handling of arguments.
20779 for ac_config_target in $ac_config_targets
20780 do
20781 case $ac_config_target in
20782 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20783 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20784 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20785 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20786 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20787 "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;;
20788
20789 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20790 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20791 { (exit 1); exit 1; }; };;
20792 esac
20793 done
20794
20795
20796 # If the user did not use the arguments to specify the items to instantiate,
20797 # then the envvar interface is used. Set only those that are not.
20798 # We use the long form for the default assignment because of an extremely
20799 # bizarre bug on SunOS 4.1.3.
20800 if $ac_need_defaults; then
20801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20804 fi
20805
20806 # Have a temporary directory for convenience. Make it in the build tree
20807 # simply because there is no reason against having it here, and in addition,
20808 # creating and moving files from /tmp can sometimes cause problems.
20809 # Hook for its removal unless debugging.
20810 # Note that there is a small window in which the directory will not be cleaned:
20811 # after its creation but before its name has been assigned to `$tmp'.
20812 $debug ||
20813 {
20814 tmp=
20815 trap 'exit_status=$?
20816 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20817 ' 0
20818 trap '{ (exit 1); exit 1; }' 1 2 13 15
20819 }
20820 # Create a (secure) tmp directory for tmp files.
20821
20822 {
20823 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20824 test -n "$tmp" && test -d "$tmp"
20825 } ||
20826 {
20827 tmp=./conf$$-$RANDOM
20828 (umask 077 && mkdir "$tmp")
20829 } ||
20830 {
20831 echo "$me: cannot create a temporary directory in ." >&2
20832 { (exit 1); exit 1; }
20833 }
20834
20835 #
20836 # Set up the sed scripts for CONFIG_FILES section.
20837 #
20838
20839 # No need to generate the scripts if there are no CONFIG_FILES.
20840 # This happens for instance when ./config.status config.h
20841 if test -n "$CONFIG_FILES"; then
20842
20843 _ACEOF
20844
20845
20846
20847 ac_delim='%!_!# '
20848 for ac_last_try in false false false false false :; do
20849 cat >conf$$subs.sed <<_ACEOF
20850 SHELL!$SHELL$ac_delim
20851 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20852 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20853 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20854 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20855 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20856 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20857 exec_prefix!$exec_prefix$ac_delim
20858 prefix!$prefix$ac_delim
20859 program_transform_name!$program_transform_name$ac_delim
20860 bindir!$bindir$ac_delim
20861 sbindir!$sbindir$ac_delim
20862 libexecdir!$libexecdir$ac_delim
20863 datarootdir!$datarootdir$ac_delim
20864 datadir!$datadir$ac_delim
20865 sysconfdir!$sysconfdir$ac_delim
20866 sharedstatedir!$sharedstatedir$ac_delim
20867 localstatedir!$localstatedir$ac_delim
20868 includedir!$includedir$ac_delim
20869 oldincludedir!$oldincludedir$ac_delim
20870 docdir!$docdir$ac_delim
20871 infodir!$infodir$ac_delim
20872 htmldir!$htmldir$ac_delim
20873 dvidir!$dvidir$ac_delim
20874 pdfdir!$pdfdir$ac_delim
20875 psdir!$psdir$ac_delim
20876 libdir!$libdir$ac_delim
20877 localedir!$localedir$ac_delim
20878 mandir!$mandir$ac_delim
20879 DEFS!$DEFS$ac_delim
20880 ECHO_C!$ECHO_C$ac_delim
20881 ECHO_N!$ECHO_N$ac_delim
20882 ECHO_T!$ECHO_T$ac_delim
20883 LIBS!$LIBS$ac_delim
20884 build_alias!$build_alias$ac_delim
20885 host_alias!$host_alias$ac_delim
20886 target_alias!$target_alias$ac_delim
20887 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20888 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20889 INSTALL_DATA!$INSTALL_DATA$ac_delim
20890 CYGPATH_W!$CYGPATH_W$ac_delim
20891 PACKAGE!$PACKAGE$ac_delim
20892 VERSION!$VERSION$ac_delim
20893 ACLOCAL!$ACLOCAL$ac_delim
20894 AUTOCONF!$AUTOCONF$ac_delim
20895 AUTOMAKE!$AUTOMAKE$ac_delim
20896 AUTOHEADER!$AUTOHEADER$ac_delim
20897 MAKEINFO!$MAKEINFO$ac_delim
20898 install_sh!$install_sh$ac_delim
20899 STRIP!$STRIP$ac_delim
20900 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20901 mkdir_p!$mkdir_p$ac_delim
20902 AWK!$AWK$ac_delim
20903 SET_MAKE!$SET_MAKE$ac_delim
20904 am__leading_dot!$am__leading_dot$ac_delim
20905 AMTAR!$AMTAR$ac_delim
20906 am__tar!$am__tar$ac_delim
20907 am__untar!$am__untar$ac_delim
20908 AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim
20909 AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim
20910 AMPRETTYECHO!$AMPRETTYECHO$ac_delim
20911 AMCMDECHO!$AMCMDECHO$ac_delim
20912 LT_QUIET!$LT_QUIET$ac_delim
20913 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20914 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20915 MAINT!$MAINT$ac_delim
20916 CC!$CC$ac_delim
20917 CFLAGS!$CFLAGS$ac_delim
20918 LDFLAGS!$LDFLAGS$ac_delim
20919 CPPFLAGS!$CPPFLAGS$ac_delim
20920 ac_ct_CC!$ac_ct_CC$ac_delim
20921 EXEEXT!$EXEEXT$ac_delim
20922 OBJEXT!$OBJEXT$ac_delim
20923 DEPDIR!$DEPDIR$ac_delim
20924 am__include!$am__include$ac_delim
20925 am__quote!$am__quote$ac_delim
20926 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20927 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20928 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20929 CCDEPMODE!$CCDEPMODE$ac_delim
20930 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20931 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20932 build!$build$ac_delim
20933 build_cpu!$build_cpu$ac_delim
20934 build_vendor!$build_vendor$ac_delim
20935 build_os!$build_os$ac_delim
20936 host!$host$ac_delim
20937 host_cpu!$host_cpu$ac_delim
20938 host_vendor!$host_vendor$ac_delim
20939 host_os!$host_os$ac_delim
20940 GREP!$GREP$ac_delim
20941 EGREP!$EGREP$ac_delim
20942 LN_S!$LN_S$ac_delim
20943 ECHO!$ECHO$ac_delim
20944 AR!$AR$ac_delim
20945 RANLIB!$RANLIB$ac_delim
20946 CPP!$CPP$ac_delim
20947 _ACEOF
20948
20949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20950 break
20951 elif $ac_last_try; then
20952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20954 { (exit 1); exit 1; }; }
20955 else
20956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20957 fi
20958 done
20959
20960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20961 if test -n "$ac_eof"; then
20962 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20963 ac_eof=`expr $ac_eof + 1`
20964 fi
20965
20966 cat >>$CONFIG_STATUS <<_ACEOF
20967 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20969 _ACEOF
20970 sed '
20971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20972 s/^/s,@/; s/!/@,|#_!!_#|/
20973 :n
20974 t n
20975 s/'"$ac_delim"'$/,g/; t
20976 s/$/\\/; p
20977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20978 ' >>$CONFIG_STATUS <conf$$subs.sed
20979 rm -f conf$$subs.sed
20980 cat >>$CONFIG_STATUS <<_ACEOF
20981 CEOF$ac_eof
20982 _ACEOF
20983
20984
20985 ac_delim='%!_!# '
20986 for ac_last_try in false false false false false :; do
20987 cat >conf$$subs.sed <<_ACEOF
20988 CXX!$CXX$ac_delim
20989 CXXFLAGS!$CXXFLAGS$ac_delim
20990 ac_ct_CXX!$ac_ct_CXX$ac_delim
20991 CXXDEPMODE!$CXXDEPMODE$ac_delim
20992 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20993 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20994 CXXCPP!$CXXCPP$ac_delim
20995 F77!$F77$ac_delim
20996 FFLAGS!$FFLAGS$ac_delim
20997 ac_ct_F77!$ac_ct_F77$ac_delim
20998 LIBTOOL!$LIBTOOL$ac_delim
20999 PKG_CONFIG!$PKG_CONFIG$ac_delim
21000 X_CFLAGS!$X_CFLAGS$ac_delim
21001 X_LIBS!$X_LIBS$ac_delim
21002 FIXESEXT_VERSION!$FIXESEXT_VERSION$ac_delim
21003 FIXESEXT_CFLAGS!$FIXESEXT_CFLAGS$ac_delim
21004 FIXESEXT_LIBS!$FIXESEXT_LIBS$ac_delim
21005 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21006 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21007 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21008 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21009 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21010 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21011 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21012 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21013 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21014 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21015 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21016 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21017 LIBOBJS!$LIBOBJS$ac_delim
21018 LTLIBOBJS!$LTLIBOBJS$ac_delim
21019 _ACEOF
21020
21021 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21022 break
21023 elif $ac_last_try; then
21024 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21025 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21026 { (exit 1); exit 1; }; }
21027 else
21028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21029 fi
21030 done
21031
21032 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21033 if test -n "$ac_eof"; then
21034 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21035 ac_eof=`expr $ac_eof + 1`
21036 fi
21037
21038 cat >>$CONFIG_STATUS <<_ACEOF
21039 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21041 _ACEOF
21042 sed '
21043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21044 s/^/s,@/; s/!/@,|#_!!_#|/
21045 :n
21046 t n
21047 s/'"$ac_delim"'$/,g/; t
21048 s/$/\\/; p
21049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21050 ' >>$CONFIG_STATUS <conf$$subs.sed
21051 rm -f conf$$subs.sed
21052 cat >>$CONFIG_STATUS <<_ACEOF
21053 :end
21054 s/|#_!!_#|//g
21055 CEOF$ac_eof
21056 _ACEOF
21057
21058
21059 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21061 # trailing colons and then remove the whole line if VPATH becomes empty
21062 # (actually we leave an empty line to preserve line numbers).
21063 if test "x$srcdir" = x.; then
21064 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21065 s/:*\$(srcdir):*/:/
21066 s/:*\${srcdir}:*/:/
21067 s/:*@srcdir@:*/:/
21068 s/^\([^=]*=[ ]*\):*/\1/
21069 s/:*$//
21070 s/^[^=]*=[ ]*$//
21071 }'
21072 fi
21073
21074 cat >>$CONFIG_STATUS <<\_ACEOF
21075 fi # test -n "$CONFIG_FILES"
21076
21077
21078 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21079 do
21080 case $ac_tag in
21081 :[FHLC]) ac_mode=$ac_tag; continue;;
21082 esac
21083 case $ac_mode$ac_tag in
21084 :[FHL]*:*);;
21085 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21086 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21087 { (exit 1); exit 1; }; };;
21088 :[FH]-) ac_tag=-:-;;
21089 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21090 esac
21091 ac_save_IFS=$IFS
21092 IFS=:
21093 set x $ac_tag
21094 IFS=$ac_save_IFS
21095 shift
21096 ac_file=$1
21097 shift
21098
21099 case $ac_mode in
21100 :L) ac_source=$1;;
21101 :[FH])
21102 ac_file_inputs=
21103 for ac_f
21104 do
21105 case $ac_f in
21106 -) ac_f="$tmp/stdin";;
21107 *) # Look for the file first in the build tree, then in the source tree
21108 # (if the path is not absolute). The absolute path cannot be DOS-style,
21109 # because $ac_f cannot contain `:'.
21110 test -f "$ac_f" ||
21111 case $ac_f in
21112 [\\/$]*) false;;
21113 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21114 esac ||
21115 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21116 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21117 { (exit 1); exit 1; }; };;
21118 esac
21119 ac_file_inputs="$ac_file_inputs $ac_f"
21120 done
21121
21122 # Let's still pretend it is `configure' which instantiates (i.e., don't
21123 # use $as_me), people would be surprised to read:
21124 # /* config.h. Generated by config.status. */
21125 configure_input="Generated from "`IFS=:
21126 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21127 if test x"$ac_file" != x-; then
21128 configure_input="$ac_file. $configure_input"
21129 { echo "$as_me:$LINENO: creating $ac_file" >&5
21130 echo "$as_me: creating $ac_file" >&6;}
21131 fi
21132
21133 case $ac_tag in
21134 *:-:* | *:-) cat >"$tmp/stdin";;
21135 esac
21136 ;;
21137 esac
21138
21139 ac_dir=`$as_dirname -- "$ac_file" ||
21140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21141 X"$ac_file" : 'X\(//\)[^/]' \| \
21142 X"$ac_file" : 'X\(//\)$' \| \
21143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21144 echo X"$ac_file" |
21145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21146 s//\1/
21147 q
21148 }
21149 /^X\(\/\/\)[^/].*/{
21150 s//\1/
21151 q
21152 }
21153 /^X\(\/\/\)$/{
21154 s//\1/
21155 q
21156 }
21157 /^X\(\/\).*/{
21158 s//\1/
21159 q
21160 }
21161 s/.*/./; q'`
21162 { as_dir="$ac_dir"
21163 case $as_dir in #(
21164 -*) as_dir=./$as_dir;;
21165 esac
21166 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21167 as_dirs=
21168 while :; do
21169 case $as_dir in #(
21170 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21171 *) as_qdir=$as_dir;;
21172 esac
21173 as_dirs="'$as_qdir' $as_dirs"
21174 as_dir=`$as_dirname -- "$as_dir" ||
21175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21176 X"$as_dir" : 'X\(//\)[^/]' \| \
21177 X"$as_dir" : 'X\(//\)$' \| \
21178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21179 echo X"$as_dir" |
21180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21181 s//\1/
21182 q
21183 }
21184 /^X\(\/\/\)[^/].*/{
21185 s//\1/
21186 q
21187 }
21188 /^X\(\/\/\)$/{
21189 s//\1/
21190 q
21191 }
21192 /^X\(\/\).*/{
21193 s//\1/
21194 q
21195 }
21196 s/.*/./; q'`
21197 test -d "$as_dir" && break
21198 done
21199 test -z "$as_dirs" || eval "mkdir $as_dirs"
21200 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21201 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21202 { (exit 1); exit 1; }; }; }
21203 ac_builddir=.
21204
21205 case "$ac_dir" in
21206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21207 *)
21208 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21209 # A ".." for each directory in $ac_dir_suffix.
21210 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21211 case $ac_top_builddir_sub in
21212 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21213 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21214 esac ;;
21215 esac
21216 ac_abs_top_builddir=$ac_pwd
21217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21218 # for backward compatibility:
21219 ac_top_builddir=$ac_top_build_prefix
21220
21221 case $srcdir in
21222 .) # We are building in place.
21223 ac_srcdir=.
21224 ac_top_srcdir=$ac_top_builddir_sub
21225 ac_abs_top_srcdir=$ac_pwd ;;
21226 [\\/]* | ?:[\\/]* ) # Absolute name.
21227 ac_srcdir=$srcdir$ac_dir_suffix;
21228 ac_top_srcdir=$srcdir
21229 ac_abs_top_srcdir=$srcdir ;;
21230 *) # Relative name.
21231 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21232 ac_top_srcdir=$ac_top_build_prefix$srcdir
21233 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21234 esac
21235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21236
21237
21238 case $ac_mode in
21239 :F)
21240 #
21241 # CONFIG_FILE
21242 #
21243
21244 case $INSTALL in
21245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21246 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21247 esac
21248 _ACEOF
21249
21250 cat >>$CONFIG_STATUS <<\_ACEOF
21251 # If the template does not know about datarootdir, expand it.
21252 # FIXME: This hack should be removed a few years after 2.60.
21253 ac_datarootdir_hack=; ac_datarootdir_seen=
21254
21255 case `sed -n '/datarootdir/ {
21256 p
21257 q
21258 }
21259 /@datadir@/p
21260 /@docdir@/p
21261 /@infodir@/p
21262 /@localedir@/p
21263 /@mandir@/p
21264 ' $ac_file_inputs` in
21265 *datarootdir*) ac_datarootdir_seen=yes;;
21266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21267 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21268 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21269 _ACEOF
21270 cat >>$CONFIG_STATUS <<_ACEOF
21271 ac_datarootdir_hack='
21272 s&@datadir@&$datadir&g
21273 s&@docdir@&$docdir&g
21274 s&@infodir@&$infodir&g
21275 s&@localedir@&$localedir&g
21276 s&@mandir@&$mandir&g
21277 s&\\\${datarootdir}&$datarootdir&g' ;;
21278 esac
21279 _ACEOF
21280
21281 # Neutralize VPATH when `$srcdir' = `.'.
21282 # Shell code in configure.ac might set extrasub.
21283 # FIXME: do we really want to maintain this feature?
21284 cat >>$CONFIG_STATUS <<_ACEOF
21285 sed "$ac_vpsub
21286 $extrasub
21287 _ACEOF
21288 cat >>$CONFIG_STATUS <<\_ACEOF
21289 :t
21290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21291 s&@configure_input@&$configure_input&;t t
21292 s&@top_builddir@&$ac_top_builddir_sub&;t t
21293 s&@srcdir@&$ac_srcdir&;t t
21294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21295 s&@top_srcdir@&$ac_top_srcdir&;t t
21296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21297 s&@builddir@&$ac_builddir&;t t
21298 s&@abs_builddir@&$ac_abs_builddir&;t t
21299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21300 s&@INSTALL@&$ac_INSTALL&;t t
21301 $ac_datarootdir_hack
21302 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21303
21304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21305 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21307 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21308 which seems to be undefined. Please make sure it is defined." >&5
21309 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21310 which seems to be undefined. Please make sure it is defined." >&2;}
21311
21312 rm -f "$tmp/stdin"
21313 case $ac_file in
21314 -) cat "$tmp/out"; rm -f "$tmp/out";;
21315 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21316 esac
21317 ;;
21318 :H)
21319 #
21320 # CONFIG_HEADER
21321 #
21322 _ACEOF
21323
21324 # Transform confdefs.h into a sed script `conftest.defines', that
21325 # substitutes the proper values into config.h.in to produce config.h.
21326 rm -f conftest.defines conftest.tail
21327 # First, append a space to every undef/define line, to ease matching.
21328 echo 's/$/ /' >conftest.defines
21329 # Then, protect against being on the right side of a sed subst, or in
21330 # an unquoted here document, in config.status. If some macros were
21331 # called several times there might be several #defines for the same
21332 # symbol, which is useless. But do not sort them, since the last
21333 # AC_DEFINE must be honored.
21334 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21335 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21336 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21337 # PARAMS is the parameter list in the macro definition--in most cases, it's
21338 # just an empty string.
21339 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21340 ac_dB='\\)[ (].*,\\1define\\2'
21341 ac_dC=' '
21342 ac_dD=' ,'
21343
21344 uniq confdefs.h |
21345 sed -n '
21346 t rset
21347 :rset
21348 s/^[ ]*#[ ]*define[ ][ ]*//
21349 t ok
21350 d
21351 :ok
21352 s/[\\&,]/\\&/g
21353 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21354 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21355 ' >>conftest.defines
21356
21357 # Remove the space that was appended to ease matching.
21358 # Then replace #undef with comments. This is necessary, for
21359 # example, in the case of _POSIX_SOURCE, which is predefined and required
21360 # on some systems where configure will not decide to define it.
21361 # (The regexp can be short, since the line contains either #define or #undef.)
21362 echo 's/ $//
21363 s,^[ #]*u.*,/* & */,' >>conftest.defines
21364
21365 # Break up conftest.defines:
21366 ac_max_sed_lines=50
21367
21368 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21369 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21370 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21371 # et cetera.
21372 ac_in='$ac_file_inputs'
21373 ac_out='"$tmp/out1"'
21374 ac_nxt='"$tmp/out2"'
21375
21376 while :
21377 do
21378 # Write a here document:
21379 cat >>$CONFIG_STATUS <<_ACEOF
21380 # First, check the format of the line:
21381 cat >"\$tmp/defines.sed" <<\\CEOF
21382 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21383 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21384 b
21385 :def
21386 _ACEOF
21387 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21388 echo 'CEOF
21389 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21390 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21391 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21392 grep . conftest.tail >/dev/null || break
21393 rm -f conftest.defines
21394 mv conftest.tail conftest.defines
21395 done
21396 rm -f conftest.defines conftest.tail
21397
21398 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21399 cat >>$CONFIG_STATUS <<\_ACEOF
21400 if test x"$ac_file" != x-; then
21401 echo "/* $configure_input */" >"$tmp/config.h"
21402 cat "$ac_result" >>"$tmp/config.h"
21403 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21404 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21405 echo "$as_me: $ac_file is unchanged" >&6;}
21406 else
21407 rm -f $ac_file
21408 mv "$tmp/config.h" $ac_file
21409 fi
21410 else
21411 echo "/* $configure_input */"
21412 cat "$ac_result"
21413 fi
21414 rm -f "$tmp/out12"
21415 # Compute $ac_file's index in $config_headers.
21416 _am_stamp_count=1
21417 for _am_header in $config_headers :; do
21418 case $_am_header in
21419 $ac_file | $ac_file:* )
21420 break ;;
21421 * )
21422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21423 esac
21424 done
21425 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21426 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21427 X$ac_file : 'X\(//\)[^/]' \| \
21428 X$ac_file : 'X\(//\)$' \| \
21429 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21430 echo X$ac_file |
21431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21432 s//\1/
21433 q
21434 }
21435 /^X\(\/\/\)[^/].*/{
21436 s//\1/
21437 q
21438 }
21439 /^X\(\/\/\)$/{
21440 s//\1/
21441 q
21442 }
21443 /^X\(\/\).*/{
21444 s//\1/
21445 q
21446 }
21447 s/.*/./; q'`/stamp-h$_am_stamp_count
21448 ;;
21449
21450 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21451 echo "$as_me: executing $ac_file commands" >&6;}
21452 ;;
21453 esac
21454
21455
21456 case $ac_file$ac_mode in
21457 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21458 # Strip MF so we end up with the name of the file.
21459 mf=`echo "$mf" | sed -e 's/:.*$//'`
21460 # Check whether this is an Automake generated Makefile or not.
21461 # We used to match only the files named `Makefile.in', but
21462 # some people rename them; so instead we look at the file content.
21463 # Grep'ing the first line is not enough: some people post-process
21464 # each Makefile.in and add a new line on top of each file to say so.
21465 # So let's grep whole file.
21466 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21467 dirpart=`$as_dirname -- "$mf" ||
21468 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21469 X"$mf" : 'X\(//\)[^/]' \| \
21470 X"$mf" : 'X\(//\)$' \| \
21471 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21472 echo X"$mf" |
21473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21474 s//\1/
21475 q
21476 }
21477 /^X\(\/\/\)[^/].*/{
21478 s//\1/
21479 q
21480 }
21481 /^X\(\/\/\)$/{
21482 s//\1/
21483 q
21484 }
21485 /^X\(\/\).*/{
21486 s//\1/
21487 q
21488 }
21489 s/.*/./; q'`
21490 else
21491 continue
21492 fi
21493 # Extract the definition of DEPDIR, am__include, and am__quote
21494 # from the Makefile without running `make'.
21495 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21496 test -z "$DEPDIR" && continue
21497 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21498 test -z "am__include" && continue
21499 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21500 # When using ansi2knr, U may be empty or an underscore; expand it
21501 U=`sed -n 's/^U = //p' < "$mf"`
21502 # Find all dependency output files, they are included files with
21503 # $(DEPDIR) in their names. We invoke sed twice because it is the
21504 # simplest approach to changing $(DEPDIR) to its actual value in the
21505 # expansion.
21506 for file in `sed -n "
21507 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21508 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21509 # Make sure the directory exists.
21510 test -f "$dirpart/$file" && continue
21511 fdir=`$as_dirname -- "$file" ||
21512 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21513 X"$file" : 'X\(//\)[^/]' \| \
21514 X"$file" : 'X\(//\)$' \| \
21515 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21516 echo X"$file" |
21517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21518 s//\1/
21519 q
21520 }
21521 /^X\(\/\/\)[^/].*/{
21522 s//\1/
21523 q
21524 }
21525 /^X\(\/\/\)$/{
21526 s//\1/
21527 q
21528 }
21529 /^X\(\/\).*/{
21530 s//\1/
21531 q
21532 }
21533 s/.*/./; q'`
21534 { as_dir=$dirpart/$fdir
21535 case $as_dir in #(
21536 -*) as_dir=./$as_dir;;
21537 esac
21538 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21539 as_dirs=
21540 while :; do
21541 case $as_dir in #(
21542 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21543 *) as_qdir=$as_dir;;
21544 esac
21545 as_dirs="'$as_qdir' $as_dirs"
21546 as_dir=`$as_dirname -- "$as_dir" ||
21547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21548 X"$as_dir" : 'X\(//\)[^/]' \| \
21549 X"$as_dir" : 'X\(//\)$' \| \
21550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21551 echo X"$as_dir" |
21552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21553 s//\1/
21554 q
21555 }
21556 /^X\(\/\/\)[^/].*/{
21557 s//\1/
21558 q
21559 }
21560 /^X\(\/\/\)$/{
21561 s//\1/
21562 q
21563 }
21564 /^X\(\/\).*/{
21565 s//\1/
21566 q
21567 }
21568 s/.*/./; q'`
21569 test -d "$as_dir" && break
21570 done
21571 test -z "$as_dirs" || eval "mkdir $as_dirs"
21572 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21573 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21574 { (exit 1); exit 1; }; }; }
21575 # echo "creating $dirpart/$file"
21576 echo '# dummy' > "$dirpart/$file"
21577 done
21578 done
21579 ;;
21580
21581 esac
21582 done # for ac_tag
21583
21584
21585 { (exit 0); exit 0; }
21586 _ACEOF
21587 chmod +x $CONFIG_STATUS
21588 ac_clean_files=$ac_clean_files_save
21589
21590
21591 # configure is writing to config.log, and then calls config.status.
21592 # config.status does its own redirection, appending to config.log.
21593 # Unfortunately, on DOS this fails, as config.log is still kept open
21594 # by configure, so config.status won't be able to write to it; its
21595 # output is simply discarded. So we exec the FD to /dev/null,
21596 # effectively closing config.log, so it can be properly (re)opened and
21597 # appended to by config.status. When coming back to configure, we
21598 # need to make the FD available again.
21599 if test "$no_create" != yes; then
21600 ac_cs_success=:
21601 ac_config_status_args=
21602 test "$silent" = yes &&
21603 ac_config_status_args="$ac_config_status_args --quiet"
21604 exec 5>/dev/null
21605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21606 exec 5>>config.log
21607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21608 # would make configure fail if this is the last instruction.
21609 $ac_cs_success || { (exit 1); exit 1; }
21610 fi
21611
21612
21613