configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libXcomposite 0.4.0.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libXcomposite'
730 PACKAGE_TARNAME='libXcomposite'
731 PACKAGE_VERSION='0.4.0'
732 PACKAGE_STRING='libXcomposite 0.4.0'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 MAINTAINER_MODE_TRUE
830 MAINTAINER_MODE_FALSE
831 MAINT
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CCDEPMODE
846 am__fastdepCC_TRUE
847 am__fastdepCC_FALSE
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
856 GREP
857 EGREP
858 LN_S
859 ECHO
860 AR
861 RANLIB
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 XMLTO
875 HAVE_XMLTO_TRUE
876 HAVE_XMLTO_FALSE
877 COMPOSITEEXT_VERSION
878 PKG_CONFIG
879 XCOMPOSITE_CFLAGS
880 XCOMPOSITE_LIBS
881 APP_MAN_SUFFIX
882 LIB_MAN_SUFFIX
883 FILE_MAN_SUFFIX
884 MISC_MAN_SUFFIX
885 DRIVER_MAN_SUFFIX
886 ADMIN_MAN_SUFFIX
887 APP_MAN_DIR
888 LIB_MAN_DIR
889 FILE_MAN_DIR
890 MISC_MAN_DIR
891 DRIVER_MAN_DIR
892 ADMIN_MAN_DIR
893 LIBOBJS
894 LTLIBOBJS'
895 ac_subst_files=''
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 CPP
905 CXX
906 CXXFLAGS
907 CCC
908 CXXCPP
909 F77
910 FFLAGS
911 XMLTO
912 PKG_CONFIG
913 XCOMPOSITE_CFLAGS
914 XCOMPOSITE_LIBS'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *) ac_optarg=yes ;;
977 esac
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 bindir=$ac_optarg ;;
989
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1004
1005 -datadir | --datadir | --datadi | --datad)
1006 ac_prev=datadir ;;
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1009
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
1017 -disable-* | --disable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043 eval enable_$ac_feature=\$ac_optarg ;;
1044
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1053
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1057
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1064
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1069
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1075
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1082
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1087
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1092
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1099
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1104
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1111
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1116
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1120
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1123 no_create=yes ;;
1124
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1128
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1137
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1142
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1149
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1156
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1173
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1178
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1183
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1187
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
1192 sbindir=$ac_optarg ;;
1193
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
1203 sharedstatedir=$ac_optarg ;;
1204
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
1208 site=$ac_optarg ;;
1209
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1214
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1221
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1226
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1229
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1232
1233 -with-* | --with-*)
1234 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=\$ac_optarg ;;
1241
1242 -without-* | --without-*)
1243 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249 eval with_$ac_package=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271 { (exit 1); exit 1; }; }
1272 ;;
1273
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279 { (exit 1); exit 1; }; }
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 { echo "$as_me: error: missing argument to $ac_option" >&2
1297 { (exit 1); exit 1; }; }
1298 fi
1299
1300 # Be sure to have absolute directory names.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
1311 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312 { (exit 1); exit 1; }; }
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used." >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 { echo "$as_me: error: Working directory cannot be determined" >&2
1343 { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 { echo "$as_me: error: pwd does not report name of working directory" >&2
1346 { (exit 1); exit 1; }; }
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$0" : 'X\(//\)[^/]' \| \
1356 X"$0" : 'X\(//\)$' \| \
1357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358 echo X"$0" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1379 fi
1380 else
1381 ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386 { (exit 1); exit 1; }; }
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391 { (exit 1); exit 1; }; }
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417 \`configure' configures libXcomposite 0.4.0 to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcomposite]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of libXcomposite 0.4.0:";;
1488 esac
1489 cat <<\_ACEOF
1490
1491 Optional Features:
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-maintainer-mode enable make rules and dependencies not useful
1495 (and sometimes confusing) to the casual installer
1496 --disable-dependency-tracking speeds up one-time build
1497 --enable-dependency-tracking do not reject slow dependency extractors
1498 --enable-shared[=PKGS] build shared libraries [default=yes]
1499 --enable-static[=PKGS] build static libraries [default=yes]
1500 --enable-fast-install[=PKGS]
1501 optimize for fast installation [default=yes]
1502 --disable-libtool-lock avoid locking (might break parallel builds)
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-tags[=TAGS] include additional configurations [automatic]
1511 --with-release-version=STRING
1512 Use release version string in package name
1513
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1522 CPP C preprocessor
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CXXCPP C++ preprocessor
1526 F77 Fortran 77 compiler command
1527 FFLAGS Fortran 77 compiler flags
1528 XMLTO Path to xmlto command
1529 PKG_CONFIG path to pkg-config utility
1530 XCOMPOSITE_CFLAGS
1531 C compiler flags for XCOMPOSITE, overriding pkg-config
1532 XCOMPOSITE_LIBS
1533 linker flags for XCOMPOSITE, overriding pkg-config
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" || continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 libXcomposite configure 0.4.0
1600 generated by GNU Autoconf 2.61
1601
1602 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1603 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607 exit
1608 fi
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1612
1613 It was created by libXcomposite $as_me 0.4.0, which was
1614 generated by GNU Autoconf 2.61. Invocation command line was
1615
1616 $ $0 $@
1617
1618 _ACEOF
1619 exec 5>>config.log
1620 {
1621 cat <<_ASUNAME
1622 ## --------- ##
1623 ## Platform. ##
1624 ## --------- ##
1625
1626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
1632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634
1635 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1636 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1639 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1640 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1641 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1642
1643 _ASUNAME
1644
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 echo "PATH: $as_dir"
1651 done
1652 IFS=$as_save_IFS
1653
1654 } >&5
1655
1656 cat >&5 <<_ACEOF
1657
1658
1659 ## ----------- ##
1660 ## Core tests. ##
1661 ## ----------- ##
1662
1663 _ACEOF
1664
1665
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_configure_args=
1672 ac_configure_args0=
1673 ac_configure_args1=
1674 ac_must_keep_next=false
1675 for ac_pass in 1 2
1676 do
1677 for ac_arg
1678 do
1679 case $ac_arg in
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 continue ;;
1684 *\'*)
1685 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686 esac
1687 case $ac_pass in
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 2)
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1693 else
1694 case $ac_arg in
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701 esac
1702 ;;
1703 -* ) ac_must_keep_next=true ;;
1704 esac
1705 fi
1706 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 ;;
1708 esac
1709 done
1710 done
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log. We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1721 {
1722 echo
1723
1724 cat <<\_ASBOX
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1728 _ASBOX
1729 echo
1730 # The following way of writing the cache mishandles newlines in values,
1731 (
1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733 eval ac_val=\$$ac_var
1734 case $ac_val in #(
1735 *${as_nl}*)
1736 case $ac_var in #(
1737 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1738 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1739 esac
1740 case $ac_var in #(
1741 _ | IFS | as_nl) ;; #(
1742 *) $as_unset $ac_var ;;
1743 esac ;;
1744 esac
1745 done
1746 (set) 2>&1 |
1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1749 sed -n \
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 ;; #(
1753 *)
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ;;
1756 esac |
1757 sort
1758 )
1759 echo
1760
1761 cat <<\_ASBOX
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_vars
1768 do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1776
1777 if test -n "$ac_subst_files"; then
1778 cat <<\_ASBOX
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1782 _ASBOX
1783 echo
1784 for ac_var in $ac_subst_files
1785 do
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 echo "$ac_var='\''$ac_val'\''"
1791 done | sort
1792 echo
1793 fi
1794
1795 if test -s confdefs.h; then
1796 cat <<\_ASBOX
1797 ## ----------- ##
1798 ## confdefs.h. ##
1799 ## ----------- ##
1800 _ASBOX
1801 echo
1802 cat confdefs.h
1803 echo
1804 fi
1805 test "$ac_signal" != 0 &&
1806 echo "$as_me: caught signal $ac_signal"
1807 echo "$as_me: exit $exit_status"
1808 } >&5
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 exit $exit_status
1812 ' 0
1813 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815 done
1816 ac_signal=0
1817
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1820
1821 # Predefined preprocessor variables.
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845 _ACEOF
1846
1847
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851 set x "$CONFIG_SITE"
1852 elif test "x$prefix" != xNONE; then
1853 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1854 else
1855 set x "$ac_default_prefix/share/config.site" \
1856 "$ac_default_prefix/etc/config.site"
1857 fi
1858 shift
1859 for ac_site_file
1860 do
1861 if test -r "$ac_site_file"; then
1862 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863 echo "$as_me: loading site script $ac_site_file" >&6;}
1864 sed 's/^/| /' "$ac_site_file" >&5
1865 . "$ac_site_file"
1866 fi
1867 done
1868
1869 if test -r "$cache_file"; then
1870 # Some versions of bash will fail to source /dev/null (special
1871 # files actually), so we avoid doing that.
1872 if test -f "$cache_file"; then
1873 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874 echo "$as_me: loading cache $cache_file" >&6;}
1875 case $cache_file in
1876 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877 *) . "./$cache_file";;
1878 esac
1879 fi
1880 else
1881 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882 echo "$as_me: creating cache $cache_file" >&6;}
1883 >$cache_file
1884 fi
1885
1886 # Check that the precious variables saved in the cache have kept the same
1887 # value.
1888 ac_cache_corrupted=false
1889 for ac_var in $ac_precious_vars; do
1890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891 eval ac_new_set=\$ac_env_${ac_var}_set
1892 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893 eval ac_new_val=\$ac_env_${ac_var}_value
1894 case $ac_old_set,$ac_new_set in
1895 set,)
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1899 ,set)
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1903 ,);;
1904 *)
1905 if test "x$ac_old_val" != "x$ac_new_val"; then
1906 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1909 echo "$as_me: former value: $ac_old_val" >&2;}
1910 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1911 echo "$as_me: current value: $ac_new_val" >&2;}
1912 ac_cache_corrupted=:
1913 fi;;
1914 esac
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1917 case $ac_new_val in
1918 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1920 esac
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924 esac
1925 fi
1926 done
1927 if $ac_cache_corrupted; then
1928 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1933 fi
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964
1965
1966 am__api_version="1.9"
1967 ac_aux_dir=
1968 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1969 if test -f "$ac_dir/install-sh"; then
1970 ac_aux_dir=$ac_dir
1971 ac_install_sh="$ac_aux_dir/install-sh -c"
1972 break
1973 elif test -f "$ac_dir/install.sh"; then
1974 ac_aux_dir=$ac_dir
1975 ac_install_sh="$ac_aux_dir/install.sh -c"
1976 break
1977 elif test -f "$ac_dir/shtool"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/shtool install -c"
1980 break
1981 fi
1982 done
1983 if test -z "$ac_aux_dir"; then
1984 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1985 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1986 { (exit 1); exit 1; }; }
1987 fi
1988
1989 # These three variables are undocumented and unsupported,
1990 # and are intended to be withdrawn in a future Autoconf release.
1991 # They can cause serious problems if a builder's source tree is in a directory
1992 # whose full name contains unusual characters.
1993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1996
1997
1998 # Find a good install program. We prefer a C program (faster),
1999 # so one script is as good as another. But avoid the broken or
2000 # incompatible versions:
2001 # SysV /etc/install, /usr/sbin/install
2002 # SunOS /usr/etc/install
2003 # IRIX /sbin/install
2004 # AIX /bin/install
2005 # AmigaOS /C/install, which installs bootblocks on floppy discs
2006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2009 # OS/2's system install, which has a completely different semantic
2010 # ./install, which can be erroneously created by make from ./install.sh.
2011 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2012 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2013 if test -z "$INSTALL"; then
2014 if test "${ac_cv_path_install+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 # Account for people who put trailing slashes in PATH elements.
2023 case $as_dir/ in
2024 ./ | .// | /cC/* | \
2025 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2026 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2027 /usr/ucb/* ) ;;
2028 *)
2029 # OSF1 and SCO ODT 3.0 have their own names for install.
2030 # Don't use installbsd from OSF since it installs stuff as root
2031 # by default.
2032 for ac_prog in ginstall scoinst install; do
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2035 if test $ac_prog = install &&
2036 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2037 # AIX install. It has an incompatible calling convention.
2038 :
2039 elif test $ac_prog = install &&
2040 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041 # program-specific install script used by HP pwplus--don't use.
2042 :
2043 else
2044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2045 break 3
2046 fi
2047 fi
2048 done
2049 done
2050 ;;
2051 esac
2052 done
2053 IFS=$as_save_IFS
2054
2055
2056 fi
2057 if test "${ac_cv_path_install+set}" = set; then
2058 INSTALL=$ac_cv_path_install
2059 else
2060 # As a last resort, use the slow shell script. Don't cache a
2061 # value for INSTALL within a source directory, because that will
2062 # break other packages using the cache if that directory is
2063 # removed, or if the value is a relative name.
2064 INSTALL=$ac_install_sh
2065 fi
2066 fi
2067 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2068 echo "${ECHO_T}$INSTALL" >&6; }
2069
2070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2071 # It thinks the first close brace ends the variable substitution.
2072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2073
2074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2075
2076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2077
2078 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2079 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2080 # Just in case
2081 sleep 1
2082 echo timestamp > conftest.file
2083 # Do `set' in a subshell so we don't clobber the current shell's
2084 # arguments. Must try -L first in case configure is actually a
2085 # symlink; some systems play weird games with the mod time of symlinks
2086 # (eg FreeBSD returns the mod time of the symlink's containing
2087 # directory).
2088 if (
2089 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2090 if test "$*" = "X"; then
2091 # -L didn't work.
2092 set X `ls -t $srcdir/configure conftest.file`
2093 fi
2094 rm -f conftest.file
2095 if test "$*" != "X $srcdir/configure conftest.file" \
2096 && test "$*" != "X conftest.file $srcdir/configure"; then
2097
2098 # If neither matched, then we have a broken ls. This can happen
2099 # if, for instance, CONFIG_SHELL is bash and it inherits a
2100 # broken ls alias from the environment. This has actually
2101 # happened. Such a system could not be considered "sane".
2102 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2103 alias in your environment" >&5
2104 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2105 alias in your environment" >&2;}
2106 { (exit 1); exit 1; }; }
2107 fi
2108
2109 test "$2" = conftest.file
2110 )
2111 then
2112 # Ok.
2113 :
2114 else
2115 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2116 Check your system clock" >&5
2117 echo "$as_me: error: newly created file is older than distributed files!
2118 Check your system clock" >&2;}
2119 { (exit 1); exit 1; }; }
2120 fi
2121 { echo "$as_me:$LINENO: result: yes" >&5
2122 echo "${ECHO_T}yes" >&6; }
2123 test "$program_prefix" != NONE &&
2124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2125 # Use a double $ so make ignores it.
2126 test "$program_suffix" != NONE &&
2127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2128 # Double any \ or $. echo might interpret backslashes.
2129 # By default was `s,x,x', remove it if useless.
2130 cat <<\_ACEOF >conftest.sed
2131 s/[\\$]/&&/g;s/;s,x,x,$//
2132 _ACEOF
2133 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2134 rm -f conftest.sed
2135
2136 # expand $ac_aux_dir to an absolute path
2137 am_aux_dir=`cd $ac_aux_dir && pwd`
2138
2139 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2140 # Use eval to expand $SHELL
2141 if eval "$MISSING --run true"; then
2142 am_missing_run="$MISSING --run "
2143 else
2144 am_missing_run=
2145 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2146 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2147 fi
2148
2149 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2150 # We used to keeping the `.' as first argument, in order to
2151 # allow $(mkdir_p) to be used without argument. As in
2152 # $(mkdir_p) $(somedir)
2153 # where $(somedir) is conditionally defined. However this is wrong
2154 # for two reasons:
2155 # 1. if the package is installed by a user who cannot write `.'
2156 # make install will fail,
2157 # 2. the above comment should most certainly read
2158 # $(mkdir_p) $(DESTDIR)$(somedir)
2159 # so it does not work when $(somedir) is undefined and
2160 # $(DESTDIR) is not.
2161 # To support the latter case, we have to write
2162 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2163 # so the `.' trick is pointless.
2164 mkdir_p='mkdir -p --'
2165 else
2166 # On NextStep and OpenStep, the `mkdir' command does not
2167 # recognize any option. It will interpret all options as
2168 # directories to create, and then abort because `.' already
2169 # exists.
2170 for d in ./-p ./--version;
2171 do
2172 test -d $d && rmdir $d
2173 done
2174 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2175 if test -f "$ac_aux_dir/mkinstalldirs"; then
2176 mkdir_p='$(mkinstalldirs)'
2177 else
2178 mkdir_p='$(install_sh) -d'
2179 fi
2180 fi
2181
2182 for ac_prog in gawk mawk nawk awk
2183 do
2184 # Extract the first word of "$ac_prog", so it can be a program name with args.
2185 set dummy $ac_prog; ac_word=$2
2186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2188 if test "${ac_cv_prog_AWK+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$AWK"; then
2192 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_AWK="$ac_prog"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2204 fi
2205 done
2206 done
2207 IFS=$as_save_IFS
2208
2209 fi
2210 fi
2211 AWK=$ac_cv_prog_AWK
2212 if test -n "$AWK"; then
2213 { echo "$as_me:$LINENO: result: $AWK" >&5
2214 echo "${ECHO_T}$AWK" >&6; }
2215 else
2216 { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2218 fi
2219
2220
2221 test -n "$AWK" && break
2222 done
2223
2224 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2225 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2226 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2227 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 cat >conftest.make <<\_ACEOF
2231 SHELL = /bin/sh
2232 all:
2233 @echo '@@@%%%=$(MAKE)=@@@%%%'
2234 _ACEOF
2235 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2236 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2237 *@@@%%%=?*=@@@%%%*)
2238 eval ac_cv_prog_make_${ac_make}_set=yes;;
2239 *)
2240 eval ac_cv_prog_make_${ac_make}_set=no;;
2241 esac
2242 rm -f conftest.make
2243 fi
2244 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 SET_MAKE=
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2251 SET_MAKE="MAKE=${MAKE-make}"
2252 fi
2253
2254 rm -rf .tst 2>/dev/null
2255 mkdir .tst 2>/dev/null
2256 if test -d .tst; then
2257 am__leading_dot=.
2258 else
2259 am__leading_dot=_
2260 fi
2261 rmdir .tst 2>/dev/null
2262
2263 # test to see if srcdir already configured
2264 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2265 test -f $srcdir/config.status; then
2266 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2267 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268 { (exit 1); exit 1; }; }
2269 fi
2270
2271 # test whether we have cygpath
2272 if test -z "$CYGPATH_W"; then
2273 if (cygpath --version) >/dev/null 2>/dev/null; then
2274 CYGPATH_W='cygpath -w'
2275 else
2276 CYGPATH_W=echo
2277 fi
2278 fi
2279
2280
2281 # Define the identity of the package.
2282 PACKAGE='libXcomposite'
2283 VERSION='0.4.0'
2284
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE "$PACKAGE"
2288 _ACEOF
2289
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define VERSION "$VERSION"
2293 _ACEOF
2294
2295 # Some tools Automake needs.
2296
2297 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2298
2299
2300 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2301
2302
2303 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2304
2305
2306 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2307
2308
2309 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2310
2311 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2312
2313 # Installed binaries are usually stripped using `strip' when the user
2314 # run `make install-strip'. However `strip' might not be the right
2315 # tool to use in cross-compilation environments, therefore Automake
2316 # will honor the `STRIP' environment variable to overrule this program.
2317 if test "$cross_compiling" != no; then
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}strip; ac_word=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_prog_STRIP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$STRIP"; then
2327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342 IFS=$as_save_IFS
2343
2344 fi
2345 fi
2346 STRIP=$ac_cv_prog_STRIP
2347 if test -n "$STRIP"; then
2348 { echo "$as_me:$LINENO: result: $STRIP" >&5
2349 echo "${ECHO_T}$STRIP" >&6; }
2350 else
2351 { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2353 fi
2354
2355
2356 fi
2357 if test -z "$ac_cv_prog_STRIP"; then
2358 ac_ct_STRIP=$STRIP
2359 # Extract the first word of "strip", so it can be a program name with args.
2360 set dummy strip; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$ac_ct_STRIP"; then
2367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_STRIP="strip"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2387 if test -n "$ac_ct_STRIP"; then
2388 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2389 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390 else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 fi
2394
2395 if test "x$ac_ct_STRIP" = x; then
2396 STRIP=":"
2397 else
2398 case $cross_compiling:$ac_tool_warned in
2399 yes:)
2400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet. If you think this
2402 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2406 ac_tool_warned=yes ;;
2407 esac
2408 STRIP=$ac_ct_STRIP
2409 fi
2410 else
2411 STRIP="$ac_cv_prog_STRIP"
2412 fi
2413
2414 fi
2415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2416
2417 # We need awk for the "check" target. The system "awk" is bad on
2418 # some platforms.
2419 # Always define AMTAR for backward compatibility.
2420
2421 AMTAR=${AMTAR-"${am_missing_run}tar"}
2422
2423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2424
2425
2426
2427
2428
2429 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2430 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2431 # Check whether --enable-maintainer-mode was given.
2432 if test "${enable_maintainer_mode+set}" = set; then
2433 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2434 else
2435 USE_MAINTAINER_MODE=no
2436 fi
2437
2438 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2439 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2440
2441
2442 if test $USE_MAINTAINER_MODE = yes; then
2443 MAINTAINER_MODE_TRUE=
2444 MAINTAINER_MODE_FALSE='#'
2445 else
2446 MAINTAINER_MODE_TRUE='#'
2447 MAINTAINER_MODE_FALSE=
2448 fi
2449
2450 MAINT=$MAINTAINER_MODE_TRUE
2451
2452
2453
2454 ac_config_headers="$ac_config_headers config.h"
2455
2456
2457 # Check for progs
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 CC=$ac_cv_prog_CC
2492 if test -n "$CC"; then
2493 { echo "$as_me:$LINENO: result: $CC" >&5
2494 echo "${ECHO_T}$CC" >&6; }
2495 else
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2498 fi
2499
2500
2501 fi
2502 if test -z "$ac_cv_prog_CC"; then
2503 ac_ct_CC=$CC
2504 # Extract the first word of "gcc", so it can be a program name with args.
2505 set dummy gcc; ac_word=$2
2506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 if test -n "$ac_ct_CC"; then
2512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_CC="gcc"
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2532 if test -n "$ac_ct_CC"; then
2533 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2534 echo "${ECHO_T}$ac_ct_CC" >&6; }
2535 else
2536 { echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6; }
2538 fi
2539
2540 if test "x$ac_ct_CC" = x; then
2541 CC=""
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544 yes:)
2545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2546 whose name does not start with the host triplet. If you think this
2547 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2549 whose name does not start with the host triplet. If you think this
2550 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2551 ac_tool_warned=yes ;;
2552 esac
2553 CC=$ac_ct_CC
2554 fi
2555 else
2556 CC="$ac_cv_prog_CC"
2557 fi
2558
2559 if test -z "$CC"; then
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}cc; ac_word=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_CC="${ac_tool_prefix}cc"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590 { echo "$as_me:$LINENO: result: $CC" >&5
2591 echo "${ECHO_T}$CC" >&6; }
2592 else
2593 { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2595 fi
2596
2597
2598 fi
2599 fi
2600 if test -z "$CC"; then
2601 # Extract the first word of "cc", so it can be a program name with args.
2602 set dummy cc; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 else
2611 ac_prog_rejected=no
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2620 ac_prog_rejected=yes
2621 continue
2622 fi
2623 ac_cv_prog_CC="cc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 if test $ac_prog_rejected = yes; then
2632 # We found a bogon in the path, so make sure we never use it.
2633 set dummy $ac_cv_prog_CC
2634 shift
2635 if test $# != 0; then
2636 # We chose a different compiler from the bogus one.
2637 # However, it has the same basename, so the bogon will be chosen
2638 # first if we set CC to just the basename; use the full file name.
2639 shift
2640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2641 fi
2642 fi
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647 { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2649 else
2650 { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2652 fi
2653
2654
2655 fi
2656 if test -z "$CC"; then
2657 if test -n "$ac_tool_prefix"; then
2658 for ac_prog in cl.exe
2659 do
2660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2680 fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 { echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6; }
2691 else
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696
2697 test -n "$CC" && break
2698 done
2699 fi
2700 if test -z "$CC"; then
2701 ac_ct_CC=$CC
2702 for ac_prog in cl.exe
2703 do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_ac_ct_CC="$ac_prog"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2734 echo "${ECHO_T}$ac_ct_CC" >&6; }
2735 else
2736 { echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6; }
2738 fi
2739
2740
2741 test -n "$ac_ct_CC" && break
2742 done
2743
2744 if test "x$ac_ct_CC" = x; then
2745 CC=""
2746 else
2747 case $cross_compiling:$ac_tool_warned in
2748 yes:)
2749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet. If you think this
2751 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2755 ac_tool_warned=yes ;;
2756 esac
2757 CC=$ac_ct_CC
2758 fi
2759 fi
2760
2761 fi
2762
2763
2764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: no acceptable C compiler found in \$PATH
2767 See \`config.log' for more details." >&2;}
2768 { (exit 1); exit 1; }; }
2769
2770 # Provide some information about the compiler.
2771 echo "$as_me:$LINENO: checking for C compiler version" >&5
2772 ac_compiler=`set X $ac_compile; echo $2`
2773 { (ac_try="$ac_compiler --version >&5"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compiler --version >&5") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2783 { (ac_try="$ac_compiler -v >&5"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compiler -v >&5") 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }
2793 { (ac_try="$ac_compiler -V >&5"
2794 case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_compiler -V >&5") 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }
2803
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2810
2811 int
2812 main ()
2813 {
2814
2815 ;
2816 return 0;
2817 }
2818 _ACEOF
2819 ac_clean_files_save=$ac_clean_files
2820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2821 # Try to create an executable without -o first, disregard a.out.
2822 # It will help us diagnose broken compilers, and finding out an intuition
2823 # of exeext.
2824 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2825 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2827 #
2828 # List of possible output files, starting from the most likely.
2829 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2830 # only as a last resort. b.out is created by i960 compilers.
2831 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2832 #
2833 # The IRIX 6 linker writes into existing files which may not be
2834 # executable, retaining their permissions. Remove them first so a
2835 # subsequent execution test works.
2836 ac_rmfiles=
2837 for ac_file in $ac_files
2838 do
2839 case $ac_file in
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2842 esac
2843 done
2844 rm -f $ac_rmfiles
2845
2846 if { (ac_try="$ac_link_default"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_link_default") 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
2856 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2857 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2858 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2859 # so that the user can short-circuit this test for compilers unknown to
2860 # Autoconf.
2861 for ac_file in $ac_files ''
2862 do
2863 test -f "$ac_file" || continue
2864 case $ac_file in
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2866 ;;
2867 [ab].out )
2868 # We found the default executable, but exeext='' is most
2869 # certainly right.
2870 break;;
2871 *.* )
2872 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2873 then :; else
2874 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875 fi
2876 # We set ac_cv_exeext here because the later test for it is not
2877 # safe: cross compilers may not add the suffix if given an `-o'
2878 # argument, so we may need to know it at that point already.
2879 # Even if this section looks crufty: it has the advantage of
2880 # actually working.
2881 break;;
2882 * )
2883 break;;
2884 esac
2885 done
2886 test "$ac_cv_exeext" = no && ac_cv_exeext=
2887
2888 else
2889 ac_file=''
2890 fi
2891
2892 { echo "$as_me:$LINENO: result: $ac_file" >&5
2893 echo "${ECHO_T}$ac_file" >&6; }
2894 if test -z "$ac_file"; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: C compiler cannot create executables
2901 See \`config.log' for more details." >&2;}
2902 { (exit 77); exit 77; }; }
2903 fi
2904
2905 ac_exeext=$ac_cv_exeext
2906
2907 # Check that the compiler produces executables we can run. If not, either
2908 # the compiler is broken, or we cross compile.
2909 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2910 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2911 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2912 # If not cross compiling, check that we can run a simple program.
2913 if test "$cross_compiling" != yes; then
2914 if { ac_try='./$ac_file'
2915 { (case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_try") 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2924 cross_compiling=no
2925 else
2926 if test "$cross_compiling" = maybe; then
2927 cross_compiling=yes
2928 else
2929 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2930 If you meant to cross compile, use \`--host'.
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot run C compiled programs.
2933 If you meant to cross compile, use \`--host'.
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937 fi
2938 fi
2939 { echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6; }
2941
2942 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2943 ac_clean_files=$ac_clean_files_save
2944 # Check that the compiler produces executables we can run. If not, either
2945 # the compiler is broken, or we cross compile.
2946 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2947 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2948 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2949 echo "${ECHO_T}$cross_compiling" >&6; }
2950
2951 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2952 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2953 if { (ac_try="$ac_link"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_link") 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2964 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2965 # work properly (i.e., refer to `conftest.exe'), while it won't with
2966 # `rm'.
2967 for ac_file in conftest.exe conftest conftest.*; do
2968 test -f "$ac_file" || continue
2969 case $ac_file in
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2972 break;;
2973 * ) break;;
2974 esac
2975 done
2976 else
2977 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details." >&5
2979 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2980 See \`config.log' for more details." >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984 rm -f conftest$ac_cv_exeext
2985 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2986 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2987
2988 rm -f conftest.$ac_ext
2989 EXEEXT=$ac_cv_exeext
2990 ac_exeext=$EXEEXT
2991 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2992 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2993 if test "${ac_cv_objext+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002
3003 int
3004 main ()
3005 {
3006
3007 ;
3008 return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.o conftest.obj
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; then
3022 for ac_file in conftest.o conftest.obj conftest.*; do
3023 test -f "$ac_file" || continue;
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3027 break;;
3028 esac
3029 done
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3037 See \`config.log' for more details." >&2;}
3038 { (exit 1); exit 1; }; }
3039 fi
3040
3041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042 fi
3043 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3044 echo "${ECHO_T}$ac_cv_objext" >&6; }
3045 OBJEXT=$ac_cv_objext
3046 ac_objext=$OBJEXT
3047 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3048 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3049 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062 #ifndef __GNUC__
3063 choke me
3064 #endif
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3087 ac_compiler_gnu=yes
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 ac_compiler_gnu=no
3093 fi
3094
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3097
3098 fi
3099 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3100 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3101 GCC=`test $ac_compiler_gnu = yes && echo yes`
3102 ac_test_CFLAGS=${CFLAGS+set}
3103 ac_save_CFLAGS=$CFLAGS
3104 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3105 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3106 if test "${ac_cv_prog_cc_g+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 ac_save_c_werror_flag=$ac_c_werror_flag
3110 ac_c_werror_flag=yes
3111 ac_cv_prog_cc_g=no
3112 CFLAGS="-g"
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119
3120 int
3121 main ()
3122 {
3123
3124 ;
3125 return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } && {
3142 test -z "$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 } && test -s conftest.$ac_objext; then
3145 ac_cv_prog_cc_g=yes
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 CFLAGS=""
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157
3158 int
3159 main ()
3160 {
3161
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.$ac_objext; then
3183 :
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3189 CFLAGS="-g"
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3196
3197 int
3198 main ()
3199 {
3200
3201 ;
3202 return 0;
3203 }
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && {
3219 test -z "$ac_c_werror_flag" ||
3220 test ! -s conftest.err
3221 } && test -s conftest.$ac_objext; then
3222 ac_cv_prog_cc_g=yes
3223 else
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_c_werror_flag=$ac_save_c_werror_flag
3238 fi
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3241 if test "$ac_test_CFLAGS" = set; then
3242 CFLAGS=$ac_save_CFLAGS
3243 elif test $ac_cv_prog_cc_g = yes; then
3244 if test "$GCC" = yes; then
3245 CFLAGS="-g -O2"
3246 else
3247 CFLAGS="-g"
3248 fi
3249 else
3250 if test "$GCC" = yes; then
3251 CFLAGS="-O2"
3252 else
3253 CFLAGS=
3254 fi
3255 fi
3256 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3257 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3258 if test "${ac_cv_prog_cc_c89+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 ac_cv_prog_cc_c89=no
3262 ac_save_CC=$CC
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <stdarg.h>
3270 #include <stdio.h>
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3274 struct buf { int x; };
3275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276 static char *e (p, i)
3277 char **p;
3278 int i;
3279 {
3280 return p[i];
3281 }
3282 static char *f (char * (*g) (char **, int), char **p, ...)
3283 {
3284 char *s;
3285 va_list v;
3286 va_start (v,p);
3287 s = g (p, va_arg (v,int));
3288 va_end (v);
3289 return s;
3290 }
3291
3292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3293 function prototypes and stuff, but not '\xHH' hex character constants.
3294 These don't provoke an error unfortunately, instead are silently treated
3295 as 'x'. The following induces an error, until -std is added to get
3296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3297 array size at least. It's necessary to write '\x00'==0 to get something
3298 that's true only with -std. */
3299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300
3301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302 inside strings and character constants. */
3303 #define FOO(x) 'x'
3304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305
3306 int test (int i, double x);
3307 struct s1 {int (*f) (int a);};
3308 struct s2 {int (*f) (double a);};
3309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310 int argc;
3311 char **argv;
3312 int
3313 main ()
3314 {
3315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322 do
3323 CC="$ac_save_CC $ac_arg"
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_compile") 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && {
3338 test -z "$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3340 } && test -s conftest.$ac_objext; then
3341 ac_cv_prog_cc_c89=$ac_arg
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346
3347 fi
3348
3349 rm -f core conftest.err conftest.$ac_objext
3350 test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 done
3352 rm -f conftest.$ac_ext
3353 CC=$ac_save_CC
3354
3355 fi
3356 # AC_CACHE_VAL
3357 case "x$ac_cv_prog_cc_c89" in
3358 x)
3359 { echo "$as_me:$LINENO: result: none needed" >&5
3360 echo "${ECHO_T}none needed" >&6; } ;;
3361 xno)
3362 { echo "$as_me:$LINENO: result: unsupported" >&5
3363 echo "${ECHO_T}unsupported" >&6; } ;;
3364 *)
3365 CC="$CC $ac_cv_prog_cc_c89"
3366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3367 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3368 esac
3369
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 DEPDIR="${am__leading_dot}deps"
3377
3378 ac_config_commands="$ac_config_commands depfiles"
3379
3380
3381 am_make=${MAKE-make}
3382 cat > confinc << 'END'
3383 am__doit:
3384 @echo done
3385 .PHONY: am__doit
3386 END
3387 # If we don't find an include directive, just comment out the code.
3388 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3389 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3390 am__include="#"
3391 am__quote=
3392 _am_result=none
3393 # First try GNU make style include.
3394 echo "include confinc" > confmf
3395 # We grep out `Entering directory' and `Leaving directory'
3396 # messages which can occur if `w' ends up in MAKEFLAGS.
3397 # In particular we don't look at `^make:' because GNU make might
3398 # be invoked under some other name (usually "gmake"), in which
3399 # case it prints its new name instead of `make'.
3400 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3401 am__include=include
3402 am__quote=
3403 _am_result=GNU
3404 fi
3405 # Now try BSD make style include.
3406 if test "$am__include" = "#"; then
3407 echo '.include "confinc"' > confmf
3408 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3409 am__include=.include
3410 am__quote="\""
3411 _am_result=BSD
3412 fi
3413 fi
3414
3415
3416 { echo "$as_me:$LINENO: result: $_am_result" >&5
3417 echo "${ECHO_T}$_am_result" >&6; }
3418 rm -f confinc confmf
3419
3420 # Check whether --enable-dependency-tracking was given.
3421 if test "${enable_dependency_tracking+set}" = set; then
3422 enableval=$enable_dependency_tracking;
3423 fi
3424
3425 if test "x$enable_dependency_tracking" != xno; then
3426 am_depcomp="$ac_aux_dir/depcomp"
3427 AMDEPBACKSLASH='\'
3428 fi
3429
3430
3431 if test "x$enable_dependency_tracking" != xno; then
3432 AMDEP_TRUE=
3433 AMDEP_FALSE='#'
3434 else
3435 AMDEP_TRUE='#'
3436 AMDEP_FALSE=
3437 fi
3438
3439
3440
3441
3442 depcc="$CC" am_compiler_list=
3443
3444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3446 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3450 # We make a subdir and do the tests there. Otherwise we can end up
3451 # making bogus files that we don't know about and never remove. For
3452 # instance it was reported that on HP-UX the gcc test will end up
3453 # making a dummy file named `D' -- because `-MD' means `put the output
3454 # in D'.
3455 mkdir conftest.dir
3456 # Copy depcomp to subdir because otherwise we won't find it if we're
3457 # using a relative directory.
3458 cp "$am_depcomp" conftest.dir
3459 cd conftest.dir
3460 # We will build objects and dependencies in a subdirectory because
3461 # it helps to detect inapplicable dependency modes. For instance
3462 # both Tru64's cc and ICC support -MD to output dependencies as a
3463 # side effect of compilation, but ICC will put the dependencies in
3464 # the current directory while Tru64 will put them in the object
3465 # directory.
3466 mkdir sub
3467
3468 am_cv_CC_dependencies_compiler_type=none
3469 if test "$am_compiler_list" = ""; then
3470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3471 fi
3472 for depmode in $am_compiler_list; do
3473 # Setup a source with many dependencies, because some compilers
3474 # like to wrap large dependency lists on column 80 (with \), and
3475 # we should not choose a depcomp mode which is confused by this.
3476 #
3477 # We need to recreate these files for each test, as the compiler may
3478 # overwrite some of them when testing with obscure command lines.
3479 # This happens at least with the AIX C compiler.
3480 : > sub/conftest.c
3481 for i in 1 2 3 4 5 6; do
3482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3484 # Solaris 8's {/usr,}/bin/sh.
3485 touch sub/conftst$i.h
3486 done
3487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3488
3489 case $depmode in
3490 nosideeffect)
3491 # after this tag, mechanisms are not by side-effect, so they'll
3492 # only be used when explicitly requested
3493 if test "x$enable_dependency_tracking" = xyes; then
3494 continue
3495 else
3496 break
3497 fi
3498 ;;
3499 none) break ;;
3500 esac
3501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3502 # mode. It turns out that the SunPro C++ compiler does not properly
3503 # handle `-M -o', and we need to detect this.
3504 if depmode=$depmode \
3505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3508 >/dev/null 2>conftest.err &&
3509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3512 # icc doesn't choke on unknown options, it will just issue warnings
3513 # or remarks (even with -Werror). So we grep stderr for any message
3514 # that says an option was ignored or not supported.
3515 # When given -MP, icc 7.0 and 7.1 complain thusly:
3516 # icc: Command line warning: ignoring option '-M'; no argument required
3517 # The diagnosis changed in icc 8.0:
3518 # icc: Command line remark: option '-MP' not supported
3519 if (grep 'ignoring option' conftest.err ||
3520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3521 am_cv_CC_dependencies_compiler_type=$depmode
3522 break
3523 fi
3524 fi
3525 done
3526
3527 cd ..
3528 rm -rf conftest.dir
3529 else
3530 am_cv_CC_dependencies_compiler_type=none
3531 fi
3532
3533 fi
3534 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3535 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3536 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3537
3538
3539
3540 if
3541 test "x$enable_dependency_tracking" != xno \
3542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3543 am__fastdepCC_TRUE=
3544 am__fastdepCC_FALSE='#'
3545 else
3546 am__fastdepCC_TRUE='#'
3547 am__fastdepCC_FALSE=
3548 fi
3549
3550
3551 # Check whether --enable-shared was given.
3552 if test "${enable_shared+set}" = set; then
3553 enableval=$enable_shared; p=${PACKAGE-default}
3554 case $enableval in
3555 yes) enable_shared=yes ;;
3556 no) enable_shared=no ;;
3557 *)
3558 enable_shared=no
3559 # Look at the argument we got. We use all the common list separators.
3560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3561 for pkg in $enableval; do
3562 IFS="$lt_save_ifs"
3563 if test "X$pkg" = "X$p"; then
3564 enable_shared=yes
3565 fi
3566 done
3567 IFS="$lt_save_ifs"
3568 ;;
3569 esac
3570 else
3571 enable_shared=yes
3572 fi
3573
3574
3575 # Check whether --enable-static was given.
3576 if test "${enable_static+set}" = set; then
3577 enableval=$enable_static; p=${PACKAGE-default}
3578 case $enableval in
3579 yes) enable_static=yes ;;
3580 no) enable_static=no ;;
3581 *)
3582 enable_static=no
3583 # Look at the argument we got. We use all the common list separators.
3584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3585 for pkg in $enableval; do
3586 IFS="$lt_save_ifs"
3587 if test "X$pkg" = "X$p"; then
3588 enable_static=yes
3589 fi
3590 done
3591 IFS="$lt_save_ifs"
3592 ;;
3593 esac
3594 else
3595 enable_static=yes
3596 fi
3597
3598
3599 # Check whether --enable-fast-install was given.
3600 if test "${enable_fast_install+set}" = set; then
3601 enableval=$enable_fast_install; p=${PACKAGE-default}
3602 case $enableval in
3603 yes) enable_fast_install=yes ;;
3604 no) enable_fast_install=no ;;
3605 *)
3606 enable_fast_install=no
3607 # Look at the argument we got. We use all the common list separators.
3608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3609 for pkg in $enableval; do
3610 IFS="$lt_save_ifs"
3611 if test "X$pkg" = "X$p"; then
3612 enable_fast_install=yes
3613 fi
3614 done
3615 IFS="$lt_save_ifs"
3616 ;;
3617 esac
3618 else
3619 enable_fast_install=yes
3620 fi
3621
3622
3623 # Make sure we can run config.sub.
3624 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3625 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3626 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3627 { (exit 1); exit 1; }; }
3628
3629 { echo "$as_me:$LINENO: checking build system type" >&5
3630 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3631 if test "${ac_cv_build+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634 ac_build_alias=$build_alias
3635 test "x$ac_build_alias" = x &&
3636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3637 test "x$ac_build_alias" = x &&
3638 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3639 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3640 { (exit 1); exit 1; }; }
3641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3642 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3643 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3644 { (exit 1); exit 1; }; }
3645
3646 fi
3647 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3648 echo "${ECHO_T}$ac_cv_build" >&6; }
3649 case $ac_cv_build in
3650 *-*-*) ;;
3651 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3652 echo "$as_me: error: invalid value of canonical build" >&2;}
3653 { (exit 1); exit 1; }; };;
3654 esac
3655 build=$ac_cv_build
3656 ac_save_IFS=$IFS; IFS='-'
3657 set x $ac_cv_build
3658 shift
3659 build_cpu=$1
3660 build_vendor=$2
3661 shift; shift
3662 # Remember, the first character of IFS is used to create $*,
3663 # except with old shells:
3664 build_os=$*
3665 IFS=$ac_save_IFS
3666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3667
3668
3669 { echo "$as_me:$LINENO: checking host system type" >&5
3670 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3671 if test "${ac_cv_host+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 if test "x$host_alias" = x; then
3675 ac_cv_host=$ac_cv_build
3676 else
3677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3678 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3679 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3680 { (exit 1); exit 1; }; }
3681 fi
3682
3683 fi
3684 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3685 echo "${ECHO_T}$ac_cv_host" >&6; }
3686 case $ac_cv_host in
3687 *-*-*) ;;
3688 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3689 echo "$as_me: error: invalid value of canonical host" >&2;}
3690 { (exit 1); exit 1; }; };;
3691 esac
3692 host=$ac_cv_host
3693 ac_save_IFS=$IFS; IFS='-'
3694 set x $ac_cv_host
3695 shift
3696 host_cpu=$1
3697 host_vendor=$2
3698 shift; shift
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3701 host_os=$*
3702 IFS=$ac_save_IFS
3703 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3704
3705
3706 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3707 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3708 if test "${lt_cv_path_SED+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 # Loop through the user's path and test for sed and gsed.
3712 # Then use that list of sed's as ones to test for truncation.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for lt_ac_prog in sed gsed; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3721 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3722 fi
3723 done
3724 done
3725 done
3726 lt_ac_max=0
3727 lt_ac_count=0
3728 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3729 # along with /bin/sed that truncates output.
3730 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3731 test ! -f $lt_ac_sed && continue
3732 cat /dev/null > conftest.in
3733 lt_ac_count=0
3734 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3735 # Check for GNU sed and select it if it is found.
3736 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3737 lt_cv_path_SED=$lt_ac_sed
3738 break
3739 fi
3740 while true; do
3741 cat conftest.in conftest.in >conftest.tmp
3742 mv conftest.tmp conftest.in
3743 cp conftest.in conftest.nl
3744 echo >>conftest.nl
3745 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3746 cmp -s conftest.out conftest.nl || break
3747 # 10000 chars as input seems more than enough
3748 test $lt_ac_count -gt 10 && break
3749 lt_ac_count=`expr $lt_ac_count + 1`
3750 if test $lt_ac_count -gt $lt_ac_max; then
3751 lt_ac_max=$lt_ac_count
3752 lt_cv_path_SED=$lt_ac_sed
3753 fi
3754 done
3755 done
3756
3757 fi
3758
3759 SED=$lt_cv_path_SED
3760 { echo "$as_me:$LINENO: result: $SED" >&5
3761 echo "${ECHO_T}$SED" >&6; }
3762
3763 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3764 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3765 if test "${ac_cv_path_GREP+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 # Extract the first word of "grep ggrep" to use in msg output
3769 if test -z "$GREP"; then
3770 set dummy grep ggrep; ac_prog_name=$2
3771 if test "${ac_cv_path_GREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 ac_path_GREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in grep ggrep; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3784 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3785 # Check for GNU ac_path_GREP and select it if it is found.
3786 # Check for GNU $ac_path_GREP
3787 case `"$ac_path_GREP" --version 2>&1` in
3788 *GNU*)
3789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790 *)
3791 ac_count=0
3792 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3793 while :
3794 do
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 echo 'GREP' >> "conftest.nl"
3799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 ac_count=`expr $ac_count + 1`
3802 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_GREP="$ac_path_GREP"
3805 ac_path_GREP_max=$ac_count
3806 fi
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3809 done
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 esac
3812
3813
3814 $ac_path_GREP_found && break 3
3815 done
3816 done
3817
3818 done
3819 IFS=$as_save_IFS
3820
3821
3822 fi
3823
3824 GREP="$ac_cv_path_GREP"
3825 if test -z "$GREP"; then
3826 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3827 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3828 { (exit 1); exit 1; }; }
3829 fi
3830
3831 else
3832 ac_cv_path_GREP=$GREP
3833 fi
3834
3835
3836 fi
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3839 GREP="$ac_cv_path_GREP"
3840
3841
3842 { echo "$as_me:$LINENO: checking for egrep" >&5
3843 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3844 if test "${ac_cv_path_EGREP+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3848 then ac_cv_path_EGREP="$GREP -E"
3849 else
3850 # Extract the first word of "egrep" to use in msg output
3851 if test -z "$EGREP"; then
3852 set dummy egrep; ac_prog_name=$2
3853 if test "${ac_cv_path_EGREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 ac_path_EGREP_found=false
3857 # Loop through the user's path and test for each of PROGNAME-LIST
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860 do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in egrep; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3866 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3867 # Check for GNU ac_path_EGREP and select it if it is found.
3868 # Check for GNU $ac_path_EGREP
3869 case `"$ac_path_EGREP" --version 2>&1` in
3870 *GNU*)
3871 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3872 *)
3873 ac_count=0
3874 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3875 while :
3876 do
3877 cat "conftest.in" "conftest.in" >"conftest.tmp"
3878 mv "conftest.tmp" "conftest.in"
3879 cp "conftest.in" "conftest.nl"
3880 echo 'EGREP' >> "conftest.nl"
3881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3883 ac_count=`expr $ac_count + 1`
3884 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3885 # Best one so far, save it but keep looking for a better one
3886 ac_cv_path_EGREP="$ac_path_EGREP"
3887 ac_path_EGREP_max=$ac_count
3888 fi
3889 # 10*(2^10) chars as input seems more than enough
3890 test $ac_count -gt 10 && break
3891 done
3892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893 esac
3894
3895
3896 $ac_path_EGREP_found && break 3
3897 done
3898 done
3899
3900 done
3901 IFS=$as_save_IFS
3902
3903
3904 fi
3905
3906 EGREP="$ac_cv_path_EGREP"
3907 if test -z "$EGREP"; then
3908 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3909 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3910 { (exit 1); exit 1; }; }
3911 fi
3912
3913 else
3914 ac_cv_path_EGREP=$EGREP
3915 fi
3916
3917
3918 fi
3919 fi
3920 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3921 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3922 EGREP="$ac_cv_path_EGREP"
3923
3924
3925
3926 # Check whether --with-gnu-ld was given.
3927 if test "${with_gnu_ld+set}" = set; then
3928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3929 else
3930 with_gnu_ld=no
3931 fi
3932
3933 ac_prog=ld
3934 if test "$GCC" = yes; then
3935 # Check if gcc -print-prog-name=ld gives a path.
3936 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3937 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3938 case $host in
3939 *-*-mingw*)
3940 # gcc leaves a trailing carriage return which upsets mingw
3941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3942 *)
3943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3944 esac
3945 case $ac_prog in
3946 # Accept absolute paths.
3947 [\\/]* | ?:[\\/]*)
3948 re_direlt='/[^/][^/]*/\.\./'
3949 # Canonicalize the pathname of ld
3950 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3951 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3952 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3953 done
3954 test -z "$LD" && LD="$ac_prog"
3955 ;;
3956 "")
3957 # If it fails, then pretend we aren't using GCC.
3958 ac_prog=ld
3959 ;;
3960 *)
3961 # If it is relative, then search for the first ld in PATH.
3962 with_gnu_ld=unknown
3963 ;;
3964 esac
3965 elif test "$with_gnu_ld" = yes; then
3966 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3967 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3968 else
3969 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3970 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3971 fi
3972 if test "${lt_cv_path_LD+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 if test -z "$LD"; then
3976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3977 for ac_dir in $PATH; do
3978 IFS="$lt_save_ifs"
3979 test -z "$ac_dir" && ac_dir=.
3980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3981 lt_cv_path_LD="$ac_dir/$ac_prog"
3982 # Check to see if the program is GNU ld. I'd rather use --version,
3983 # but apparently some variants of GNU ld only accept -v.
3984 # Break only if it was the GNU/non-GNU ld that we prefer.
3985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3986 *GNU* | *'with BFD'*)
3987 test "$with_gnu_ld" != no && break
3988 ;;
3989 *)
3990 test "$with_gnu_ld" != yes && break
3991 ;;
3992 esac
3993 fi
3994 done
3995 IFS="$lt_save_ifs"
3996 else
3997 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3998 fi
3999 fi
4000
4001 LD="$lt_cv_path_LD"
4002 if test -n "$LD"; then
4003 { echo "$as_me:$LINENO: result: $LD" >&5
4004 echo "${ECHO_T}$LD" >&6; }
4005 else
4006 { echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6; }
4008 fi
4009 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4010 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4011 { (exit 1); exit 1; }; }
4012 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4013 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4014 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4018 case `$LD -v 2>&1 </dev/null` in
4019 *GNU* | *'with BFD'*)
4020 lt_cv_prog_gnu_ld=yes
4021 ;;
4022 *)
4023 lt_cv_prog_gnu_ld=no
4024 ;;
4025 esac
4026 fi
4027 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4028 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4029 with_gnu_ld=$lt_cv_prog_gnu_ld
4030
4031
4032 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4033 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4034 if test "${lt_cv_ld_reload_flag+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 lt_cv_ld_reload_flag='-r'
4038 fi
4039 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4040 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4041 reload_flag=$lt_cv_ld_reload_flag
4042 case $reload_flag in
4043 "" | " "*) ;;
4044 *) reload_flag=" $reload_flag" ;;
4045 esac
4046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4047 case $host_os in
4048 darwin*)
4049 if test "$GCC" = yes; then
4050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4051 else
4052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4053 fi
4054 ;;
4055 esac
4056
4057 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4058 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4059 if test "${lt_cv_path_NM+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 if test -n "$NM"; then
4063 # Let the user override the test.
4064 lt_cv_path_NM="$NM"
4065 else
4066 lt_nm_to_check="${ac_tool_prefix}nm"
4067 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4068 lt_nm_to_check="$lt_nm_to_check nm"
4069 fi
4070 for lt_tmp_nm in $lt_nm_to_check; do
4071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4072 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4073 IFS="$lt_save_ifs"
4074 test -z "$ac_dir" && ac_dir=.
4075 tmp_nm="$ac_dir/$lt_tmp_nm"
4076 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4077 # Check to see if the nm accepts a BSD-compat flag.
4078 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4079 # nm: unknown option "B" ignored
4080 # Tru64's nm complains that /dev/null is an invalid object file
4081 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4082 */dev/null* | *'Invalid file or object type'*)
4083 lt_cv_path_NM="$tmp_nm -B"
4084 break
4085 ;;
4086 *)
4087 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4088 */dev/null*)
4089 lt_cv_path_NM="$tmp_nm -p"
4090 break
4091 ;;
4092 *)
4093 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4094 continue # so that we can try to find one that supports BSD flags
4095 ;;
4096 esac
4097 ;;
4098 esac
4099 fi
4100 done
4101 IFS="$lt_save_ifs"
4102 done
4103 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4104 fi
4105 fi
4106 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4107 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4108 NM="$lt_cv_path_NM"
4109
4110 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4111 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4112 LN_S=$as_ln_s
4113 if test "$LN_S" = "ln -s"; then
4114 { echo "$as_me:$LINENO: result: yes" >&5
4115 echo "${ECHO_T}yes" >&6; }
4116 else
4117 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4118 echo "${ECHO_T}no, using $LN_S" >&6; }
4119 fi
4120
4121 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4122 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4123 if test "${lt_cv_deplibs_check_method+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 lt_cv_file_magic_cmd='$MAGIC_CMD'
4127 lt_cv_file_magic_test_file=
4128 lt_cv_deplibs_check_method='unknown'
4129 # Need to set the preceding variable on all platforms that support
4130 # interlibrary dependencies.
4131 # 'none' -- dependencies not supported.
4132 # `unknown' -- same as none, but documents that we really don't know.
4133 # 'pass_all' -- all dependencies passed with no checks.
4134 # 'test_compile' -- check by making test program.
4135 # 'file_magic [[regex]]' -- check by looking for files in library path
4136 # which responds to the $file_magic_cmd with a given extended regex.
4137 # If you have `file' or equivalent on your system and you're not sure
4138 # whether `pass_all' will *always* work, you probably want this one.
4139
4140 case $host_os in
4141 aix4* | aix5*)
4142 lt_cv_deplibs_check_method=pass_all
4143 ;;
4144
4145 beos*)
4146 lt_cv_deplibs_check_method=pass_all
4147 ;;
4148
4149 bsdi[45]*)
4150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4151 lt_cv_file_magic_cmd='/usr/bin/file -L'
4152 lt_cv_file_magic_test_file=/shlib/libc.so
4153 ;;
4154
4155 cygwin*)
4156 # func_win32_libid is a shell function defined in ltmain.sh
4157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4158 lt_cv_file_magic_cmd='func_win32_libid'
4159 ;;
4160
4161 mingw* | pw32*)
4162 # Base MSYS/MinGW do not provide the 'file' command needed by
4163 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4164 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4165 lt_cv_file_magic_cmd='$OBJDUMP -f'
4166 ;;
4167
4168 darwin* | rhapsody*)
4169 lt_cv_deplibs_check_method=pass_all
4170 ;;
4171
4172 freebsd* | dragonfly*)
4173 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4174 case $host_cpu in
4175 i*86 )
4176 # Not sure whether the presence of OpenBSD here was a mistake.
4177 # Let's accept both of them until this is cleared up.
4178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4179 lt_cv_file_magic_cmd=/usr/bin/file
4180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4181 ;;
4182 esac
4183 else
4184 lt_cv_deplibs_check_method=pass_all
4185 fi
4186 ;;
4187
4188 gnu*)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191
4192 hpux10.20* | hpux11*)
4193 lt_cv_file_magic_cmd=/usr/bin/file
4194 case $host_cpu in
4195 ia64*)
4196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4198 ;;
4199 hppa*64*)
4200 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]'
4201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4202 ;;
4203 *)
4204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4205 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4206 ;;
4207 esac
4208 ;;
4209
4210 interix3*)
4211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4213 ;;
4214
4215 irix5* | irix6* | nonstopux*)
4216 case $LD in
4217 *-32|*"-32 ") libmagic=32-bit;;
4218 *-n32|*"-n32 ") libmagic=N32;;
4219 *-64|*"-64 ") libmagic=64-bit;;
4220 *) libmagic=never-match;;
4221 esac
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224
4225 # This must be Linux ELF.
4226 linux* | k*bsd*-gnu)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229
4230 netbsd* | netbsdelf*-gnu)
4231 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4233 else
4234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4235 fi
4236 ;;
4237
4238 newos6*)
4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4240 lt_cv_file_magic_cmd=/usr/bin/file
4241 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4242 ;;
4243
4244 nto-qnx*)
4245 lt_cv_deplibs_check_method=unknown
4246 ;;
4247
4248 openbsd*)
4249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4251 else
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4253 fi
4254 ;;
4255
4256 osf3* | osf4* | osf5*)
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
4259
4260 solaris*)
4261 lt_cv_deplibs_check_method=pass_all
4262 ;;
4263
4264 sysv4 | sysv4.3*)
4265 case $host_vendor in
4266 motorola)
4267 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]'
4268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4269 ;;
4270 ncr)
4271 lt_cv_deplibs_check_method=pass_all
4272 ;;
4273 sequent)
4274 lt_cv_file_magic_cmd='/bin/file'
4275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4276 ;;
4277 sni)
4278 lt_cv_file_magic_cmd='/bin/file'
4279 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4280 lt_cv_file_magic_test_file=/lib/libc.so
4281 ;;
4282 siemens)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285 pc)
4286 lt_cv_deplibs_check_method=pass_all
4287 ;;
4288 esac
4289 ;;
4290
4291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4292 lt_cv_deplibs_check_method=pass_all
4293 ;;
4294 esac
4295
4296 fi
4297 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4298 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4299 file_magic_cmd=$lt_cv_file_magic_cmd
4300 deplibs_check_method=$lt_cv_deplibs_check_method
4301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4302
4303
4304
4305
4306 # If no C compiler was specified, use CC.
4307 LTCC=${LTCC-"$CC"}
4308
4309 # If no C compiler flags were specified, use CFLAGS.
4310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4311
4312 # Allow CC to be a program name with arguments.
4313 compiler=$CC
4314
4315
4316 # Check whether --enable-libtool-lock was given.
4317 if test "${enable_libtool_lock+set}" = set; then
4318 enableval=$enable_libtool_lock;
4319 fi
4320
4321 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4322
4323 # Some flags need to be propagated to the compiler or linker for good
4324 # libtool support.
4325 case $host in
4326 ia64-*-hpux*)
4327 # Find out which ABI we are using.
4328 echo 'int i;' > conftest.$ac_ext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; then
4334 case `/usr/bin/file conftest.$ac_objext` in
4335 *ELF-32*)
4336 HPUX_IA64_MODE="32"
4337 ;;
4338 *ELF-64*)
4339 HPUX_IA64_MODE="64"
4340 ;;
4341 esac
4342 fi
4343 rm -rf conftest*
4344 ;;
4345 *-*-irix6*)
4346 # Find out which ABI we are using.
4347 echo '#line 4347 "configure"' > conftest.$ac_ext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; then
4353 if test "$lt_cv_prog_gnu_ld" = yes; then
4354 case `/usr/bin/file conftest.$ac_objext` in
4355 *32-bit*)
4356 LD="${LD-ld} -melf32bsmip"
4357 ;;
4358 *N32*)
4359 LD="${LD-ld} -melf32bmipn32"
4360 ;;
4361 *64-bit*)
4362 LD="${LD-ld} -melf64bmip"
4363 ;;
4364 esac
4365 else
4366 case `/usr/bin/file conftest.$ac_objext` in
4367 *32-bit*)
4368 LD="${LD-ld} -32"
4369 ;;
4370 *N32*)
4371 LD="${LD-ld} -n32"
4372 ;;
4373 *64-bit*)
4374 LD="${LD-ld} -64"
4375 ;;
4376 esac
4377 fi
4378 fi
4379 rm -rf conftest*
4380 ;;
4381
4382 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4383 # Find out which ABI we are using.
4384 echo 'int i;' > conftest.$ac_ext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; then
4390 case `/usr/bin/file conftest.o` in
4391 *32-bit*)
4392 case $host in
4393 x86_64-*linux*)
4394 LD="${LD-ld} -m elf_i386"
4395 ;;
4396 ppc64-*linux*|powerpc64-*linux*)
4397 LD="${LD-ld} -m elf32ppclinux"
4398 ;;
4399 s390x-*linux*)
4400 LD="${LD-ld} -m elf_s390"
4401 ;;
4402 sparc64-*linux*)
4403 LD="${LD-ld} -m elf32_sparc"
4404 ;;
4405 esac
4406 ;;
4407 *64-bit*)
4408 case $host in
4409 x86_64-*linux*)
4410 LD="${LD-ld} -m elf_x86_64"
4411 ;;
4412 ppc*-*linux*|powerpc*-*linux*)
4413 LD="${LD-ld} -m elf64ppc"
4414 ;;
4415 s390*-*linux*)
4416 LD="${LD-ld} -m elf64_s390"
4417 ;;
4418 sparc*-*linux*)
4419 LD="${LD-ld} -m elf64_sparc"
4420 ;;
4421 esac
4422 ;;
4423 esac
4424 fi
4425 rm -rf conftest*
4426 ;;
4427
4428 *-*-sco3.2v5*)
4429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4430 SAVE_CFLAGS="$CFLAGS"
4431 CFLAGS="$CFLAGS -belf"
4432 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4433 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4434 if test "${lt_cv_cc_needs_belf+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449
4450 int
4451 main ()
4452 {
4453
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (ac_try="$ac_link"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_link") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest$ac_exeext &&
4475 $as_test_x conftest$ac_exeext; then
4476 lt_cv_cc_needs_belf=yes
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 lt_cv_cc_needs_belf=no
4482 fi
4483
4484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4485 conftest$ac_exeext conftest.$ac_ext
4486 ac_ext=c
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492 fi
4493 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4494 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4495 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4496 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4497 CFLAGS="$SAVE_CFLAGS"
4498 fi
4499 ;;
4500 sparc*-*solaris*)
4501 # Find out which ABI we are using.
4502 echo 'int i;' > conftest.$ac_ext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; then
4508 case `/usr/bin/file conftest.o` in
4509 *64-bit*)
4510 case $lt_cv_prog_gnu_ld in
4511 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4512 *) LD="${LD-ld} -64" ;;
4513 esac
4514 ;;
4515 esac
4516 fi
4517 rm -rf conftest*
4518 ;;
4519
4520
4521 esac
4522
4523 need_locks="$enable_libtool_lock"
4524
4525
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4532 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4533 # On Suns, sometimes $CPP names a directory.
4534 if test -n "$CPP" && test -d "$CPP"; then
4535 CPP=
4536 fi
4537 if test -z "$CPP"; then
4538 if test "${ac_cv_prog_CPP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 # Double quotes because CPP needs to be expanded
4542 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4543 do
4544 ac_preproc_ok=false
4545 for ac_c_preproc_warn_flag in '' yes
4546 do
4547 # Use a header file that comes with gcc, so configuring glibc
4548 # with a fresh cross-compiler works.
4549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550 # <limits.h> exists even on freestanding compilers.
4551 # On the NeXT, cc -E runs the code through the compiler's parser,
4552 # not just through cpp. "Syntax error" is here to catch this case.
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 #ifdef __STDC__
4560 # include <limits.h>
4561 #else
4562 # include <assert.h>
4563 #endif
4564 Syntax error
4565 _ACEOF
4566 if { (ac_try="$ac_cpp conftest.$ac_ext"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } >/dev/null && {
4579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 }; then
4582 :
4583 else
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 # Broken: fails on valid input.
4588 continue
4589 fi
4590
4591 rm -f conftest.err conftest.$ac_ext
4592
4593 # OK, works on sane cases. Now check whether nonexistent headers
4594 # can be detected and how.
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 #include <ac_nonexistent.h>
4602 _ACEOF
4603 if { (ac_try="$ac_cpp conftest.$ac_ext"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } >/dev/null && {
4616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 }; then
4619 # Broken: success on invalid input.
4620 continue
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 # Passes both tests.
4626 ac_preproc_ok=:
4627 break
4628 fi
4629
4630 rm -f conftest.err conftest.$ac_ext
4631
4632 done
4633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4634 rm -f conftest.err conftest.$ac_ext
4635 if $ac_preproc_ok; then
4636 break
4637 fi
4638
4639 done
4640 ac_cv_prog_CPP=$CPP
4641
4642 fi
4643 CPP=$ac_cv_prog_CPP
4644 else
4645 ac_cv_prog_CPP=$CPP
4646 fi
4647 { echo "$as_me:$LINENO: result: $CPP" >&5
4648 echo "${ECHO_T}$CPP" >&6; }
4649 ac_preproc_ok=false
4650 for ac_c_preproc_warn_flag in '' yes
4651 do
4652 # Use a header file that comes with gcc, so configuring glibc
4653 # with a fresh cross-compiler works.
4654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655 # <limits.h> exists even on freestanding compilers.
4656 # On the NeXT, cc -E runs the code through the compiler's parser,
4657 # not just through cpp. "Syntax error" is here to catch this case.
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 #ifdef __STDC__
4665 # include <limits.h>
4666 #else
4667 # include <assert.h>
4668 #endif
4669 Syntax error
4670 _ACEOF
4671 if { (ac_try="$ac_cpp conftest.$ac_ext"
4672 case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675 esac
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } >/dev/null && {
4684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4685 test ! -s conftest.err
4686 }; then
4687 :
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 # Broken: fails on valid input.
4693 continue
4694 fi
4695
4696 rm -f conftest.err conftest.$ac_ext
4697
4698 # OK, works on sane cases. Now check whether nonexistent headers
4699 # can be detected and how.
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 #include <ac_nonexistent.h>
4707 _ACEOF
4708 if { (ac_try="$ac_cpp conftest.$ac_ext"
4709 case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null && {
4721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 }; then
4724 # Broken: success on invalid input.
4725 continue
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 # Passes both tests.
4731 ac_preproc_ok=:
4732 break
4733 fi
4734
4735 rm -f conftest.err conftest.$ac_ext
4736
4737 done
4738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4739 rm -f conftest.err conftest.$ac_ext
4740 if $ac_preproc_ok; then
4741 :
4742 else
4743 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4744 See \`config.log' for more details." >&5
4745 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4746 See \`config.log' for more details." >&2;}
4747 { (exit 1); exit 1; }; }
4748 fi
4749
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756
4757 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <stdlib.h>
4769 #include <stdarg.h>
4770 #include <string.h>
4771 #include <float.h>
4772
4773 int
4774 main ()
4775 {
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4783 case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_compile") 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && {
4795 test -z "$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4797 } && test -s conftest.$ac_objext; then
4798 ac_cv_header_stdc=yes
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 ac_cv_header_stdc=no
4804 fi
4805
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807
4808 if test $ac_cv_header_stdc = yes; then
4809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 #include <string.h>
4817
4818 _ACEOF
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 $EGREP "memchr" >/dev/null 2>&1; then
4821 :
4822 else
4823 ac_cv_header_stdc=no
4824 fi
4825 rm -f conftest*
4826
4827 fi
4828
4829 if test $ac_cv_header_stdc = yes; then
4830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <stdlib.h>
4838
4839 _ACEOF
4840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4841 $EGREP "free" >/dev/null 2>&1; then
4842 :
4843 else
4844 ac_cv_header_stdc=no
4845 fi
4846 rm -f conftest*
4847
4848 fi
4849
4850 if test $ac_cv_header_stdc = yes; then
4851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4852 if test "$cross_compiling" = yes; then
4853 :
4854 else
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h. */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 #include <ctype.h>
4862 #include <stdlib.h>
4863 #if ((' ' & 0x0FF) == 0x020)
4864 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4865 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4866 #else
4867 # define ISLOWER(c) \
4868 (('a' <= (c) && (c) <= 'i') \
4869 || ('j' <= (c) && (c) <= 'r') \
4870 || ('s' <= (c) && (c) <= 'z'))
4871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4872 #endif
4873
4874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4875 int
4876 main ()
4877 {
4878 int i;
4879 for (i = 0; i < 256; i++)
4880 if (XOR (islower (i), ISLOWER (i))
4881 || toupper (i) != TOUPPER (i))
4882 return 2;
4883 return 0;
4884 }
4885 _ACEOF
4886 rm -f conftest$ac_exeext
4887 if { (ac_try="$ac_link"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_link") 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4897 { (case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_try") 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 :
4907 else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ( exit $ac_status )
4913 ac_cv_header_stdc=no
4914 fi
4915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4916 fi
4917
4918
4919 fi
4920 fi
4921 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4922 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4923 if test $ac_cv_header_stdc = yes; then
4924
4925 cat >>confdefs.h <<\_ACEOF
4926 #define STDC_HEADERS 1
4927 _ACEOF
4928
4929 fi
4930
4931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4942 inttypes.h stdint.h unistd.h
4943 do
4944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4957
4958 #include <$ac_header>
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_compile") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest.$ac_objext; then
4977 eval "$as_ac_Header=yes"
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982 eval "$as_ac_Header=no"
4983 fi
4984
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 fi
4987 ac_res=`eval echo '${'$as_ac_Header'}'`
4988 { echo "$as_me:$LINENO: result: $ac_res" >&5
4989 echo "${ECHO_T}$ac_res" >&6; }
4990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4991 cat >>confdefs.h <<_ACEOF
4992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993 _ACEOF
4994
4995 fi
4996
4997 done
4998
4999
5000
5001 for ac_header in dlfcn.h
5002 do
5003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 fi
5010 ac_res=`eval echo '${'$as_ac_Header'}'`
5011 { echo "$as_me:$LINENO: result: $ac_res" >&5
5012 echo "${ECHO_T}$ac_res" >&6; }
5013 else
5014 # Is the header compilable?
5015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 $ac_includes_default
5024 #include <$ac_header>
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (ac_try="$ac_compile"
5028 case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_compile") 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest.$ac_objext; then
5043 ac_header_compiler=yes
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ac_header_compiler=no
5049 fi
5050
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5053 echo "${ECHO_T}$ac_header_compiler" >&6; }
5054
5055 # Is the header present?
5056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <$ac_header>
5065 _ACEOF
5066 if { (ac_try="$ac_cpp conftest.$ac_ext"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } >/dev/null && {
5079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 }; then
5082 ac_header_preproc=yes
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 ac_header_preproc=no
5088 fi
5089
5090 rm -f conftest.err conftest.$ac_ext
5091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5092 echo "${ECHO_T}$ac_header_preproc" >&6; }
5093
5094 # So? What about this header?
5095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5096 yes:no: )
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5101 ac_header_preproc=yes
5102 ;;
5103 no:yes:* )
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5116 ( cat <<\_ASBOX
5117 ## ---------------------------------------------------------------------- ##
5118 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5119 ## ---------------------------------------------------------------------- ##
5120 _ASBOX
5121 ) | sed "s/^/$as_me: WARNING: /" >&2
5122 ;;
5123 esac
5124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 eval "$as_ac_Header=\$ac_header_preproc"
5130 fi
5131 ac_res=`eval echo '${'$as_ac_Header'}'`
5132 { echo "$as_me:$LINENO: result: $ac_res" >&5
5133 echo "${ECHO_T}$ac_res" >&6; }
5134
5135 fi
5136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5137 cat >>confdefs.h <<_ACEOF
5138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5139 _ACEOF
5140
5141 fi
5142
5143 done
5144
5145 ac_ext=cpp
5146 ac_cpp='$CXXCPP $CPPFLAGS'
5147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5150 if test -z "$CXX"; then
5151 if test -n "$CCC"; then
5152 CXX=$CCC
5153 else
5154 if test -n "$ac_tool_prefix"; then
5155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5156 do
5157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5161 if test "${ac_cv_prog_CXX+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$CXX"; then
5165 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 CXX=$ac_cv_prog_CXX
5185 if test -n "$CXX"; then
5186 { echo "$as_me:$LINENO: result: $CXX" >&5
5187 echo "${ECHO_T}$CXX" >&6; }
5188 else
5189 { echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6; }
5191 fi
5192
5193
5194 test -n "$CXX" && break
5195 done
5196 fi
5197 if test -z "$CXX"; then
5198 ac_ct_CXX=$CXX
5199 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5200 do
5201 # Extract the first word of "$ac_prog", so it can be a program name with args.
5202 set dummy $ac_prog; ac_word=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if test -n "$ac_ct_CXX"; then
5209 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_ac_ct_CXX="$ac_prog"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 fi
5227 fi
5228 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5229 if test -n "$ac_ct_CXX"; then
5230 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5231 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5232 else
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5235 fi
5236
5237
5238 test -n "$ac_ct_CXX" && break
5239 done
5240
5241 if test "x$ac_ct_CXX" = x; then
5242 CXX="g++"
5243 else
5244 case $cross_compiling:$ac_tool_warned in
5245 yes:)
5246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5247 whose name does not start with the host triplet. If you think this
5248 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5250 whose name does not start with the host triplet. If you think this
5251 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5252 ac_tool_warned=yes ;;
5253 esac
5254 CXX=$ac_ct_CXX
5255 fi
5256 fi
5257
5258 fi
5259 fi
5260 # Provide some information about the compiler.
5261 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5262 ac_compiler=`set X $ac_compile; echo $2`
5263 { (ac_try="$ac_compiler --version >&5"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_compiler --version >&5") 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }
5273 { (ac_try="$ac_compiler -v >&5"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compiler -v >&5") 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }
5283 { (ac_try="$ac_compiler -V >&5"
5284 case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compiler -V >&5") 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293
5294 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5295 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5296 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h. */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305
5306 int
5307 main ()
5308 {
5309 #ifndef __GNUC__
5310 choke me
5311 #endif
5312
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5319 case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_compile") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_cxx_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest.$ac_objext; then
5334 ac_compiler_gnu=yes
5335 else
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_compiler_gnu=no
5340 fi
5341
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5344
5345 fi
5346 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5347 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5348 GXX=`test $ac_compiler_gnu = yes && echo yes`
5349 ac_test_CXXFLAGS=${CXXFLAGS+set}
5350 ac_save_CXXFLAGS=$CXXFLAGS
5351 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5352 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5353 if test "${ac_cv_prog_cxx_g+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5357 ac_cxx_werror_flag=yes
5358 ac_cv_prog_cxx_g=no
5359 CXXFLAGS="-g"
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366
5367 int
5368 main ()
5369 {
5370
5371 ;
5372 return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_cxx_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 ac_cv_prog_cxx_g=yes
5393 else
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 CXXFLAGS=""
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404
5405 int
5406 main ()
5407 {
5408
5409 ;
5410 return 0;
5411 }
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (ac_try="$ac_compile"
5415 case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418 esac
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_compile") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && {
5427 test -z "$ac_cxx_werror_flag" ||
5428 test ! -s conftest.err
5429 } && test -s conftest.$ac_objext; then
5430 :
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5436 CXXFLAGS="-g"
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443
5444 int
5445 main ()
5446 {
5447
5448 ;
5449 return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5454 case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compile") 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && {
5466 test -z "$ac_cxx_werror_flag" ||
5467 test ! -s conftest.err
5468 } && test -s conftest.$ac_objext; then
5469 ac_cv_prog_cxx_g=yes
5470 else
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474
5475 fi
5476
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 fi
5479
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5485 fi
5486 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5487 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5488 if test "$ac_test_CXXFLAGS" = set; then
5489 CXXFLAGS=$ac_save_CXXFLAGS
5490 elif test $ac_cv_prog_cxx_g = yes; then
5491 if test "$GXX" = yes; then
5492 CXXFLAGS="-g -O2"
5493 else
5494 CXXFLAGS="-g"
5495 fi
5496 else
5497 if test "$GXX" = yes; then
5498 CXXFLAGS="-O2"
5499 else
5500 CXXFLAGS=
5501 fi
5502 fi
5503 ac_ext=cpp
5504 ac_cpp='$CXXCPP $CPPFLAGS'
5505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5508
5509 depcc="$CXX" am_compiler_list=
5510
5511 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5512 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5513 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5517 # We make a subdir and do the tests there. Otherwise we can end up
5518 # making bogus files that we don't know about and never remove. For
5519 # instance it was reported that on HP-UX the gcc test will end up
5520 # making a dummy file named `D' -- because `-MD' means `put the output
5521 # in D'.
5522 mkdir conftest.dir
5523 # Copy depcomp to subdir because otherwise we won't find it if we're
5524 # using a relative directory.
5525 cp "$am_depcomp" conftest.dir
5526 cd conftest.dir
5527 # We will build objects and dependencies in a subdirectory because
5528 # it helps to detect inapplicable dependency modes. For instance
5529 # both Tru64's cc and ICC support -MD to output dependencies as a
5530 # side effect of compilation, but ICC will put the dependencies in
5531 # the current directory while Tru64 will put them in the object
5532 # directory.
5533 mkdir sub
5534
5535 am_cv_CXX_dependencies_compiler_type=none
5536 if test "$am_compiler_list" = ""; then
5537 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5538 fi
5539 for depmode in $am_compiler_list; do
5540 # Setup a source with many dependencies, because some compilers
5541 # like to wrap large dependency lists on column 80 (with \), and
5542 # we should not choose a depcomp mode which is confused by this.
5543 #
5544 # We need to recreate these files for each test, as the compiler may
5545 # overwrite some of them when testing with obscure command lines.
5546 # This happens at least with the AIX C compiler.
5547 : > sub/conftest.c
5548 for i in 1 2 3 4 5 6; do
5549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5550 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5551 # Solaris 8's {/usr,}/bin/sh.
5552 touch sub/conftst$i.h
5553 done
5554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5555
5556 case $depmode in
5557 nosideeffect)
5558 # after this tag, mechanisms are not by side-effect, so they'll
5559 # only be used when explicitly requested
5560 if test "x$enable_dependency_tracking" = xyes; then
5561 continue
5562 else
5563 break
5564 fi
5565 ;;
5566 none) break ;;
5567 esac
5568 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5569 # mode. It turns out that the SunPro C++ compiler does not properly
5570 # handle `-M -o', and we need to detect this.
5571 if depmode=$depmode \
5572 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5573 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5574 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5575 >/dev/null 2>conftest.err &&
5576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5577 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5579 # icc doesn't choke on unknown options, it will just issue warnings
5580 # or remarks (even with -Werror). So we grep stderr for any message
5581 # that says an option was ignored or not supported.
5582 # When given -MP, icc 7.0 and 7.1 complain thusly:
5583 # icc: Command line warning: ignoring option '-M'; no argument required
5584 # The diagnosis changed in icc 8.0:
5585 # icc: Command line remark: option '-MP' not supported
5586 if (grep 'ignoring option' conftest.err ||
5587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5588 am_cv_CXX_dependencies_compiler_type=$depmode
5589 break
5590 fi
5591 fi
5592 done
5593
5594 cd ..
5595 rm -rf conftest.dir
5596 else
5597 am_cv_CXX_dependencies_compiler_type=none
5598 fi
5599
5600 fi
5601 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5602 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5603 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5604
5605
5606
5607 if
5608 test "x$enable_dependency_tracking" != xno \
5609 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5610 am__fastdepCXX_TRUE=
5611 am__fastdepCXX_FALSE='#'
5612 else
5613 am__fastdepCXX_TRUE='#'
5614 am__fastdepCXX_FALSE=
5615 fi
5616
5617
5618
5619
5620 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5621 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5622 (test "X$CXX" != "Xg++"))) ; then
5623 ac_ext=cpp
5624 ac_cpp='$CXXCPP $CPPFLAGS'
5625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5628 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5629 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5630 if test -z "$CXXCPP"; then
5631 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 # Double quotes because CXXCPP needs to be expanded
5635 for CXXCPP in "$CXX -E" "/lib/cpp"
5636 do
5637 ac_preproc_ok=false
5638 for ac_cxx_preproc_warn_flag in '' yes
5639 do
5640 # Use a header file that comes with gcc, so configuring glibc
5641 # with a fresh cross-compiler works.
5642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5643 # <limits.h> exists even on freestanding compilers.
5644 # On the NeXT, cc -E runs the code through the compiler's parser,
5645 # not just through cpp. "Syntax error" is here to catch this case.
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #ifdef __STDC__
5653 # include <limits.h>
5654 #else
5655 # include <assert.h>
5656 #endif
5657 Syntax error
5658 _ACEOF
5659 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } >/dev/null && {
5672 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5673 test ! -s conftest.err
5674 }; then
5675 :
5676 else
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 # Broken: fails on valid input.
5681 continue
5682 fi
5683
5684 rm -f conftest.err conftest.$ac_ext
5685
5686 # OK, works on sane cases. Now check whether nonexistent headers
5687 # can be detected and how.
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #include <ac_nonexistent.h>
5695 _ACEOF
5696 if { (ac_try="$ac_cpp conftest.$ac_ext"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } >/dev/null && {
5709 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5710 test ! -s conftest.err
5711 }; then
5712 # Broken: success on invalid input.
5713 continue
5714 else
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 # Passes both tests.
5719 ac_preproc_ok=:
5720 break
5721 fi
5722
5723 rm -f conftest.err conftest.$ac_ext
5724
5725 done
5726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5727 rm -f conftest.err conftest.$ac_ext
5728 if $ac_preproc_ok; then
5729 break
5730 fi
5731
5732 done
5733 ac_cv_prog_CXXCPP=$CXXCPP
5734
5735 fi
5736 CXXCPP=$ac_cv_prog_CXXCPP
5737 else
5738 ac_cv_prog_CXXCPP=$CXXCPP
5739 fi
5740 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5741 echo "${ECHO_T}$CXXCPP" >&6; }
5742 ac_preproc_ok=false
5743 for ac_cxx_preproc_warn_flag in '' yes
5744 do
5745 # Use a header file that comes with gcc, so configuring glibc
5746 # with a fresh cross-compiler works.
5747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5748 # <limits.h> exists even on freestanding compilers.
5749 # On the NeXT, cc -E runs the code through the compiler's parser,
5750 # not just through cpp. "Syntax error" is here to catch this case.
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 #ifdef __STDC__
5758 # include <limits.h>
5759 #else
5760 # include <assert.h>
5761 #endif
5762 Syntax error
5763 _ACEOF
5764 if { (ac_try="$ac_cpp conftest.$ac_ext"
5765 case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } >/dev/null && {
5777 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5778 test ! -s conftest.err
5779 }; then
5780 :
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 # Broken: fails on valid input.
5786 continue
5787 fi
5788
5789 rm -f conftest.err conftest.$ac_ext
5790
5791 # OK, works on sane cases. Now check whether nonexistent headers
5792 # can be detected and how.
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <ac_nonexistent.h>
5800 _ACEOF
5801 if { (ac_try="$ac_cpp conftest.$ac_ext"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev/null && {
5814 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5815 test ! -s conftest.err
5816 }; then
5817 # Broken: success on invalid input.
5818 continue
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823 # Passes both tests.
5824 ac_preproc_ok=:
5825 break
5826 fi
5827
5828 rm -f conftest.err conftest.$ac_ext
5829
5830 done
5831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5832 rm -f conftest.err conftest.$ac_ext
5833 if $ac_preproc_ok; then
5834 :
5835 else
5836 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5837 See \`config.log' for more details." >&5
5838 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5839 See \`config.log' for more details." >&2;}
5840 { (exit 1); exit 1; }; }
5841 fi
5842
5843 ac_ext=cpp
5844 ac_cpp='$CXXCPP $CPPFLAGS'
5845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5848
5849 fi
5850
5851
5852 ac_ext=f
5853 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5854 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5856 if test -n "$ac_tool_prefix"; then
5857 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5858 do
5859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_prog_F77+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 if test -n "$F77"; then
5867 ac_cv_prog_F77="$F77" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 F77=$ac_cv_prog_F77
5887 if test -n "$F77"; then
5888 { echo "$as_me:$LINENO: result: $F77" >&5
5889 echo "${ECHO_T}$F77" >&6; }
5890 else
5891 { echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6; }
5893 fi
5894
5895
5896 test -n "$F77" && break
5897 done
5898 fi
5899 if test -z "$F77"; then
5900 ac_ct_F77=$F77
5901 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5902 do
5903 # Extract the first word of "$ac_prog", so it can be a program name with args.
5904 set dummy $ac_prog; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 if test -n "$ac_ct_F77"; then
5911 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_ac_ct_F77="$ac_prog"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5931 if test -n "$ac_ct_F77"; then
5932 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5933 echo "${ECHO_T}$ac_ct_F77" >&6; }
5934 else
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5937 fi
5938
5939
5940 test -n "$ac_ct_F77" && break
5941 done
5942
5943 if test "x$ac_ct_F77" = x; then
5944 F77=""
5945 else
5946 case $cross_compiling:$ac_tool_warned in
5947 yes:)
5948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5949 whose name does not start with the host triplet. If you think this
5950 configuration is useful to you, please write to autoconf@gnu.org." >&5
5951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5952 whose name does not start with the host triplet. If you think this
5953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956 F77=$ac_ct_F77
5957 fi
5958 fi
5959
5960
5961 # Provide some information about the compiler.
5962 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5963 ac_compiler=`set X $ac_compile; echo $2`
5964 { (ac_try="$ac_compiler --version >&5"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compiler --version >&5") 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }
5974 { (ac_try="$ac_compiler -v >&5"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compiler -v >&5") 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }
5984 { (ac_try="$ac_compiler -V >&5"
5985 case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_compiler -V >&5") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }
5994 rm -f a.out
5995
5996 # If we don't use `.F' as extension, the preprocessor is not run on the
5997 # input file. (Note that this only needs to work for GNU compilers.)
5998 ac_save_ext=$ac_ext
5999 ac_ext=F
6000 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6001 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6002 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 cat >conftest.$ac_ext <<_ACEOF
6006 program main
6007 #ifndef __GNUC__
6008 choke me
6009 #endif
6010
6011 end
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (ac_try="$ac_compile"
6015 case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018 esac
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_compile") 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } && {
6027 test -z "$ac_f77_werror_flag" ||
6028 test ! -s conftest.err
6029 } && test -s conftest.$ac_objext; then
6030 ac_compiler_gnu=yes
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 ac_compiler_gnu=no
6036 fi
6037
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6040
6041 fi
6042 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6043 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6044 ac_ext=$ac_save_ext
6045 ac_test_FFLAGS=${FFLAGS+set}
6046 ac_save_FFLAGS=$FFLAGS
6047 FFLAGS=
6048 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6049 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_f77_g+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 FFLAGS=-g
6054 cat >conftest.$ac_ext <<_ACEOF
6055 program main
6056
6057 end
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (ac_try="$ac_compile"
6061 case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_compile") 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_f77_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
6076 ac_cv_prog_f77_g=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 ac_cv_prog_f77_g=no
6082 fi
6083
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085
6086 fi
6087 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6088 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6089 if test "$ac_test_FFLAGS" = set; then
6090 FFLAGS=$ac_save_FFLAGS
6091 elif test $ac_cv_prog_f77_g = yes; then
6092 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6093 FFLAGS="-g -O2"
6094 else
6095 FFLAGS="-g"
6096 fi
6097 else
6098 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6099 FFLAGS="-O2"
6100 else
6101 FFLAGS=
6102 fi
6103 fi
6104
6105 G77=`test $ac_compiler_gnu = yes && echo yes`
6106 ac_ext=c
6107 ac_cpp='$CPP $CPPFLAGS'
6108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6111
6112
6113
6114 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6115
6116 # find the maximum length of command line arguments
6117 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6118 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6119 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 i=0
6123 teststring="ABCD"
6124
6125 case $build_os in
6126 msdosdjgpp*)
6127 # On DJGPP, this test can blow up pretty badly due to problems in libc
6128 # (any single argument exceeding 2000 bytes causes a buffer overrun
6129 # during glob expansion). Even if it were fixed, the result of this
6130 # check would be larger than it should be.
6131 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6132 ;;
6133
6134 gnu*)
6135 # Under GNU Hurd, this test is not required because there is
6136 # no limit to the length of command line arguments.
6137 # Libtool will interpret -1 as no limit whatsoever
6138 lt_cv_sys_max_cmd_len=-1;
6139 ;;
6140
6141 cygwin* | mingw*)
6142 # On Win9x/ME, this test blows up -- it succeeds, but takes
6143 # about 5 minutes as the teststring grows exponentially.
6144 # Worse, since 9x/ME are not pre-emptively multitasking,
6145 # you end up with a "frozen" computer, even though with patience
6146 # the test eventually succeeds (with a max line length of 256k).
6147 # Instead, let's just punt: use the minimum linelength reported by
6148 # all of the supported platforms: 8192 (on NT/2K/XP).
6149 lt_cv_sys_max_cmd_len=8192;
6150 ;;
6151
6152 amigaos*)
6153 # On AmigaOS with pdksh, this test takes hours, literally.
6154 # So we just punt and use a minimum line length of 8192.
6155 lt_cv_sys_max_cmd_len=8192;
6156 ;;
6157
6158 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6159 # This has been around since 386BSD, at least. Likely further.
6160 if test -x /sbin/sysctl; then
6161 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6162 elif test -x /usr/sbin/sysctl; then
6163 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6164 else
6165 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6166 fi
6167 # And add a safety zone
6168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6170 ;;
6171
6172 interix*)
6173 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6174 lt_cv_sys_max_cmd_len=196608
6175 ;;
6176
6177 osf*)
6178 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6179 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6180 # nice to cause kernel panics so lets avoid the loop below.
6181 # First set a reasonable default.
6182 lt_cv_sys_max_cmd_len=16384
6183 #
6184 if test -x /sbin/sysconfig; then
6185 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6186 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6187 esac
6188 fi
6189 ;;
6190 sco3.2v5*)
6191 lt_cv_sys_max_cmd_len=102400
6192 ;;
6193 sysv5* | sco5v6* | sysv4.2uw2*)
6194 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6195 if test -n "$kargmax"; then
6196 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6197 else
6198 lt_cv_sys_max_cmd_len=32768
6199 fi
6200 ;;
6201 *)
6202 # If test is not a shell built-in, we'll probably end up computing a
6203 # maximum length that is only half of the actual maximum length, but
6204 # we can't tell.
6205 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6206 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6207 = "XX$teststring") >/dev/null 2>&1 &&
6208 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6209 lt_cv_sys_max_cmd_len=$new_result &&
6210 test $i != 17 # 1/2 MB should be enough
6211 do
6212 i=`expr $i + 1`
6213 teststring=$teststring$teststring
6214 done
6215 teststring=
6216 # Add a significant safety factor because C++ compilers can tack on massive
6217 # amounts of additional arguments before passing them to the linker.
6218 # It appears as though 1/2 is a usable value.
6219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6220 ;;
6221 esac
6222
6223 fi
6224
6225 if test -n $lt_cv_sys_max_cmd_len ; then
6226 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6227 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6228 else
6229 { echo "$as_me:$LINENO: result: none" >&5
6230 echo "${ECHO_T}none" >&6; }
6231 fi
6232
6233
6234
6235
6236 # Check for command to grab the raw symbol name followed by C symbol from nm.
6237 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6238 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6239 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242
6243 # These are sane defaults that work on at least a few old systems.
6244 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6245
6246 # Character class describing NM global symbol codes.
6247 symcode='[BCDEGRST]'
6248
6249 # Regexp to match symbols that can be accessed directly from C.
6250 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6251
6252 # Transform an extracted symbol line into a proper C declaration
6253 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6254
6255 # Transform an extracted symbol line into symbol name and symbol address
6256 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'"
6257
6258 # Define system-specific variables.
6259 case $host_os in
6260 aix*)
6261 symcode='[BCDT]'
6262 ;;
6263 cygwin* | mingw* | pw32*)
6264 symcode='[ABCDGISTW]'
6265 ;;
6266 hpux*) # Its linker distinguishes data from code symbols
6267 if test "$host_cpu" = ia64; then
6268 symcode='[ABCDEGRST]'
6269 fi
6270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6271 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'"
6272 ;;
6273 linux* | k*bsd*-gnu)
6274 if test "$host_cpu" = ia64; then
6275 symcode='[ABCDGIRSTW]'
6276 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6277 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'"
6278 fi
6279 ;;
6280 irix* | nonstopux*)
6281 symcode='[BCDEGRST]'
6282 ;;
6283 osf*)
6284 symcode='[BCDEGQRST]'
6285 ;;
6286 solaris*)
6287 symcode='[BDRT]'
6288 ;;
6289 sco3.2v5*)
6290 symcode='[DT]'
6291 ;;
6292 sysv4.2uw2*)
6293 symcode='[DT]'
6294 ;;
6295 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6296 symcode='[ABDT]'
6297 ;;
6298 sysv4)
6299 symcode='[DFNSTU]'
6300 ;;
6301 esac
6302
6303 # Handle CRLF in mingw tool chain
6304 opt_cr=
6305 case $build_os in
6306 mingw*)
6307 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6308 ;;
6309 esac
6310
6311 # If we're using GNU nm, then use its standard symbol codes.
6312 case `$NM -V 2>&1` in
6313 *GNU* | *'with BFD'*)
6314 symcode='[ABCDGIRSTW]' ;;
6315 esac
6316
6317 # Try without a prefix undercore, then with it.
6318 for ac_symprfx in "" "_"; do
6319
6320 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6321 symxfrm="\\1 $ac_symprfx\\2 \\2"
6322
6323 # Write the raw and C identifiers.
6324 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6325
6326 # Check to see that the pipe works correctly.
6327 pipe_works=no
6328
6329 rm -f conftest*
6330 cat > conftest.$ac_ext <<EOF
6331 #ifdef __cplusplus
6332 extern "C" {
6333 #endif
6334 char nm_test_var;
6335 void nm_test_func(){}
6336 #ifdef __cplusplus
6337 }
6338 #endif
6339 int main(){nm_test_var='a';nm_test_func();return(0);}
6340 EOF
6341
6342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; then
6347 # Now try to grab the symbols.
6348 nlist=conftest.nm
6349 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6350 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && test -s "$nlist"; then
6354 # Try sorting and uniquifying the output.
6355 if sort "$nlist" | uniq > "$nlist"T; then
6356 mv -f "$nlist"T "$nlist"
6357 else
6358 rm -f "$nlist"T
6359 fi
6360
6361 # Make sure that we snagged all the symbols we need.
6362 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6363 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6364 cat <<EOF > conftest.$ac_ext
6365 #ifdef __cplusplus
6366 extern "C" {
6367 #endif
6368
6369 EOF
6370 # Now generate the symbol file.
6371 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6372
6373 cat <<EOF >> conftest.$ac_ext
6374 #if defined (__STDC__) && __STDC__
6375 # define lt_ptr_t void *
6376 #else
6377 # define lt_ptr_t char *
6378 # define const
6379 #endif
6380
6381 /* The mapping between symbol names and symbols. */
6382 const struct {
6383 const char *name;
6384 lt_ptr_t address;
6385 }
6386 lt_preloaded_symbols[] =
6387 {
6388 EOF
6389 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6390 cat <<\EOF >> conftest.$ac_ext
6391 {0, (lt_ptr_t) 0}
6392 };
6393
6394 #ifdef __cplusplus
6395 }
6396 #endif
6397 EOF
6398 # Now try linking the two files.
6399 mv conftest.$ac_objext conftstm.$ac_objext
6400 lt_save_LIBS="$LIBS"
6401 lt_save_CFLAGS="$CFLAGS"
6402 LIBS="conftstm.$ac_objext"
6403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6405 (eval $ac_link) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6409 pipe_works=yes
6410 fi
6411 LIBS="$lt_save_LIBS"
6412 CFLAGS="$lt_save_CFLAGS"
6413 else
6414 echo "cannot find nm_test_func in $nlist" >&5
6415 fi
6416 else
6417 echo "cannot find nm_test_var in $nlist" >&5
6418 fi
6419 else
6420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6421 fi
6422 else
6423 echo "$progname: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 fi
6426 rm -f conftest* conftst*
6427
6428 # Do not use the global_symbol_pipe unless it works.
6429 if test "$pipe_works" = yes; then
6430 break
6431 else
6432 lt_cv_sys_global_symbol_pipe=
6433 fi
6434 done
6435
6436 fi
6437
6438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6439 lt_cv_sys_global_symbol_to_cdecl=
6440 fi
6441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6442 { echo "$as_me:$LINENO: result: failed" >&5
6443 echo "${ECHO_T}failed" >&6; }
6444 else
6445 { echo "$as_me:$LINENO: result: ok" >&5
6446 echo "${ECHO_T}ok" >&6; }
6447 fi
6448
6449 { echo "$as_me:$LINENO: checking for objdir" >&5
6450 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6451 if test "${lt_cv_objdir+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 rm -f .libs 2>/dev/null
6455 mkdir .libs 2>/dev/null
6456 if test -d .libs; then
6457 lt_cv_objdir=.libs
6458 else
6459 # MS-DOS does not allow filenames that begin with a dot.
6460 lt_cv_objdir=_libs
6461 fi
6462 rmdir .libs 2>/dev/null
6463 fi
6464 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6465 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6466 objdir=$lt_cv_objdir
6467
6468
6469
6470
6471
6472 case $host_os in
6473 aix3*)
6474 # AIX sometimes has problems with the GCC collect2 program. For some
6475 # reason, if we set the COLLECT_NAMES environment variable, the problems
6476 # vanish in a puff of smoke.
6477 if test "X${COLLECT_NAMES+set}" != Xset; then
6478 COLLECT_NAMES=
6479 export COLLECT_NAMES
6480 fi
6481 ;;
6482 esac
6483
6484 # Sed substitution that helps us do robust quoting. It backslashifies
6485 # metacharacters that are still active within double-quoted strings.
6486 Xsed='sed -e 1s/^X//'
6487 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6488
6489 # Same as above, but do not quote variable references.
6490 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6491
6492 # Sed substitution to delay expansion of an escaped shell variable in a
6493 # double_quote_subst'ed string.
6494 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6495
6496 # Sed substitution to avoid accidental globbing in evaled expressions
6497 no_glob_subst='s/\*/\\\*/g'
6498
6499 # Constants:
6500 rm="rm -f"
6501
6502 # Global variables:
6503 default_ofile=libtool
6504 can_build_shared=yes
6505
6506 # All known linkers require a `.a' archive for static linking (except MSVC,
6507 # which needs '.lib').
6508 libext=a
6509 ltmain="$ac_aux_dir/ltmain.sh"
6510 ofile="$default_ofile"
6511 with_gnu_ld="$lt_cv_prog_gnu_ld"
6512
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}ar; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_prog_AR+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 if test -n "$AR"; then
6522 ac_cv_prog_AR="$AR" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_AR="${ac_tool_prefix}ar"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 AR=$ac_cv_prog_AR
6542 if test -n "$AR"; then
6543 { echo "$as_me:$LINENO: result: $AR" >&5
6544 echo "${ECHO_T}$AR" >&6; }
6545 else
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6548 fi
6549
6550
6551 fi
6552 if test -z "$ac_cv_prog_AR"; then
6553 ac_ct_AR=$AR
6554 # Extract the first word of "ar", so it can be a program name with args.
6555 set dummy ar; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561 if test -n "$ac_ct_AR"; then
6562 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_ac_ct_AR="ar"
6572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6582 if test -n "$ac_ct_AR"; then
6583 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6584 echo "${ECHO_T}$ac_ct_AR" >&6; }
6585 else
6586 { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6588 fi
6589
6590 if test "x$ac_ct_AR" = x; then
6591 AR="false"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6596 whose name does not start with the host triplet. If you think this
6597 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6599 whose name does not start with the host triplet. If you think this
6600 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603 AR=$ac_ct_AR
6604 fi
6605 else
6606 AR="$ac_cv_prog_AR"
6607 fi
6608
6609 if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_RANLIB+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 if test -n "$RANLIB"; then
6618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 RANLIB=$ac_cv_prog_RANLIB
6638 if test -n "$RANLIB"; then
6639 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6640 echo "${ECHO_T}$RANLIB" >&6; }
6641 else
6642 { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_RANLIB"; then
6649 ac_ct_RANLIB=$RANLIB
6650 # Extract the first word of "ranlib", so it can be a program name with args.
6651 set dummy ranlib; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 if test -n "$ac_ct_RANLIB"; then
6658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_ac_ct_RANLIB="ranlib"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6678 if test -n "$ac_ct_RANLIB"; then
6679 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6680 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6681 else
6682 { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6684 fi
6685
6686 if test "x$ac_ct_RANLIB" = x; then
6687 RANLIB=":"
6688 else
6689 case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6692 whose name does not start with the host triplet. If you think this
6693 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6694 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6695 whose name does not start with the host triplet. If you think this
6696 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699 RANLIB=$ac_ct_RANLIB
6700 fi
6701 else
6702 RANLIB="$ac_cv_prog_RANLIB"
6703 fi
6704
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}strip; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_prog_STRIP+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 if test -n "$STRIP"; then
6714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 STRIP=$ac_cv_prog_STRIP
6734 if test -n "$STRIP"; then
6735 { echo "$as_me:$LINENO: result: $STRIP" >&5
6736 echo "${ECHO_T}$STRIP" >&6; }
6737 else
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 fi
6741
6742
6743 fi
6744 if test -z "$ac_cv_prog_STRIP"; then
6745 ac_ct_STRIP=$STRIP
6746 # Extract the first word of "strip", so it can be a program name with args.
6747 set dummy strip; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 if test -n "$ac_ct_STRIP"; then
6754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_ac_ct_STRIP="strip"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6774 if test -n "$ac_ct_STRIP"; then
6775 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6776 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6777 else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6780 fi
6781
6782 if test "x$ac_ct_STRIP" = x; then
6783 STRIP=":"
6784 else
6785 case $cross_compiling:$ac_tool_warned in
6786 yes:)
6787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6788 whose name does not start with the host triplet. If you think this
6789 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6791 whose name does not start with the host triplet. If you think this
6792 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6793 ac_tool_warned=yes ;;
6794 esac
6795 STRIP=$ac_ct_STRIP
6796 fi
6797 else
6798 STRIP="$ac_cv_prog_STRIP"
6799 fi
6800
6801
6802 old_CC="$CC"
6803 old_CFLAGS="$CFLAGS"
6804
6805 # Set sane defaults for various variables
6806 test -z "$AR" && AR=ar
6807 test -z "$AR_FLAGS" && AR_FLAGS=cru
6808 test -z "$AS" && AS=as
6809 test -z "$CC" && CC=cc
6810 test -z "$LTCC" && LTCC=$CC
6811 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6812 test -z "$DLLTOOL" && DLLTOOL=dlltool
6813 test -z "$LD" && LD=ld
6814 test -z "$LN_S" && LN_S="ln -s"
6815 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6816 test -z "$NM" && NM=nm
6817 test -z "$SED" && SED=sed
6818 test -z "$OBJDUMP" && OBJDUMP=objdump
6819 test -z "$RANLIB" && RANLIB=:
6820 test -z "$STRIP" && STRIP=:
6821 test -z "$ac_objext" && ac_objext=o
6822
6823 # Determine commands to create old-style static archives.
6824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6825 old_postinstall_cmds='chmod 644 $oldlib'
6826 old_postuninstall_cmds=
6827
6828 if test -n "$RANLIB"; then
6829 case $host_os in
6830 openbsd*)
6831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 ;;
6833 *)
6834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 ;;
6836 esac
6837 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6838 fi
6839
6840 for cc_temp in $compiler""; do
6841 case $cc_temp in
6842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6844 \-*) ;;
6845 *) break;;
6846 esac
6847 done
6848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6849
6850
6851 # Only perform the check for file, if the check method requires it
6852 case $deplibs_check_method in
6853 file_magic*)
6854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6855 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6856 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6857 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 case $MAGIC_CMD in
6861 [\\/*] | ?:[\\/]*)
6862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6863 ;;
6864 *)
6865 lt_save_MAGIC_CMD="$MAGIC_CMD"
6866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6868 for ac_dir in $ac_dummy; do
6869 IFS="$lt_save_ifs"
6870 test -z "$ac_dir" && ac_dir=.
6871 if test -f $ac_dir/${ac_tool_prefix}file; then
6872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6873 if test -n "$file_magic_test_file"; then
6874 case $deplibs_check_method in
6875 "file_magic "*)
6876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6879 $EGREP "$file_magic_regex" > /dev/null; then
6880 :
6881 else
6882 cat <<EOF 1>&2
6883
6884 *** Warning: the command libtool uses to detect shared libraries,
6885 *** $file_magic_cmd, produces output that libtool cannot recognize.
6886 *** The result is that libtool may fail to recognize shared libraries
6887 *** as such. This will affect the creation of libtool libraries that
6888 *** depend on shared libraries, but programs linked with such libtool
6889 *** libraries will work regardless of this problem. Nevertheless, you
6890 *** may want to report the problem to your system manager and/or to
6891 *** bug-libtool@gnu.org
6892
6893 EOF
6894 fi ;;
6895 esac
6896 fi
6897 break
6898 fi
6899 done
6900 IFS="$lt_save_ifs"
6901 MAGIC_CMD="$lt_save_MAGIC_CMD"
6902 ;;
6903 esac
6904 fi
6905
6906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6907 if test -n "$MAGIC_CMD"; then
6908 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6909 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6910 else
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6913 fi
6914
6915 if test -z "$lt_cv_path_MAGIC_CMD"; then
6916 if test -n "$ac_tool_prefix"; then
6917 { echo "$as_me:$LINENO: checking for file" >&5
6918 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6919 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 case $MAGIC_CMD in
6923 [\\/*] | ?:[\\/]*)
6924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6925 ;;
6926 *)
6927 lt_save_MAGIC_CMD="$MAGIC_CMD"
6928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6930 for ac_dir in $ac_dummy; do
6931 IFS="$lt_save_ifs"
6932 test -z "$ac_dir" && ac_dir=.
6933 if test -f $ac_dir/file; then
6934 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6935 if test -n "$file_magic_test_file"; then
6936 case $deplibs_check_method in
6937 "file_magic "*)
6938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6941 $EGREP "$file_magic_regex" > /dev/null; then
6942 :
6943 else
6944 cat <<EOF 1>&2
6945
6946 *** Warning: the command libtool uses to detect shared libraries,
6947 *** $file_magic_cmd, produces output that libtool cannot recognize.
6948 *** The result is that libtool may fail to recognize shared libraries
6949 *** as such. This will affect the creation of libtool libraries that
6950 *** depend on shared libraries, but programs linked with such libtool
6951 *** libraries will work regardless of this problem. Nevertheless, you
6952 *** may want to report the problem to your system manager and/or to
6953 *** bug-libtool@gnu.org
6954
6955 EOF
6956 fi ;;
6957 esac
6958 fi
6959 break
6960 fi
6961 done
6962 IFS="$lt_save_ifs"
6963 MAGIC_CMD="$lt_save_MAGIC_CMD"
6964 ;;
6965 esac
6966 fi
6967
6968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6969 if test -n "$MAGIC_CMD"; then
6970 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6971 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6972 else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6975 fi
6976
6977 else
6978 MAGIC_CMD=:
6979 fi
6980 fi
6981
6982 fi
6983 ;;
6984 esac
6985
6986 enable_dlopen=no
6987 enable_win32_dll=no
6988
6989 # Check whether --enable-libtool-lock was given.
6990 if test "${enable_libtool_lock+set}" = set; then
6991 enableval=$enable_libtool_lock;
6992 fi
6993
6994 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6995
6996
6997 # Check whether --with-pic was given.
6998 if test "${with_pic+set}" = set; then
6999 withval=$with_pic; pic_mode="$withval"
7000 else
7001 pic_mode=default
7002 fi
7003
7004 test -z "$pic_mode" && pic_mode=default
7005
7006 # Use C for the default configuration in the libtool script
7007 tagname=
7008 lt_save_CC="$CC"
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014
7015
7016 # Source file extension for C test sources.
7017 ac_ext=c
7018
7019 # Object file extension for compiled C test sources.
7020 objext=o
7021 objext=$objext
7022
7023 # Code to be used in simple compile tests
7024 lt_simple_compile_test_code="int some_variable = 0;\n"
7025
7026 # Code to be used in simple link tests
7027 lt_simple_link_test_code='int main(){return(0);}\n'
7028
7029
7030 # If no C compiler was specified, use CC.
7031 LTCC=${LTCC-"$CC"}
7032
7033 # If no C compiler flags were specified, use CFLAGS.
7034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7035
7036 # Allow CC to be a program name with arguments.
7037 compiler=$CC
7038
7039
7040 # save warnings/boilerplate of simple test code
7041 ac_outfile=conftest.$ac_objext
7042 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7043 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7044 _lt_compiler_boilerplate=`cat conftest.err`
7045 $rm conftest*
7046
7047 ac_outfile=conftest.$ac_objext
7048 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7049 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7050 _lt_linker_boilerplate=`cat conftest.err`
7051 $rm conftest*
7052
7053
7054
7055 lt_prog_compiler_no_builtin_flag=
7056
7057 if test "$GCC" = yes; then
7058 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7059
7060
7061 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7062 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7063 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 lt_cv_prog_compiler_rtti_exceptions=no
7067 ac_outfile=conftest.$ac_objext
7068 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7069 lt_compiler_flag="-fno-rtti -fno-exceptions"
7070 # Insert the option either (1) after the last *FLAGS variable, or
7071 # (2) before a word containing "conftest.", or (3) at the end.
7072 # Note that $ac_compile itself does not contain backslashes and begins
7073 # with a dollar sign (not a hyphen), so the echo should work correctly.
7074 # The option is referenced via a variable to avoid confusing sed.
7075 lt_compile=`echo "$ac_compile" | $SED \
7076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7078 -e 's:$: $lt_compiler_flag:'`
7079 (eval echo "\"\$as_me:7079: $lt_compile\"" >&5)
7080 (eval "$lt_compile" 2>conftest.err)
7081 ac_status=$?
7082 cat conftest.err >&5
7083 echo "$as_me:7083: \$? = $ac_status" >&5
7084 if (exit $ac_status) && test -s "$ac_outfile"; then
7085 # The compiler can only warn and ignore the option if not recognized
7086 # So say no if there are warnings other than the usual output.
7087 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7090 lt_cv_prog_compiler_rtti_exceptions=yes
7091 fi
7092 fi
7093 $rm conftest*
7094
7095 fi
7096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7097 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7098
7099 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7100 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7101 else
7102 :
7103 fi
7104
7105 fi
7106
7107 lt_prog_compiler_wl=
7108 lt_prog_compiler_pic=
7109 lt_prog_compiler_static=
7110
7111 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7112 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7113
7114 if test "$GCC" = yes; then
7115 lt_prog_compiler_wl='-Wl,'
7116 lt_prog_compiler_static='-static'
7117
7118 case $host_os in
7119 aix*)
7120 # All AIX code is PIC.
7121 if test "$host_cpu" = ia64; then
7122 # AIX 5 now supports IA64 processor
7123 lt_prog_compiler_static='-Bstatic'
7124 fi
7125 ;;
7126
7127 amigaos*)
7128 # FIXME: we need at least 68020 code to build shared libraries, but
7129 # adding the `-m68020' flag to GCC prevents building anything better,
7130 # like `-m68040'.
7131 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7132 ;;
7133
7134 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7135 # PIC is the default for these OSes.
7136 ;;
7137
7138 mingw* | pw32* | os2*)
7139 # This hack is so that the source file can tell whether it is being
7140 # built for inclusion in a dll (and should export symbols for example).
7141 lt_prog_compiler_pic='-DDLL_EXPORT'
7142 ;;
7143
7144 darwin* | rhapsody*)
7145 # PIC is the default on this platform
7146 # Common symbols not allowed in MH_DYLIB files
7147 lt_prog_compiler_pic='-fno-common'
7148 ;;
7149
7150 interix3*)
7151 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7152 # Instead, we relocate shared libraries at runtime.
7153 ;;
7154
7155 msdosdjgpp*)
7156 # Just because we use GCC doesn't mean we suddenly get shared libraries
7157 # on systems that don't support them.
7158 lt_prog_compiler_can_build_shared=no
7159 enable_shared=no
7160 ;;
7161
7162 sysv4*MP*)
7163 if test -d /usr/nec; then
7164 lt_prog_compiler_pic=-Kconform_pic
7165 fi
7166 ;;
7167
7168 hpux*)
7169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7170 # not for PA HP-UX.
7171 case $host_cpu in
7172 hppa*64*|ia64*)
7173 # +Z the default
7174 ;;
7175 *)
7176 lt_prog_compiler_pic='-fPIC'
7177 ;;
7178 esac
7179 ;;
7180
7181 *)
7182 lt_prog_compiler_pic='-fPIC'
7183 ;;
7184 esac
7185 else
7186 # PORTME Check for flag to pass linker flags through the system compiler.
7187 case $host_os in
7188 aix*)
7189 lt_prog_compiler_wl='-Wl,'
7190 if test "$host_cpu" = ia64; then
7191 # AIX 5 now supports IA64 processor
7192 lt_prog_compiler_static='-Bstatic'
7193 else
7194 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7195 fi
7196 ;;
7197 darwin*)
7198 # PIC is the default on this platform
7199 # Common symbols not allowed in MH_DYLIB files
7200 case $cc_basename in
7201 xlc*)
7202 lt_prog_compiler_pic='-qnocommon'
7203 lt_prog_compiler_wl='-Wl,'
7204 ;;
7205 esac
7206 ;;
7207
7208 mingw* | pw32* | os2*)
7209 # This hack is so that the source file can tell whether it is being
7210 # built for inclusion in a dll (and should export symbols for example).
7211 lt_prog_compiler_pic='-DDLL_EXPORT'
7212 ;;
7213
7214 hpux9* | hpux10* | hpux11*)
7215 lt_prog_compiler_wl='-Wl,'
7216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7217 # not for PA HP-UX.
7218 case $host_cpu in
7219 hppa*64*|ia64*)
7220 # +Z the default
7221 ;;
7222 *)
7223 lt_prog_compiler_pic='+Z'
7224 ;;
7225 esac
7226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7227 lt_prog_compiler_static='${wl}-a ${wl}archive'
7228 ;;
7229
7230 irix5* | irix6* | nonstopux*)
7231 lt_prog_compiler_wl='-Wl,'
7232 # PIC (with -KPIC) is the default.
7233 lt_prog_compiler_static='-non_shared'
7234 ;;
7235
7236 newsos6)
7237 lt_prog_compiler_pic='-KPIC'
7238 lt_prog_compiler_static='-Bstatic'
7239 ;;
7240
7241 linux* | k*bsd*-gnu)
7242 case $cc_basename in
7243 icc* | ecc*)
7244 lt_prog_compiler_wl='-Wl,'
7245 lt_prog_compiler_pic='-KPIC'
7246 lt_prog_compiler_static='-static'
7247 ;;
7248 pgcc* | pgf77* | pgf90* | pgf95*)
7249 # Portland Group compilers (*not* the Pentium gcc compiler,
7250 # which looks to be a dead project)
7251 lt_prog_compiler_wl='-Wl,'
7252 lt_prog_compiler_pic='-fpic'
7253 lt_prog_compiler_static='-Bstatic'
7254 ;;
7255 ccc*)
7256 lt_prog_compiler_wl='-Wl,'
7257 # All Alpha code is PIC.
7258 lt_prog_compiler_static='-non_shared'
7259 ;;
7260 esac
7261 ;;
7262
7263 osf3* | osf4* | osf5*)
7264 lt_prog_compiler_wl='-Wl,'
7265 # All OSF/1 code is PIC.
7266 lt_prog_compiler_static='-non_shared'
7267 ;;
7268
7269 solaris*)
7270 lt_prog_compiler_pic='-KPIC'
7271 lt_prog_compiler_static='-Bstatic'
7272 case $cc_basename in
7273 f77* | f90* | f95*)
7274 lt_prog_compiler_wl='-Qoption ld ';;
7275 *)
7276 lt_prog_compiler_wl='-Wl,';;
7277 esac
7278 ;;
7279
7280 sunos4*)
7281 lt_prog_compiler_wl='-Qoption ld '
7282 lt_prog_compiler_pic='-PIC'
7283 lt_prog_compiler_static='-Bstatic'
7284 ;;
7285
7286 sysv4 | sysv4.2uw2* | sysv4.3*)
7287 lt_prog_compiler_wl='-Wl,'
7288 lt_prog_compiler_pic='-KPIC'
7289 lt_prog_compiler_static='-Bstatic'
7290 ;;
7291
7292 sysv4*MP*)
7293 if test -d /usr/nec ;then
7294 lt_prog_compiler_pic='-Kconform_pic'
7295 lt_prog_compiler_static='-Bstatic'
7296 fi
7297 ;;
7298
7299 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7300 lt_prog_compiler_wl='-Wl,'
7301 lt_prog_compiler_pic='-KPIC'
7302 lt_prog_compiler_static='-Bstatic'
7303 ;;
7304
7305 unicos*)
7306 lt_prog_compiler_wl='-Wl,'
7307 lt_prog_compiler_can_build_shared=no
7308 ;;
7309
7310 uts4*)
7311 lt_prog_compiler_pic='-pic'
7312 lt_prog_compiler_static='-Bstatic'
7313 ;;
7314
7315 *)
7316 lt_prog_compiler_can_build_shared=no
7317 ;;
7318 esac
7319 fi
7320
7321 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7322 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7323
7324 #
7325 # Check to make sure the PIC flag actually works.
7326 #
7327 if test -n "$lt_prog_compiler_pic"; then
7328
7329 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7330 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7331 if test "${lt_prog_compiler_pic_works+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 lt_prog_compiler_pic_works=no
7335 ac_outfile=conftest.$ac_objext
7336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7337 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7338 # Insert the option either (1) after the last *FLAGS variable, or
7339 # (2) before a word containing "conftest.", or (3) at the end.
7340 # Note that $ac_compile itself does not contain backslashes and begins
7341 # with a dollar sign (not a hyphen), so the echo should work correctly.
7342 # The option is referenced via a variable to avoid confusing sed.
7343 lt_compile=`echo "$ac_compile" | $SED \
7344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7346 -e 's:$: $lt_compiler_flag:'`
7347 (eval echo "\"\$as_me:7347: $lt_compile\"" >&5)
7348 (eval "$lt_compile" 2>conftest.err)
7349 ac_status=$?
7350 cat conftest.err >&5
7351 echo "$as_me:7351: \$? = $ac_status" >&5
7352 if (exit $ac_status) && test -s "$ac_outfile"; then
7353 # The compiler can only warn and ignore the option if not recognized
7354 # So say no if there are warnings other than the usual output.
7355 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7358 lt_prog_compiler_pic_works=yes
7359 fi
7360 fi
7361 $rm conftest*
7362
7363 fi
7364 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7365 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7366
7367 if test x"$lt_prog_compiler_pic_works" = xyes; then
7368 case $lt_prog_compiler_pic in
7369 "" | " "*) ;;
7370 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7371 esac
7372 else
7373 lt_prog_compiler_pic=
7374 lt_prog_compiler_can_build_shared=no
7375 fi
7376
7377 fi
7378 case $host_os in
7379 # For platforms which do not support PIC, -DPIC is meaningless:
7380 *djgpp*)
7381 lt_prog_compiler_pic=
7382 ;;
7383 *)
7384 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7385 ;;
7386 esac
7387
7388 #
7389 # Check to make sure the static flag actually works.
7390 #
7391 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7392 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7393 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7394 if test "${lt_prog_compiler_static_works+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 lt_prog_compiler_static_works=no
7398 save_LDFLAGS="$LDFLAGS"
7399 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7400 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7402 # The linker can only warn and ignore the option if not recognized
7403 # So say no if there are warnings
7404 if test -s conftest.err; then
7405 # Append any errors to the config.log.
7406 cat conftest.err 1>&5
7407 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7409 if diff conftest.exp conftest.er2 >/dev/null; then
7410 lt_prog_compiler_static_works=yes
7411 fi
7412 else
7413 lt_prog_compiler_static_works=yes
7414 fi
7415 fi
7416 $rm conftest*
7417 LDFLAGS="$save_LDFLAGS"
7418
7419 fi
7420 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7421 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7422
7423 if test x"$lt_prog_compiler_static_works" = xyes; then
7424 :
7425 else
7426 lt_prog_compiler_static=
7427 fi
7428
7429
7430 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7431 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7432 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 lt_cv_prog_compiler_c_o=no
7436 $rm -r conftest 2>/dev/null
7437 mkdir conftest
7438 cd conftest
7439 mkdir out
7440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7441
7442 lt_compiler_flag="-o out/conftest2.$ac_objext"
7443 # Insert the option either (1) after the last *FLAGS variable, or
7444 # (2) before a word containing "conftest.", or (3) at the end.
7445 # Note that $ac_compile itself does not contain backslashes and begins
7446 # with a dollar sign (not a hyphen), so the echo should work correctly.
7447 lt_compile=`echo "$ac_compile" | $SED \
7448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7450 -e 's:$: $lt_compiler_flag:'`
7451 (eval echo "\"\$as_me:7451: $lt_compile\"" >&5)
7452 (eval "$lt_compile" 2>out/conftest.err)
7453 ac_status=$?
7454 cat out/conftest.err >&5
7455 echo "$as_me:7455: \$? = $ac_status" >&5
7456 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7457 then
7458 # The compiler can only warn and ignore the option if not recognized
7459 # So say no if there are warnings
7460 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7461 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7462 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7463 lt_cv_prog_compiler_c_o=yes
7464 fi
7465 fi
7466 chmod u+w . 2>&5
7467 $rm conftest*
7468 # SGI C++ compiler will create directory out/ii_files/ for
7469 # template instantiation
7470 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7471 $rm out/* && rmdir out
7472 cd ..
7473 rmdir conftest
7474 $rm conftest*
7475
7476 fi
7477 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7478 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7479
7480
7481 hard_links="nottested"
7482 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7483 # do not overwrite the value of need_locks provided by the user
7484 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7485 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7486 hard_links=yes
7487 $rm conftest*
7488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7489 touch conftest.a
7490 ln conftest.a conftest.b 2>&5 || hard_links=no
7491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7492 { echo "$as_me:$LINENO: result: $hard_links" >&5
7493 echo "${ECHO_T}$hard_links" >&6; }
7494 if test "$hard_links" = no; then
7495 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7496 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7497 need_locks=warn
7498 fi
7499 else
7500 need_locks=no
7501 fi
7502
7503 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7504 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7505
7506 runpath_var=
7507 allow_undefined_flag=
7508 enable_shared_with_static_runtimes=no
7509 archive_cmds=
7510 archive_expsym_cmds=
7511 old_archive_From_new_cmds=
7512 old_archive_from_expsyms_cmds=
7513 export_dynamic_flag_spec=
7514 whole_archive_flag_spec=
7515 thread_safe_flag_spec=
7516 hardcode_libdir_flag_spec=
7517 hardcode_libdir_flag_spec_ld=
7518 hardcode_libdir_separator=
7519 hardcode_direct=no
7520 hardcode_minus_L=no
7521 hardcode_shlibpath_var=unsupported
7522 link_all_deplibs=unknown
7523 hardcode_automatic=no
7524 module_cmds=
7525 module_expsym_cmds=
7526 always_export_symbols=no
7527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7528 # include_expsyms should be a list of space-separated symbols to be *always*
7529 # included in the symbol list
7530 include_expsyms=
7531 # exclude_expsyms can be an extended regexp of symbols to exclude
7532 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7533 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7534 # as well as any symbol that contains `d'.
7535 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7537 # platforms (ab)use it in PIC code, but their linkers get confused if
7538 # the symbol is explicitly referenced. Since portable code cannot
7539 # rely on this symbol name, it's probably fine to never include it in
7540 # preloaded symbol tables.
7541 extract_expsyms_cmds=
7542 # Just being paranoid about ensuring that cc_basename is set.
7543 for cc_temp in $compiler""; do
7544 case $cc_temp in
7545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7547 \-*) ;;
7548 *) break;;
7549 esac
7550 done
7551 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7552
7553 case $host_os in
7554 cygwin* | mingw* | pw32*)
7555 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7556 # When not using gcc, we currently assume that we are using
7557 # Microsoft Visual C++.
7558 if test "$GCC" != yes; then
7559 with_gnu_ld=no
7560 fi
7561 ;;
7562 interix*)
7563 # we just hope/assume this is gcc and not c89 (= MSVC++)
7564 with_gnu_ld=yes
7565 ;;
7566 openbsd*)
7567 with_gnu_ld=no
7568 ;;
7569 esac
7570
7571 ld_shlibs=yes
7572 if test "$with_gnu_ld" = yes; then
7573 # If archive_cmds runs LD, not CC, wlarc should be empty
7574 wlarc='${wl}'
7575
7576 # Set some defaults for GNU ld with shared library support. These
7577 # are reset later if shared libraries are not supported. Putting them
7578 # here allows them to be overridden if necessary.
7579 runpath_var=LD_RUN_PATH
7580 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7581 export_dynamic_flag_spec='${wl}--export-dynamic'
7582 # ancient GNU ld didn't support --whole-archive et. al.
7583 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7584 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7585 else
7586 whole_archive_flag_spec=
7587 fi
7588 supports_anon_versioning=no
7589 case `$LD -v 2>/dev/null` in
7590 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7591 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7592 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7593 *\ 2.11.*) ;; # other 2.11 versions
7594 *) supports_anon_versioning=yes ;;
7595 esac
7596
7597 # See if GNU ld supports shared libraries.
7598 case $host_os in
7599 aix3* | aix4* | aix5*)
7600 # On AIX/PPC, the GNU linker is very broken
7601 if test "$host_cpu" != ia64; then
7602 ld_shlibs=no
7603 cat <<EOF 1>&2
7604
7605 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7606 *** to be unable to reliably create shared libraries on AIX.
7607 *** Therefore, libtool is disabling shared libraries support. If you
7608 *** really care for shared libraries, you may want to modify your PATH
7609 *** so that a non-GNU linker is found, and then restart.
7610
7611 EOF
7612 fi
7613 ;;
7614
7615 amigaos*)
7616 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)'
7617 hardcode_libdir_flag_spec='-L$libdir'
7618 hardcode_minus_L=yes
7619
7620 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7621 # that the semantics of dynamic libraries on AmigaOS, at least up
7622 # to version 4, is to share data among multiple programs linked
7623 # with the same dynamic library. Since this doesn't match the
7624 # behavior of shared libraries on other platforms, we can't use
7625 # them.
7626 ld_shlibs=no
7627 ;;
7628
7629 beos*)
7630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7631 allow_undefined_flag=unsupported
7632 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7633 # support --undefined. This deserves some investigation. FIXME
7634 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7635 else
7636 ld_shlibs=no
7637 fi
7638 ;;
7639
7640 cygwin* | mingw* | pw32*)
7641 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7642 # as there is no search path for DLLs.
7643 hardcode_libdir_flag_spec='-L$libdir'
7644 allow_undefined_flag=unsupported
7645 always_export_symbols=no
7646 enable_shared_with_static_runtimes=yes
7647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7648
7649 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7651 # If the export-symbols file already is a .def file (1st line
7652 # is EXPORTS), use it as is; otherwise, prepend...
7653 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7654 cp $export_symbols $output_objdir/$soname.def;
7655 else
7656 echo EXPORTS > $output_objdir/$soname.def;
7657 cat $export_symbols >> $output_objdir/$soname.def;
7658 fi~
7659 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7660 else
7661 ld_shlibs=no
7662 fi
7663 ;;
7664
7665 interix3*)
7666 hardcode_direct=no
7667 hardcode_shlibpath_var=no
7668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7669 export_dynamic_flag_spec='${wl}-E'
7670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7671 # Instead, shared libraries are loaded at an image base (0x10000000 by
7672 # default) and relocated if they conflict, which is a slow very memory
7673 # consuming and fragmenting process. To avoid this, we pick a random,
7674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7675 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7677 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'
7678 ;;
7679
7680 linux* | k*bsd*-gnu)
7681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7682 tmp_addflag=
7683 case $cc_basename,$host_cpu in
7684 pgcc*) # Portland Group C compiler
7685 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'
7686 tmp_addflag=' $pic_flag'
7687 ;;
7688 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7689 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'
7690 tmp_addflag=' $pic_flag -Mnomain' ;;
7691 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7692 tmp_addflag=' -i_dynamic' ;;
7693 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7694 tmp_addflag=' -i_dynamic -nofor_main' ;;
7695 ifc* | ifort*) # Intel Fortran compiler
7696 tmp_addflag=' -nofor_main' ;;
7697 esac
7698 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7699
7700 if test $supports_anon_versioning = yes; then
7701 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7703 $echo "local: *; };" >> $output_objdir/$libname.ver~
7704 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7705 fi
7706 link_all_deplibs=no
7707 else
7708 ld_shlibs=no
7709 fi
7710 ;;
7711
7712 netbsd* | netbsdelf*-gnu)
7713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7714 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7715 wlarc=
7716 else
7717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7719 fi
7720 ;;
7721
7722 solaris*)
7723 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7724 ld_shlibs=no
7725 cat <<EOF 1>&2
7726
7727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7728 *** create shared libraries on Solaris systems. Therefore, libtool
7729 *** is disabling shared libraries support. We urge you to upgrade GNU
7730 *** binutils to release 2.9.1 or newer. Another option is to modify
7731 *** your PATH or compiler configuration so that the native linker is
7732 *** used, and then restart.
7733
7734 EOF
7735 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7738 else
7739 ld_shlibs=no
7740 fi
7741 ;;
7742
7743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7744 case `$LD -v 2>&1` in
7745 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7746 ld_shlibs=no
7747 cat <<_LT_EOF 1>&2
7748
7749 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7750 *** reliably create shared libraries on SCO systems. Therefore, libtool
7751 *** is disabling shared libraries support. We urge you to upgrade GNU
7752 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7753 *** your PATH or compiler configuration so that the native linker is
7754 *** used, and then restart.
7755
7756 _LT_EOF
7757 ;;
7758 *)
7759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7760 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7763 else
7764 ld_shlibs=no
7765 fi
7766 ;;
7767 esac
7768 ;;
7769
7770 sunos4*)
7771 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7772 wlarc=
7773 hardcode_direct=yes
7774 hardcode_shlibpath_var=no
7775 ;;
7776
7777 *)
7778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7781 else
7782 ld_shlibs=no
7783 fi
7784 ;;
7785 esac
7786
7787 if test "$ld_shlibs" = no; then
7788 runpath_var=
7789 hardcode_libdir_flag_spec=
7790 export_dynamic_flag_spec=
7791 whole_archive_flag_spec=
7792 fi
7793 else
7794 # PORTME fill in a description of your system's linker (not GNU ld)
7795 case $host_os in
7796 aix3*)
7797 allow_undefined_flag=unsupported
7798 always_export_symbols=yes
7799 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'
7800 # Note: this linker hardcodes the directories in LIBPATH if there
7801 # are no directories specified by -L.
7802 hardcode_minus_L=yes
7803 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7804 # Neither direct hardcoding nor static linking is supported with a
7805 # broken collect2.
7806 hardcode_direct=unsupported
7807 fi
7808 ;;
7809
7810 aix4* | aix5*)
7811 if test "$host_cpu" = ia64; then
7812 # On IA64, the linker does run time linking by default, so we don't
7813 # have to do anything special.
7814 aix_use_runtimelinking=no
7815 exp_sym_flag='-Bexport'
7816 no_entry_flag=""
7817 else
7818 # If we're using GNU nm, then we don't want the "-C" option.
7819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7821 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'
7822 else
7823 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'
7824 fi
7825 aix_use_runtimelinking=no
7826
7827 # Test if we are trying to use run time linking or normal
7828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7829 # need to do runtime linking.
7830 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7831 for ld_flag in $LDFLAGS; do
7832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7833 aix_use_runtimelinking=yes
7834 break
7835 fi
7836 done
7837 ;;
7838 esac
7839
7840 exp_sym_flag='-bexport'
7841 no_entry_flag='-bnoentry'
7842 fi
7843
7844 # When large executables or shared objects are built, AIX ld can
7845 # have problems creating the table of contents. If linking a library
7846 # or program results in "error TOC overflow" add -mminimal-toc to
7847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7849
7850 archive_cmds=''
7851 hardcode_direct=yes
7852 hardcode_libdir_separator=':'
7853 link_all_deplibs=yes
7854
7855 if test "$GCC" = yes; then
7856 case $host_os in aix4.[012]|aix4.[012].*)
7857 # We only want to do this on AIX 4.2 and lower, the check
7858 # below for broken collect2 doesn't work under 4.3+
7859 collect2name=`${CC} -print-prog-name=collect2`
7860 if test -f "$collect2name" && \
7861 strings "$collect2name" | grep resolve_lib_name >/dev/null
7862 then
7863 # We have reworked collect2
7864 hardcode_direct=yes
7865 else
7866 # We have old collect2
7867 hardcode_direct=unsupported
7868 # It fails to find uninstalled libraries when the uninstalled
7869 # path is not listed in the libpath. Setting hardcode_minus_L
7870 # to unsupported forces relinking
7871 hardcode_minus_L=yes
7872 hardcode_libdir_flag_spec='-L$libdir'
7873 hardcode_libdir_separator=
7874 fi
7875 ;;
7876 esac
7877 shared_flag='-shared'
7878 if test "$aix_use_runtimelinking" = yes; then
7879 shared_flag="$shared_flag "'${wl}-G'
7880 fi
7881 else
7882 # not using gcc
7883 if test "$host_cpu" = ia64; then
7884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7885 # chokes on -Wl,-G. The following line is correct:
7886 shared_flag='-G'
7887 else
7888 if test "$aix_use_runtimelinking" = yes; then
7889 shared_flag='${wl}-G'
7890 else
7891 shared_flag='${wl}-bM:SRE'
7892 fi
7893 fi
7894 fi
7895
7896 # It seems that -bexpall does not export symbols beginning with
7897 # underscore (_), so it is better to generate a list of symbols to export.
7898 always_export_symbols=yes
7899 if test "$aix_use_runtimelinking" = yes; then
7900 # Warning - without using the other runtime loading flags (-brtl),
7901 # -berok will link without error, but may produce a broken library.
7902 allow_undefined_flag='-berok'
7903 # Determine the default libpath from the value encoded in an empty executable.
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910
7911 int
7912 main ()
7913 {
7914
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext &&
7936 $as_test_x conftest$ac_exeext; then
7937
7938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7939 }'`
7940 # Check for a 64-bit object if we didn't find anything.
7941 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; }
7942 }'`; fi
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947
7948 fi
7949
7950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7951 conftest$ac_exeext conftest.$ac_ext
7952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7953
7954 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7955 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"
7956 else
7957 if test "$host_cpu" = ia64; then
7958 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7959 allow_undefined_flag="-z nodefs"
7960 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"
7961 else
7962 # Determine the default libpath from the value encoded in an empty executable.
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969
7970 int
7971 main ()
7972 {
7973
7974 ;
7975 return 0;
7976 }
7977 _ACEOF
7978 rm -f conftest.$ac_objext conftest$ac_exeext
7979 if { (ac_try="$ac_link"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_link") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest$ac_exeext &&
7995 $as_test_x conftest$ac_exeext; then
7996
7997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7998 }'`
7999 # Check for a 64-bit object if we didn't find anything.
8000 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; }
8001 }'`; fi
8002 else
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8005
8006
8007 fi
8008
8009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8010 conftest$ac_exeext conftest.$ac_ext
8011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8012
8013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8014 # Warning - without using the other run time loading flags,
8015 # -berok will link without error, but may produce a broken library.
8016 no_undefined_flag=' ${wl}-bernotok'
8017 allow_undefined_flag=' ${wl}-berok'
8018 # Exported symbols can be pulled into shared objects from archives
8019 whole_archive_flag_spec='$convenience'
8020 archive_cmds_need_lc=yes
8021 # This is similar to how AIX traditionally builds its shared libraries.
8022 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'
8023 fi
8024 fi
8025 ;;
8026
8027 amigaos*)
8028 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)'
8029 hardcode_libdir_flag_spec='-L$libdir'
8030 hardcode_minus_L=yes
8031 # see comment about different semantics on the GNU ld section
8032 ld_shlibs=no
8033 ;;
8034
8035 bsdi[45]*)
8036 export_dynamic_flag_spec=-rdynamic
8037 ;;
8038
8039 cygwin* | mingw* | pw32*)
8040 # When not using gcc, we currently assume that we are using
8041 # Microsoft Visual C++.
8042 # hardcode_libdir_flag_spec is actually meaningless, as there is
8043 # no search path for DLLs.
8044 hardcode_libdir_flag_spec=' '
8045 allow_undefined_flag=unsupported
8046 # Tell ltmain to make .lib files, not .a files.
8047 libext=lib
8048 # Tell ltmain to make .dll files, not .so files.
8049 shrext_cmds=".dll"
8050 # FIXME: Setting linknames here is a bad hack.
8051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8052 # The linker will automatically build a .lib file if we build a DLL.
8053 old_archive_From_new_cmds='true'
8054 # FIXME: Should let the user specify the lib program.
8055 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8056 fix_srcfile_path='`cygpath -w "$srcfile"`'
8057 enable_shared_with_static_runtimes=yes
8058 ;;
8059
8060 darwin* | rhapsody*)
8061 case $host_os in
8062 rhapsody* | darwin1.[012])
8063 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8064 ;;
8065 *) # Darwin 1.3 on
8066 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8067 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8068 else
8069 case ${MACOSX_DEPLOYMENT_TARGET} in
8070 10.[012])
8071 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8072 ;;
8073 10.*)
8074 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8075 ;;
8076 esac
8077 fi
8078 ;;
8079 esac
8080 archive_cmds_need_lc=no
8081 hardcode_direct=no
8082 hardcode_automatic=yes
8083 hardcode_shlibpath_var=unsupported
8084 whole_archive_flag_spec=''
8085 link_all_deplibs=yes
8086 if test "$GCC" = yes ; then
8087 output_verbose_link_cmd='echo'
8088 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8089 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8090 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8091 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}'
8092 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}'
8093 else
8094 case $cc_basename in
8095 xlc*)
8096 output_verbose_link_cmd='echo'
8097 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8098 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8100 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}'
8101 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}'
8102 ;;
8103 *)
8104 ld_shlibs=no
8105 ;;
8106 esac
8107 fi
8108 ;;
8109
8110 dgux*)
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_libdir_flag_spec='-L$libdir'
8113 hardcode_shlibpath_var=no
8114 ;;
8115
8116 freebsd1*)
8117 ld_shlibs=no
8118 ;;
8119
8120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8121 # support. Future versions do this automatically, but an explicit c++rt0.o
8122 # does not break anything, and helps significantly (at the cost of a little
8123 # extra space).
8124 freebsd2.2*)
8125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8126 hardcode_libdir_flag_spec='-R$libdir'
8127 hardcode_direct=yes
8128 hardcode_shlibpath_var=no
8129 ;;
8130
8131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8132 freebsd2*)
8133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8134 hardcode_direct=yes
8135 hardcode_minus_L=yes
8136 hardcode_shlibpath_var=no
8137 ;;
8138
8139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8140 freebsd* | dragonfly*)
8141 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8142 hardcode_libdir_flag_spec='-R$libdir'
8143 hardcode_direct=yes
8144 hardcode_shlibpath_var=no
8145 ;;
8146
8147 hpux9*)
8148 if test "$GCC" = yes; then
8149 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'
8150 else
8151 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'
8152 fi
8153 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8154 hardcode_libdir_separator=:
8155 hardcode_direct=yes
8156
8157 # hardcode_minus_L: Not really in the search PATH,
8158 # but as the default location of the library.
8159 hardcode_minus_L=yes
8160 export_dynamic_flag_spec='${wl}-E'
8161 ;;
8162
8163 hpux10*)
8164 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8165 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8166 else
8167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8168 fi
8169 if test "$with_gnu_ld" = no; then
8170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8171 hardcode_libdir_separator=:
8172
8173 hardcode_direct=yes
8174 export_dynamic_flag_spec='${wl}-E'
8175
8176 # hardcode_minus_L: Not really in the search PATH,
8177 # but as the default location of the library.
8178 hardcode_minus_L=yes
8179 fi
8180 ;;
8181
8182 hpux11*)
8183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8184 case $host_cpu in
8185 hppa*64*)
8186 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8187 ;;
8188 ia64*)
8189 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8190 ;;
8191 *)
8192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8193 ;;
8194 esac
8195 else
8196 case $host_cpu in
8197 hppa*64*)
8198 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8199 ;;
8200 ia64*)
8201 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8202 ;;
8203 *)
8204 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8205 ;;
8206 esac
8207 fi
8208 if test "$with_gnu_ld" = no; then
8209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8210 hardcode_libdir_separator=:
8211
8212 case $host_cpu in
8213 hppa*64*|ia64*)
8214 hardcode_libdir_flag_spec_ld='+b $libdir'
8215 hardcode_direct=no
8216 hardcode_shlibpath_var=no
8217 ;;
8218 *)
8219 hardcode_direct=yes
8220 export_dynamic_flag_spec='${wl}-E'
8221
8222 # hardcode_minus_L: Not really in the search PATH,
8223 # but as the default location of the library.
8224 hardcode_minus_L=yes
8225 ;;
8226 esac
8227 fi
8228 ;;
8229
8230 irix5* | irix6* | nonstopux*)
8231 if test "$GCC" = yes; then
8232 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'
8233 else
8234 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'
8235 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8236 fi
8237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8238 hardcode_libdir_separator=:
8239 link_all_deplibs=yes
8240 ;;
8241
8242 netbsd* | netbsdelf*-gnu)
8243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8245 else
8246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8247 fi
8248 hardcode_libdir_flag_spec='-R$libdir'
8249 hardcode_direct=yes
8250 hardcode_shlibpath_var=no
8251 ;;
8252
8253 newsos6)
8254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8255 hardcode_direct=yes
8256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8257 hardcode_libdir_separator=:
8258 hardcode_shlibpath_var=no
8259 ;;
8260
8261 openbsd*)
8262 hardcode_direct=yes
8263 hardcode_shlibpath_var=no
8264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8266 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8268 export_dynamic_flag_spec='${wl}-E'
8269 else
8270 case $host_os in
8271 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8273 hardcode_libdir_flag_spec='-R$libdir'
8274 ;;
8275 *)
8276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8278 ;;
8279 esac
8280 fi
8281 ;;
8282
8283 os2*)
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 hardcode_minus_L=yes
8286 allow_undefined_flag=unsupported
8287 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'
8288 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8289 ;;
8290
8291 osf3*)
8292 if test "$GCC" = yes; then
8293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8294 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'
8295 else
8296 allow_undefined_flag=' -expect_unresolved \*'
8297 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'
8298 fi
8299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300 hardcode_libdir_separator=:
8301 ;;
8302
8303 osf4* | osf5*) # as osf3* with the addition of -msym flag
8304 if test "$GCC" = yes; then
8305 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8306 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'
8307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308 else
8309 allow_undefined_flag=' -expect_unresolved \*'
8310 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'
8311 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8312 $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'
8313
8314 # Both c and cxx compiler support -rpath directly
8315 hardcode_libdir_flag_spec='-rpath $libdir'
8316 fi
8317 hardcode_libdir_separator=:
8318 ;;
8319
8320 solaris*)
8321 no_undefined_flag=' -z text'
8322 if test "$GCC" = yes; then
8323 wlarc='${wl}'
8324 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8325 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8326 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8327 else
8328 wlarc=''
8329 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8330 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8332 fi
8333 hardcode_libdir_flag_spec='-R$libdir'
8334 hardcode_shlibpath_var=no
8335 case $host_os in
8336 solaris2.[0-5] | solaris2.[0-5].*) ;;
8337 *)
8338 # The compiler driver will combine linker options so we
8339 # cannot just pass the convience library names through
8340 # without $wl, iff we do not link with $LD.
8341 # Luckily, gcc supports the same syntax we need for Sun Studio.
8342 # Supported since Solaris 2.6 (maybe 2.5.1?)
8343 case $wlarc in
8344 '')
8345 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8346 *)
8347 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' ;;
8348 esac ;;
8349 esac
8350 link_all_deplibs=yes
8351 ;;
8352
8353 sunos4*)
8354 if test "x$host_vendor" = xsequent; then
8355 # Use $CC to link under sequent, because it throws in some extra .o
8356 # files that make .init and .fini sections work.
8357 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8358 else
8359 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8360 fi
8361 hardcode_libdir_flag_spec='-L$libdir'
8362 hardcode_direct=yes
8363 hardcode_minus_L=yes
8364 hardcode_shlibpath_var=no
8365 ;;
8366
8367 sysv4)
8368 case $host_vendor in
8369 sni)
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_direct=yes # is this really true???
8372 ;;
8373 siemens)
8374 ## LD is ld it makes a PLAMLIB
8375 ## CC just makes a GrossModule.
8376 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8377 reload_cmds='$CC -r -o $output$reload_objs'
8378 hardcode_direct=no
8379 ;;
8380 motorola)
8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8383 ;;
8384 esac
8385 runpath_var='LD_RUN_PATH'
8386 hardcode_shlibpath_var=no
8387 ;;
8388
8389 sysv4.3*)
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_shlibpath_var=no
8392 export_dynamic_flag_spec='-Bexport'
8393 ;;
8394
8395 sysv4*MP*)
8396 if test -d /usr/nec; then
8397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398 hardcode_shlibpath_var=no
8399 runpath_var=LD_RUN_PATH
8400 hardcode_runpath_var=yes
8401 ld_shlibs=yes
8402 fi
8403 ;;
8404
8405 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8406 no_undefined_flag='${wl}-z,text'
8407 archive_cmds_need_lc=no
8408 hardcode_shlibpath_var=no
8409 runpath_var='LD_RUN_PATH'
8410
8411 if test "$GCC" = yes; then
8412 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 else
8415 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417 fi
8418 ;;
8419
8420 sysv5* | sco3.2v5* | sco5v6*)
8421 # Note: We can NOT use -z defs as we might desire, because we do not
8422 # link with -lc, and that would cause any symbols used from libc to
8423 # always be unresolved, which means just about no library would
8424 # ever link correctly. If we're not using GNU ld we use -z text
8425 # though, which does catch some bad symbols but isn't as heavy-handed
8426 # as -z defs.
8427 no_undefined_flag='${wl}-z,text'
8428 allow_undefined_flag='${wl}-z,nodefs'
8429 archive_cmds_need_lc=no
8430 hardcode_shlibpath_var=no
8431 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8432 hardcode_libdir_separator=':'
8433 link_all_deplibs=yes
8434 export_dynamic_flag_spec='${wl}-Bexport'
8435 runpath_var='LD_RUN_PATH'
8436
8437 if test "$GCC" = yes; then
8438 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 else
8441 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8443 fi
8444 ;;
8445
8446 uts4*)
8447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_shlibpath_var=no
8450 ;;
8451
8452 *)
8453 ld_shlibs=no
8454 ;;
8455 esac
8456 fi
8457
8458 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8459 echo "${ECHO_T}$ld_shlibs" >&6; }
8460 test "$ld_shlibs" = no && can_build_shared=no
8461
8462 #
8463 # Do we need to explicitly link libc?
8464 #
8465 case "x$archive_cmds_need_lc" in
8466 x|xyes)
8467 # Assume -lc should be added
8468 archive_cmds_need_lc=yes
8469
8470 if test "$enable_shared" = yes && test "$GCC" = yes; then
8471 case $archive_cmds in
8472 *'~'*)
8473 # FIXME: we may have to deal with multi-command sequences.
8474 ;;
8475 '$CC '*)
8476 # Test whether the compiler implicitly links with -lc since on some
8477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8478 # to ld, don't add -lc before -lgcc.
8479 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8480 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8481 $rm conftest*
8482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8483
8484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8485 (eval $ac_compile) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } 2>conftest.err; then
8489 soname=conftest
8490 lib=conftest
8491 libobjs=conftest.$ac_objext
8492 deplibs=
8493 wl=$lt_prog_compiler_wl
8494 pic_flag=$lt_prog_compiler_pic
8495 compiler_flags=-v
8496 linker_flags=-v
8497 verstring=
8498 output_objdir=.
8499 libname=conftest
8500 lt_save_allow_undefined_flag=$allow_undefined_flag
8501 allow_undefined_flag=
8502 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8503 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }
8507 then
8508 archive_cmds_need_lc=no
8509 else
8510 archive_cmds_need_lc=yes
8511 fi
8512 allow_undefined_flag=$lt_save_allow_undefined_flag
8513 else
8514 cat conftest.err 1>&5
8515 fi
8516 $rm conftest*
8517 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8518 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8519 ;;
8520 esac
8521 fi
8522 ;;
8523 esac
8524
8525 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8527 library_names_spec=
8528 libname_spec='lib$name'
8529 soname_spec=
8530 shrext_cmds=".so"
8531 postinstall_cmds=
8532 postuninstall_cmds=
8533 finish_cmds=
8534 finish_eval=
8535 shlibpath_var=
8536 shlibpath_overrides_runpath=unknown
8537 version_type=none
8538 dynamic_linker="$host_os ld.so"
8539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8540 if test "$GCC" = yes; then
8541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8543 # if the path contains ";" then we assume it to be the separator
8544 # otherwise default to the standard path separator (i.e. ":") - it is
8545 # assumed that no part of a normal pathname contains ";" but that should
8546 # okay in the real world where ";" in dirpaths is itself problematic.
8547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8548 else
8549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8550 fi
8551 else
8552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8553 fi
8554 need_lib_prefix=unknown
8555 hardcode_into_libs=no
8556
8557 # when you set need_version to no, make sure it does not cause -set_version
8558 # flags to be left without arguments
8559 need_version=unknown
8560
8561 case $host_os in
8562 aix3*)
8563 version_type=linux
8564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8565 shlibpath_var=LIBPATH
8566
8567 # AIX 3 has no versioning support, so we append a major version to the name.
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 ;;
8570
8571 aix4* | aix5*)
8572 version_type=linux
8573 need_lib_prefix=no
8574 need_version=no
8575 hardcode_into_libs=yes
8576 if test "$host_cpu" = ia64; then
8577 # AIX 5 supports IA64
8578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8579 shlibpath_var=LD_LIBRARY_PATH
8580 else
8581 # With GCC up to 2.95.x, collect2 would create an import file
8582 # for dependence libraries. The import file would start with
8583 # the line `#! .'. This would cause the generated library to
8584 # depend on `.', always an invalid library. This was fixed in
8585 # development snapshots of GCC prior to 3.0.
8586 case $host_os in
8587 aix4 | aix4.[01] | aix4.[01].*)
8588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8589 echo ' yes '
8590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8591 :
8592 else
8593 can_build_shared=no
8594 fi
8595 ;;
8596 esac
8597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8598 # soname into executable. Probably we can add versioning support to
8599 # collect2, so additional links can be useful in future.
8600 if test "$aix_use_runtimelinking" = yes; then
8601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8602 # instead of lib<name>.a to let people know that these are not
8603 # typical AIX shared libraries.
8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 else
8606 # We preserve .a as extension for shared libraries through AIX4.2
8607 # and later when we are not doing run time linking.
8608 library_names_spec='${libname}${release}.a $libname.a'
8609 soname_spec='${libname}${release}${shared_ext}$major'
8610 fi
8611 shlibpath_var=LIBPATH
8612 fi
8613 ;;
8614
8615 amigaos*)
8616 library_names_spec='$libname.ixlibrary $libname.a'
8617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8618 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'
8619 ;;
8620
8621 beos*)
8622 library_names_spec='${libname}${shared_ext}'
8623 dynamic_linker="$host_os ld.so"
8624 shlibpath_var=LIBRARY_PATH
8625 ;;
8626
8627 bsdi[45]*)
8628 version_type=linux
8629 need_version=no
8630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8631 soname_spec='${libname}${release}${shared_ext}$major'
8632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8633 shlibpath_var=LD_LIBRARY_PATH
8634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8636 # the default ld.so.conf also contains /usr/contrib/lib and
8637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8638 # libtool to hard-code these into programs
8639 ;;
8640
8641 cygwin* | mingw* | pw32*)
8642 version_type=windows
8643 shrext_cmds=".dll"
8644 need_version=no
8645 need_lib_prefix=no
8646
8647 case $GCC,$host_os in
8648 yes,cygwin* | yes,mingw* | yes,pw32*)
8649 library_names_spec='$libname.dll.a'
8650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8651 postinstall_cmds='base_file=`basename \${file}`~
8652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8653 dldir=$destdir/`dirname \$dlpath`~
8654 test -d \$dldir || mkdir -p \$dldir~
8655 $install_prog $dir/$dlname \$dldir/$dlname~
8656 chmod a+x \$dldir/$dlname'
8657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8658 dlpath=$dir/\$dldll~
8659 $rm \$dlpath'
8660 shlibpath_overrides_runpath=yes
8661
8662 case $host_os in
8663 cygwin*)
8664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8666 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8667 ;;
8668 mingw*)
8669 # MinGW DLLs use traditional 'lib' prefix
8670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8673 # It is most probably a Windows format PATH printed by
8674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8675 # path with ; separators, and with drive letters. We can handle the
8676 # drive letters (cygwin fileutils understands them), so leave them,
8677 # especially as we might pass files found there to a mingw objdump,
8678 # which wouldn't understand a cygwinified path. Ahh.
8679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8680 else
8681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8682 fi
8683 ;;
8684 pw32*)
8685 # pw32 DLLs use 'pw' prefix rather than 'lib'
8686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8687 ;;
8688 esac
8689 ;;
8690
8691 *)
8692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8693 ;;
8694 esac
8695 dynamic_linker='Win32 ld.exe'
8696 # FIXME: first we should search . and the directory the executable is in
8697 shlibpath_var=PATH
8698 ;;
8699
8700 darwin* | rhapsody*)
8701 dynamic_linker="$host_os dyld"
8702 version_type=darwin
8703 need_lib_prefix=no
8704 need_version=no
8705 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8706 soname_spec='${libname}${release}${major}$shared_ext'
8707 shlibpath_overrides_runpath=yes
8708 shlibpath_var=DYLD_LIBRARY_PATH
8709 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8710 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8711 if test "$GCC" = yes; then
8712 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"`
8713 else
8714 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8715 fi
8716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8717 ;;
8718
8719 dgux*)
8720 version_type=linux
8721 need_lib_prefix=no
8722 need_version=no
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8726 ;;
8727
8728 freebsd1*)
8729 dynamic_linker=no
8730 ;;
8731
8732 freebsd* | dragonfly*)
8733 # DragonFly does not have aout. When/if they implement a new
8734 # versioning mechanism, adjust this.
8735 if test -x /usr/bin/objformat; then
8736 objformat=`/usr/bin/objformat`
8737 else
8738 case $host_os in
8739 freebsd[123]*) objformat=aout ;;
8740 *) objformat=elf ;;
8741 esac
8742 fi
8743 version_type=freebsd-$objformat
8744 case $version_type in
8745 freebsd-elf*)
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8747 need_version=no
8748 need_lib_prefix=no
8749 ;;
8750 freebsd-*)
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8752 need_version=yes
8753 ;;
8754 esac
8755 shlibpath_var=LD_LIBRARY_PATH
8756 case $host_os in
8757 freebsd2*)
8758 shlibpath_overrides_runpath=yes
8759 ;;
8760 freebsd3.[01]* | freebsdelf3.[01]*)
8761 shlibpath_overrides_runpath=yes
8762 hardcode_into_libs=yes
8763 ;;
8764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8766 shlibpath_overrides_runpath=no
8767 hardcode_into_libs=yes
8768 ;;
8769 freebsd*) # from 4.6 on
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8772 ;;
8773 esac
8774 ;;
8775
8776 gnu*)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 hardcode_into_libs=yes
8784 ;;
8785
8786 hpux9* | hpux10* | hpux11*)
8787 # Give a soname corresponding to the major version so that dld.sl refuses to
8788 # link against other versions.
8789 version_type=sunos
8790 need_lib_prefix=no
8791 need_version=no
8792 case $host_cpu in
8793 ia64*)
8794 shrext_cmds='.so'
8795 hardcode_into_libs=yes
8796 dynamic_linker="$host_os dld.so"
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 if test "X$HPUX_IA64_MODE" = X32; then
8802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8803 else
8804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8805 fi
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807 ;;
8808 hppa*64*)
8809 shrext_cmds='.sl'
8810 hardcode_into_libs=yes
8811 dynamic_linker="$host_os dld.sl"
8812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8818 ;;
8819 *)
8820 shrext_cmds='.sl'
8821 dynamic_linker="$host_os dld.sl"
8822 shlibpath_var=SHLIB_PATH
8823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 ;;
8827 esac
8828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829 postinstall_cmds='chmod 555 $lib'
8830 ;;
8831
8832 interix3*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=no
8841 hardcode_into_libs=yes
8842 ;;
8843
8844 irix5* | irix6* | nonstopux*)
8845 case $host_os in
8846 nonstopux*) version_type=nonstopux ;;
8847 *)
8848 if test "$lt_cv_prog_gnu_ld" = yes; then
8849 version_type=linux
8850 else
8851 version_type=irix
8852 fi ;;
8853 esac
8854 need_lib_prefix=no
8855 need_version=no
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8858 case $host_os in
8859 irix5* | nonstopux*)
8860 libsuff= shlibsuff=
8861 ;;
8862 *)
8863 case $LD in # libtool.m4 will add one of these switches to LD
8864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8865 libsuff= shlibsuff= libmagic=32-bit;;
8866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8867 libsuff=32 shlibsuff=N32 libmagic=N32;;
8868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870 *) libsuff= shlibsuff= libmagic=never-match;;
8871 esac
8872 ;;
8873 esac
8874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875 shlibpath_overrides_runpath=no
8876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878 hardcode_into_libs=yes
8879 ;;
8880
8881 # No shared lib support for Linux oldld, aout, or coff.
8882 linux*oldld* | linux*aout* | linux*coff*)
8883 dynamic_linker=no
8884 ;;
8885
8886 # This must be Linux ELF.
8887 linux* | k*bsd*-gnu)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 # This implies no fast_install, which is unacceptable.
8897 # Some rework will be needed to allow for fast_install
8898 # before this can be enabled.
8899 hardcode_into_libs=yes
8900
8901 # Append ld.so.conf contents to the search path
8902 if test -f /etc/ld.so.conf; then
8903 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' ' '`
8904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8905 fi
8906
8907 # We used to test for /lib/ld.so.1 and disable shared libraries on
8908 # powerpc, because MkLinux only supported shared libraries with the
8909 # GNU dynamic linker. Since this was broken with cross compilers,
8910 # most powerpc-linux boxes support dynamic linking these days and
8911 # people can always --disable-shared, the test was removed, and we
8912 # assume the GNU/Linux dynamic linker is in use.
8913 dynamic_linker='GNU/Linux ld.so'
8914 ;;
8915
8916 netbsdelf*-gnu)
8917 version_type=linux
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 dynamic_linker='NetBSD ld.elf_so'
8926 ;;
8927
8928 netbsd*)
8929 version_type=sunos
8930 need_lib_prefix=no
8931 need_version=no
8932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8935 dynamic_linker='NetBSD (a.out) ld.so'
8936 else
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 dynamic_linker='NetBSD ld.elf_so'
8940 fi
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes
8943 hardcode_into_libs=yes
8944 ;;
8945
8946 newsos6)
8947 version_type=linux
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8951 ;;
8952
8953 nto-qnx*)
8954 version_type=linux
8955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=yes
8961 ;;
8962
8963 openbsd*)
8964 version_type=sunos
8965 sys_lib_dlsearch_path_spec="/usr/lib"
8966 need_lib_prefix=no
8967 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8968 case $host_os in
8969 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8970 *) need_version=no ;;
8971 esac
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8976 case $host_os in
8977 openbsd2.[89] | openbsd2.[89].*)
8978 shlibpath_overrides_runpath=no
8979 ;;
8980 *)
8981 shlibpath_overrides_runpath=yes
8982 ;;
8983 esac
8984 else
8985 shlibpath_overrides_runpath=yes
8986 fi
8987 ;;
8988
8989 os2*)
8990 libname_spec='$name'
8991 shrext_cmds=".dll"
8992 need_lib_prefix=no
8993 library_names_spec='$libname${shared_ext} $libname.a'
8994 dynamic_linker='OS/2 ld.exe'
8995 shlibpath_var=LIBPATH
8996 ;;
8997
8998 osf3* | osf4* | osf5*)
8999 version_type=osf
9000 need_lib_prefix=no
9001 need_version=no
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9007 ;;
9008
9009 solaris*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 hardcode_into_libs=yes
9018 # ldd complains unless libraries are executable
9019 postinstall_cmds='chmod +x $lib'
9020 ;;
9021
9022 sunos4*)
9023 version_type=sunos
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 if test "$with_gnu_ld" = yes; then
9029 need_lib_prefix=no
9030 fi
9031 need_version=yes
9032 ;;
9033
9034 sysv4 | sysv4.3*)
9035 version_type=linux
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 case $host_vendor in
9040 sni)
9041 shlibpath_overrides_runpath=no
9042 need_lib_prefix=no
9043 export_dynamic_flag_spec='${wl}-Blargedynsym'
9044 runpath_var=LD_RUN_PATH
9045 ;;
9046 siemens)
9047 need_lib_prefix=no
9048 ;;
9049 motorola)
9050 need_lib_prefix=no
9051 need_version=no
9052 shlibpath_overrides_runpath=no
9053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9054 ;;
9055 esac
9056 ;;
9057
9058 sysv4*MP*)
9059 if test -d /usr/nec ;then
9060 version_type=linux
9061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9062 soname_spec='$libname${shared_ext}.$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 fi
9065 ;;
9066
9067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9068 version_type=freebsd-elf
9069 need_lib_prefix=no
9070 need_version=no
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 hardcode_into_libs=yes
9075 if test "$with_gnu_ld" = yes; then
9076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9077 shlibpath_overrides_runpath=no
9078 else
9079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9080 shlibpath_overrides_runpath=yes
9081 case $host_os in
9082 sco3.2v5*)
9083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9084 ;;
9085 esac
9086 fi
9087 sys_lib_dlsearch_path_spec='/usr/lib'
9088 ;;
9089
9090 uts4*)
9091 version_type=linux
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 ;;
9096
9097 *)
9098 dynamic_linker=no
9099 ;;
9100 esac
9101 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9102 echo "${ECHO_T}$dynamic_linker" >&6; }
9103 test "$dynamic_linker" = no && can_build_shared=no
9104
9105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9106 if test "$GCC" = yes; then
9107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9108 fi
9109
9110 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9112 hardcode_action=
9113 if test -n "$hardcode_libdir_flag_spec" || \
9114 test -n "$runpath_var" || \
9115 test "X$hardcode_automatic" = "Xyes" ; then
9116
9117 # We can hardcode non-existant directories.
9118 if test "$hardcode_direct" != no &&
9119 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9120 # have to relink, otherwise we might link with an installed library
9121 # when we should be linking with a yet-to-be-installed one
9122 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9123 test "$hardcode_minus_L" != no; then
9124 # Linking always hardcodes the temporary library directory.
9125 hardcode_action=relink
9126 else
9127 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9128 hardcode_action=immediate
9129 fi
9130 else
9131 # We cannot hardcode anything, or else we can only hardcode existing
9132 # directories.
9133 hardcode_action=unsupported
9134 fi
9135 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9136 echo "${ECHO_T}$hardcode_action" >&6; }
9137
9138 if test "$hardcode_action" = relink; then
9139 # Fast installation is not supported
9140 enable_fast_install=no
9141 elif test "$shlibpath_overrides_runpath" = yes ||
9142 test "$enable_shared" = no; then
9143 # Fast installation is not necessary
9144 enable_fast_install=needless
9145 fi
9146
9147 striplib=
9148 old_striplib=
9149 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9150 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9151 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9152 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9153 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9154 { echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6; }
9156 else
9157 # FIXME - insert some real tests, host_os isn't really good enough
9158 case $host_os in
9159 darwin*)
9160 if test -n "$STRIP" ; then
9161 striplib="$STRIP -x"
9162 { echo "$as_me:$LINENO: result: yes" >&5
9163 echo "${ECHO_T}yes" >&6; }
9164 else
9165 { echo "$as_me:$LINENO: result: no" >&5
9166 echo "${ECHO_T}no" >&6; }
9167 fi
9168 ;;
9169 *)
9170 { echo "$as_me:$LINENO: result: no" >&5
9171 echo "${ECHO_T}no" >&6; }
9172 ;;
9173 esac
9174 fi
9175
9176 if test "x$enable_dlopen" != xyes; then
9177 enable_dlopen=unknown
9178 enable_dlopen_self=unknown
9179 enable_dlopen_self_static=unknown
9180 else
9181 lt_cv_dlopen=no
9182 lt_cv_dlopen_libs=
9183
9184 case $host_os in
9185 beos*)
9186 lt_cv_dlopen="load_add_on"
9187 lt_cv_dlopen_libs=
9188 lt_cv_dlopen_self=yes
9189 ;;
9190
9191 mingw* | pw32*)
9192 lt_cv_dlopen="LoadLibrary"
9193 lt_cv_dlopen_libs=
9194 ;;
9195
9196 cygwin*)
9197 lt_cv_dlopen="dlopen"
9198 lt_cv_dlopen_libs=
9199 ;;
9200
9201 darwin*)
9202 # if libdl is installed we need to link against it
9203 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208 ac_check_lib_save_LIBS=$LIBS
9209 LIBS="-ldl $LIBS"
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h. */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216
9217 /* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 char dlopen ();
9224 int
9225 main ()
9226 {
9227 return dlopen ();
9228 ;
9229 return 0;
9230 }
9231 _ACEOF
9232 rm -f conftest.$ac_objext conftest$ac_exeext
9233 if { (ac_try="$ac_link"
9234 case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_link") 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest$ac_exeext &&
9249 $as_test_x conftest$ac_exeext; then
9250 ac_cv_lib_dl_dlopen=yes
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 ac_cv_lib_dl_dlopen=no
9256 fi
9257
9258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9259 conftest$ac_exeext conftest.$ac_ext
9260 LIBS=$ac_check_lib_save_LIBS
9261 fi
9262 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9263 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9264 if test $ac_cv_lib_dl_dlopen = yes; then
9265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9266 else
9267
9268 lt_cv_dlopen="dyld"
9269 lt_cv_dlopen_libs=
9270 lt_cv_dlopen_self=yes
9271
9272 fi
9273
9274 ;;
9275
9276 *)
9277 { echo "$as_me:$LINENO: checking for shl_load" >&5
9278 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9279 if test "${ac_cv_func_shl_load+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9290 #define shl_load innocuous_shl_load
9291
9292 /* System header to define __stub macros and hopefully few prototypes,
9293 which can conflict with char shl_load (); below.
9294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9295 <limits.h> exists even on freestanding compilers. */
9296
9297 #ifdef __STDC__
9298 # include <limits.h>
9299 #else
9300 # include <assert.h>
9301 #endif
9302
9303 #undef shl_load
9304
9305 /* Override any GCC internal prototype to avoid an error.
9306 Use char because int might match the return type of a GCC
9307 builtin and then its argument prototype would still apply. */
9308 #ifdef __cplusplus
9309 extern "C"
9310 #endif
9311 char shl_load ();
9312 /* The GNU C library defines this for functions which it implements
9313 to always fail with ENOSYS. Some functions are actually named
9314 something starting with __ and the normal name is an alias. */
9315 #if defined __stub_shl_load || defined __stub___shl_load
9316 choke me
9317 #endif
9318
9319 int
9320 main ()
9321 {
9322 return shl_load ();
9323 ;
9324 return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (ac_try="$ac_link"
9329 case "(($ac_try" in
9330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331 *) ac_try_echo=$ac_try;;
9332 esac
9333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9334 (eval "$ac_link") 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest$ac_exeext &&
9344 $as_test_x conftest$ac_exeext; then
9345 ac_cv_func_shl_load=yes
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_cv_func_shl_load=no
9351 fi
9352
9353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9354 conftest$ac_exeext conftest.$ac_ext
9355 fi
9356 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9357 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9358 if test $ac_cv_func_shl_load = yes; then
9359 lt_cv_dlopen="shl_load"
9360 else
9361 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9362 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366 ac_check_lib_save_LIBS=$LIBS
9367 LIBS="-ldld $LIBS"
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374
9375 /* Override any GCC internal prototype to avoid an error.
9376 Use char because int might match the return type of a GCC
9377 builtin and then its argument prototype would still apply. */
9378 #ifdef __cplusplus
9379 extern "C"
9380 #endif
9381 char shl_load ();
9382 int
9383 main ()
9384 {
9385 return shl_load ();
9386 ;
9387 return 0;
9388 }
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (ac_try="$ac_link"
9392 case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_link") 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } && {
9404 test -z "$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 } && test -s conftest$ac_exeext &&
9407 $as_test_x conftest$ac_exeext; then
9408 ac_cv_lib_dld_shl_load=yes
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413 ac_cv_lib_dld_shl_load=no
9414 fi
9415
9416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9417 conftest$ac_exeext conftest.$ac_ext
9418 LIBS=$ac_check_lib_save_LIBS
9419 fi
9420 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9421 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9422 if test $ac_cv_lib_dld_shl_load = yes; then
9423 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9424 else
9425 { echo "$as_me:$LINENO: checking for dlopen" >&5
9426 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9427 if test "${ac_cv_func_dlopen+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9438 #define dlopen innocuous_dlopen
9439
9440 /* System header to define __stub macros and hopefully few prototypes,
9441 which can conflict with char dlopen (); below.
9442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9443 <limits.h> exists even on freestanding compilers. */
9444
9445 #ifdef __STDC__
9446 # include <limits.h>
9447 #else
9448 # include <assert.h>
9449 #endif
9450
9451 #undef dlopen
9452
9453 /* Override any GCC internal prototype to avoid an error.
9454 Use char because int might match the return type of a GCC
9455 builtin and then its argument prototype would still apply. */
9456 #ifdef __cplusplus
9457 extern "C"
9458 #endif
9459 char dlopen ();
9460 /* The GNU C library defines this for functions which it implements
9461 to always fail with ENOSYS. Some functions are actually named
9462 something starting with __ and the normal name is an alias. */
9463 #if defined __stub_dlopen || defined __stub___dlopen
9464 choke me
9465 #endif
9466
9467 int
9468 main ()
9469 {
9470 return dlopen ();
9471 ;
9472 return 0;
9473 }
9474 _ACEOF
9475 rm -f conftest.$ac_objext conftest$ac_exeext
9476 if { (ac_try="$ac_link"
9477 case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_link") 2>conftest.er1
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } && {
9489 test -z "$ac_c_werror_flag" ||
9490 test ! -s conftest.err
9491 } && test -s conftest$ac_exeext &&
9492 $as_test_x conftest$ac_exeext; then
9493 ac_cv_func_dlopen=yes
9494 else
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9497
9498 ac_cv_func_dlopen=no
9499 fi
9500
9501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9502 conftest$ac_exeext conftest.$ac_ext
9503 fi
9504 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9505 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9506 if test $ac_cv_func_dlopen = yes; then
9507 lt_cv_dlopen="dlopen"
9508 else
9509 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9510 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9511 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 ac_check_lib_save_LIBS=$LIBS
9515 LIBS="-ldl $LIBS"
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h. */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522
9523 /* Override any GCC internal prototype to avoid an error.
9524 Use char because int might match the return type of a GCC
9525 builtin and then its argument prototype would still apply. */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 char dlopen ();
9530 int
9531 main ()
9532 {
9533 return dlopen ();
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (ac_try="$ac_link"
9540 case "(($ac_try" in
9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542 *) ac_try_echo=$ac_try;;
9543 esac
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_link") 2>conftest.er1
9546 ac_status=$?
9547 grep -v '^ *+' conftest.er1 >conftest.err
9548 rm -f conftest.er1
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && {
9552 test -z "$ac_c_werror_flag" ||
9553 test ! -s conftest.err
9554 } && test -s conftest$ac_exeext &&
9555 $as_test_x conftest$ac_exeext; then
9556 ac_cv_lib_dl_dlopen=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_cv_lib_dl_dlopen=no
9562 fi
9563
9564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9567 fi
9568 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9570 if test $ac_cv_lib_dl_dlopen = yes; then
9571 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9572 else
9573 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9574 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9575 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 ac_check_lib_save_LIBS=$LIBS
9579 LIBS="-lsvld $LIBS"
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 char dlopen ();
9594 int
9595 main ()
9596 {
9597 return dlopen ();
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (ac_try="$ac_link"
9604 case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_link") 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } && {
9616 test -z "$ac_c_werror_flag" ||
9617 test ! -s conftest.err
9618 } && test -s conftest$ac_exeext &&
9619 $as_test_x conftest$ac_exeext; then
9620 ac_cv_lib_svld_dlopen=yes
9621 else
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9624
9625 ac_cv_lib_svld_dlopen=no
9626 fi
9627
9628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9629 conftest$ac_exeext conftest.$ac_ext
9630 LIBS=$ac_check_lib_save_LIBS
9631 fi
9632 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9633 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9634 if test $ac_cv_lib_svld_dlopen = yes; then
9635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9636 else
9637 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9638 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 ac_check_lib_save_LIBS=$LIBS
9643 LIBS="-ldld $LIBS"
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char dld_link ();
9658 int
9659 main ()
9660 {
9661 return dld_link ();
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9684 ac_cv_lib_dld_dld_link=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ac_cv_lib_dld_dld_link=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9695 fi
9696 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9697 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9698 if test $ac_cv_lib_dld_dld_link = yes; then
9699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9700 fi
9701
9702
9703 fi
9704
9705
9706 fi
9707
9708
9709 fi
9710
9711
9712 fi
9713
9714
9715 fi
9716
9717 ;;
9718 esac
9719
9720 if test "x$lt_cv_dlopen" != xno; then
9721 enable_dlopen=yes
9722 else
9723 enable_dlopen=no
9724 fi
9725
9726 case $lt_cv_dlopen in
9727 dlopen)
9728 save_CPPFLAGS="$CPPFLAGS"
9729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9730
9731 save_LDFLAGS="$LDFLAGS"
9732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9733
9734 save_LIBS="$LIBS"
9735 LIBS="$lt_cv_dlopen_libs $LIBS"
9736
9737 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9738 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9739 if test "${lt_cv_dlopen_self+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 if test "$cross_compiling" = yes; then :
9743 lt_cv_dlopen_self=cross
9744 else
9745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9746 lt_status=$lt_dlunknown
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9748 "configure"
9749 #include "confdefs.h"
9750
9751 #if HAVE_DLFCN_H
9752 #include <dlfcn.h>
9753 #endif
9754
9755 #include <stdio.h>
9756
9757 #ifdef RTLD_GLOBAL
9758 # define LT_DLGLOBAL RTLD_GLOBAL
9759 #else
9760 # ifdef DL_GLOBAL
9761 # define LT_DLGLOBAL DL_GLOBAL
9762 # else
9763 # define LT_DLGLOBAL 0
9764 # endif
9765 #endif
9766
9767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9768 find out it does not work in some platform. */
9769 #ifndef LT_DLLAZY_OR_NOW
9770 # ifdef RTLD_LAZY
9771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9772 # else
9773 # ifdef DL_LAZY
9774 # define LT_DLLAZY_OR_NOW DL_LAZY
9775 # else
9776 # ifdef RTLD_NOW
9777 # define LT_DLLAZY_OR_NOW RTLD_NOW
9778 # else
9779 # ifdef DL_NOW
9780 # define LT_DLLAZY_OR_NOW DL_NOW
9781 # else
9782 # define LT_DLLAZY_OR_NOW 0
9783 # endif
9784 # endif
9785 # endif
9786 # endif
9787 #endif
9788
9789 #ifdef __cplusplus
9790 extern "C" void exit (int);
9791 #endif
9792
9793 void fnord() { int i=42;}
9794 int main ()
9795 {
9796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9797 int status = $lt_dlunknown;
9798
9799 if (self)
9800 {
9801 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9802 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9803 /* dlclose (self); */
9804 }
9805 else
9806 puts (dlerror ());
9807
9808 exit (status);
9809 }
9810 EOF
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9816 (./conftest; exit; ) >&5 2>/dev/null
9817 lt_status=$?
9818 case x$lt_status in
9819 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9820 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9821 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9822 esac
9823 else :
9824 # compilation failed
9825 lt_cv_dlopen_self=no
9826 fi
9827 fi
9828 rm -fr conftest*
9829
9830
9831 fi
9832 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9833 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9834
9835 if test "x$lt_cv_dlopen_self" = xyes; then
9836 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9837 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9838 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9839 if test "${lt_cv_dlopen_self_static+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 if test "$cross_compiling" = yes; then :
9843 lt_cv_dlopen_self_static=cross
9844 else
9845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9846 lt_status=$lt_dlunknown
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9848 "configure"
9849 #include "confdefs.h"
9850
9851 #if HAVE_DLFCN_H
9852 #include <dlfcn.h>
9853 #endif
9854
9855 #include <stdio.h>
9856
9857 #ifdef RTLD_GLOBAL
9858 # define LT_DLGLOBAL RTLD_GLOBAL
9859 #else
9860 # ifdef DL_GLOBAL
9861 # define LT_DLGLOBAL DL_GLOBAL
9862 # else
9863 # define LT_DLGLOBAL 0
9864 # endif
9865 #endif
9866
9867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9868 find out it does not work in some platform. */
9869 #ifndef LT_DLLAZY_OR_NOW
9870 # ifdef RTLD_LAZY
9871 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9872 # else
9873 # ifdef DL_LAZY
9874 # define LT_DLLAZY_OR_NOW DL_LAZY
9875 # else
9876 # ifdef RTLD_NOW
9877 # define LT_DLLAZY_OR_NOW RTLD_NOW
9878 # else
9879 # ifdef DL_NOW
9880 # define LT_DLLAZY_OR_NOW DL_NOW
9881 # else
9882 # define LT_DLLAZY_OR_NOW 0
9883 # endif
9884 # endif
9885 # endif
9886 # endif
9887 #endif
9888
9889 #ifdef __cplusplus
9890 extern "C" void exit (int);
9891 #endif
9892
9893 void fnord() { int i=42;}
9894 int main ()
9895 {
9896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9897 int status = $lt_dlunknown;
9898
9899 if (self)
9900 {
9901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9903 /* dlclose (self); */
9904 }
9905 else
9906 puts (dlerror ());
9907
9908 exit (status);
9909 }
9910 EOF
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9916 (./conftest; exit; ) >&5 2>/dev/null
9917 lt_status=$?
9918 case x$lt_status in
9919 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9920 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9921 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9922 esac
9923 else :
9924 # compilation failed
9925 lt_cv_dlopen_self_static=no
9926 fi
9927 fi
9928 rm -fr conftest*
9929
9930
9931 fi
9932 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9933 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9934 fi
9935
9936 CPPFLAGS="$save_CPPFLAGS"
9937 LDFLAGS="$save_LDFLAGS"
9938 LIBS="$save_LIBS"
9939 ;;
9940 esac
9941
9942 case $lt_cv_dlopen_self in
9943 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9944 *) enable_dlopen_self=unknown ;;
9945 esac
9946
9947 case $lt_cv_dlopen_self_static in
9948 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9949 *) enable_dlopen_self_static=unknown ;;
9950 esac
9951 fi
9952
9953
9954 # Report which library types will actually be built
9955 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9956 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9957 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9958 echo "${ECHO_T}$can_build_shared" >&6; }
9959
9960 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9961 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9962 test "$can_build_shared" = "no" && enable_shared=no
9963
9964 # On AIX, shared libraries and static libraries use the same namespace, and
9965 # are all built from PIC.
9966 case $host_os in
9967 aix3*)
9968 test "$enable_shared" = yes && enable_static=no
9969 if test -n "$RANLIB"; then
9970 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9971 postinstall_cmds='$RANLIB $lib'
9972 fi
9973 ;;
9974
9975 aix4* | aix5*)
9976 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9977 test "$enable_shared" = yes && enable_static=no
9978 fi
9979 ;;
9980 esac
9981 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9982 echo "${ECHO_T}$enable_shared" >&6; }
9983
9984 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9985 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9986 # Make sure either enable_shared or enable_static is yes.
9987 test "$enable_shared" = yes || enable_static=yes
9988 { echo "$as_me:$LINENO: result: $enable_static" >&5
9989 echo "${ECHO_T}$enable_static" >&6; }
9990
9991 # The else clause should only fire when bootstrapping the
9992 # libtool distribution, otherwise you forgot to ship ltmain.sh
9993 # with your package, and you will get complaints that there are
9994 # no rules to generate ltmain.sh.
9995 if test -f "$ltmain"; then
9996 # See if we are running on zsh, and set the options which allow our commands through
9997 # without removal of \ escapes.
9998 if test -n "${ZSH_VERSION+set}" ; then
9999 setopt NO_GLOB_SUBST
10000 fi
10001 # Now quote all the things that may contain metacharacters while being
10002 # careful not to overquote the AC_SUBSTed values. We take copies of the
10003 # variables and quote the copies for generation of the libtool script.
10004 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10005 SED SHELL STRIP \
10006 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10007 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10008 deplibs_check_method reload_flag reload_cmds need_locks \
10009 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10010 lt_cv_sys_global_symbol_to_c_name_address \
10011 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10012 old_postinstall_cmds old_postuninstall_cmds \
10013 compiler \
10014 CC \
10015 LD \
10016 lt_prog_compiler_wl \
10017 lt_prog_compiler_pic \
10018 lt_prog_compiler_static \
10019 lt_prog_compiler_no_builtin_flag \
10020 export_dynamic_flag_spec \
10021 thread_safe_flag_spec \
10022 whole_archive_flag_spec \
10023 enable_shared_with_static_runtimes \
10024 old_archive_cmds \
10025 old_archive_from_new_cmds \
10026 predep_objects \
10027 postdep_objects \
10028 predeps \
10029 postdeps \
10030 compiler_lib_search_path \
10031 archive_cmds \
10032 archive_expsym_cmds \
10033 postinstall_cmds \
10034 postuninstall_cmds \
10035 old_archive_from_expsyms_cmds \
10036 allow_undefined_flag \
10037 no_undefined_flag \
10038 export_symbols_cmds \
10039 hardcode_libdir_flag_spec \
10040 hardcode_libdir_flag_spec_ld \
10041 hardcode_libdir_separator \
10042 hardcode_automatic \
10043 module_cmds \
10044 module_expsym_cmds \
10045 lt_cv_prog_compiler_c_o \
10046 exclude_expsyms \
10047 include_expsyms; do
10048
10049 case $var in
10050 old_archive_cmds | \
10051 old_archive_from_new_cmds | \
10052 archive_cmds | \
10053 archive_expsym_cmds | \
10054 module_cmds | \
10055 module_expsym_cmds | \
10056 old_archive_from_expsyms_cmds | \
10057 export_symbols_cmds | \
10058 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10059 postinstall_cmds | postuninstall_cmds | \
10060 old_postinstall_cmds | old_postuninstall_cmds | \
10061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10062 # Double-quote double-evaled strings.
10063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10064 ;;
10065 *)
10066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10067 ;;
10068 esac
10069 done
10070
10071 case $lt_echo in
10072 *'\$0 --fallback-echo"')
10073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10074 ;;
10075 esac
10076
10077 cfgfile="${ofile}T"
10078 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10079 $rm -f "$cfgfile"
10080 { echo "$as_me:$LINENO: creating $ofile" >&5
10081 echo "$as_me: creating $ofile" >&6;}
10082
10083 cat <<__EOF__ >> "$cfgfile"
10084 #! $SHELL
10085
10086 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10087 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10089 #
10090 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10091 # Free Software Foundation, Inc.
10092 #
10093 # This file is part of GNU Libtool:
10094 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10095 #
10096 # This program is free software; you can redistribute it and/or modify
10097 # it under the terms of the GNU General Public License as published by
10098 # the Free Software Foundation; either version 2 of the License, or
10099 # (at your option) any later version.
10100 #
10101 # This program is distributed in the hope that it will be useful, but
10102 # WITHOUT ANY WARRANTY; without even the implied warranty of
10103 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10104 # General Public License for more details.
10105 #
10106 # You should have received a copy of the GNU General Public License
10107 # along with this program; if not, write to the Free Software
10108 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10109 #
10110 # As a special exception to the GNU General Public License, if you
10111 # distribute this file as part of a program that contains a
10112 # configuration script generated by Autoconf, you may include it under
10113 # the same distribution terms that you use for the rest of that program.
10114
10115 # A sed program that does not truncate output.
10116 SED=$lt_SED
10117
10118 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10119 Xsed="$SED -e 1s/^X//"
10120
10121 # The HP-UX ksh and POSIX shell print the target directory to stdout
10122 # if CDPATH is set.
10123 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10124
10125 # The names of the tagged configurations supported by this script.
10126 available_tags=
10127
10128 # ### BEGIN LIBTOOL CONFIG
10129
10130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10131
10132 # Shell to use when invoking shell scripts.
10133 SHELL=$lt_SHELL
10134
10135 # Whether or not to build shared libraries.
10136 build_libtool_libs=$enable_shared
10137
10138 # Whether or not to build static libraries.
10139 build_old_libs=$enable_static
10140
10141 # Whether or not to add -lc for building shared libraries.
10142 build_libtool_need_lc=$archive_cmds_need_lc
10143
10144 # Whether or not to disallow shared libs when runtime libs are static
10145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10146
10147 # Whether or not to optimize for fast installation.
10148 fast_install=$enable_fast_install
10149
10150 # The host system.
10151 host_alias=$host_alias
10152 host=$host
10153 host_os=$host_os
10154
10155 # The build system.
10156 build_alias=$build_alias
10157 build=$build
10158 build_os=$build_os
10159
10160 # An echo program that does not interpret backslashes.
10161 echo=$lt_echo
10162
10163 # The archiver.
10164 AR=$lt_AR
10165 AR_FLAGS=$lt_AR_FLAGS
10166
10167 # A C compiler.
10168 LTCC=$lt_LTCC
10169
10170 # LTCC compiler flags.
10171 LTCFLAGS=$lt_LTCFLAGS
10172
10173 # A language-specific compiler.
10174 CC=$lt_compiler
10175
10176 # Is the compiler the GNU C compiler?
10177 with_gcc=$GCC
10178
10179 # An ERE matcher.
10180 EGREP=$lt_EGREP
10181
10182 # The linker used to build libraries.
10183 LD=$lt_LD
10184
10185 # Whether we need hard or soft links.
10186 LN_S=$lt_LN_S
10187
10188 # A BSD-compatible nm program.
10189 NM=$lt_NM
10190
10191 # A symbol stripping program
10192 STRIP=$lt_STRIP
10193
10194 # Used to examine libraries when file_magic_cmd begins "file"
10195 MAGIC_CMD=$MAGIC_CMD
10196
10197 # Used on cygwin: DLL creation program.
10198 DLLTOOL="$DLLTOOL"
10199
10200 # Used on cygwin: object dumper.
10201 OBJDUMP="$OBJDUMP"
10202
10203 # Used on cygwin: assembler.
10204 AS="$AS"
10205
10206 # The name of the directory that contains temporary libtool files.
10207 objdir=$objdir
10208
10209 # How to create reloadable object files.
10210 reload_flag=$lt_reload_flag
10211 reload_cmds=$lt_reload_cmds
10212
10213 # How to pass a linker flag through the compiler.
10214 wl=$lt_lt_prog_compiler_wl
10215
10216 # Object file suffix (normally "o").
10217 objext="$ac_objext"
10218
10219 # Old archive suffix (normally "a").
10220 libext="$libext"
10221
10222 # Shared library suffix (normally ".so").
10223 shrext_cmds='$shrext_cmds'
10224
10225 # Executable file suffix (normally "").
10226 exeext="$exeext"
10227
10228 # Additional compiler flags for building library objects.
10229 pic_flag=$lt_lt_prog_compiler_pic
10230 pic_mode=$pic_mode
10231
10232 # What is the maximum length of a command?
10233 max_cmd_len=$lt_cv_sys_max_cmd_len
10234
10235 # Does compiler simultaneously support -c and -o options?
10236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10237
10238 # Must we lock files when doing compilation?
10239 need_locks=$lt_need_locks
10240
10241 # Do we need the lib prefix for modules?
10242 need_lib_prefix=$need_lib_prefix
10243
10244 # Do we need a version for libraries?
10245 need_version=$need_version
10246
10247 # Whether dlopen is supported.
10248 dlopen_support=$enable_dlopen
10249
10250 # Whether dlopen of programs is supported.
10251 dlopen_self=$enable_dlopen_self
10252
10253 # Whether dlopen of statically linked programs is supported.
10254 dlopen_self_static=$enable_dlopen_self_static
10255
10256 # Compiler flag to prevent dynamic linking.
10257 link_static_flag=$lt_lt_prog_compiler_static
10258
10259 # Compiler flag to turn off builtin functions.
10260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10261
10262 # Compiler flag to allow reflexive dlopens.
10263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10264
10265 # Compiler flag to generate shared objects directly from archives.
10266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10267
10268 # Compiler flag to generate thread-safe objects.
10269 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10270
10271 # Library versioning type.
10272 version_type=$version_type
10273
10274 # Format of library name prefix.
10275 libname_spec=$lt_libname_spec
10276
10277 # List of archive names. First name is the real one, the rest are links.
10278 # The last name is the one that the linker finds with -lNAME.
10279 library_names_spec=$lt_library_names_spec
10280
10281 # The coded name of the library, if different from the real name.
10282 soname_spec=$lt_soname_spec
10283
10284 # Commands used to build and install an old-style archive.
10285 RANLIB=$lt_RANLIB
10286 old_archive_cmds=$lt_old_archive_cmds
10287 old_postinstall_cmds=$lt_old_postinstall_cmds
10288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10289
10290 # Create an old-style archive from a shared archive.
10291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10292
10293 # Create a temporary old-style archive to link instead of a shared archive.
10294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10295
10296 # Commands used to build and install a shared archive.
10297 archive_cmds=$lt_archive_cmds
10298 archive_expsym_cmds=$lt_archive_expsym_cmds
10299 postinstall_cmds=$lt_postinstall_cmds
10300 postuninstall_cmds=$lt_postuninstall_cmds
10301
10302 # Commands used to build a loadable module (assumed same as above if empty)
10303 module_cmds=$lt_module_cmds
10304 module_expsym_cmds=$lt_module_expsym_cmds
10305
10306 # Commands to strip libraries.
10307 old_striplib=$lt_old_striplib
10308 striplib=$lt_striplib
10309
10310 # Dependencies to place before the objects being linked to create a
10311 # shared library.
10312 predep_objects=$lt_predep_objects
10313
10314 # Dependencies to place after the objects being linked to create a
10315 # shared library.
10316 postdep_objects=$lt_postdep_objects
10317
10318 # Dependencies to place before the objects being linked to create a
10319 # shared library.
10320 predeps=$lt_predeps
10321
10322 # Dependencies to place after the objects being linked to create a
10323 # shared library.
10324 postdeps=$lt_postdeps
10325
10326 # The library search path used internally by the compiler when linking
10327 # a shared library.
10328 compiler_lib_search_path=$lt_compiler_lib_search_path
10329
10330 # Method to check whether dependent libraries are shared objects.
10331 deplibs_check_method=$lt_deplibs_check_method
10332
10333 # Command to use when deplibs_check_method == file_magic.
10334 file_magic_cmd=$lt_file_magic_cmd
10335
10336 # Flag that allows shared libraries with undefined symbols to be built.
10337 allow_undefined_flag=$lt_allow_undefined_flag
10338
10339 # Flag that forces no undefined symbols.
10340 no_undefined_flag=$lt_no_undefined_flag
10341
10342 # Commands used to finish a libtool library installation in a directory.
10343 finish_cmds=$lt_finish_cmds
10344
10345 # Same as above, but a single script fragment to be evaled but not shown.
10346 finish_eval=$lt_finish_eval
10347
10348 # Take the output of nm and produce a listing of raw symbols and C names.
10349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10350
10351 # Transform the output of nm in a proper C declaration
10352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10353
10354 # Transform the output of nm in a C name address pair
10355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10356
10357 # This is the shared library runtime path variable.
10358 runpath_var=$runpath_var
10359
10360 # This is the shared library path variable.
10361 shlibpath_var=$shlibpath_var
10362
10363 # Is shlibpath searched before the hard-coded library search path?
10364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10365
10366 # How to hardcode a shared library path into an executable.
10367 hardcode_action=$hardcode_action
10368
10369 # Whether we should hardcode library paths into libraries.
10370 hardcode_into_libs=$hardcode_into_libs
10371
10372 # Flag to hardcode \$libdir into a binary during linking.
10373 # This must work even if \$libdir does not exist.
10374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10375
10376 # If ld is used when linking, flag to hardcode \$libdir into
10377 # a binary during linking. This must work even if \$libdir does
10378 # not exist.
10379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10380
10381 # Whether we need a single -rpath flag with a separated argument.
10382 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10383
10384 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10385 # resulting binary.
10386 hardcode_direct=$hardcode_direct
10387
10388 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10389 # resulting binary.
10390 hardcode_minus_L=$hardcode_minus_L
10391
10392 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10393 # the resulting binary.
10394 hardcode_shlibpath_var=$hardcode_shlibpath_var
10395
10396 # Set to yes if building a shared library automatically hardcodes DIR into the library
10397 # and all subsequent libraries and executables linked against it.
10398 hardcode_automatic=$hardcode_automatic
10399
10400 # Variables whose values should be saved in libtool wrapper scripts and
10401 # restored at relink time.
10402 variables_saved_for_relink="$variables_saved_for_relink"
10403
10404 # Whether libtool must link a program against all its dependency libraries.
10405 link_all_deplibs=$link_all_deplibs
10406
10407 # Compile-time system search path for libraries
10408 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10409
10410 # Run-time system search path for libraries
10411 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10412
10413 # Fix the shell variable \$srcfile for the compiler.
10414 fix_srcfile_path="$fix_srcfile_path"
10415
10416 # Set to yes if exported symbols are required.
10417 always_export_symbols=$always_export_symbols
10418
10419 # The commands to list exported symbols.
10420 export_symbols_cmds=$lt_export_symbols_cmds
10421
10422 # The commands to extract the exported symbol list from a shared archive.
10423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10424
10425 # Symbols that should not be listed in the preloaded symbols.
10426 exclude_expsyms=$lt_exclude_expsyms
10427
10428 # Symbols that must always be exported.
10429 include_expsyms=$lt_include_expsyms
10430
10431 # ### END LIBTOOL CONFIG
10432
10433 __EOF__
10434
10435
10436 case $host_os in
10437 aix3*)
10438 cat <<\EOF >> "$cfgfile"
10439
10440 # AIX sometimes has problems with the GCC collect2 program. For some
10441 # reason, if we set the COLLECT_NAMES environment variable, the problems
10442 # vanish in a puff of smoke.
10443 if test "X${COLLECT_NAMES+set}" != Xset; then
10444 COLLECT_NAMES=
10445 export COLLECT_NAMES
10446 fi
10447 EOF
10448 ;;
10449 esac
10450
10451 # We use sed instead of cat because bash on DJGPP gets confused if
10452 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10453 # text mode, it properly converts lines to CR/LF. This bash problem
10454 # is reportedly fixed, but why not run on old versions too?
10455 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10456
10457 mv -f "$cfgfile" "$ofile" || \
10458 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10459 chmod +x "$ofile"
10460
10461 else
10462 # If there is no Makefile yet, we rely on a make rule to execute
10463 # `config.status --recheck' to rerun these tests and create the
10464 # libtool script then.
10465 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10466 if test -f "$ltmain_in"; then
10467 test -f Makefile && make "$ltmain"
10468 fi
10469 fi
10470
10471
10472 ac_ext=c
10473 ac_cpp='$CPP $CPPFLAGS'
10474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10477
10478 CC="$lt_save_CC"
10479
10480
10481 # Check whether --with-tags was given.
10482 if test "${with_tags+set}" = set; then
10483 withval=$with_tags; tagnames="$withval"
10484 fi
10485
10486
10487 if test -f "$ltmain" && test -n "$tagnames"; then
10488 if test ! -f "${ofile}"; then
10489 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10490 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10491 fi
10492
10493 if test -z "$LTCC"; then
10494 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10495 if test -z "$LTCC"; then
10496 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10497 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10498 else
10499 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10500 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10501 fi
10502 fi
10503 if test -z "$LTCFLAGS"; then
10504 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10505 fi
10506
10507 # Extract list of available tagged configurations in $ofile.
10508 # Note that this assumes the entire list is on one line.
10509 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10510
10511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10512 for tagname in $tagnames; do
10513 IFS="$lt_save_ifs"
10514 # Check whether tagname contains only valid characters
10515 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10516 "") ;;
10517 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10518 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10519 { (exit 1); exit 1; }; }
10520 ;;
10521 esac
10522
10523 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10524 then
10525 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10526 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10527 { (exit 1); exit 1; }; }
10528 fi
10529
10530 # Update the list of available tags.
10531 if test -n "$tagname"; then
10532 echo appending configuration tag \"$tagname\" to $ofile
10533
10534 case $tagname in
10535 CXX)
10536 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10537 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10538 (test "X$CXX" != "Xg++"))) ; then
10539 ac_ext=cpp
10540 ac_cpp='$CXXCPP $CPPFLAGS'
10541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10544
10545
10546
10547
10548 archive_cmds_need_lc_CXX=no
10549 allow_undefined_flag_CXX=
10550 always_export_symbols_CXX=no
10551 archive_expsym_cmds_CXX=
10552 export_dynamic_flag_spec_CXX=
10553 hardcode_direct_CXX=no
10554 hardcode_libdir_flag_spec_CXX=
10555 hardcode_libdir_flag_spec_ld_CXX=
10556 hardcode_libdir_separator_CXX=
10557 hardcode_minus_L_CXX=no
10558 hardcode_shlibpath_var_CXX=unsupported
10559 hardcode_automatic_CXX=no
10560 module_cmds_CXX=
10561 module_expsym_cmds_CXX=
10562 link_all_deplibs_CXX=unknown
10563 old_archive_cmds_CXX=$old_archive_cmds
10564 no_undefined_flag_CXX=
10565 whole_archive_flag_spec_CXX=
10566 enable_shared_with_static_runtimes_CXX=no
10567
10568 # Dependencies to place before and after the object being linked:
10569 predep_objects_CXX=
10570 postdep_objects_CXX=
10571 predeps_CXX=
10572 postdeps_CXX=
10573 compiler_lib_search_path_CXX=
10574
10575 # Source file extension for C++ test sources.
10576 ac_ext=cpp
10577
10578 # Object file extension for compiled C++ test sources.
10579 objext=o
10580 objext_CXX=$objext
10581
10582 # Code to be used in simple compile tests
10583 lt_simple_compile_test_code="int some_variable = 0;\n"
10584
10585 # Code to be used in simple link tests
10586 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10587
10588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10589
10590 # If no C compiler was specified, use CC.
10591 LTCC=${LTCC-"$CC"}
10592
10593 # If no C compiler flags were specified, use CFLAGS.
10594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10595
10596 # Allow CC to be a program name with arguments.
10597 compiler=$CC
10598
10599
10600 # save warnings/boilerplate of simple test code
10601 ac_outfile=conftest.$ac_objext
10602 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10604 _lt_compiler_boilerplate=`cat conftest.err`
10605 $rm conftest*
10606
10607 ac_outfile=conftest.$ac_objext
10608 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10610 _lt_linker_boilerplate=`cat conftest.err`
10611 $rm conftest*
10612
10613
10614 # Allow CC to be a program name with arguments.
10615 lt_save_CC=$CC
10616 lt_save_LD=$LD
10617 lt_save_GCC=$GCC
10618 GCC=$GXX
10619 lt_save_with_gnu_ld=$with_gnu_ld
10620 lt_save_path_LD=$lt_cv_path_LD
10621 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10622 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10623 else
10624 $as_unset lt_cv_prog_gnu_ld
10625 fi
10626 if test -n "${lt_cv_path_LDCXX+set}"; then
10627 lt_cv_path_LD=$lt_cv_path_LDCXX
10628 else
10629 $as_unset lt_cv_path_LD
10630 fi
10631 test -z "${LDCXX+set}" || LD=$LDCXX
10632 CC=${CXX-"c++"}
10633 compiler=$CC
10634 compiler_CXX=$CC
10635 for cc_temp in $compiler""; do
10636 case $cc_temp in
10637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10639 \-*) ;;
10640 *) break;;
10641 esac
10642 done
10643 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10644
10645
10646 # We don't want -fno-exception wen compiling C++ code, so set the
10647 # no_builtin_flag separately
10648 if test "$GXX" = yes; then
10649 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10650 else
10651 lt_prog_compiler_no_builtin_flag_CXX=
10652 fi
10653
10654 if test "$GXX" = yes; then
10655 # Set up default GNU C++ configuration
10656
10657
10658 # Check whether --with-gnu-ld was given.
10659 if test "${with_gnu_ld+set}" = set; then
10660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10661 else
10662 with_gnu_ld=no
10663 fi
10664
10665 ac_prog=ld
10666 if test "$GCC" = yes; then
10667 # Check if gcc -print-prog-name=ld gives a path.
10668 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10670 case $host in
10671 *-*-mingw*)
10672 # gcc leaves a trailing carriage return which upsets mingw
10673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10674 *)
10675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10676 esac
10677 case $ac_prog in
10678 # Accept absolute paths.
10679 [\\/]* | ?:[\\/]*)
10680 re_direlt='/[^/][^/]*/\.\./'
10681 # Canonicalize the pathname of ld
10682 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10683 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10684 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10685 done
10686 test -z "$LD" && LD="$ac_prog"
10687 ;;
10688 "")
10689 # If it fails, then pretend we aren't using GCC.
10690 ac_prog=ld
10691 ;;
10692 *)
10693 # If it is relative, then search for the first ld in PATH.
10694 with_gnu_ld=unknown
10695 ;;
10696 esac
10697 elif test "$with_gnu_ld" = yes; then
10698 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10700 else
10701 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10703 fi
10704 if test "${lt_cv_path_LD+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 else
10707 if test -z "$LD"; then
10708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10709 for ac_dir in $PATH; do
10710 IFS="$lt_save_ifs"
10711 test -z "$ac_dir" && ac_dir=.
10712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10713 lt_cv_path_LD="$ac_dir/$ac_prog"
10714 # Check to see if the program is GNU ld. I'd rather use --version,
10715 # but apparently some variants of GNU ld only accept -v.
10716 # Break only if it was the GNU/non-GNU ld that we prefer.
10717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10718 *GNU* | *'with BFD'*)
10719 test "$with_gnu_ld" != no && break
10720 ;;
10721 *)
10722 test "$with_gnu_ld" != yes && break
10723 ;;
10724 esac
10725 fi
10726 done
10727 IFS="$lt_save_ifs"
10728 else
10729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10730 fi
10731 fi
10732
10733 LD="$lt_cv_path_LD"
10734 if test -n "$LD"; then
10735 { echo "$as_me:$LINENO: result: $LD" >&5
10736 echo "${ECHO_T}$LD" >&6; }
10737 else
10738 { echo "$as_me:$LINENO: result: no" >&5
10739 echo "${ECHO_T}no" >&6; }
10740 fi
10741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10743 { (exit 1); exit 1; }; }
10744 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10750 case `$LD -v 2>&1 </dev/null` in
10751 *GNU* | *'with BFD'*)
10752 lt_cv_prog_gnu_ld=yes
10753 ;;
10754 *)
10755 lt_cv_prog_gnu_ld=no
10756 ;;
10757 esac
10758 fi
10759 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10761 with_gnu_ld=$lt_cv_prog_gnu_ld
10762
10763
10764
10765 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10766 # archiving commands below assume that GNU ld is being used.
10767 if test "$with_gnu_ld" = yes; then
10768 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10769 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'
10770
10771 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10773
10774 # If archive_cmds runs LD, not CC, wlarc should be empty
10775 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10776 # investigate it a little bit more. (MM)
10777 wlarc='${wl}'
10778
10779 # ancient GNU ld didn't support --whole-archive et. al.
10780 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10781 grep 'no-whole-archive' > /dev/null; then
10782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10783 else
10784 whole_archive_flag_spec_CXX=
10785 fi
10786 else
10787 with_gnu_ld=no
10788 wlarc=
10789
10790 # A generic and very simple default shared library creation
10791 # command for GNU C++ for the case where it uses the native
10792 # linker, instead of GNU ld. If possible, this setting should
10793 # overridden to take advantage of the native linker features on
10794 # the platform it is being used on.
10795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10796 fi
10797
10798 # Commands to make compiler produce verbose output that lists
10799 # what "hidden" libraries, object files and flags are used when
10800 # linking a shared library.
10801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10802
10803 else
10804 GXX=no
10805 with_gnu_ld=no
10806 wlarc=
10807 fi
10808
10809 # PORTME: fill in a description of your system's C++ link characteristics
10810 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10811 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10812 ld_shlibs_CXX=yes
10813 case $host_os in
10814 aix3*)
10815 # FIXME: insert proper C++ library support
10816 ld_shlibs_CXX=no
10817 ;;
10818 aix4* | aix5*)
10819 if test "$host_cpu" = ia64; then
10820 # On IA64, the linker does run time linking by default, so we don't
10821 # have to do anything special.
10822 aix_use_runtimelinking=no
10823 exp_sym_flag='-Bexport'
10824 no_entry_flag=""
10825 else
10826 aix_use_runtimelinking=no
10827
10828 # Test if we are trying to use run time linking or normal
10829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10830 # need to do runtime linking.
10831 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10832 for ld_flag in $LDFLAGS; do
10833 case $ld_flag in
10834 *-brtl*)
10835 aix_use_runtimelinking=yes
10836 break
10837 ;;
10838 esac
10839 done
10840 ;;
10841 esac
10842
10843 exp_sym_flag='-bexport'
10844 no_entry_flag='-bnoentry'
10845 fi
10846
10847 # When large executables or shared objects are built, AIX ld can
10848 # have problems creating the table of contents. If linking a library
10849 # or program results in "error TOC overflow" add -mminimal-toc to
10850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10852
10853 archive_cmds_CXX=''
10854 hardcode_direct_CXX=yes
10855 hardcode_libdir_separator_CXX=':'
10856 link_all_deplibs_CXX=yes
10857
10858 if test "$GXX" = yes; then
10859 case $host_os in aix4.[012]|aix4.[012].*)
10860 # We only want to do this on AIX 4.2 and lower, the check
10861 # below for broken collect2 doesn't work under 4.3+
10862 collect2name=`${CC} -print-prog-name=collect2`
10863 if test -f "$collect2name" && \
10864 strings "$collect2name" | grep resolve_lib_name >/dev/null
10865 then
10866 # We have reworked collect2
10867 hardcode_direct_CXX=yes
10868 else
10869 # We have old collect2
10870 hardcode_direct_CXX=unsupported
10871 # It fails to find uninstalled libraries when the uninstalled
10872 # path is not listed in the libpath. Setting hardcode_minus_L
10873 # to unsupported forces relinking
10874 hardcode_minus_L_CXX=yes
10875 hardcode_libdir_flag_spec_CXX='-L$libdir'
10876 hardcode_libdir_separator_CXX=
10877 fi
10878 ;;
10879 esac
10880 shared_flag='-shared'
10881 if test "$aix_use_runtimelinking" = yes; then
10882 shared_flag="$shared_flag "'${wl}-G'
10883 fi
10884 else
10885 # not using gcc
10886 if test "$host_cpu" = ia64; then
10887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10888 # chokes on -Wl,-G. The following line is correct:
10889 shared_flag='-G'
10890 else
10891 if test "$aix_use_runtimelinking" = yes; then
10892 shared_flag='${wl}-G'
10893 else
10894 shared_flag='${wl}-bM:SRE'
10895 fi
10896 fi
10897 fi
10898
10899 # It seems that -bexpall does not export symbols beginning with
10900 # underscore (_), so it is better to generate a list of symbols to export.
10901 always_export_symbols_CXX=yes
10902 if test "$aix_use_runtimelinking" = yes; then
10903 # Warning - without using the other runtime loading flags (-brtl),
10904 # -berok will link without error, but may produce a broken library.
10905 allow_undefined_flag_CXX='-berok'
10906 # Determine the default libpath from the value encoded in an empty executable.
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h. */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913
10914 int
10915 main ()
10916 {
10917
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (ac_try="$ac_link"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_link") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_cxx_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest$ac_exeext &&
10939 $as_test_x conftest$ac_exeext; then
10940
10941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10942 }'`
10943 # Check for a 64-bit object if we didn't find anything.
10944 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; }
10945 }'`; fi
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10956
10957 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10958
10959 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"
10960 else
10961 if test "$host_cpu" = ia64; then
10962 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10963 allow_undefined_flag_CXX="-z nodefs"
10964 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"
10965 else
10966 # Determine the default libpath from the value encoded in an empty executable.
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973
10974 int
10975 main ()
10976 {
10977
10978 ;
10979 return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (ac_try="$ac_link"
10984 case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_link") 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && {
10996 test -z "$ac_cxx_werror_flag" ||
10997 test ! -s conftest.err
10998 } && test -s conftest$ac_exeext &&
10999 $as_test_x conftest$ac_exeext; then
11000
11001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11002 }'`
11003 # Check for a 64-bit object if we didn't find anything.
11004 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; }
11005 }'`; fi
11006 else
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010
11011 fi
11012
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11016
11017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11018 # Warning - without using the other run time loading flags,
11019 # -berok will link without error, but may produce a broken library.
11020 no_undefined_flag_CXX=' ${wl}-bernotok'
11021 allow_undefined_flag_CXX=' ${wl}-berok'
11022 # Exported symbols can be pulled into shared objects from archives
11023 whole_archive_flag_spec_CXX='$convenience'
11024 archive_cmds_need_lc_CXX=yes
11025 # This is similar to how AIX traditionally builds its shared libraries.
11026 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'
11027 fi
11028 fi
11029 ;;
11030
11031 beos*)
11032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11033 allow_undefined_flag_CXX=unsupported
11034 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11035 # support --undefined. This deserves some investigation. FIXME
11036 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11037 else
11038 ld_shlibs_CXX=no
11039 fi
11040 ;;
11041
11042 chorus*)
11043 case $cc_basename in
11044 *)
11045 # FIXME: insert proper C++ library support
11046 ld_shlibs_CXX=no
11047 ;;
11048 esac
11049 ;;
11050
11051 cygwin* | mingw* | pw32*)
11052 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11053 # as there is no search path for DLLs.
11054 hardcode_libdir_flag_spec_CXX='-L$libdir'
11055 allow_undefined_flag_CXX=unsupported
11056 always_export_symbols_CXX=no
11057 enable_shared_with_static_runtimes_CXX=yes
11058
11059 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11060 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'
11061 # If the export-symbols file already is a .def file (1st line
11062 # is EXPORTS), use it as is; otherwise, prepend...
11063 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11064 cp $export_symbols $output_objdir/$soname.def;
11065 else
11066 echo EXPORTS > $output_objdir/$soname.def;
11067 cat $export_symbols >> $output_objdir/$soname.def;
11068 fi~
11069 $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'
11070 else
11071 ld_shlibs_CXX=no
11072 fi
11073 ;;
11074 darwin* | rhapsody*)
11075 case $host_os in
11076 rhapsody* | darwin1.[012])
11077 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11078 ;;
11079 *) # Darwin 1.3 on
11080 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11081 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11082 else
11083 case ${MACOSX_DEPLOYMENT_TARGET} in
11084 10.[012])
11085 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11086 ;;
11087 10.*)
11088 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11089 ;;
11090 esac
11091 fi
11092 ;;
11093 esac
11094 archive_cmds_need_lc_CXX=no
11095 hardcode_direct_CXX=no
11096 hardcode_automatic_CXX=yes
11097 hardcode_shlibpath_var_CXX=unsupported
11098 whole_archive_flag_spec_CXX=''
11099 link_all_deplibs_CXX=yes
11100
11101 if test "$GXX" = yes ; then
11102 lt_int_apple_cc_single_mod=no
11103 output_verbose_link_cmd='echo'
11104 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11105 lt_int_apple_cc_single_mod=yes
11106 fi
11107 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11108 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11109 else
11110 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'
11111 fi
11112 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11114 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11115 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}'
11116 else
11117 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}'
11118 fi
11119 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}'
11120 else
11121 case $cc_basename in
11122 xlc*)
11123 output_verbose_link_cmd='echo'
11124 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'
11125 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11126 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11127 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}'
11128 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}'
11129 ;;
11130 *)
11131 ld_shlibs_CXX=no
11132 ;;
11133 esac
11134 fi
11135 ;;
11136
11137 dgux*)
11138 case $cc_basename in
11139 ec++*)
11140 # FIXME: insert proper C++ library support
11141 ld_shlibs_CXX=no
11142 ;;
11143 ghcx*)
11144 # Green Hills C++ Compiler
11145 # FIXME: insert proper C++ library support
11146 ld_shlibs_CXX=no
11147 ;;
11148 *)
11149 # FIXME: insert proper C++ library support
11150 ld_shlibs_CXX=no
11151 ;;
11152 esac
11153 ;;
11154 freebsd[12]*)
11155 # C++ shared libraries reported to be fairly broken before switch to ELF
11156 ld_shlibs_CXX=no
11157 ;;
11158 freebsd-elf*)
11159 archive_cmds_need_lc_CXX=no
11160 ;;
11161 freebsd* | dragonfly*)
11162 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11163 # conventions
11164 ld_shlibs_CXX=yes
11165 ;;
11166 gnu*)
11167 ;;
11168 hpux9*)
11169 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11170 hardcode_libdir_separator_CXX=:
11171 export_dynamic_flag_spec_CXX='${wl}-E'
11172 hardcode_direct_CXX=yes
11173 hardcode_minus_L_CXX=yes # Not in the search PATH,
11174 # but as the default
11175 # location of the library.
11176
11177 case $cc_basename in
11178 CC*)
11179 # FIXME: insert proper C++ library support
11180 ld_shlibs_CXX=no
11181 ;;
11182 aCC*)
11183 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'
11184 # Commands to make compiler produce verbose output that lists
11185 # what "hidden" libraries, object files and flags are used when
11186 # linking a shared library.
11187 #
11188 # There doesn't appear to be a way to prevent this compiler from
11189 # explicitly linking system object files so we need to strip them
11190 # from the output so that they don't get included in the library
11191 # dependencies.
11192 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'
11193 ;;
11194 *)
11195 if test "$GXX" = yes; then
11196 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'
11197 else
11198 # FIXME: insert proper C++ library support
11199 ld_shlibs_CXX=no
11200 fi
11201 ;;
11202 esac
11203 ;;
11204 hpux10*|hpux11*)
11205 if test $with_gnu_ld = no; then
11206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11207 hardcode_libdir_separator_CXX=:
11208
11209 case $host_cpu in
11210 hppa*64*|ia64*)
11211 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11212 ;;
11213 *)
11214 export_dynamic_flag_spec_CXX='${wl}-E'
11215 ;;
11216 esac
11217 fi
11218 case $host_cpu in
11219 hppa*64*|ia64*)
11220 hardcode_direct_CXX=no
11221 hardcode_shlibpath_var_CXX=no
11222 ;;
11223 *)
11224 hardcode_direct_CXX=yes
11225 hardcode_minus_L_CXX=yes # Not in the search PATH,
11226 # but as the default
11227 # location of the library.
11228 ;;
11229 esac
11230
11231 case $cc_basename in
11232 CC*)
11233 # FIXME: insert proper C++ library support
11234 ld_shlibs_CXX=no
11235 ;;
11236 aCC*)
11237 case $host_cpu in
11238 hppa*64*)
11239 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11240 ;;
11241 ia64*)
11242 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11243 ;;
11244 *)
11245 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11246 ;;
11247 esac
11248 # Commands to make compiler produce verbose output that lists
11249 # what "hidden" libraries, object files and flags are used when
11250 # linking a shared library.
11251 #
11252 # There doesn't appear to be a way to prevent this compiler from
11253 # explicitly linking system object files so we need to strip them
11254 # from the output so that they don't get included in the library
11255 # dependencies.
11256 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'
11257 ;;
11258 *)
11259 if test "$GXX" = yes; then
11260 if test $with_gnu_ld = no; then
11261 case $host_cpu in
11262 hppa*64*)
11263 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11264 ;;
11265 ia64*)
11266 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11267 ;;
11268 *)
11269 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'
11270 ;;
11271 esac
11272 fi
11273 else
11274 # FIXME: insert proper C++ library support
11275 ld_shlibs_CXX=no
11276 fi
11277 ;;
11278 esac
11279 ;;
11280 interix3*)
11281 hardcode_direct_CXX=no
11282 hardcode_shlibpath_var_CXX=no
11283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11284 export_dynamic_flag_spec_CXX='${wl}-E'
11285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11286 # Instead, shared libraries are loaded at an image base (0x10000000 by
11287 # default) and relocated if they conflict, which is a slow very memory
11288 # consuming and fragmenting process. To avoid this, we pick a random,
11289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11291 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'
11292 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'
11293 ;;
11294 irix5* | irix6*)
11295 case $cc_basename in
11296 CC*)
11297 # SGI C++
11298 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'
11299
11300 # Archives containing C++ object files must be created using
11301 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11302 # necessary to make sure instantiated templates are included
11303 # in the archive.
11304 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11305 ;;
11306 *)
11307 if test "$GXX" = yes; then
11308 if test "$with_gnu_ld" = no; then
11309 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'
11310 else
11311 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'
11312 fi
11313 fi
11314 link_all_deplibs_CXX=yes
11315 ;;
11316 esac
11317 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11318 hardcode_libdir_separator_CXX=:
11319 ;;
11320 linux* | k*bsd*-gnu)
11321 case $cc_basename in
11322 KCC*)
11323 # Kuck and Associates, Inc. (KAI) C++ Compiler
11324
11325 # KCC will only create a shared library if the output file
11326 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11327 # to its proper name (with version) after linking.
11328 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'
11329 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'
11330 # Commands to make compiler produce verbose output that lists
11331 # what "hidden" libraries, object files and flags are used when
11332 # linking a shared library.
11333 #
11334 # There doesn't appear to be a way to prevent this compiler from
11335 # explicitly linking system object files so we need to strip them
11336 # from the output so that they don't get included in the library
11337 # dependencies.
11338 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'
11339
11340 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11342
11343 # Archives containing C++ object files must be created using
11344 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11345 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11346 ;;
11347 icpc*)
11348 # Intel C++
11349 with_gnu_ld=yes
11350 # version 8.0 and above of icpc choke on multiply defined symbols
11351 # if we add $predep_objects and $postdep_objects, however 7.1 and
11352 # earlier do not add the objects themselves.
11353 case `$CC -V 2>&1` in
11354 *"Version 7."*)
11355 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11356 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'
11357 ;;
11358 *) # Version 8.0 or newer
11359 tmp_idyn=
11360 case $host_cpu in
11361 ia64*) tmp_idyn=' -i_dynamic';;
11362 esac
11363 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11364 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'
11365 ;;
11366 esac
11367 archive_cmds_need_lc_CXX=no
11368 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11369 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11370 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11371 ;;
11372 pgCC*)
11373 # Portland Group C++ compiler
11374 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11375 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'
11376
11377 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11378 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11379 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'
11380 ;;
11381 cxx*)
11382 # Compaq C++
11383 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11384 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'
11385
11386 runpath_var=LD_RUN_PATH
11387 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11388 hardcode_libdir_separator_CXX=:
11389
11390 # Commands to make compiler produce verbose output that lists
11391 # what "hidden" libraries, object files and flags are used when
11392 # linking a shared library.
11393 #
11394 # There doesn't appear to be a way to prevent this compiler from
11395 # explicitly linking system object files so we need to strip them
11396 # from the output so that they don't get included in the library
11397 # dependencies.
11398 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'
11399 ;;
11400 esac
11401 ;;
11402 lynxos*)
11403 # FIXME: insert proper C++ library support
11404 ld_shlibs_CXX=no
11405 ;;
11406 m88k*)
11407 # FIXME: insert proper C++ library support
11408 ld_shlibs_CXX=no
11409 ;;
11410 mvs*)
11411 case $cc_basename in
11412 cxx*)
11413 # FIXME: insert proper C++ library support
11414 ld_shlibs_CXX=no
11415 ;;
11416 *)
11417 # FIXME: insert proper C++ library support
11418 ld_shlibs_CXX=no
11419 ;;
11420 esac
11421 ;;
11422 netbsd* | netbsdelf*-gnu)
11423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11424 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11425 wlarc=
11426 hardcode_libdir_flag_spec_CXX='-R$libdir'
11427 hardcode_direct_CXX=yes
11428 hardcode_shlibpath_var_CXX=no
11429 fi
11430 # Workaround some broken pre-1.5 toolchains
11431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11432 ;;
11433 openbsd2*)
11434 # C++ shared libraries are fairly broken
11435 ld_shlibs_CXX=no
11436 ;;
11437 openbsd*)
11438 hardcode_direct_CXX=yes
11439 hardcode_shlibpath_var_CXX=no
11440 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11443 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11444 export_dynamic_flag_spec_CXX='${wl}-E'
11445 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11446 fi
11447 output_verbose_link_cmd='echo'
11448 ;;
11449 osf3*)
11450 case $cc_basename in
11451 KCC*)
11452 # Kuck and Associates, Inc. (KAI) C++ Compiler
11453
11454 # KCC will only create a shared library if the output file
11455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11456 # to its proper name (with version) after linking.
11457 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'
11458
11459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11460 hardcode_libdir_separator_CXX=:
11461
11462 # Archives containing C++ object files must be created using
11463 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11464 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11465
11466 ;;
11467 RCC*)
11468 # Rational C++ 2.4.1
11469 # FIXME: insert proper C++ library support
11470 ld_shlibs_CXX=no
11471 ;;
11472 cxx*)
11473 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11474 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'
11475
11476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11477 hardcode_libdir_separator_CXX=:
11478
11479 # Commands to make compiler produce verbose output that lists
11480 # what "hidden" libraries, object files and flags are used when
11481 # linking a shared library.
11482 #
11483 # There doesn't appear to be a way to prevent this compiler from
11484 # explicitly linking system object files so we need to strip them
11485 # from the output so that they don't get included in the library
11486 # dependencies.
11487 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'
11488 ;;
11489 *)
11490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11491 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11492 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'
11493
11494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11495 hardcode_libdir_separator_CXX=:
11496
11497 # Commands to make compiler produce verbose output that lists
11498 # what "hidden" libraries, object files and flags are used when
11499 # linking a shared library.
11500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11501
11502 else
11503 # FIXME: insert proper C++ library support
11504 ld_shlibs_CXX=no
11505 fi
11506 ;;
11507 esac
11508 ;;
11509 osf4* | osf5*)
11510 case $cc_basename in
11511 KCC*)
11512 # Kuck and Associates, Inc. (KAI) C++ Compiler
11513
11514 # KCC will only create a shared library if the output file
11515 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11516 # to its proper name (with version) after linking.
11517 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'
11518
11519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11520 hardcode_libdir_separator_CXX=:
11521
11522 # Archives containing C++ object files must be created using
11523 # the KAI C++ compiler.
11524 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11525 ;;
11526 RCC*)
11527 # Rational C++ 2.4.1
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
11531 cxx*)
11532 allow_undefined_flag_CXX=' -expect_unresolved \*'
11533 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'
11534 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11535 echo "-hidden">> $lib.exp~
11536 $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~
11537 $rm $lib.exp'
11538
11539 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11540 hardcode_libdir_separator_CXX=:
11541
11542 # Commands to make compiler produce verbose output that lists
11543 # what "hidden" libraries, object files and flags are used when
11544 # linking a shared library.
11545 #
11546 # There doesn't appear to be a way to prevent this compiler from
11547 # explicitly linking system object files so we need to strip them
11548 # from the output so that they don't get included in the library
11549 # dependencies.
11550 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'
11551 ;;
11552 *)
11553 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11555 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'
11556
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11558 hardcode_libdir_separator_CXX=:
11559
11560 # Commands to make compiler produce verbose output that lists
11561 # what "hidden" libraries, object files and flags are used when
11562 # linking a shared library.
11563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11564
11565 else
11566 # FIXME: insert proper C++ library support
11567 ld_shlibs_CXX=no
11568 fi
11569 ;;
11570 esac
11571 ;;
11572 psos*)
11573 # FIXME: insert proper C++ library support
11574 ld_shlibs_CXX=no
11575 ;;
11576 sunos4*)
11577 case $cc_basename in
11578 CC*)
11579 # Sun C++ 4.x
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11582 ;;
11583 lcc*)
11584 # Lucid
11585 # FIXME: insert proper C++ library support
11586 ld_shlibs_CXX=no
11587 ;;
11588 *)
11589 # FIXME: insert proper C++ library support
11590 ld_shlibs_CXX=no
11591 ;;
11592 esac
11593 ;;
11594 solaris*)
11595 case $cc_basename in
11596 CC*)
11597 # Sun C++ 4.2, 5.x and Centerline C++
11598 archive_cmds_need_lc_CXX=yes
11599 no_undefined_flag_CXX=' -zdefs'
11600 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11601 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11602 $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'
11603
11604 hardcode_libdir_flag_spec_CXX='-R$libdir'
11605 hardcode_shlibpath_var_CXX=no
11606 case $host_os in
11607 solaris2.[0-5] | solaris2.[0-5].*) ;;
11608 *)
11609 # The C++ compiler is used as linker so we must use $wl
11610 # flag to pass the commands to the underlying system
11611 # linker. We must also pass each convience library through
11612 # to the system linker between allextract/defaultextract.
11613 # The C++ compiler will combine linker options so we
11614 # cannot just pass the convience library names through
11615 # without $wl.
11616 # Supported since Solaris 2.6 (maybe 2.5.1?)
11617 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'
11618 ;;
11619 esac
11620 link_all_deplibs_CXX=yes
11621
11622 output_verbose_link_cmd='echo'
11623
11624 # Archives containing C++ object files must be created using
11625 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11626 # necessary to make sure instantiated templates are included
11627 # in the archive.
11628 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11629 ;;
11630 gcx*)
11631 # Green Hills C++ Compiler
11632 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11633
11634 # The C++ compiler must be used to create the archive.
11635 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11636 ;;
11637 *)
11638 # GNU C++ compiler with Solaris linker
11639 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11640 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11641 if $CC --version | grep -v '^2\.7' > /dev/null; then
11642 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11643 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11644 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11645
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11649 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11650 else
11651 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11652 # platform.
11653 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11654 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11655 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11656
11657 # Commands to make compiler produce verbose output that lists
11658 # what "hidden" libraries, object files and flags are used when
11659 # linking a shared library.
11660 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11661 fi
11662
11663 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11664 fi
11665 ;;
11666 esac
11667 ;;
11668 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11669 no_undefined_flag_CXX='${wl}-z,text'
11670 archive_cmds_need_lc_CXX=no
11671 hardcode_shlibpath_var_CXX=no
11672 runpath_var='LD_RUN_PATH'
11673
11674 case $cc_basename in
11675 CC*)
11676 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11678 ;;
11679 *)
11680 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11681 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11682 ;;
11683 esac
11684 ;;
11685 sysv5* | sco3.2v5* | sco5v6*)
11686 # Note: We can NOT use -z defs as we might desire, because we do not
11687 # link with -lc, and that would cause any symbols used from libc to
11688 # always be unresolved, which means just about no library would
11689 # ever link correctly. If we're not using GNU ld we use -z text
11690 # though, which does catch some bad symbols but isn't as heavy-handed
11691 # as -z defs.
11692 # For security reasons, it is highly recommended that you always
11693 # use absolute paths for naming shared libraries, and exclude the
11694 # DT_RUNPATH tag from executables and libraries. But doing so
11695 # requires that you compile everything twice, which is a pain.
11696 # So that behaviour is only enabled if SCOABSPATH is set to a
11697 # non-empty value in the environment. Most likely only useful for
11698 # creating official distributions of packages.
11699 # This is a hack until libtool officially supports absolute path
11700 # names for shared libraries.
11701 no_undefined_flag_CXX='${wl}-z,text'
11702 allow_undefined_flag_CXX='${wl}-z,nodefs'
11703 archive_cmds_need_lc_CXX=no
11704 hardcode_shlibpath_var_CXX=no
11705 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11706 hardcode_libdir_separator_CXX=':'
11707 link_all_deplibs_CXX=yes
11708 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11709 runpath_var='LD_RUN_PATH'
11710
11711 case $cc_basename in
11712 CC*)
11713 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11714 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11715 ;;
11716 *)
11717 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11718 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11719 ;;
11720 esac
11721 ;;
11722 tandem*)
11723 case $cc_basename in
11724 NCC*)
11725 # NonStop-UX NCC 3.20
11726 # FIXME: insert proper C++ library support
11727 ld_shlibs_CXX=no
11728 ;;
11729 *)
11730 # FIXME: insert proper C++ library support
11731 ld_shlibs_CXX=no
11732 ;;
11733 esac
11734 ;;
11735 vxworks*)
11736 # FIXME: insert proper C++ library support
11737 ld_shlibs_CXX=no
11738 ;;
11739 *)
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 ;;
11743 esac
11744 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11745 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11746 test "$ld_shlibs_CXX" = no && can_build_shared=no
11747
11748 GCC_CXX="$GXX"
11749 LD_CXX="$LD"
11750
11751
11752 cat > conftest.$ac_ext <<EOF
11753 class Foo
11754 {
11755 public:
11756 Foo (void) { a = 0; }
11757 private:
11758 int a;
11759 };
11760 EOF
11761
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; then
11767 # Parse the compiler output and extract the necessary
11768 # objects, libraries and library flags.
11769
11770 # Sentinel used to keep track of whether or not we are before
11771 # the conftest object file.
11772 pre_test_object_deps_done=no
11773
11774 # The `*' in the case matches for architectures that use `case' in
11775 # $output_verbose_cmd can trigger glob expansion during the loop
11776 # eval without this substitution.
11777 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11778
11779 for p in `eval $output_verbose_link_cmd`; do
11780 case $p in
11781
11782 -L* | -R* | -l*)
11783 # Some compilers place space between "-{L,R}" and the path.
11784 # Remove the space.
11785 if test $p = "-L" \
11786 || test $p = "-R"; then
11787 prev=$p
11788 continue
11789 else
11790 prev=
11791 fi
11792
11793 if test "$pre_test_object_deps_done" = no; then
11794 case $p in
11795 -L* | -R*)
11796 # Internal compiler library paths should come after those
11797 # provided the user. The postdeps already come after the
11798 # user supplied libs so there is no need to process them.
11799 if test -z "$compiler_lib_search_path_CXX"; then
11800 compiler_lib_search_path_CXX="${prev}${p}"
11801 else
11802 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11803 fi
11804 ;;
11805 # The "-l" case would never come before the object being
11806 # linked, so don't bother handling this case.
11807 esac
11808 else
11809 if test -z "$postdeps_CXX"; then
11810 postdeps_CXX="${prev}${p}"
11811 else
11812 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11813 fi
11814 fi
11815 ;;
11816
11817 *.$objext)
11818 # This assumes that the test object file only shows up
11819 # once in the compiler output.
11820 if test "$p" = "conftest.$objext"; then
11821 pre_test_object_deps_done=yes
11822 continue
11823 fi
11824
11825 if test "$pre_test_object_deps_done" = no; then
11826 if test -z "$predep_objects_CXX"; then
11827 predep_objects_CXX="$p"
11828 else
11829 predep_objects_CXX="$predep_objects_CXX $p"
11830 fi
11831 else
11832 if test -z "$postdep_objects_CXX"; then
11833 postdep_objects_CXX="$p"
11834 else
11835 postdep_objects_CXX="$postdep_objects_CXX $p"
11836 fi
11837 fi
11838 ;;
11839
11840 *) ;; # Ignore the rest.
11841
11842 esac
11843 done
11844
11845 # Clean up.
11846 rm -f a.out a.exe
11847 else
11848 echo "libtool.m4: error: problem compiling CXX test program"
11849 fi
11850
11851 $rm -f confest.$objext
11852
11853 # PORTME: override above test on systems where it is broken
11854 case $host_os in
11855 interix3*)
11856 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11857 # hack all around it, let's just trust "g++" to DTRT.
11858 predep_objects_CXX=
11859 postdep_objects_CXX=
11860 postdeps_CXX=
11861 ;;
11862
11863 solaris*)
11864 case $cc_basename in
11865 CC*)
11866 # Adding this requires a known-good setup of shared libraries for
11867 # Sun compiler versions before 5.6, else PIC objects from an old
11868 # archive will be linked into the output, leading to subtle bugs.
11869 postdeps_CXX='-lCstd -lCrun'
11870 ;;
11871 esac
11872 ;;
11873 esac
11874
11875
11876 case " $postdeps_CXX " in
11877 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11878 esac
11879
11880 lt_prog_compiler_wl_CXX=
11881 lt_prog_compiler_pic_CXX=
11882 lt_prog_compiler_static_CXX=
11883
11884 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11886
11887 # C++ specific cases for pic, static, wl, etc.
11888 if test "$GXX" = yes; then
11889 lt_prog_compiler_wl_CXX='-Wl,'
11890 lt_prog_compiler_static_CXX='-static'
11891
11892 case $host_os in
11893 aix*)
11894 # All AIX code is PIC.
11895 if test "$host_cpu" = ia64; then
11896 # AIX 5 now supports IA64 processor
11897 lt_prog_compiler_static_CXX='-Bstatic'
11898 fi
11899 ;;
11900 amigaos*)
11901 # FIXME: we need at least 68020 code to build shared libraries, but
11902 # adding the `-m68020' flag to GCC prevents building anything better,
11903 # like `-m68040'.
11904 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11905 ;;
11906 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11907 # PIC is the default for these OSes.
11908 ;;
11909 mingw* | os2* | pw32*)
11910 # This hack is so that the source file can tell whether it is being
11911 # built for inclusion in a dll (and should export symbols for example).
11912 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11913 ;;
11914 darwin* | rhapsody*)
11915 # PIC is the default on this platform
11916 # Common symbols not allowed in MH_DYLIB files
11917 lt_prog_compiler_pic_CXX='-fno-common'
11918 ;;
11919 *djgpp*)
11920 # DJGPP does not support shared libraries at all
11921 lt_prog_compiler_pic_CXX=
11922 ;;
11923 interix3*)
11924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11925 # Instead, we relocate shared libraries at runtime.
11926 ;;
11927 sysv4*MP*)
11928 if test -d /usr/nec; then
11929 lt_prog_compiler_pic_CXX=-Kconform_pic
11930 fi
11931 ;;
11932 hpux*)
11933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11934 # not for PA HP-UX.
11935 case $host_cpu in
11936 hppa*64*|ia64*)
11937 ;;
11938 *)
11939 lt_prog_compiler_pic_CXX='-fPIC'
11940 ;;
11941 esac
11942 ;;
11943 *)
11944 lt_prog_compiler_pic_CXX='-fPIC'
11945 ;;
11946 esac
11947 else
11948 case $host_os in
11949 aix4* | aix5*)
11950 # All AIX code is PIC.
11951 if test "$host_cpu" = ia64; then
11952 # AIX 5 now supports IA64 processor
11953 lt_prog_compiler_static_CXX='-Bstatic'
11954 else
11955 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11956 fi
11957 ;;
11958 chorus*)
11959 case $cc_basename in
11960 cxch68*)
11961 # Green Hills C++ Compiler
11962 # _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"
11963 ;;
11964 esac
11965 ;;
11966 darwin*)
11967 # PIC is the default on this platform
11968 # Common symbols not allowed in MH_DYLIB files
11969 case $cc_basename in
11970 xlc*)
11971 lt_prog_compiler_pic_CXX='-qnocommon'
11972 lt_prog_compiler_wl_CXX='-Wl,'
11973 ;;
11974 esac
11975 ;;
11976 dgux*)
11977 case $cc_basename in
11978 ec++*)
11979 lt_prog_compiler_pic_CXX='-KPIC'
11980 ;;
11981 ghcx*)
11982 # Green Hills C++ Compiler
11983 lt_prog_compiler_pic_CXX='-pic'
11984 ;;
11985 *)
11986 ;;
11987 esac
11988 ;;
11989 freebsd* | dragonfly*)
11990 # FreeBSD uses GNU C++
11991 ;;
11992 hpux9* | hpux10* | hpux11*)
11993 case $cc_basename in
11994 CC*)
11995 lt_prog_compiler_wl_CXX='-Wl,'
11996 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11997 if test "$host_cpu" != ia64; then
11998 lt_prog_compiler_pic_CXX='+Z'
11999 fi
12000 ;;
12001 aCC*)
12002 lt_prog_compiler_wl_CXX='-Wl,'
12003 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12004 case $host_cpu in
12005 hppa*64*|ia64*)
12006 # +Z the default
12007 ;;
12008 *)
12009 lt_prog_compiler_pic_CXX='+Z'
12010 ;;
12011 esac
12012 ;;
12013 *)
12014 ;;
12015 esac
12016 ;;
12017 interix*)
12018 # This is c89, which is MS Visual C++ (no shared libs)
12019 # Anyone wants to do a port?
12020 ;;
12021 irix5* | irix6* | nonstopux*)
12022 case $cc_basename in
12023 CC*)
12024 lt_prog_compiler_wl_CXX='-Wl,'
12025 lt_prog_compiler_static_CXX='-non_shared'
12026 # CC pic flag -KPIC is the default.
12027 ;;
12028 *)
12029 ;;
12030 esac
12031 ;;
12032 linux* | k*bsd*-gnu)
12033 case $cc_basename in
12034 KCC*)
12035 # KAI C++ Compiler
12036 lt_prog_compiler_wl_CXX='--backend -Wl,'
12037 lt_prog_compiler_pic_CXX='-fPIC'
12038 ;;
12039 icpc* | ecpc*)
12040 # Intel C++
12041 lt_prog_compiler_wl_CXX='-Wl,'
12042 lt_prog_compiler_pic_CXX='-KPIC'
12043 lt_prog_compiler_static_CXX='-static'
12044 ;;
12045 pgCC*)
12046 # Portland Group C++ compiler.
12047 lt_prog_compiler_wl_CXX='-Wl,'
12048 lt_prog_compiler_pic_CXX='-fpic'
12049 lt_prog_compiler_static_CXX='-Bstatic'
12050 ;;
12051 cxx*)
12052 # Compaq C++
12053 # Make sure the PIC flag is empty. It appears that all Alpha
12054 # Linux and Compaq Tru64 Unix objects are PIC.
12055 lt_prog_compiler_pic_CXX=
12056 lt_prog_compiler_static_CXX='-non_shared'
12057 ;;
12058 *)
12059 ;;
12060 esac
12061 ;;
12062 lynxos*)
12063 ;;
12064 m88k*)
12065 ;;
12066 mvs*)
12067 case $cc_basename in
12068 cxx*)
12069 lt_prog_compiler_pic_CXX='-W c,exportall'
12070 ;;
12071 *)
12072 ;;
12073 esac
12074 ;;
12075 netbsd* | netbsdelf*-gnu)
12076 ;;
12077 osf3* | osf4* | osf5*)
12078 case $cc_basename in
12079 KCC*)
12080 lt_prog_compiler_wl_CXX='--backend -Wl,'
12081 ;;
12082 RCC*)
12083 # Rational C++ 2.4.1
12084 lt_prog_compiler_pic_CXX='-pic'
12085 ;;
12086 cxx*)
12087 # Digital/Compaq C++
12088 lt_prog_compiler_wl_CXX='-Wl,'
12089 # Make sure the PIC flag is empty. It appears that all Alpha
12090 # Linux and Compaq Tru64 Unix objects are PIC.
12091 lt_prog_compiler_pic_CXX=
12092 lt_prog_compiler_static_CXX='-non_shared'
12093 ;;
12094 *)
12095 ;;
12096 esac
12097 ;;
12098 psos*)
12099 ;;
12100 solaris*)
12101 case $cc_basename in
12102 CC*)
12103 # Sun C++ 4.2, 5.x and Centerline C++
12104 lt_prog_compiler_pic_CXX='-KPIC'
12105 lt_prog_compiler_static_CXX='-Bstatic'
12106 lt_prog_compiler_wl_CXX='-Qoption ld '
12107 ;;
12108 gcx*)
12109 # Green Hills C++ Compiler
12110 lt_prog_compiler_pic_CXX='-PIC'
12111 ;;
12112 *)
12113 ;;
12114 esac
12115 ;;
12116 sunos4*)
12117 case $cc_basename in
12118 CC*)
12119 # Sun C++ 4.x
12120 lt_prog_compiler_pic_CXX='-pic'
12121 lt_prog_compiler_static_CXX='-Bstatic'
12122 ;;
12123 lcc*)
12124 # Lucid
12125 lt_prog_compiler_pic_CXX='-pic'
12126 ;;
12127 *)
12128 ;;
12129 esac
12130 ;;
12131 tandem*)
12132 case $cc_basename in
12133 NCC*)
12134 # NonStop-UX NCC 3.20
12135 lt_prog_compiler_pic_CXX='-KPIC'
12136 ;;
12137 *)
12138 ;;
12139 esac
12140 ;;
12141 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12142 case $cc_basename in
12143 CC*)
12144 lt_prog_compiler_wl_CXX='-Wl,'
12145 lt_prog_compiler_pic_CXX='-KPIC'
12146 lt_prog_compiler_static_CXX='-Bstatic'
12147 ;;
12148 esac
12149 ;;
12150 vxworks*)
12151 ;;
12152 *)
12153 lt_prog_compiler_can_build_shared_CXX=no
12154 ;;
12155 esac
12156 fi
12157
12158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12159 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12160
12161 #
12162 # Check to make sure the PIC flag actually works.
12163 #
12164 if test -n "$lt_prog_compiler_pic_CXX"; then
12165
12166 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12167 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12168 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 lt_prog_compiler_pic_works_CXX=no
12172 ac_outfile=conftest.$ac_objext
12173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12174 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12175 # Insert the option either (1) after the last *FLAGS variable, or
12176 # (2) before a word containing "conftest.", or (3) at the end.
12177 # Note that $ac_compile itself does not contain backslashes and begins
12178 # with a dollar sign (not a hyphen), so the echo should work correctly.
12179 # The option is referenced via a variable to avoid confusing sed.
12180 lt_compile=`echo "$ac_compile" | $SED \
12181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12183 -e 's:$: $lt_compiler_flag:'`
12184 (eval echo "\"\$as_me:12184: $lt_compile\"" >&5)
12185 (eval "$lt_compile" 2>conftest.err)
12186 ac_status=$?
12187 cat conftest.err >&5
12188 echo "$as_me:12188: \$? = $ac_status" >&5
12189 if (exit $ac_status) && test -s "$ac_outfile"; then
12190 # The compiler can only warn and ignore the option if not recognized
12191 # So say no if there are warnings other than the usual output.
12192 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12195 lt_prog_compiler_pic_works_CXX=yes
12196 fi
12197 fi
12198 $rm conftest*
12199
12200 fi
12201 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12202 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12203
12204 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12205 case $lt_prog_compiler_pic_CXX in
12206 "" | " "*) ;;
12207 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12208 esac
12209 else
12210 lt_prog_compiler_pic_CXX=
12211 lt_prog_compiler_can_build_shared_CXX=no
12212 fi
12213
12214 fi
12215 case $host_os in
12216 # For platforms which do not support PIC, -DPIC is meaningless:
12217 *djgpp*)
12218 lt_prog_compiler_pic_CXX=
12219 ;;
12220 *)
12221 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12222 ;;
12223 esac
12224
12225 #
12226 # Check to make sure the static flag actually works.
12227 #
12228 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12229 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12230 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12231 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 lt_prog_compiler_static_works_CXX=no
12235 save_LDFLAGS="$LDFLAGS"
12236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12237 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12239 # The linker can only warn and ignore the option if not recognized
12240 # So say no if there are warnings
12241 if test -s conftest.err; then
12242 # Append any errors to the config.log.
12243 cat conftest.err 1>&5
12244 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12246 if diff conftest.exp conftest.er2 >/dev/null; then
12247 lt_prog_compiler_static_works_CXX=yes
12248 fi
12249 else
12250 lt_prog_compiler_static_works_CXX=yes
12251 fi
12252 fi
12253 $rm conftest*
12254 LDFLAGS="$save_LDFLAGS"
12255
12256 fi
12257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12258 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12259
12260 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12261 :
12262 else
12263 lt_prog_compiler_static_CXX=
12264 fi
12265
12266
12267 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12268 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12269 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 lt_cv_prog_compiler_c_o_CXX=no
12273 $rm -r conftest 2>/dev/null
12274 mkdir conftest
12275 cd conftest
12276 mkdir out
12277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12278
12279 lt_compiler_flag="-o out/conftest2.$ac_objext"
12280 # Insert the option either (1) after the last *FLAGS variable, or
12281 # (2) before a word containing "conftest.", or (3) at the end.
12282 # Note that $ac_compile itself does not contain backslashes and begins
12283 # with a dollar sign (not a hyphen), so the echo should work correctly.
12284 lt_compile=`echo "$ac_compile" | $SED \
12285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12287 -e 's:$: $lt_compiler_flag:'`
12288 (eval echo "\"\$as_me:12288: $lt_compile\"" >&5)
12289 (eval "$lt_compile" 2>out/conftest.err)
12290 ac_status=$?
12291 cat out/conftest.err >&5
12292 echo "$as_me:12292: \$? = $ac_status" >&5
12293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12294 then
12295 # The compiler can only warn and ignore the option if not recognized
12296 # So say no if there are warnings
12297 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12300 lt_cv_prog_compiler_c_o_CXX=yes
12301 fi
12302 fi
12303 chmod u+w . 2>&5
12304 $rm conftest*
12305 # SGI C++ compiler will create directory out/ii_files/ for
12306 # template instantiation
12307 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12308 $rm out/* && rmdir out
12309 cd ..
12310 rmdir conftest
12311 $rm conftest*
12312
12313 fi
12314 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12315 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12316
12317
12318 hard_links="nottested"
12319 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12320 # do not overwrite the value of need_locks provided by the user
12321 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12322 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12323 hard_links=yes
12324 $rm conftest*
12325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12326 touch conftest.a
12327 ln conftest.a conftest.b 2>&5 || hard_links=no
12328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12329 { echo "$as_me:$LINENO: result: $hard_links" >&5
12330 echo "${ECHO_T}$hard_links" >&6; }
12331 if test "$hard_links" = no; then
12332 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12333 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12334 need_locks=warn
12335 fi
12336 else
12337 need_locks=no
12338 fi
12339
12340 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12342
12343 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12344 case $host_os in
12345 aix4* | aix5*)
12346 # If we're using GNU nm, then we don't want the "-C" option.
12347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12348 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12349 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'
12350 else
12351 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'
12352 fi
12353 ;;
12354 pw32*)
12355 export_symbols_cmds_CXX="$ltdll_cmds"
12356 ;;
12357 cygwin* | mingw*)
12358 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'
12359 ;;
12360 linux* | k*bsd*-gnu)
12361 link_all_deplibs_CXX=no
12362 ;;
12363 *)
12364 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12365 ;;
12366 esac
12367
12368 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12369 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12370 test "$ld_shlibs_CXX" = no && can_build_shared=no
12371
12372 #
12373 # Do we need to explicitly link libc?
12374 #
12375 case "x$archive_cmds_need_lc_CXX" in
12376 x|xyes)
12377 # Assume -lc should be added
12378 archive_cmds_need_lc_CXX=yes
12379
12380 if test "$enable_shared" = yes && test "$GCC" = yes; then
12381 case $archive_cmds_CXX in
12382 *'~'*)
12383 # FIXME: we may have to deal with multi-command sequences.
12384 ;;
12385 '$CC '*)
12386 # Test whether the compiler implicitly links with -lc since on some
12387 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12388 # to ld, don't add -lc before -lgcc.
12389 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12390 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12391 $rm conftest*
12392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12393
12394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12395 (eval $ac_compile) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } 2>conftest.err; then
12399 soname=conftest
12400 lib=conftest
12401 libobjs=conftest.$ac_objext
12402 deplibs=
12403 wl=$lt_prog_compiler_wl_CXX
12404 pic_flag=$lt_prog_compiler_pic_CXX
12405 compiler_flags=-v
12406 linker_flags=-v
12407 verstring=
12408 output_objdir=.
12409 libname=conftest
12410 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12411 allow_undefined_flag_CXX=
12412 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12413 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }
12417 then
12418 archive_cmds_need_lc_CXX=no
12419 else
12420 archive_cmds_need_lc_CXX=yes
12421 fi
12422 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12423 else
12424 cat conftest.err 1>&5
12425 fi
12426 $rm conftest*
12427 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12428 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12429 ;;
12430 esac
12431 fi
12432 ;;
12433 esac
12434
12435 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12436 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12437 library_names_spec=
12438 libname_spec='lib$name'
12439 soname_spec=
12440 shrext_cmds=".so"
12441 postinstall_cmds=
12442 postuninstall_cmds=
12443 finish_cmds=
12444 finish_eval=
12445 shlibpath_var=
12446 shlibpath_overrides_runpath=unknown
12447 version_type=none
12448 dynamic_linker="$host_os ld.so"
12449 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12450 if test "$GCC" = yes; then
12451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12452 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12453 # if the path contains ";" then we assume it to be the separator
12454 # otherwise default to the standard path separator (i.e. ":") - it is
12455 # assumed that no part of a normal pathname contains ";" but that should
12456 # okay in the real world where ";" in dirpaths is itself problematic.
12457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12458 else
12459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12460 fi
12461 else
12462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12463 fi
12464 need_lib_prefix=unknown
12465 hardcode_into_libs=no
12466
12467 # when you set need_version to no, make sure it does not cause -set_version
12468 # flags to be left without arguments
12469 need_version=unknown
12470
12471 case $host_os in
12472 aix3*)
12473 version_type=linux
12474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12475 shlibpath_var=LIBPATH
12476
12477 # AIX 3 has no versioning support, so we append a major version to the name.
12478 soname_spec='${libname}${release}${shared_ext}$major'
12479 ;;
12480
12481 aix4* | aix5*)
12482 version_type=linux
12483 need_lib_prefix=no
12484 need_version=no
12485 hardcode_into_libs=yes
12486 if test "$host_cpu" = ia64; then
12487 # AIX 5 supports IA64
12488 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 else
12491 # With GCC up to 2.95.x, collect2 would create an import file
12492 # for dependence libraries. The import file would start with
12493 # the line `#! .'. This would cause the generated library to
12494 # depend on `.', always an invalid library. This was fixed in
12495 # development snapshots of GCC prior to 3.0.
12496 case $host_os in
12497 aix4 | aix4.[01] | aix4.[01].*)
12498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12499 echo ' yes '
12500 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12501 :
12502 else
12503 can_build_shared=no
12504 fi
12505 ;;
12506 esac
12507 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12508 # soname into executable. Probably we can add versioning support to
12509 # collect2, so additional links can be useful in future.
12510 if test "$aix_use_runtimelinking" = yes; then
12511 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12512 # instead of lib<name>.a to let people know that these are not
12513 # typical AIX shared libraries.
12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515 else
12516 # We preserve .a as extension for shared libraries through AIX4.2
12517 # and later when we are not doing run time linking.
12518 library_names_spec='${libname}${release}.a $libname.a'
12519 soname_spec='${libname}${release}${shared_ext}$major'
12520 fi
12521 shlibpath_var=LIBPATH
12522 fi
12523 ;;
12524
12525 amigaos*)
12526 library_names_spec='$libname.ixlibrary $libname.a'
12527 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12528 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'
12529 ;;
12530
12531 beos*)
12532 library_names_spec='${libname}${shared_ext}'
12533 dynamic_linker="$host_os ld.so"
12534 shlibpath_var=LIBRARY_PATH
12535 ;;
12536
12537 bsdi[45]*)
12538 version_type=linux
12539 need_version=no
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12541 soname_spec='${libname}${release}${shared_ext}$major'
12542 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12543 shlibpath_var=LD_LIBRARY_PATH
12544 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12545 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12546 # the default ld.so.conf also contains /usr/contrib/lib and
12547 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12548 # libtool to hard-code these into programs
12549 ;;
12550
12551 cygwin* | mingw* | pw32*)
12552 version_type=windows
12553 shrext_cmds=".dll"
12554 need_version=no
12555 need_lib_prefix=no
12556
12557 case $GCC,$host_os in
12558 yes,cygwin* | yes,mingw* | yes,pw32*)
12559 library_names_spec='$libname.dll.a'
12560 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12561 postinstall_cmds='base_file=`basename \${file}`~
12562 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12563 dldir=$destdir/`dirname \$dlpath`~
12564 test -d \$dldir || mkdir -p \$dldir~
12565 $install_prog $dir/$dlname \$dldir/$dlname~
12566 chmod a+x \$dldir/$dlname'
12567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12568 dlpath=$dir/\$dldll~
12569 $rm \$dlpath'
12570 shlibpath_overrides_runpath=yes
12571
12572 case $host_os in
12573 cygwin*)
12574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12575 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12576 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12577 ;;
12578 mingw*)
12579 # MinGW DLLs use traditional 'lib' prefix
12580 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12582 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12583 # It is most probably a Windows format PATH printed by
12584 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12585 # path with ; separators, and with drive letters. We can handle the
12586 # drive letters (cygwin fileutils understands them), so leave them,
12587 # especially as we might pass files found there to a mingw objdump,
12588 # which wouldn't understand a cygwinified path. Ahh.
12589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12590 else
12591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12592 fi
12593 ;;
12594 pw32*)
12595 # pw32 DLLs use 'pw' prefix rather than 'lib'
12596 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12597 ;;
12598 esac
12599 ;;
12600
12601 *)
12602 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12603 ;;
12604 esac
12605 dynamic_linker='Win32 ld.exe'
12606 # FIXME: first we should search . and the directory the executable is in
12607 shlibpath_var=PATH
12608 ;;
12609
12610 darwin* | rhapsody*)
12611 dynamic_linker="$host_os dyld"
12612 version_type=darwin
12613 need_lib_prefix=no
12614 need_version=no
12615 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12616 soname_spec='${libname}${release}${major}$shared_ext'
12617 shlibpath_overrides_runpath=yes
12618 shlibpath_var=DYLD_LIBRARY_PATH
12619 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12620 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12621 if test "$GCC" = yes; then
12622 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"`
12623 else
12624 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12625 fi
12626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12627 ;;
12628
12629 dgux*)
12630 version_type=linux
12631 need_lib_prefix=no
12632 need_version=no
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12634 soname_spec='${libname}${release}${shared_ext}$major'
12635 shlibpath_var=LD_LIBRARY_PATH
12636 ;;
12637
12638 freebsd1*)
12639 dynamic_linker=no
12640 ;;
12641
12642 freebsd* | dragonfly*)
12643 # DragonFly does not have aout. When/if they implement a new
12644 # versioning mechanism, adjust this.
12645 if test -x /usr/bin/objformat; then
12646 objformat=`/usr/bin/objformat`
12647 else
12648 case $host_os in
12649 freebsd[123]*) objformat=aout ;;
12650 *) objformat=elf ;;
12651 esac
12652 fi
12653 version_type=freebsd-$objformat
12654 case $version_type in
12655 freebsd-elf*)
12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12657 need_version=no
12658 need_lib_prefix=no
12659 ;;
12660 freebsd-*)
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12662 need_version=yes
12663 ;;
12664 esac
12665 shlibpath_var=LD_LIBRARY_PATH
12666 case $host_os in
12667 freebsd2*)
12668 shlibpath_overrides_runpath=yes
12669 ;;
12670 freebsd3.[01]* | freebsdelf3.[01]*)
12671 shlibpath_overrides_runpath=yes
12672 hardcode_into_libs=yes
12673 ;;
12674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12676 shlibpath_overrides_runpath=no
12677 hardcode_into_libs=yes
12678 ;;
12679 freebsd*) # from 4.6 on
12680 shlibpath_overrides_runpath=yes
12681 hardcode_into_libs=yes
12682 ;;
12683 esac
12684 ;;
12685
12686 gnu*)
12687 version_type=linux
12688 need_lib_prefix=no
12689 need_version=no
12690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12691 soname_spec='${libname}${release}${shared_ext}$major'
12692 shlibpath_var=LD_LIBRARY_PATH
12693 hardcode_into_libs=yes
12694 ;;
12695
12696 hpux9* | hpux10* | hpux11*)
12697 # Give a soname corresponding to the major version so that dld.sl refuses to
12698 # link against other versions.
12699 version_type=sunos
12700 need_lib_prefix=no
12701 need_version=no
12702 case $host_cpu in
12703 ia64*)
12704 shrext_cmds='.so'
12705 hardcode_into_libs=yes
12706 dynamic_linker="$host_os dld.so"
12707 shlibpath_var=LD_LIBRARY_PATH
12708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12710 soname_spec='${libname}${release}${shared_ext}$major'
12711 if test "X$HPUX_IA64_MODE" = X32; then
12712 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12713 else
12714 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12715 fi
12716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12717 ;;
12718 hppa*64*)
12719 shrext_cmds='.sl'
12720 hardcode_into_libs=yes
12721 dynamic_linker="$host_os dld.sl"
12722 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12725 soname_spec='${libname}${release}${shared_ext}$major'
12726 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12728 ;;
12729 *)
12730 shrext_cmds='.sl'
12731 dynamic_linker="$host_os dld.sl"
12732 shlibpath_var=SHLIB_PATH
12733 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12735 soname_spec='${libname}${release}${shared_ext}$major'
12736 ;;
12737 esac
12738 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12739 postinstall_cmds='chmod 555 $lib'
12740 ;;
12741
12742 interix3*)
12743 version_type=linux
12744 need_lib_prefix=no
12745 need_version=no
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 shlibpath_overrides_runpath=no
12751 hardcode_into_libs=yes
12752 ;;
12753
12754 irix5* | irix6* | nonstopux*)
12755 case $host_os in
12756 nonstopux*) version_type=nonstopux ;;
12757 *)
12758 if test "$lt_cv_prog_gnu_ld" = yes; then
12759 version_type=linux
12760 else
12761 version_type=irix
12762 fi ;;
12763 esac
12764 need_lib_prefix=no
12765 need_version=no
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12768 case $host_os in
12769 irix5* | nonstopux*)
12770 libsuff= shlibsuff=
12771 ;;
12772 *)
12773 case $LD in # libtool.m4 will add one of these switches to LD
12774 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12775 libsuff= shlibsuff= libmagic=32-bit;;
12776 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12777 libsuff=32 shlibsuff=N32 libmagic=N32;;
12778 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12779 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12780 *) libsuff= shlibsuff= libmagic=never-match;;
12781 esac
12782 ;;
12783 esac
12784 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12785 shlibpath_overrides_runpath=no
12786 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12787 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12788 hardcode_into_libs=yes
12789 ;;
12790
12791 # No shared lib support for Linux oldld, aout, or coff.
12792 linux*oldld* | linux*aout* | linux*coff*)
12793 dynamic_linker=no
12794 ;;
12795
12796 # This must be Linux ELF.
12797 linux* | k*bsd*-gnu)
12798 version_type=linux
12799 need_lib_prefix=no
12800 need_version=no
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802 soname_spec='${libname}${release}${shared_ext}$major'
12803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12804 shlibpath_var=LD_LIBRARY_PATH
12805 shlibpath_overrides_runpath=no
12806 # This implies no fast_install, which is unacceptable.
12807 # Some rework will be needed to allow for fast_install
12808 # before this can be enabled.
12809 hardcode_into_libs=yes
12810
12811 # Append ld.so.conf contents to the search path
12812 if test -f /etc/ld.so.conf; then
12813 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' ' '`
12814 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12815 fi
12816
12817 # We used to test for /lib/ld.so.1 and disable shared libraries on
12818 # powerpc, because MkLinux only supported shared libraries with the
12819 # GNU dynamic linker. Since this was broken with cross compilers,
12820 # most powerpc-linux boxes support dynamic linking these days and
12821 # people can always --disable-shared, the test was removed, and we
12822 # assume the GNU/Linux dynamic linker is in use.
12823 dynamic_linker='GNU/Linux ld.so'
12824 ;;
12825
12826 netbsdelf*-gnu)
12827 version_type=linux
12828 need_lib_prefix=no
12829 need_version=no
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=no
12834 hardcode_into_libs=yes
12835 dynamic_linker='NetBSD ld.elf_so'
12836 ;;
12837
12838 netbsd*)
12839 version_type=sunos
12840 need_lib_prefix=no
12841 need_version=no
12842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12845 dynamic_linker='NetBSD (a.out) ld.so'
12846 else
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12848 soname_spec='${libname}${release}${shared_ext}$major'
12849 dynamic_linker='NetBSD ld.elf_so'
12850 fi
12851 shlibpath_var=LD_LIBRARY_PATH
12852 shlibpath_overrides_runpath=yes
12853 hardcode_into_libs=yes
12854 ;;
12855
12856 newsos6)
12857 version_type=linux
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath=yes
12861 ;;
12862
12863 nto-qnx*)
12864 version_type=linux
12865 need_lib_prefix=no
12866 need_version=no
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12868 soname_spec='${libname}${release}${shared_ext}$major'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 shlibpath_overrides_runpath=yes
12871 ;;
12872
12873 openbsd*)
12874 version_type=sunos
12875 sys_lib_dlsearch_path_spec="/usr/lib"
12876 need_lib_prefix=no
12877 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12878 case $host_os in
12879 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12880 *) need_version=no ;;
12881 esac
12882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12884 shlibpath_var=LD_LIBRARY_PATH
12885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12886 case $host_os in
12887 openbsd2.[89] | openbsd2.[89].*)
12888 shlibpath_overrides_runpath=no
12889 ;;
12890 *)
12891 shlibpath_overrides_runpath=yes
12892 ;;
12893 esac
12894 else
12895 shlibpath_overrides_runpath=yes
12896 fi
12897 ;;
12898
12899 os2*)
12900 libname_spec='$name'
12901 shrext_cmds=".dll"
12902 need_lib_prefix=no
12903 library_names_spec='$libname${shared_ext} $libname.a'
12904 dynamic_linker='OS/2 ld.exe'
12905 shlibpath_var=LIBPATH
12906 ;;
12907
12908 osf3* | osf4* | osf5*)
12909 version_type=osf
12910 need_lib_prefix=no
12911 need_version=no
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12916 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12917 ;;
12918
12919 solaris*)
12920 version_type=linux
12921 need_lib_prefix=no
12922 need_version=no
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924 soname_spec='${libname}${release}${shared_ext}$major'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=yes
12927 hardcode_into_libs=yes
12928 # ldd complains unless libraries are executable
12929 postinstall_cmds='chmod +x $lib'
12930 ;;
12931
12932 sunos4*)
12933 version_type=sunos
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12938 if test "$with_gnu_ld" = yes; then
12939 need_lib_prefix=no
12940 fi
12941 need_version=yes
12942 ;;
12943
12944 sysv4 | sysv4.3*)
12945 version_type=linux
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12947 soname_spec='${libname}${release}${shared_ext}$major'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 case $host_vendor in
12950 sni)
12951 shlibpath_overrides_runpath=no
12952 need_lib_prefix=no
12953 export_dynamic_flag_spec='${wl}-Blargedynsym'
12954 runpath_var=LD_RUN_PATH
12955 ;;
12956 siemens)
12957 need_lib_prefix=no
12958 ;;
12959 motorola)
12960 need_lib_prefix=no
12961 need_version=no
12962 shlibpath_overrides_runpath=no
12963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12964 ;;
12965 esac
12966 ;;
12967
12968 sysv4*MP*)
12969 if test -d /usr/nec ;then
12970 version_type=linux
12971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12972 soname_spec='$libname${shared_ext}.$major'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 fi
12975 ;;
12976
12977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12978 version_type=freebsd-elf
12979 need_lib_prefix=no
12980 need_version=no
12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12982 soname_spec='${libname}${release}${shared_ext}$major'
12983 shlibpath_var=LD_LIBRARY_PATH
12984 hardcode_into_libs=yes
12985 if test "$with_gnu_ld" = yes; then
12986 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12987 shlibpath_overrides_runpath=no
12988 else
12989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12990 shlibpath_overrides_runpath=yes
12991 case $host_os in
12992 sco3.2v5*)
12993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12994 ;;
12995 esac
12996 fi
12997 sys_lib_dlsearch_path_spec='/usr/lib'
12998 ;;
12999
13000 uts4*)
13001 version_type=linux
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13003 soname_spec='${libname}${release}${shared_ext}$major'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 ;;
13006
13007 *)
13008 dynamic_linker=no
13009 ;;
13010 esac
13011 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13012 echo "${ECHO_T}$dynamic_linker" >&6; }
13013 test "$dynamic_linker" = no && can_build_shared=no
13014
13015 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13016 if test "$GCC" = yes; then
13017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13018 fi
13019
13020 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13022 hardcode_action_CXX=
13023 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13024 test -n "$runpath_var_CXX" || \
13025 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13026
13027 # We can hardcode non-existant directories.
13028 if test "$hardcode_direct_CXX" != no &&
13029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13030 # have to relink, otherwise we might link with an installed library
13031 # when we should be linking with a yet-to-be-installed one
13032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13033 test "$hardcode_minus_L_CXX" != no; then
13034 # Linking always hardcodes the temporary library directory.
13035 hardcode_action_CXX=relink
13036 else
13037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13038 hardcode_action_CXX=immediate
13039 fi
13040 else
13041 # We cannot hardcode anything, or else we can only hardcode existing
13042 # directories.
13043 hardcode_action_CXX=unsupported
13044 fi
13045 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13046 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13047
13048 if test "$hardcode_action_CXX" = relink; then
13049 # Fast installation is not supported
13050 enable_fast_install=no
13051 elif test "$shlibpath_overrides_runpath" = yes ||
13052 test "$enable_shared" = no; then
13053 # Fast installation is not necessary
13054 enable_fast_install=needless
13055 fi
13056
13057
13058 # The else clause should only fire when bootstrapping the
13059 # libtool distribution, otherwise you forgot to ship ltmain.sh
13060 # with your package, and you will get complaints that there are
13061 # no rules to generate ltmain.sh.
13062 if test -f "$ltmain"; then
13063 # See if we are running on zsh, and set the options which allow our commands through
13064 # without removal of \ escapes.
13065 if test -n "${ZSH_VERSION+set}" ; then
13066 setopt NO_GLOB_SUBST
13067 fi
13068 # Now quote all the things that may contain metacharacters while being
13069 # careful not to overquote the AC_SUBSTed values. We take copies of the
13070 # variables and quote the copies for generation of the libtool script.
13071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13072 SED SHELL STRIP \
13073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13075 deplibs_check_method reload_flag reload_cmds need_locks \
13076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13077 lt_cv_sys_global_symbol_to_c_name_address \
13078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13079 old_postinstall_cmds old_postuninstall_cmds \
13080 compiler_CXX \
13081 CC_CXX \
13082 LD_CXX \
13083 lt_prog_compiler_wl_CXX \
13084 lt_prog_compiler_pic_CXX \
13085 lt_prog_compiler_static_CXX \
13086 lt_prog_compiler_no_builtin_flag_CXX \
13087 export_dynamic_flag_spec_CXX \
13088 thread_safe_flag_spec_CXX \
13089 whole_archive_flag_spec_CXX \
13090 enable_shared_with_static_runtimes_CXX \
13091 old_archive_cmds_CXX \
13092 old_archive_from_new_cmds_CXX \
13093 predep_objects_CXX \
13094 postdep_objects_CXX \
13095 predeps_CXX \
13096 postdeps_CXX \
13097 compiler_lib_search_path_CXX \
13098 archive_cmds_CXX \
13099 archive_expsym_cmds_CXX \
13100 postinstall_cmds_CXX \
13101 postuninstall_cmds_CXX \
13102 old_archive_from_expsyms_cmds_CXX \
13103 allow_undefined_flag_CXX \
13104 no_undefined_flag_CXX \
13105 export_symbols_cmds_CXX \
13106 hardcode_libdir_flag_spec_CXX \
13107 hardcode_libdir_flag_spec_ld_CXX \
13108 hardcode_libdir_separator_CXX \
13109 hardcode_automatic_CXX \
13110 module_cmds_CXX \
13111 module_expsym_cmds_CXX \
13112 lt_cv_prog_compiler_c_o_CXX \
13113 exclude_expsyms_CXX \
13114 include_expsyms_CXX; do
13115
13116 case $var in
13117 old_archive_cmds_CXX | \
13118 old_archive_from_new_cmds_CXX | \
13119 archive_cmds_CXX | \
13120 archive_expsym_cmds_CXX | \
13121 module_cmds_CXX | \
13122 module_expsym_cmds_CXX | \
13123 old_archive_from_expsyms_cmds_CXX | \
13124 export_symbols_cmds_CXX | \
13125 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13126 postinstall_cmds | postuninstall_cmds | \
13127 old_postinstall_cmds | old_postuninstall_cmds | \
13128 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13129 # Double-quote double-evaled strings.
13130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13131 ;;
13132 *)
13133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13134 ;;
13135 esac
13136 done
13137
13138 case $lt_echo in
13139 *'\$0 --fallback-echo"')
13140 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13141 ;;
13142 esac
13143
13144 cfgfile="$ofile"
13145
13146 cat <<__EOF__ >> "$cfgfile"
13147 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13148
13149 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13150
13151 # Shell to use when invoking shell scripts.
13152 SHELL=$lt_SHELL
13153
13154 # Whether or not to build shared libraries.
13155 build_libtool_libs=$enable_shared
13156
13157 # Whether or not to build static libraries.
13158 build_old_libs=$enable_static
13159
13160 # Whether or not to add -lc for building shared libraries.
13161 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13162
13163 # Whether or not to disallow shared libs when runtime libs are static
13164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13165
13166 # Whether or not to optimize for fast installation.
13167 fast_install=$enable_fast_install
13168
13169 # The host system.
13170 host_alias=$host_alias
13171 host=$host
13172 host_os=$host_os
13173
13174 # The build system.
13175 build_alias=$build_alias
13176 build=$build
13177 build_os=$build_os
13178
13179 # An echo program that does not interpret backslashes.
13180 echo=$lt_echo
13181
13182 # The archiver.
13183 AR=$lt_AR
13184 AR_FLAGS=$lt_AR_FLAGS
13185
13186 # A C compiler.
13187 LTCC=$lt_LTCC
13188
13189 # LTCC compiler flags.
13190 LTCFLAGS=$lt_LTCFLAGS
13191
13192 # A language-specific compiler.
13193 CC=$lt_compiler_CXX
13194
13195 # Is the compiler the GNU C compiler?
13196 with_gcc=$GCC_CXX
13197
13198 # An ERE matcher.
13199 EGREP=$lt_EGREP
13200
13201 # The linker used to build libraries.
13202 LD=$lt_LD_CXX
13203
13204 # Whether we need hard or soft links.
13205 LN_S=$lt_LN_S
13206
13207 # A BSD-compatible nm program.
13208 NM=$lt_NM
13209
13210 # A symbol stripping program
13211 STRIP=$lt_STRIP
13212
13213 # Used to examine libraries when file_magic_cmd begins "file"
13214 MAGIC_CMD=$MAGIC_CMD
13215
13216 # Used on cygwin: DLL creation program.
13217 DLLTOOL="$DLLTOOL"
13218
13219 # Used on cygwin: object dumper.
13220 OBJDUMP="$OBJDUMP"
13221
13222 # Used on cygwin: assembler.
13223 AS="$AS"
13224
13225 # The name of the directory that contains temporary libtool files.
13226 objdir=$objdir
13227
13228 # How to create reloadable object files.
13229 reload_flag=$lt_reload_flag
13230 reload_cmds=$lt_reload_cmds
13231
13232 # How to pass a linker flag through the compiler.
13233 wl=$lt_lt_prog_compiler_wl_CXX
13234
13235 # Object file suffix (normally "o").
13236 objext="$ac_objext"
13237
13238 # Old archive suffix (normally "a").
13239 libext="$libext"
13240
13241 # Shared library suffix (normally ".so").
13242 shrext_cmds='$shrext_cmds'
13243
13244 # Executable file suffix (normally "").
13245 exeext="$exeext"
13246
13247 # Additional compiler flags for building library objects.
13248 pic_flag=$lt_lt_prog_compiler_pic_CXX
13249 pic_mode=$pic_mode
13250
13251 # What is the maximum length of a command?
13252 max_cmd_len=$lt_cv_sys_max_cmd_len
13253
13254 # Does compiler simultaneously support -c and -o options?
13255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13256
13257 # Must we lock files when doing compilation?
13258 need_locks=$lt_need_locks
13259
13260 # Do we need the lib prefix for modules?
13261 need_lib_prefix=$need_lib_prefix
13262
13263 # Do we need a version for libraries?
13264 need_version=$need_version
13265
13266 # Whether dlopen is supported.
13267 dlopen_support=$enable_dlopen
13268
13269 # Whether dlopen of programs is supported.
13270 dlopen_self=$enable_dlopen_self
13271
13272 # Whether dlopen of statically linked programs is supported.
13273 dlopen_self_static=$enable_dlopen_self_static
13274
13275 # Compiler flag to prevent dynamic linking.
13276 link_static_flag=$lt_lt_prog_compiler_static_CXX
13277
13278 # Compiler flag to turn off builtin functions.
13279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13280
13281 # Compiler flag to allow reflexive dlopens.
13282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13283
13284 # Compiler flag to generate shared objects directly from archives.
13285 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13286
13287 # Compiler flag to generate thread-safe objects.
13288 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13289
13290 # Library versioning type.
13291 version_type=$version_type
13292
13293 # Format of library name prefix.
13294 libname_spec=$lt_libname_spec
13295
13296 # List of archive names. First name is the real one, the rest are links.
13297 # The last name is the one that the linker finds with -lNAME.
13298 library_names_spec=$lt_library_names_spec
13299
13300 # The coded name of the library, if different from the real name.
13301 soname_spec=$lt_soname_spec
13302
13303 # Commands used to build and install an old-style archive.
13304 RANLIB=$lt_RANLIB
13305 old_archive_cmds=$lt_old_archive_cmds_CXX
13306 old_postinstall_cmds=$lt_old_postinstall_cmds
13307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13308
13309 # Create an old-style archive from a shared archive.
13310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13311
13312 # Create a temporary old-style archive to link instead of a shared archive.
13313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13314
13315 # Commands used to build and install a shared archive.
13316 archive_cmds=$lt_archive_cmds_CXX
13317 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13318 postinstall_cmds=$lt_postinstall_cmds
13319 postuninstall_cmds=$lt_postuninstall_cmds
13320
13321 # Commands used to build a loadable module (assumed same as above if empty)
13322 module_cmds=$lt_module_cmds_CXX
13323 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13324
13325 # Commands to strip libraries.
13326 old_striplib=$lt_old_striplib
13327 striplib=$lt_striplib
13328
13329 # Dependencies to place before the objects being linked to create a
13330 # shared library.
13331 predep_objects=$lt_predep_objects_CXX
13332
13333 # Dependencies to place after the objects being linked to create a
13334 # shared library.
13335 postdep_objects=$lt_postdep_objects_CXX
13336
13337 # Dependencies to place before the objects being linked to create a
13338 # shared library.
13339 predeps=$lt_predeps_CXX
13340
13341 # Dependencies to place after the objects being linked to create a
13342 # shared library.
13343 postdeps=$lt_postdeps_CXX
13344
13345 # The library search path used internally by the compiler when linking
13346 # a shared library.
13347 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13348
13349 # Method to check whether dependent libraries are shared objects.
13350 deplibs_check_method=$lt_deplibs_check_method
13351
13352 # Command to use when deplibs_check_method == file_magic.
13353 file_magic_cmd=$lt_file_magic_cmd
13354
13355 # Flag that allows shared libraries with undefined symbols to be built.
13356 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13357
13358 # Flag that forces no undefined symbols.
13359 no_undefined_flag=$lt_no_undefined_flag_CXX
13360
13361 # Commands used to finish a libtool library installation in a directory.
13362 finish_cmds=$lt_finish_cmds
13363
13364 # Same as above, but a single script fragment to be evaled but not shown.
13365 finish_eval=$lt_finish_eval
13366
13367 # Take the output of nm and produce a listing of raw symbols and C names.
13368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13369
13370 # Transform the output of nm in a proper C declaration
13371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13372
13373 # Transform the output of nm in a C name address pair
13374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13375
13376 # This is the shared library runtime path variable.
13377 runpath_var=$runpath_var
13378
13379 # This is the shared library path variable.
13380 shlibpath_var=$shlibpath_var
13381
13382 # Is shlibpath searched before the hard-coded library search path?
13383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13384
13385 # How to hardcode a shared library path into an executable.
13386 hardcode_action=$hardcode_action_CXX
13387
13388 # Whether we should hardcode library paths into libraries.
13389 hardcode_into_libs=$hardcode_into_libs
13390
13391 # Flag to hardcode \$libdir into a binary during linking.
13392 # This must work even if \$libdir does not exist.
13393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13394
13395 # If ld is used when linking, flag to hardcode \$libdir into
13396 # a binary during linking. This must work even if \$libdir does
13397 # not exist.
13398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13399
13400 # Whether we need a single -rpath flag with a separated argument.
13401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13402
13403 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13404 # resulting binary.
13405 hardcode_direct=$hardcode_direct_CXX
13406
13407 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13408 # resulting binary.
13409 hardcode_minus_L=$hardcode_minus_L_CXX
13410
13411 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13412 # the resulting binary.
13413 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13414
13415 # Set to yes if building a shared library automatically hardcodes DIR into the library
13416 # and all subsequent libraries and executables linked against it.
13417 hardcode_automatic=$hardcode_automatic_CXX
13418
13419 # Variables whose values should be saved in libtool wrapper scripts and
13420 # restored at relink time.
13421 variables_saved_for_relink="$variables_saved_for_relink"
13422
13423 # Whether libtool must link a program against all its dependency libraries.
13424 link_all_deplibs=$link_all_deplibs_CXX
13425
13426 # Compile-time system search path for libraries
13427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13428
13429 # Run-time system search path for libraries
13430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13431
13432 # Fix the shell variable \$srcfile for the compiler.
13433 fix_srcfile_path="$fix_srcfile_path_CXX"
13434
13435 # Set to yes if exported symbols are required.
13436 always_export_symbols=$always_export_symbols_CXX
13437
13438 # The commands to list exported symbols.
13439 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13440
13441 # The commands to extract the exported symbol list from a shared archive.
13442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13443
13444 # Symbols that should not be listed in the preloaded symbols.
13445 exclude_expsyms=$lt_exclude_expsyms_CXX
13446
13447 # Symbols that must always be exported.
13448 include_expsyms=$lt_include_expsyms_CXX
13449
13450 # ### END LIBTOOL TAG CONFIG: $tagname
13451
13452 __EOF__
13453
13454
13455 else
13456 # If there is no Makefile yet, we rely on a make rule to execute
13457 # `config.status --recheck' to rerun these tests and create the
13458 # libtool script then.
13459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13460 if test -f "$ltmain_in"; then
13461 test -f Makefile && make "$ltmain"
13462 fi
13463 fi
13464
13465
13466 ac_ext=c
13467 ac_cpp='$CPP $CPPFLAGS'
13468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13471
13472 CC=$lt_save_CC
13473 LDCXX=$LD
13474 LD=$lt_save_LD
13475 GCC=$lt_save_GCC
13476 with_gnu_ldcxx=$with_gnu_ld
13477 with_gnu_ld=$lt_save_with_gnu_ld
13478 lt_cv_path_LDCXX=$lt_cv_path_LD
13479 lt_cv_path_LD=$lt_save_path_LD
13480 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13481 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13482
13483 else
13484 tagname=""
13485 fi
13486 ;;
13487
13488 F77)
13489 if test -n "$F77" && test "X$F77" != "Xno"; then
13490
13491 ac_ext=f
13492 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13493 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13494 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13495
13496
13497 archive_cmds_need_lc_F77=no
13498 allow_undefined_flag_F77=
13499 always_export_symbols_F77=no
13500 archive_expsym_cmds_F77=
13501 export_dynamic_flag_spec_F77=
13502 hardcode_direct_F77=no
13503 hardcode_libdir_flag_spec_F77=
13504 hardcode_libdir_flag_spec_ld_F77=
13505 hardcode_libdir_separator_F77=
13506 hardcode_minus_L_F77=no
13507 hardcode_automatic_F77=no
13508 module_cmds_F77=
13509 module_expsym_cmds_F77=
13510 link_all_deplibs_F77=unknown
13511 old_archive_cmds_F77=$old_archive_cmds
13512 no_undefined_flag_F77=
13513 whole_archive_flag_spec_F77=
13514 enable_shared_with_static_runtimes_F77=no
13515
13516 # Source file extension for f77 test sources.
13517 ac_ext=f
13518
13519 # Object file extension for compiled f77 test sources.
13520 objext=o
13521 objext_F77=$objext
13522
13523 # Code to be used in simple compile tests
13524 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13525
13526 # Code to be used in simple link tests
13527 lt_simple_link_test_code=" program t\n end\n"
13528
13529 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13530
13531 # If no C compiler was specified, use CC.
13532 LTCC=${LTCC-"$CC"}
13533
13534 # If no C compiler flags were specified, use CFLAGS.
13535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13536
13537 # Allow CC to be a program name with arguments.
13538 compiler=$CC
13539
13540
13541 # save warnings/boilerplate of simple test code
13542 ac_outfile=conftest.$ac_objext
13543 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13545 _lt_compiler_boilerplate=`cat conftest.err`
13546 $rm conftest*
13547
13548 ac_outfile=conftest.$ac_objext
13549 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13551 _lt_linker_boilerplate=`cat conftest.err`
13552 $rm conftest*
13553
13554
13555 # Allow CC to be a program name with arguments.
13556 lt_save_CC="$CC"
13557 CC=${F77-"f77"}
13558 compiler=$CC
13559 compiler_F77=$CC
13560 for cc_temp in $compiler""; do
13561 case $cc_temp in
13562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13564 \-*) ;;
13565 *) break;;
13566 esac
13567 done
13568 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13569
13570
13571 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13572 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13573 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13574 echo "${ECHO_T}$can_build_shared" >&6; }
13575
13576 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13577 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13578 test "$can_build_shared" = "no" && enable_shared=no
13579
13580 # On AIX, shared libraries and static libraries use the same namespace, and
13581 # are all built from PIC.
13582 case $host_os in
13583 aix3*)
13584 test "$enable_shared" = yes && enable_static=no
13585 if test -n "$RANLIB"; then
13586 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13587 postinstall_cmds='$RANLIB $lib'
13588 fi
13589 ;;
13590 aix4* | aix5*)
13591 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13592 test "$enable_shared" = yes && enable_static=no
13593 fi
13594 ;;
13595 esac
13596 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13597 echo "${ECHO_T}$enable_shared" >&6; }
13598
13599 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13600 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13601 # Make sure either enable_shared or enable_static is yes.
13602 test "$enable_shared" = yes || enable_static=yes
13603 { echo "$as_me:$LINENO: result: $enable_static" >&5
13604 echo "${ECHO_T}$enable_static" >&6; }
13605
13606 GCC_F77="$G77"
13607 LD_F77="$LD"
13608
13609 lt_prog_compiler_wl_F77=
13610 lt_prog_compiler_pic_F77=
13611 lt_prog_compiler_static_F77=
13612
13613 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13614 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13615
13616 if test "$GCC" = yes; then
13617 lt_prog_compiler_wl_F77='-Wl,'
13618 lt_prog_compiler_static_F77='-static'
13619
13620 case $host_os in
13621 aix*)
13622 # All AIX code is PIC.
13623 if test "$host_cpu" = ia64; then
13624 # AIX 5 now supports IA64 processor
13625 lt_prog_compiler_static_F77='-Bstatic'
13626 fi
13627 ;;
13628
13629 amigaos*)
13630 # FIXME: we need at least 68020 code to build shared libraries, but
13631 # adding the `-m68020' flag to GCC prevents building anything better,
13632 # like `-m68040'.
13633 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13634 ;;
13635
13636 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13637 # PIC is the default for these OSes.
13638 ;;
13639
13640 mingw* | pw32* | os2*)
13641 # This hack is so that the source file can tell whether it is being
13642 # built for inclusion in a dll (and should export symbols for example).
13643 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13644 ;;
13645
13646 darwin* | rhapsody*)
13647 # PIC is the default on this platform
13648 # Common symbols not allowed in MH_DYLIB files
13649 lt_prog_compiler_pic_F77='-fno-common'
13650 ;;
13651
13652 interix3*)
13653 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13654 # Instead, we relocate shared libraries at runtime.
13655 ;;
13656
13657 msdosdjgpp*)
13658 # Just because we use GCC doesn't mean we suddenly get shared libraries
13659 # on systems that don't support them.
13660 lt_prog_compiler_can_build_shared_F77=no
13661 enable_shared=no
13662 ;;
13663
13664 sysv4*MP*)
13665 if test -d /usr/nec; then
13666 lt_prog_compiler_pic_F77=-Kconform_pic
13667 fi
13668 ;;
13669
13670 hpux*)
13671 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13672 # not for PA HP-UX.
13673 case $host_cpu in
13674 hppa*64*|ia64*)
13675 # +Z the default
13676 ;;
13677 *)
13678 lt_prog_compiler_pic_F77='-fPIC'
13679 ;;
13680 esac
13681 ;;
13682
13683 *)
13684 lt_prog_compiler_pic_F77='-fPIC'
13685 ;;
13686 esac
13687 else
13688 # PORTME Check for flag to pass linker flags through the system compiler.
13689 case $host_os in
13690 aix*)
13691 lt_prog_compiler_wl_F77='-Wl,'
13692 if test "$host_cpu" = ia64; then
13693 # AIX 5 now supports IA64 processor
13694 lt_prog_compiler_static_F77='-Bstatic'
13695 else
13696 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13697 fi
13698 ;;
13699 darwin*)
13700 # PIC is the default on this platform
13701 # Common symbols not allowed in MH_DYLIB files
13702 case $cc_basename in
13703 xlc*)
13704 lt_prog_compiler_pic_F77='-qnocommon'
13705 lt_prog_compiler_wl_F77='-Wl,'
13706 ;;
13707 esac
13708 ;;
13709
13710 mingw* | pw32* | os2*)
13711 # This hack is so that the source file can tell whether it is being
13712 # built for inclusion in a dll (and should export symbols for example).
13713 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13714 ;;
13715
13716 hpux9* | hpux10* | hpux11*)
13717 lt_prog_compiler_wl_F77='-Wl,'
13718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13719 # not for PA HP-UX.
13720 case $host_cpu in
13721 hppa*64*|ia64*)
13722 # +Z the default
13723 ;;
13724 *)
13725 lt_prog_compiler_pic_F77='+Z'
13726 ;;
13727 esac
13728 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13729 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13730 ;;
13731
13732 irix5* | irix6* | nonstopux*)
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 # PIC (with -KPIC) is the default.
13735 lt_prog_compiler_static_F77='-non_shared'
13736 ;;
13737
13738 newsos6)
13739 lt_prog_compiler_pic_F77='-KPIC'
13740 lt_prog_compiler_static_F77='-Bstatic'
13741 ;;
13742
13743 linux* | k*bsd*-gnu)
13744 case $cc_basename in
13745 icc* | ecc*)
13746 lt_prog_compiler_wl_F77='-Wl,'
13747 lt_prog_compiler_pic_F77='-KPIC'
13748 lt_prog_compiler_static_F77='-static'
13749 ;;
13750 pgcc* | pgf77* | pgf90* | pgf95*)
13751 # Portland Group compilers (*not* the Pentium gcc compiler,
13752 # which looks to be a dead project)
13753 lt_prog_compiler_wl_F77='-Wl,'
13754 lt_prog_compiler_pic_F77='-fpic'
13755 lt_prog_compiler_static_F77='-Bstatic'
13756 ;;
13757 ccc*)
13758 lt_prog_compiler_wl_F77='-Wl,'
13759 # All Alpha code is PIC.
13760 lt_prog_compiler_static_F77='-non_shared'
13761 ;;
13762 esac
13763 ;;
13764
13765 osf3* | osf4* | osf5*)
13766 lt_prog_compiler_wl_F77='-Wl,'
13767 # All OSF/1 code is PIC.
13768 lt_prog_compiler_static_F77='-non_shared'
13769 ;;
13770
13771 solaris*)
13772 lt_prog_compiler_pic_F77='-KPIC'
13773 lt_prog_compiler_static_F77='-Bstatic'
13774 case $cc_basename in
13775 f77* | f90* | f95*)
13776 lt_prog_compiler_wl_F77='-Qoption ld ';;
13777 *)
13778 lt_prog_compiler_wl_F77='-Wl,';;
13779 esac
13780 ;;
13781
13782 sunos4*)
13783 lt_prog_compiler_wl_F77='-Qoption ld '
13784 lt_prog_compiler_pic_F77='-PIC'
13785 lt_prog_compiler_static_F77='-Bstatic'
13786 ;;
13787
13788 sysv4 | sysv4.2uw2* | sysv4.3*)
13789 lt_prog_compiler_wl_F77='-Wl,'
13790 lt_prog_compiler_pic_F77='-KPIC'
13791 lt_prog_compiler_static_F77='-Bstatic'
13792 ;;
13793
13794 sysv4*MP*)
13795 if test -d /usr/nec ;then
13796 lt_prog_compiler_pic_F77='-Kconform_pic'
13797 lt_prog_compiler_static_F77='-Bstatic'
13798 fi
13799 ;;
13800
13801 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13802 lt_prog_compiler_wl_F77='-Wl,'
13803 lt_prog_compiler_pic_F77='-KPIC'
13804 lt_prog_compiler_static_F77='-Bstatic'
13805 ;;
13806
13807 unicos*)
13808 lt_prog_compiler_wl_F77='-Wl,'
13809 lt_prog_compiler_can_build_shared_F77=no
13810 ;;
13811
13812 uts4*)
13813 lt_prog_compiler_pic_F77='-pic'
13814 lt_prog_compiler_static_F77='-Bstatic'
13815 ;;
13816
13817 *)
13818 lt_prog_compiler_can_build_shared_F77=no
13819 ;;
13820 esac
13821 fi
13822
13823 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13824 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13825
13826 #
13827 # Check to make sure the PIC flag actually works.
13828 #
13829 if test -n "$lt_prog_compiler_pic_F77"; then
13830
13831 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13832 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13833 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836 lt_prog_compiler_pic_works_F77=no
13837 ac_outfile=conftest.$ac_objext
13838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13839 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13840 # Insert the option either (1) after the last *FLAGS variable, or
13841 # (2) before a word containing "conftest.", or (3) at the end.
13842 # Note that $ac_compile itself does not contain backslashes and begins
13843 # with a dollar sign (not a hyphen), so the echo should work correctly.
13844 # The option is referenced via a variable to avoid confusing sed.
13845 lt_compile=`echo "$ac_compile" | $SED \
13846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13848 -e 's:$: $lt_compiler_flag:'`
13849 (eval echo "\"\$as_me:13849: $lt_compile\"" >&5)
13850 (eval "$lt_compile" 2>conftest.err)
13851 ac_status=$?
13852 cat conftest.err >&5
13853 echo "$as_me:13853: \$? = $ac_status" >&5
13854 if (exit $ac_status) && test -s "$ac_outfile"; then
13855 # The compiler can only warn and ignore the option if not recognized
13856 # So say no if there are warnings other than the usual output.
13857 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13860 lt_prog_compiler_pic_works_F77=yes
13861 fi
13862 fi
13863 $rm conftest*
13864
13865 fi
13866 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13867 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13868
13869 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13870 case $lt_prog_compiler_pic_F77 in
13871 "" | " "*) ;;
13872 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13873 esac
13874 else
13875 lt_prog_compiler_pic_F77=
13876 lt_prog_compiler_can_build_shared_F77=no
13877 fi
13878
13879 fi
13880 case $host_os in
13881 # For platforms which do not support PIC, -DPIC is meaningless:
13882 *djgpp*)
13883 lt_prog_compiler_pic_F77=
13884 ;;
13885 *)
13886 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13887 ;;
13888 esac
13889
13890 #
13891 # Check to make sure the static flag actually works.
13892 #
13893 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13894 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13895 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13896 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 lt_prog_compiler_static_works_F77=no
13900 save_LDFLAGS="$LDFLAGS"
13901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13902 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13904 # The linker can only warn and ignore the option if not recognized
13905 # So say no if there are warnings
13906 if test -s conftest.err; then
13907 # Append any errors to the config.log.
13908 cat conftest.err 1>&5
13909 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13911 if diff conftest.exp conftest.er2 >/dev/null; then
13912 lt_prog_compiler_static_works_F77=yes
13913 fi
13914 else
13915 lt_prog_compiler_static_works_F77=yes
13916 fi
13917 fi
13918 $rm conftest*
13919 LDFLAGS="$save_LDFLAGS"
13920
13921 fi
13922 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13923 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13924
13925 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13926 :
13927 else
13928 lt_prog_compiler_static_F77=
13929 fi
13930
13931
13932 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13934 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 lt_cv_prog_compiler_c_o_F77=no
13938 $rm -r conftest 2>/dev/null
13939 mkdir conftest
13940 cd conftest
13941 mkdir out
13942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13943
13944 lt_compiler_flag="-o out/conftest2.$ac_objext"
13945 # Insert the option either (1) after the last *FLAGS variable, or
13946 # (2) before a word containing "conftest.", or (3) at the end.
13947 # Note that $ac_compile itself does not contain backslashes and begins
13948 # with a dollar sign (not a hyphen), so the echo should work correctly.
13949 lt_compile=`echo "$ac_compile" | $SED \
13950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13952 -e 's:$: $lt_compiler_flag:'`
13953 (eval echo "\"\$as_me:13953: $lt_compile\"" >&5)
13954 (eval "$lt_compile" 2>out/conftest.err)
13955 ac_status=$?
13956 cat out/conftest.err >&5
13957 echo "$as_me:13957: \$? = $ac_status" >&5
13958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13959 then
13960 # The compiler can only warn and ignore the option if not recognized
13961 # So say no if there are warnings
13962 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13965 lt_cv_prog_compiler_c_o_F77=yes
13966 fi
13967 fi
13968 chmod u+w . 2>&5
13969 $rm conftest*
13970 # SGI C++ compiler will create directory out/ii_files/ for
13971 # template instantiation
13972 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13973 $rm out/* && rmdir out
13974 cd ..
13975 rmdir conftest
13976 $rm conftest*
13977
13978 fi
13979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13981
13982
13983 hard_links="nottested"
13984 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13985 # do not overwrite the value of need_locks provided by the user
13986 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13988 hard_links=yes
13989 $rm conftest*
13990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13991 touch conftest.a
13992 ln conftest.a conftest.b 2>&5 || hard_links=no
13993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13994 { echo "$as_me:$LINENO: result: $hard_links" >&5
13995 echo "${ECHO_T}$hard_links" >&6; }
13996 if test "$hard_links" = no; then
13997 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13999 need_locks=warn
14000 fi
14001 else
14002 need_locks=no
14003 fi
14004
14005 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14006 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14007
14008 runpath_var=
14009 allow_undefined_flag_F77=
14010 enable_shared_with_static_runtimes_F77=no
14011 archive_cmds_F77=
14012 archive_expsym_cmds_F77=
14013 old_archive_From_new_cmds_F77=
14014 old_archive_from_expsyms_cmds_F77=
14015 export_dynamic_flag_spec_F77=
14016 whole_archive_flag_spec_F77=
14017 thread_safe_flag_spec_F77=
14018 hardcode_libdir_flag_spec_F77=
14019 hardcode_libdir_flag_spec_ld_F77=
14020 hardcode_libdir_separator_F77=
14021 hardcode_direct_F77=no
14022 hardcode_minus_L_F77=no
14023 hardcode_shlibpath_var_F77=unsupported
14024 link_all_deplibs_F77=unknown
14025 hardcode_automatic_F77=no
14026 module_cmds_F77=
14027 module_expsym_cmds_F77=
14028 always_export_symbols_F77=no
14029 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14030 # include_expsyms should be a list of space-separated symbols to be *always*
14031 # included in the symbol list
14032 include_expsyms_F77=
14033 # exclude_expsyms can be an extended regexp of symbols to exclude
14034 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14035 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14036 # as well as any symbol that contains `d'.
14037 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14038 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14039 # platforms (ab)use it in PIC code, but their linkers get confused if
14040 # the symbol is explicitly referenced. Since portable code cannot
14041 # rely on this symbol name, it's probably fine to never include it in
14042 # preloaded symbol tables.
14043 extract_expsyms_cmds=
14044 # Just being paranoid about ensuring that cc_basename is set.
14045 for cc_temp in $compiler""; do
14046 case $cc_temp in
14047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14049 \-*) ;;
14050 *) break;;
14051 esac
14052 done
14053 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14054
14055 case $host_os in
14056 cygwin* | mingw* | pw32*)
14057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14058 # When not using gcc, we currently assume that we are using
14059 # Microsoft Visual C++.
14060 if test "$GCC" != yes; then
14061 with_gnu_ld=no
14062 fi
14063 ;;
14064 interix*)
14065 # we just hope/assume this is gcc and not c89 (= MSVC++)
14066 with_gnu_ld=yes
14067 ;;
14068 openbsd*)
14069 with_gnu_ld=no
14070 ;;
14071 esac
14072
14073 ld_shlibs_F77=yes
14074 if test "$with_gnu_ld" = yes; then
14075 # If archive_cmds runs LD, not CC, wlarc should be empty
14076 wlarc='${wl}'
14077
14078 # Set some defaults for GNU ld with shared library support. These
14079 # are reset later if shared libraries are not supported. Putting them
14080 # here allows them to be overridden if necessary.
14081 runpath_var=LD_RUN_PATH
14082 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14083 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14084 # ancient GNU ld didn't support --whole-archive et. al.
14085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14086 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14087 else
14088 whole_archive_flag_spec_F77=
14089 fi
14090 supports_anon_versioning=no
14091 case `$LD -v 2>/dev/null` in
14092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14095 *\ 2.11.*) ;; # other 2.11 versions
14096 *) supports_anon_versioning=yes ;;
14097 esac
14098
14099 # See if GNU ld supports shared libraries.
14100 case $host_os in
14101 aix3* | aix4* | aix5*)
14102 # On AIX/PPC, the GNU linker is very broken
14103 if test "$host_cpu" != ia64; then
14104 ld_shlibs_F77=no
14105 cat <<EOF 1>&2
14106
14107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14108 *** to be unable to reliably create shared libraries on AIX.
14109 *** Therefore, libtool is disabling shared libraries support. If you
14110 *** really care for shared libraries, you may want to modify your PATH
14111 *** so that a non-GNU linker is found, and then restart.
14112
14113 EOF
14114 fi
14115 ;;
14116
14117 amigaos*)
14118 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)'
14119 hardcode_libdir_flag_spec_F77='-L$libdir'
14120 hardcode_minus_L_F77=yes
14121
14122 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14123 # that the semantics of dynamic libraries on AmigaOS, at least up
14124 # to version 4, is to share data among multiple programs linked
14125 # with the same dynamic library. Since this doesn't match the
14126 # behavior of shared libraries on other platforms, we can't use
14127 # them.
14128 ld_shlibs_F77=no
14129 ;;
14130
14131 beos*)
14132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14133 allow_undefined_flag_F77=unsupported
14134 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14135 # support --undefined. This deserves some investigation. FIXME
14136 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14137 else
14138 ld_shlibs_F77=no
14139 fi
14140 ;;
14141
14142 cygwin* | mingw* | pw32*)
14143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14144 # as there is no search path for DLLs.
14145 hardcode_libdir_flag_spec_F77='-L$libdir'
14146 allow_undefined_flag_F77=unsupported
14147 always_export_symbols_F77=no
14148 enable_shared_with_static_runtimes_F77=yes
14149 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14150
14151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14153 # If the export-symbols file already is a .def file (1st line
14154 # is EXPORTS), use it as is; otherwise, prepend...
14155 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14156 cp $export_symbols $output_objdir/$soname.def;
14157 else
14158 echo EXPORTS > $output_objdir/$soname.def;
14159 cat $export_symbols >> $output_objdir/$soname.def;
14160 fi~
14161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14162 else
14163 ld_shlibs_F77=no
14164 fi
14165 ;;
14166
14167 interix3*)
14168 hardcode_direct_F77=no
14169 hardcode_shlibpath_var_F77=no
14170 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14171 export_dynamic_flag_spec_F77='${wl}-E'
14172 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14173 # Instead, shared libraries are loaded at an image base (0x10000000 by
14174 # default) and relocated if they conflict, which is a slow very memory
14175 # consuming and fragmenting process. To avoid this, we pick a random,
14176 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14177 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14178 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'
14179 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'
14180 ;;
14181
14182 linux* | k*bsd*-gnu)
14183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14184 tmp_addflag=
14185 case $cc_basename,$host_cpu in
14186 pgcc*) # Portland Group C compiler
14187 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'
14188 tmp_addflag=' $pic_flag'
14189 ;;
14190 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14191 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'
14192 tmp_addflag=' $pic_flag -Mnomain' ;;
14193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14194 tmp_addflag=' -i_dynamic' ;;
14195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14196 tmp_addflag=' -i_dynamic -nofor_main' ;;
14197 ifc* | ifort*) # Intel Fortran compiler
14198 tmp_addflag=' -nofor_main' ;;
14199 esac
14200 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14201
14202 if test $supports_anon_versioning = yes; then
14203 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14205 $echo "local: *; };" >> $output_objdir/$libname.ver~
14206 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14207 fi
14208 link_all_deplibs_F77=no
14209 else
14210 ld_shlibs_F77=no
14211 fi
14212 ;;
14213
14214 netbsd* | netbsdelf*-gnu)
14215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14216 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14217 wlarc=
14218 else
14219 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14220 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14221 fi
14222 ;;
14223
14224 solaris*)
14225 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14226 ld_shlibs_F77=no
14227 cat <<EOF 1>&2
14228
14229 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14230 *** create shared libraries on Solaris systems. Therefore, libtool
14231 *** is disabling shared libraries support. We urge you to upgrade GNU
14232 *** binutils to release 2.9.1 or newer. Another option is to modify
14233 *** your PATH or compiler configuration so that the native linker is
14234 *** used, and then restart.
14235
14236 EOF
14237 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14240 else
14241 ld_shlibs_F77=no
14242 fi
14243 ;;
14244
14245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14246 case `$LD -v 2>&1` in
14247 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14248 ld_shlibs_F77=no
14249 cat <<_LT_EOF 1>&2
14250
14251 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14252 *** reliably create shared libraries on SCO systems. Therefore, libtool
14253 *** is disabling shared libraries support. We urge you to upgrade GNU
14254 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14255 *** your PATH or compiler configuration so that the native linker is
14256 *** used, and then restart.
14257
14258 _LT_EOF
14259 ;;
14260 *)
14261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14262 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14263 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14264 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14265 else
14266 ld_shlibs_F77=no
14267 fi
14268 ;;
14269 esac
14270 ;;
14271
14272 sunos4*)
14273 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14274 wlarc=
14275 hardcode_direct_F77=yes
14276 hardcode_shlibpath_var_F77=no
14277 ;;
14278
14279 *)
14280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14281 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14282 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14283 else
14284 ld_shlibs_F77=no
14285 fi
14286 ;;
14287 esac
14288
14289 if test "$ld_shlibs_F77" = no; then
14290 runpath_var=
14291 hardcode_libdir_flag_spec_F77=
14292 export_dynamic_flag_spec_F77=
14293 whole_archive_flag_spec_F77=
14294 fi
14295 else
14296 # PORTME fill in a description of your system's linker (not GNU ld)
14297 case $host_os in
14298 aix3*)
14299 allow_undefined_flag_F77=unsupported
14300 always_export_symbols_F77=yes
14301 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'
14302 # Note: this linker hardcodes the directories in LIBPATH if there
14303 # are no directories specified by -L.
14304 hardcode_minus_L_F77=yes
14305 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14306 # Neither direct hardcoding nor static linking is supported with a
14307 # broken collect2.
14308 hardcode_direct_F77=unsupported
14309 fi
14310 ;;
14311
14312 aix4* | aix5*)
14313 if test "$host_cpu" = ia64; then
14314 # On IA64, the linker does run time linking by default, so we don't
14315 # have to do anything special.
14316 aix_use_runtimelinking=no
14317 exp_sym_flag='-Bexport'
14318 no_entry_flag=""
14319 else
14320 # If we're using GNU nm, then we don't want the "-C" option.
14321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14322 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14323 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'
14324 else
14325 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'
14326 fi
14327 aix_use_runtimelinking=no
14328
14329 # Test if we are trying to use run time linking or normal
14330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14331 # need to do runtime linking.
14332 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14333 for ld_flag in $LDFLAGS; do
14334 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14335 aix_use_runtimelinking=yes
14336 break
14337 fi
14338 done
14339 ;;
14340 esac
14341
14342 exp_sym_flag='-bexport'
14343 no_entry_flag='-bnoentry'
14344 fi
14345
14346 # When large executables or shared objects are built, AIX ld can
14347 # have problems creating the table of contents. If linking a library
14348 # or program results in "error TOC overflow" add -mminimal-toc to
14349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14351
14352 archive_cmds_F77=''
14353 hardcode_direct_F77=yes
14354 hardcode_libdir_separator_F77=':'
14355 link_all_deplibs_F77=yes
14356
14357 if test "$GCC" = yes; then
14358 case $host_os in aix4.[012]|aix4.[012].*)
14359 # We only want to do this on AIX 4.2 and lower, the check
14360 # below for broken collect2 doesn't work under 4.3+
14361 collect2name=`${CC} -print-prog-name=collect2`
14362 if test -f "$collect2name" && \
14363 strings "$collect2name" | grep resolve_lib_name >/dev/null
14364 then
14365 # We have reworked collect2
14366 hardcode_direct_F77=yes
14367 else
14368 # We have old collect2
14369 hardcode_direct_F77=unsupported
14370 # It fails to find uninstalled libraries when the uninstalled
14371 # path is not listed in the libpath. Setting hardcode_minus_L
14372 # to unsupported forces relinking
14373 hardcode_minus_L_F77=yes
14374 hardcode_libdir_flag_spec_F77='-L$libdir'
14375 hardcode_libdir_separator_F77=
14376 fi
14377 ;;
14378 esac
14379 shared_flag='-shared'
14380 if test "$aix_use_runtimelinking" = yes; then
14381 shared_flag="$shared_flag "'${wl}-G'
14382 fi
14383 else
14384 # not using gcc
14385 if test "$host_cpu" = ia64; then
14386 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14387 # chokes on -Wl,-G. The following line is correct:
14388 shared_flag='-G'
14389 else
14390 if test "$aix_use_runtimelinking" = yes; then
14391 shared_flag='${wl}-G'
14392 else
14393 shared_flag='${wl}-bM:SRE'
14394 fi
14395 fi
14396 fi
14397
14398 # It seems that -bexpall does not export symbols beginning with
14399 # underscore (_), so it is better to generate a list of symbols to export.
14400 always_export_symbols_F77=yes
14401 if test "$aix_use_runtimelinking" = yes; then
14402 # Warning - without using the other runtime loading flags (-brtl),
14403 # -berok will link without error, but may produce a broken library.
14404 allow_undefined_flag_F77='-berok'
14405 # Determine the default libpath from the value encoded in an empty executable.
14406 cat >conftest.$ac_ext <<_ACEOF
14407 program main
14408
14409 end
14410 _ACEOF
14411 rm -f conftest.$ac_objext conftest$ac_exeext
14412 if { (ac_try="$ac_link"
14413 case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_link") 2>conftest.er1
14419 ac_status=$?
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } && {
14425 test -z "$ac_f77_werror_flag" ||
14426 test ! -s conftest.err
14427 } && test -s conftest$ac_exeext &&
14428 $as_test_x conftest$ac_exeext; then
14429
14430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14431 }'`
14432 # Check for a 64-bit object if we didn't find anything.
14433 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; }
14434 }'`; fi
14435 else
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439
14440 fi
14441
14442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14443 conftest$ac_exeext conftest.$ac_ext
14444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14445
14446 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14447 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"
14448 else
14449 if test "$host_cpu" = ia64; then
14450 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14451 allow_undefined_flag_F77="-z nodefs"
14452 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"
14453 else
14454 # Determine the default libpath from the value encoded in an empty executable.
14455 cat >conftest.$ac_ext <<_ACEOF
14456 program main
14457
14458 end
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (ac_try="$ac_link"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_link") 2>conftest.er1
14468 ac_status=$?
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } && {
14474 test -z "$ac_f77_werror_flag" ||
14475 test ! -s conftest.err
14476 } && test -s conftest$ac_exeext &&
14477 $as_test_x conftest$ac_exeext; then
14478
14479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14480 }'`
14481 # Check for a 64-bit object if we didn't find anything.
14482 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; }
14483 }'`; fi
14484 else
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488
14489 fi
14490
14491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14492 conftest$ac_exeext conftest.$ac_ext
14493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14494
14495 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14496 # Warning - without using the other run time loading flags,
14497 # -berok will link without error, but may produce a broken library.
14498 no_undefined_flag_F77=' ${wl}-bernotok'
14499 allow_undefined_flag_F77=' ${wl}-berok'
14500 # Exported symbols can be pulled into shared objects from archives
14501 whole_archive_flag_spec_F77='$convenience'
14502 archive_cmds_need_lc_F77=yes
14503 # This is similar to how AIX traditionally builds its shared libraries.
14504 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'
14505 fi
14506 fi
14507 ;;
14508
14509 amigaos*)
14510 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)'
14511 hardcode_libdir_flag_spec_F77='-L$libdir'
14512 hardcode_minus_L_F77=yes
14513 # see comment about different semantics on the GNU ld section
14514 ld_shlibs_F77=no
14515 ;;
14516
14517 bsdi[45]*)
14518 export_dynamic_flag_spec_F77=-rdynamic
14519 ;;
14520
14521 cygwin* | mingw* | pw32*)
14522 # When not using gcc, we currently assume that we are using
14523 # Microsoft Visual C++.
14524 # hardcode_libdir_flag_spec is actually meaningless, as there is
14525 # no search path for DLLs.
14526 hardcode_libdir_flag_spec_F77=' '
14527 allow_undefined_flag_F77=unsupported
14528 # Tell ltmain to make .lib files, not .a files.
14529 libext=lib
14530 # Tell ltmain to make .dll files, not .so files.
14531 shrext_cmds=".dll"
14532 # FIXME: Setting linknames here is a bad hack.
14533 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14534 # The linker will automatically build a .lib file if we build a DLL.
14535 old_archive_From_new_cmds_F77='true'
14536 # FIXME: Should let the user specify the lib program.
14537 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14538 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14539 enable_shared_with_static_runtimes_F77=yes
14540 ;;
14541
14542 darwin* | rhapsody*)
14543 case $host_os in
14544 rhapsody* | darwin1.[012])
14545 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14546 ;;
14547 *) # Darwin 1.3 on
14548 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14549 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14550 else
14551 case ${MACOSX_DEPLOYMENT_TARGET} in
14552 10.[012])
14553 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14554 ;;
14555 10.*)
14556 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14557 ;;
14558 esac
14559 fi
14560 ;;
14561 esac
14562 archive_cmds_need_lc_F77=no
14563 hardcode_direct_F77=no
14564 hardcode_automatic_F77=yes
14565 hardcode_shlibpath_var_F77=unsupported
14566 whole_archive_flag_spec_F77=''
14567 link_all_deplibs_F77=yes
14568 if test "$GCC" = yes ; then
14569 output_verbose_link_cmd='echo'
14570 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14571 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14573 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}'
14574 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}'
14575 else
14576 case $cc_basename in
14577 xlc*)
14578 output_verbose_link_cmd='echo'
14579 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14580 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14582 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}'
14583 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}'
14584 ;;
14585 *)
14586 ld_shlibs_F77=no
14587 ;;
14588 esac
14589 fi
14590 ;;
14591
14592 dgux*)
14593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14594 hardcode_libdir_flag_spec_F77='-L$libdir'
14595 hardcode_shlibpath_var_F77=no
14596 ;;
14597
14598 freebsd1*)
14599 ld_shlibs_F77=no
14600 ;;
14601
14602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14603 # support. Future versions do this automatically, but an explicit c++rt0.o
14604 # does not break anything, and helps significantly (at the cost of a little
14605 # extra space).
14606 freebsd2.2*)
14607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14608 hardcode_libdir_flag_spec_F77='-R$libdir'
14609 hardcode_direct_F77=yes
14610 hardcode_shlibpath_var_F77=no
14611 ;;
14612
14613 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14614 freebsd2*)
14615 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14616 hardcode_direct_F77=yes
14617 hardcode_minus_L_F77=yes
14618 hardcode_shlibpath_var_F77=no
14619 ;;
14620
14621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14622 freebsd* | dragonfly*)
14623 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14624 hardcode_libdir_flag_spec_F77='-R$libdir'
14625 hardcode_direct_F77=yes
14626 hardcode_shlibpath_var_F77=no
14627 ;;
14628
14629 hpux9*)
14630 if test "$GCC" = yes; then
14631 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'
14632 else
14633 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'
14634 fi
14635 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14636 hardcode_libdir_separator_F77=:
14637 hardcode_direct_F77=yes
14638
14639 # hardcode_minus_L: Not really in the search PATH,
14640 # but as the default location of the library.
14641 hardcode_minus_L_F77=yes
14642 export_dynamic_flag_spec_F77='${wl}-E'
14643 ;;
14644
14645 hpux10*)
14646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14647 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14648 else
14649 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14650 fi
14651 if test "$with_gnu_ld" = no; then
14652 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14653 hardcode_libdir_separator_F77=:
14654
14655 hardcode_direct_F77=yes
14656 export_dynamic_flag_spec_F77='${wl}-E'
14657
14658 # hardcode_minus_L: Not really in the search PATH,
14659 # but as the default location of the library.
14660 hardcode_minus_L_F77=yes
14661 fi
14662 ;;
14663
14664 hpux11*)
14665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14666 case $host_cpu in
14667 hppa*64*)
14668 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14669 ;;
14670 ia64*)
14671 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14672 ;;
14673 *)
14674 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14675 ;;
14676 esac
14677 else
14678 case $host_cpu in
14679 hppa*64*)
14680 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14681 ;;
14682 ia64*)
14683 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14684 ;;
14685 *)
14686 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14687 ;;
14688 esac
14689 fi
14690 if test "$with_gnu_ld" = no; then
14691 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14692 hardcode_libdir_separator_F77=:
14693
14694 case $host_cpu in
14695 hppa*64*|ia64*)
14696 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14697 hardcode_direct_F77=no
14698 hardcode_shlibpath_var_F77=no
14699 ;;
14700 *)
14701 hardcode_direct_F77=yes
14702 export_dynamic_flag_spec_F77='${wl}-E'
14703
14704 # hardcode_minus_L: Not really in the search PATH,
14705 # but as the default location of the library.
14706 hardcode_minus_L_F77=yes
14707 ;;
14708 esac
14709 fi
14710 ;;
14711
14712 irix5* | irix6* | nonstopux*)
14713 if test "$GCC" = yes; then
14714 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'
14715 else
14716 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'
14717 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14718 fi
14719 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14720 hardcode_libdir_separator_F77=:
14721 link_all_deplibs_F77=yes
14722 ;;
14723
14724 netbsd* | netbsdelf*-gnu)
14725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14726 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14727 else
14728 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14729 fi
14730 hardcode_libdir_flag_spec_F77='-R$libdir'
14731 hardcode_direct_F77=yes
14732 hardcode_shlibpath_var_F77=no
14733 ;;
14734
14735 newsos6)
14736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14737 hardcode_direct_F77=yes
14738 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14739 hardcode_libdir_separator_F77=:
14740 hardcode_shlibpath_var_F77=no
14741 ;;
14742
14743 openbsd*)
14744 hardcode_direct_F77=yes
14745 hardcode_shlibpath_var_F77=no
14746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14747 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14748 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14749 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14750 export_dynamic_flag_spec_F77='${wl}-E'
14751 else
14752 case $host_os in
14753 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14754 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14755 hardcode_libdir_flag_spec_F77='-R$libdir'
14756 ;;
14757 *)
14758 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14759 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14760 ;;
14761 esac
14762 fi
14763 ;;
14764
14765 os2*)
14766 hardcode_libdir_flag_spec_F77='-L$libdir'
14767 hardcode_minus_L_F77=yes
14768 allow_undefined_flag_F77=unsupported
14769 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'
14770 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14771 ;;
14772
14773 osf3*)
14774 if test "$GCC" = yes; then
14775 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14776 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'
14777 else
14778 allow_undefined_flag_F77=' -expect_unresolved \*'
14779 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'
14780 fi
14781 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14782 hardcode_libdir_separator_F77=:
14783 ;;
14784
14785 osf4* | osf5*) # as osf3* with the addition of -msym flag
14786 if test "$GCC" = yes; then
14787 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14788 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'
14789 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14790 else
14791 allow_undefined_flag_F77=' -expect_unresolved \*'
14792 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'
14793 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~
14794 $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'
14795
14796 # Both c and cxx compiler support -rpath directly
14797 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14798 fi
14799 hardcode_libdir_separator_F77=:
14800 ;;
14801
14802 solaris*)
14803 no_undefined_flag_F77=' -z text'
14804 if test "$GCC" = yes; then
14805 wlarc='${wl}'
14806 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14807 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14808 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14809 else
14810 wlarc=''
14811 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14812 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14813 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14814 fi
14815 hardcode_libdir_flag_spec_F77='-R$libdir'
14816 hardcode_shlibpath_var_F77=no
14817 case $host_os in
14818 solaris2.[0-5] | solaris2.[0-5].*) ;;
14819 *)
14820 # The compiler driver will combine linker options so we
14821 # cannot just pass the convience library names through
14822 # without $wl, iff we do not link with $LD.
14823 # Luckily, gcc supports the same syntax we need for Sun Studio.
14824 # Supported since Solaris 2.6 (maybe 2.5.1?)
14825 case $wlarc in
14826 '')
14827 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14828 *)
14829 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' ;;
14830 esac ;;
14831 esac
14832 link_all_deplibs_F77=yes
14833 ;;
14834
14835 sunos4*)
14836 if test "x$host_vendor" = xsequent; then
14837 # Use $CC to link under sequent, because it throws in some extra .o
14838 # files that make .init and .fini sections work.
14839 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14840 else
14841 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14842 fi
14843 hardcode_libdir_flag_spec_F77='-L$libdir'
14844 hardcode_direct_F77=yes
14845 hardcode_minus_L_F77=yes
14846 hardcode_shlibpath_var_F77=no
14847 ;;
14848
14849 sysv4)
14850 case $host_vendor in
14851 sni)
14852 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14853 hardcode_direct_F77=yes # is this really true???
14854 ;;
14855 siemens)
14856 ## LD is ld it makes a PLAMLIB
14857 ## CC just makes a GrossModule.
14858 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14859 reload_cmds_F77='$CC -r -o $output$reload_objs'
14860 hardcode_direct_F77=no
14861 ;;
14862 motorola)
14863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14865 ;;
14866 esac
14867 runpath_var='LD_RUN_PATH'
14868 hardcode_shlibpath_var_F77=no
14869 ;;
14870
14871 sysv4.3*)
14872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873 hardcode_shlibpath_var_F77=no
14874 export_dynamic_flag_spec_F77='-Bexport'
14875 ;;
14876
14877 sysv4*MP*)
14878 if test -d /usr/nec; then
14879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14880 hardcode_shlibpath_var_F77=no
14881 runpath_var=LD_RUN_PATH
14882 hardcode_runpath_var=yes
14883 ld_shlibs_F77=yes
14884 fi
14885 ;;
14886
14887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14888 no_undefined_flag_F77='${wl}-z,text'
14889 archive_cmds_need_lc_F77=no
14890 hardcode_shlibpath_var_F77=no
14891 runpath_var='LD_RUN_PATH'
14892
14893 if test "$GCC" = yes; then
14894 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14895 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14896 else
14897 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14898 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14899 fi
14900 ;;
14901
14902 sysv5* | sco3.2v5* | sco5v6*)
14903 # Note: We can NOT use -z defs as we might desire, because we do not
14904 # link with -lc, and that would cause any symbols used from libc to
14905 # always be unresolved, which means just about no library would
14906 # ever link correctly. If we're not using GNU ld we use -z text
14907 # though, which does catch some bad symbols but isn't as heavy-handed
14908 # as -z defs.
14909 no_undefined_flag_F77='${wl}-z,text'
14910 allow_undefined_flag_F77='${wl}-z,nodefs'
14911 archive_cmds_need_lc_F77=no
14912 hardcode_shlibpath_var_F77=no
14913 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14914 hardcode_libdir_separator_F77=':'
14915 link_all_deplibs_F77=yes
14916 export_dynamic_flag_spec_F77='${wl}-Bexport'
14917 runpath_var='LD_RUN_PATH'
14918
14919 if test "$GCC" = yes; then
14920 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14921 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14922 else
14923 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14925 fi
14926 ;;
14927
14928 uts4*)
14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14930 hardcode_libdir_flag_spec_F77='-L$libdir'
14931 hardcode_shlibpath_var_F77=no
14932 ;;
14933
14934 *)
14935 ld_shlibs_F77=no
14936 ;;
14937 esac
14938 fi
14939
14940 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14941 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14942 test "$ld_shlibs_F77" = no && can_build_shared=no
14943
14944 #
14945 # Do we need to explicitly link libc?
14946 #
14947 case "x$archive_cmds_need_lc_F77" in
14948 x|xyes)
14949 # Assume -lc should be added
14950 archive_cmds_need_lc_F77=yes
14951
14952 if test "$enable_shared" = yes && test "$GCC" = yes; then
14953 case $archive_cmds_F77 in
14954 *'~'*)
14955 # FIXME: we may have to deal with multi-command sequences.
14956 ;;
14957 '$CC '*)
14958 # Test whether the compiler implicitly links with -lc since on some
14959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14960 # to ld, don't add -lc before -lgcc.
14961 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14962 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14963 $rm conftest*
14964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14965
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } 2>conftest.err; then
14971 soname=conftest
14972 lib=conftest
14973 libobjs=conftest.$ac_objext
14974 deplibs=
14975 wl=$lt_prog_compiler_wl_F77
14976 pic_flag=$lt_prog_compiler_pic_F77
14977 compiler_flags=-v
14978 linker_flags=-v
14979 verstring=
14980 output_objdir=.
14981 libname=conftest
14982 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14983 allow_undefined_flag_F77=
14984 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14985 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }
14989 then
14990 archive_cmds_need_lc_F77=no
14991 else
14992 archive_cmds_need_lc_F77=yes
14993 fi
14994 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14995 else
14996 cat conftest.err 1>&5
14997 fi
14998 $rm conftest*
14999 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15000 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15001 ;;
15002 esac
15003 fi
15004 ;;
15005 esac
15006
15007 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15008 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15009 library_names_spec=
15010 libname_spec='lib$name'
15011 soname_spec=
15012 shrext_cmds=".so"
15013 postinstall_cmds=
15014 postuninstall_cmds=
15015 finish_cmds=
15016 finish_eval=
15017 shlibpath_var=
15018 shlibpath_overrides_runpath=unknown
15019 version_type=none
15020 dynamic_linker="$host_os ld.so"
15021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15022 if test "$GCC" = yes; then
15023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15024 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15025 # if the path contains ";" then we assume it to be the separator
15026 # otherwise default to the standard path separator (i.e. ":") - it is
15027 # assumed that no part of a normal pathname contains ";" but that should
15028 # okay in the real world where ";" in dirpaths is itself problematic.
15029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15030 else
15031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15032 fi
15033 else
15034 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15035 fi
15036 need_lib_prefix=unknown
15037 hardcode_into_libs=no
15038
15039 # when you set need_version to no, make sure it does not cause -set_version
15040 # flags to be left without arguments
15041 need_version=unknown
15042
15043 case $host_os in
15044 aix3*)
15045 version_type=linux
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15047 shlibpath_var=LIBPATH
15048
15049 # AIX 3 has no versioning support, so we append a major version to the name.
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 ;;
15052
15053 aix4* | aix5*)
15054 version_type=linux
15055 need_lib_prefix=no
15056 need_version=no
15057 hardcode_into_libs=yes
15058 if test "$host_cpu" = ia64; then
15059 # AIX 5 supports IA64
15060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 else
15063 # With GCC up to 2.95.x, collect2 would create an import file
15064 # for dependence libraries. The import file would start with
15065 # the line `#! .'. This would cause the generated library to
15066 # depend on `.', always an invalid library. This was fixed in
15067 # development snapshots of GCC prior to 3.0.
15068 case $host_os in
15069 aix4 | aix4.[01] | aix4.[01].*)
15070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15071 echo ' yes '
15072 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15073 :
15074 else
15075 can_build_shared=no
15076 fi
15077 ;;
15078 esac
15079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15080 # soname into executable. Probably we can add versioning support to
15081 # collect2, so additional links can be useful in future.
15082 if test "$aix_use_runtimelinking" = yes; then
15083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15084 # instead of lib<name>.a to let people know that these are not
15085 # typical AIX shared libraries.
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 else
15088 # We preserve .a as extension for shared libraries through AIX4.2
15089 # and later when we are not doing run time linking.
15090 library_names_spec='${libname}${release}.a $libname.a'
15091 soname_spec='${libname}${release}${shared_ext}$major'
15092 fi
15093 shlibpath_var=LIBPATH
15094 fi
15095 ;;
15096
15097 amigaos*)
15098 library_names_spec='$libname.ixlibrary $libname.a'
15099 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15100 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'
15101 ;;
15102
15103 beos*)
15104 library_names_spec='${libname}${shared_ext}'
15105 dynamic_linker="$host_os ld.so"
15106 shlibpath_var=LIBRARY_PATH
15107 ;;
15108
15109 bsdi[45]*)
15110 version_type=linux
15111 need_version=no
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15117 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15118 # the default ld.so.conf also contains /usr/contrib/lib and
15119 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15120 # libtool to hard-code these into programs
15121 ;;
15122
15123 cygwin* | mingw* | pw32*)
15124 version_type=windows
15125 shrext_cmds=".dll"
15126 need_version=no
15127 need_lib_prefix=no
15128
15129 case $GCC,$host_os in
15130 yes,cygwin* | yes,mingw* | yes,pw32*)
15131 library_names_spec='$libname.dll.a'
15132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15133 postinstall_cmds='base_file=`basename \${file}`~
15134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15135 dldir=$destdir/`dirname \$dlpath`~
15136 test -d \$dldir || mkdir -p \$dldir~
15137 $install_prog $dir/$dlname \$dldir/$dlname~
15138 chmod a+x \$dldir/$dlname'
15139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15140 dlpath=$dir/\$dldll~
15141 $rm \$dlpath'
15142 shlibpath_overrides_runpath=yes
15143
15144 case $host_os in
15145 cygwin*)
15146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15148 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15149 ;;
15150 mingw*)
15151 # MinGW DLLs use traditional 'lib' prefix
15152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15153 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15154 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15155 # It is most probably a Windows format PATH printed by
15156 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15157 # path with ; separators, and with drive letters. We can handle the
15158 # drive letters (cygwin fileutils understands them), so leave them,
15159 # especially as we might pass files found there to a mingw objdump,
15160 # which wouldn't understand a cygwinified path. Ahh.
15161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15162 else
15163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15164 fi
15165 ;;
15166 pw32*)
15167 # pw32 DLLs use 'pw' prefix rather than 'lib'
15168 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15169 ;;
15170 esac
15171 ;;
15172
15173 *)
15174 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15175 ;;
15176 esac
15177 dynamic_linker='Win32 ld.exe'
15178 # FIXME: first we should search . and the directory the executable is in
15179 shlibpath_var=PATH
15180 ;;
15181
15182 darwin* | rhapsody*)
15183 dynamic_linker="$host_os dyld"
15184 version_type=darwin
15185 need_lib_prefix=no
15186 need_version=no
15187 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15188 soname_spec='${libname}${release}${major}$shared_ext'
15189 shlibpath_overrides_runpath=yes
15190 shlibpath_var=DYLD_LIBRARY_PATH
15191 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15192 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15193 if test "$GCC" = yes; then
15194 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"`
15195 else
15196 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15197 fi
15198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15199 ;;
15200
15201 dgux*)
15202 version_type=linux
15203 need_lib_prefix=no
15204 need_version=no
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 ;;
15209
15210 freebsd1*)
15211 dynamic_linker=no
15212 ;;
15213
15214 freebsd* | dragonfly*)
15215 # DragonFly does not have aout. When/if they implement a new
15216 # versioning mechanism, adjust this.
15217 if test -x /usr/bin/objformat; then
15218 objformat=`/usr/bin/objformat`
15219 else
15220 case $host_os in
15221 freebsd[123]*) objformat=aout ;;
15222 *) objformat=elf ;;
15223 esac
15224 fi
15225 version_type=freebsd-$objformat
15226 case $version_type in
15227 freebsd-elf*)
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15229 need_version=no
15230 need_lib_prefix=no
15231 ;;
15232 freebsd-*)
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15234 need_version=yes
15235 ;;
15236 esac
15237 shlibpath_var=LD_LIBRARY_PATH
15238 case $host_os in
15239 freebsd2*)
15240 shlibpath_overrides_runpath=yes
15241 ;;
15242 freebsd3.[01]* | freebsdelf3.[01]*)
15243 shlibpath_overrides_runpath=yes
15244 hardcode_into_libs=yes
15245 ;;
15246 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15247 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15248 shlibpath_overrides_runpath=no
15249 hardcode_into_libs=yes
15250 ;;
15251 freebsd*) # from 4.6 on
15252 shlibpath_overrides_runpath=yes
15253 hardcode_into_libs=yes
15254 ;;
15255 esac
15256 ;;
15257
15258 gnu*)
15259 version_type=linux
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 hardcode_into_libs=yes
15266 ;;
15267
15268 hpux9* | hpux10* | hpux11*)
15269 # Give a soname corresponding to the major version so that dld.sl refuses to
15270 # link against other versions.
15271 version_type=sunos
15272 need_lib_prefix=no
15273 need_version=no
15274 case $host_cpu in
15275 ia64*)
15276 shrext_cmds='.so'
15277 hardcode_into_libs=yes
15278 dynamic_linker="$host_os dld.so"
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 if test "X$HPUX_IA64_MODE" = X32; then
15284 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15285 else
15286 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15287 fi
15288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15289 ;;
15290 hppa*64*)
15291 shrext_cmds='.sl'
15292 hardcode_into_libs=yes
15293 dynamic_linker="$host_os dld.sl"
15294 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15300 ;;
15301 *)
15302 shrext_cmds='.sl'
15303 dynamic_linker="$host_os dld.sl"
15304 shlibpath_var=SHLIB_PATH
15305 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 ;;
15309 esac
15310 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15311 postinstall_cmds='chmod 555 $lib'
15312 ;;
15313
15314 interix3*)
15315 version_type=linux
15316 need_lib_prefix=no
15317 need_version=no
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 shlibpath_overrides_runpath=no
15323 hardcode_into_libs=yes
15324 ;;
15325
15326 irix5* | irix6* | nonstopux*)
15327 case $host_os in
15328 nonstopux*) version_type=nonstopux ;;
15329 *)
15330 if test "$lt_cv_prog_gnu_ld" = yes; then
15331 version_type=linux
15332 else
15333 version_type=irix
15334 fi ;;
15335 esac
15336 need_lib_prefix=no
15337 need_version=no
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15340 case $host_os in
15341 irix5* | nonstopux*)
15342 libsuff= shlibsuff=
15343 ;;
15344 *)
15345 case $LD in # libtool.m4 will add one of these switches to LD
15346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15347 libsuff= shlibsuff= libmagic=32-bit;;
15348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15349 libsuff=32 shlibsuff=N32 libmagic=N32;;
15350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15352 *) libsuff= shlibsuff= libmagic=never-match;;
15353 esac
15354 ;;
15355 esac
15356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15357 shlibpath_overrides_runpath=no
15358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15360 hardcode_into_libs=yes
15361 ;;
15362
15363 # No shared lib support for Linux oldld, aout, or coff.
15364 linux*oldld* | linux*aout* | linux*coff*)
15365 dynamic_linker=no
15366 ;;
15367
15368 # This must be Linux ELF.
15369 linux* | k*bsd*-gnu)
15370 version_type=linux
15371 need_lib_prefix=no
15372 need_version=no
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 soname_spec='${libname}${release}${shared_ext}$major'
15375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15376 shlibpath_var=LD_LIBRARY_PATH
15377 shlibpath_overrides_runpath=no
15378 # This implies no fast_install, which is unacceptable.
15379 # Some rework will be needed to allow for fast_install
15380 # before this can be enabled.
15381 hardcode_into_libs=yes
15382
15383 # Append ld.so.conf contents to the search path
15384 if test -f /etc/ld.so.conf; then
15385 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' ' '`
15386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15387 fi
15388
15389 # We used to test for /lib/ld.so.1 and disable shared libraries on
15390 # powerpc, because MkLinux only supported shared libraries with the
15391 # GNU dynamic linker. Since this was broken with cross compilers,
15392 # most powerpc-linux boxes support dynamic linking these days and
15393 # people can always --disable-shared, the test was removed, and we
15394 # assume the GNU/Linux dynamic linker is in use.
15395 dynamic_linker='GNU/Linux ld.so'
15396 ;;
15397
15398 netbsdelf*-gnu)
15399 version_type=linux
15400 need_lib_prefix=no
15401 need_version=no
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15407 dynamic_linker='NetBSD ld.elf_so'
15408 ;;
15409
15410 netbsd*)
15411 version_type=sunos
15412 need_lib_prefix=no
15413 need_version=no
15414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15417 dynamic_linker='NetBSD (a.out) ld.so'
15418 else
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 dynamic_linker='NetBSD ld.elf_so'
15422 fi
15423 shlibpath_var=LD_LIBRARY_PATH
15424 shlibpath_overrides_runpath=yes
15425 hardcode_into_libs=yes
15426 ;;
15427
15428 newsos6)
15429 version_type=linux
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes
15433 ;;
15434
15435 nto-qnx*)
15436 version_type=linux
15437 need_lib_prefix=no
15438 need_version=no
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 shlibpath_overrides_runpath=yes
15443 ;;
15444
15445 openbsd*)
15446 version_type=sunos
15447 sys_lib_dlsearch_path_spec="/usr/lib"
15448 need_lib_prefix=no
15449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15450 case $host_os in
15451 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15452 *) need_version=no ;;
15453 esac
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15456 shlibpath_var=LD_LIBRARY_PATH
15457 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15458 case $host_os in
15459 openbsd2.[89] | openbsd2.[89].*)
15460 shlibpath_overrides_runpath=no
15461 ;;
15462 *)
15463 shlibpath_overrides_runpath=yes
15464 ;;
15465 esac
15466 else
15467 shlibpath_overrides_runpath=yes
15468 fi
15469 ;;
15470
15471 os2*)
15472 libname_spec='$name'
15473 shrext_cmds=".dll"
15474 need_lib_prefix=no
15475 library_names_spec='$libname${shared_ext} $libname.a'
15476 dynamic_linker='OS/2 ld.exe'
15477 shlibpath_var=LIBPATH
15478 ;;
15479
15480 osf3* | osf4* | osf5*)
15481 version_type=osf
15482 need_lib_prefix=no
15483 need_version=no
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15488 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15489 ;;
15490
15491 solaris*)
15492 version_type=linux
15493 need_lib_prefix=no
15494 need_version=no
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 shlibpath_overrides_runpath=yes
15499 hardcode_into_libs=yes
15500 # ldd complains unless libraries are executable
15501 postinstall_cmds='chmod +x $lib'
15502 ;;
15503
15504 sunos4*)
15505 version_type=sunos
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=yes
15510 if test "$with_gnu_ld" = yes; then
15511 need_lib_prefix=no
15512 fi
15513 need_version=yes
15514 ;;
15515
15516 sysv4 | sysv4.3*)
15517 version_type=linux
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 case $host_vendor in
15522 sni)
15523 shlibpath_overrides_runpath=no
15524 need_lib_prefix=no
15525 export_dynamic_flag_spec='${wl}-Blargedynsym'
15526 runpath_var=LD_RUN_PATH
15527 ;;
15528 siemens)
15529 need_lib_prefix=no
15530 ;;
15531 motorola)
15532 need_lib_prefix=no
15533 need_version=no
15534 shlibpath_overrides_runpath=no
15535 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15536 ;;
15537 esac
15538 ;;
15539
15540 sysv4*MP*)
15541 if test -d /usr/nec ;then
15542 version_type=linux
15543 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15544 soname_spec='$libname${shared_ext}.$major'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 fi
15547 ;;
15548
15549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15550 version_type=freebsd-elf
15551 need_lib_prefix=no
15552 need_version=no
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 hardcode_into_libs=yes
15557 if test "$with_gnu_ld" = yes; then
15558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15559 shlibpath_overrides_runpath=no
15560 else
15561 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15562 shlibpath_overrides_runpath=yes
15563 case $host_os in
15564 sco3.2v5*)
15565 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15566 ;;
15567 esac
15568 fi
15569 sys_lib_dlsearch_path_spec='/usr/lib'
15570 ;;
15571
15572 uts4*)
15573 version_type=linux
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 ;;
15578
15579 *)
15580 dynamic_linker=no
15581 ;;
15582 esac
15583 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15584 echo "${ECHO_T}$dynamic_linker" >&6; }
15585 test "$dynamic_linker" = no && can_build_shared=no
15586
15587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15588 if test "$GCC" = yes; then
15589 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15590 fi
15591
15592 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15593 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15594 hardcode_action_F77=
15595 if test -n "$hardcode_libdir_flag_spec_F77" || \
15596 test -n "$runpath_var_F77" || \
15597 test "X$hardcode_automatic_F77" = "Xyes" ; then
15598
15599 # We can hardcode non-existant directories.
15600 if test "$hardcode_direct_F77" != no &&
15601 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15602 # have to relink, otherwise we might link with an installed library
15603 # when we should be linking with a yet-to-be-installed one
15604 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15605 test "$hardcode_minus_L_F77" != no; then
15606 # Linking always hardcodes the temporary library directory.
15607 hardcode_action_F77=relink
15608 else
15609 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15610 hardcode_action_F77=immediate
15611 fi
15612 else
15613 # We cannot hardcode anything, or else we can only hardcode existing
15614 # directories.
15615 hardcode_action_F77=unsupported
15616 fi
15617 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15618 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15619
15620 if test "$hardcode_action_F77" = relink; then
15621 # Fast installation is not supported
15622 enable_fast_install=no
15623 elif test "$shlibpath_overrides_runpath" = yes ||
15624 test "$enable_shared" = no; then
15625 # Fast installation is not necessary
15626 enable_fast_install=needless
15627 fi
15628
15629
15630 # The else clause should only fire when bootstrapping the
15631 # libtool distribution, otherwise you forgot to ship ltmain.sh
15632 # with your package, and you will get complaints that there are
15633 # no rules to generate ltmain.sh.
15634 if test -f "$ltmain"; then
15635 # See if we are running on zsh, and set the options which allow our commands through
15636 # without removal of \ escapes.
15637 if test -n "${ZSH_VERSION+set}" ; then
15638 setopt NO_GLOB_SUBST
15639 fi
15640 # Now quote all the things that may contain metacharacters while being
15641 # careful not to overquote the AC_SUBSTed values. We take copies of the
15642 # variables and quote the copies for generation of the libtool script.
15643 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15644 SED SHELL STRIP \
15645 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15646 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15647 deplibs_check_method reload_flag reload_cmds need_locks \
15648 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15649 lt_cv_sys_global_symbol_to_c_name_address \
15650 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15651 old_postinstall_cmds old_postuninstall_cmds \
15652 compiler_F77 \
15653 CC_F77 \
15654 LD_F77 \
15655 lt_prog_compiler_wl_F77 \
15656 lt_prog_compiler_pic_F77 \
15657 lt_prog_compiler_static_F77 \
15658 lt_prog_compiler_no_builtin_flag_F77 \
15659 export_dynamic_flag_spec_F77 \
15660 thread_safe_flag_spec_F77 \
15661 whole_archive_flag_spec_F77 \
15662 enable_shared_with_static_runtimes_F77 \
15663 old_archive_cmds_F77 \
15664 old_archive_from_new_cmds_F77 \
15665 predep_objects_F77 \
15666 postdep_objects_F77 \
15667 predeps_F77 \
15668 postdeps_F77 \
15669 compiler_lib_search_path_F77 \
15670 archive_cmds_F77 \
15671 archive_expsym_cmds_F77 \
15672 postinstall_cmds_F77 \
15673 postuninstall_cmds_F77 \
15674 old_archive_from_expsyms_cmds_F77 \
15675 allow_undefined_flag_F77 \
15676 no_undefined_flag_F77 \
15677 export_symbols_cmds_F77 \
15678 hardcode_libdir_flag_spec_F77 \
15679 hardcode_libdir_flag_spec_ld_F77 \
15680 hardcode_libdir_separator_F77 \
15681 hardcode_automatic_F77 \
15682 module_cmds_F77 \
15683 module_expsym_cmds_F77 \
15684 lt_cv_prog_compiler_c_o_F77 \
15685 exclude_expsyms_F77 \
15686 include_expsyms_F77; do
15687
15688 case $var in
15689 old_archive_cmds_F77 | \
15690 old_archive_from_new_cmds_F77 | \
15691 archive_cmds_F77 | \
15692 archive_expsym_cmds_F77 | \
15693 module_cmds_F77 | \
15694 module_expsym_cmds_F77 | \
15695 old_archive_from_expsyms_cmds_F77 | \
15696 export_symbols_cmds_F77 | \
15697 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15698 postinstall_cmds | postuninstall_cmds | \
15699 old_postinstall_cmds | old_postuninstall_cmds | \
15700 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15701 # Double-quote double-evaled strings.
15702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15703 ;;
15704 *)
15705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15706 ;;
15707 esac
15708 done
15709
15710 case $lt_echo in
15711 *'\$0 --fallback-echo"')
15712 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15713 ;;
15714 esac
15715
15716 cfgfile="$ofile"
15717
15718 cat <<__EOF__ >> "$cfgfile"
15719 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15720
15721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15722
15723 # Shell to use when invoking shell scripts.
15724 SHELL=$lt_SHELL
15725
15726 # Whether or not to build shared libraries.
15727 build_libtool_libs=$enable_shared
15728
15729 # Whether or not to build static libraries.
15730 build_old_libs=$enable_static
15731
15732 # Whether or not to add -lc for building shared libraries.
15733 build_libtool_need_lc=$archive_cmds_need_lc_F77
15734
15735 # Whether or not to disallow shared libs when runtime libs are static
15736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15737
15738 # Whether or not to optimize for fast installation.
15739 fast_install=$enable_fast_install
15740
15741 # The host system.
15742 host_alias=$host_alias
15743 host=$host
15744 host_os=$host_os
15745
15746 # The build system.
15747 build_alias=$build_alias
15748 build=$build
15749 build_os=$build_os
15750
15751 # An echo program that does not interpret backslashes.
15752 echo=$lt_echo
15753
15754 # The archiver.
15755 AR=$lt_AR
15756 AR_FLAGS=$lt_AR_FLAGS
15757
15758 # A C compiler.
15759 LTCC=$lt_LTCC
15760
15761 # LTCC compiler flags.
15762 LTCFLAGS=$lt_LTCFLAGS
15763
15764 # A language-specific compiler.
15765 CC=$lt_compiler_F77
15766
15767 # Is the compiler the GNU C compiler?
15768 with_gcc=$GCC_F77
15769
15770 # An ERE matcher.
15771 EGREP=$lt_EGREP
15772
15773 # The linker used to build libraries.
15774 LD=$lt_LD_F77
15775
15776 # Whether we need hard or soft links.
15777 LN_S=$lt_LN_S
15778
15779 # A BSD-compatible nm program.
15780 NM=$lt_NM
15781
15782 # A symbol stripping program
15783 STRIP=$lt_STRIP
15784
15785 # Used to examine libraries when file_magic_cmd begins "file"
15786 MAGIC_CMD=$MAGIC_CMD
15787
15788 # Used on cygwin: DLL creation program.
15789 DLLTOOL="$DLLTOOL"
15790
15791 # Used on cygwin: object dumper.
15792 OBJDUMP="$OBJDUMP"
15793
15794 # Used on cygwin: assembler.
15795 AS="$AS"
15796
15797 # The name of the directory that contains temporary libtool files.
15798 objdir=$objdir
15799
15800 # How to create reloadable object files.
15801 reload_flag=$lt_reload_flag
15802 reload_cmds=$lt_reload_cmds
15803
15804 # How to pass a linker flag through the compiler.
15805 wl=$lt_lt_prog_compiler_wl_F77
15806
15807 # Object file suffix (normally "o").
15808 objext="$ac_objext"
15809
15810 # Old archive suffix (normally "a").
15811 libext="$libext"
15812
15813 # Shared library suffix (normally ".so").
15814 shrext_cmds='$shrext_cmds'
15815
15816 # Executable file suffix (normally "").
15817 exeext="$exeext"
15818
15819 # Additional compiler flags for building library objects.
15820 pic_flag=$lt_lt_prog_compiler_pic_F77
15821 pic_mode=$pic_mode
15822
15823 # What is the maximum length of a command?
15824 max_cmd_len=$lt_cv_sys_max_cmd_len
15825
15826 # Does compiler simultaneously support -c and -o options?
15827 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15828
15829 # Must we lock files when doing compilation?
15830 need_locks=$lt_need_locks
15831
15832 # Do we need the lib prefix for modules?
15833 need_lib_prefix=$need_lib_prefix
15834
15835 # Do we need a version for libraries?
15836 need_version=$need_version
15837
15838 # Whether dlopen is supported.
15839 dlopen_support=$enable_dlopen
15840
15841 # Whether dlopen of programs is supported.
15842 dlopen_self=$enable_dlopen_self
15843
15844 # Whether dlopen of statically linked programs is supported.
15845 dlopen_self_static=$enable_dlopen_self_static
15846
15847 # Compiler flag to prevent dynamic linking.
15848 link_static_flag=$lt_lt_prog_compiler_static_F77
15849
15850 # Compiler flag to turn off builtin functions.
15851 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15852
15853 # Compiler flag to allow reflexive dlopens.
15854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15855
15856 # Compiler flag to generate shared objects directly from archives.
15857 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15858
15859 # Compiler flag to generate thread-safe objects.
15860 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15861
15862 # Library versioning type.
15863 version_type=$version_type
15864
15865 # Format of library name prefix.
15866 libname_spec=$lt_libname_spec
15867
15868 # List of archive names. First name is the real one, the rest are links.
15869 # The last name is the one that the linker finds with -lNAME.
15870 library_names_spec=$lt_library_names_spec
15871
15872 # The coded name of the library, if different from the real name.
15873 soname_spec=$lt_soname_spec
15874
15875 # Commands used to build and install an old-style archive.
15876 RANLIB=$lt_RANLIB
15877 old_archive_cmds=$lt_old_archive_cmds_F77
15878 old_postinstall_cmds=$lt_old_postinstall_cmds
15879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15880
15881 # Create an old-style archive from a shared archive.
15882 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15883
15884 # Create a temporary old-style archive to link instead of a shared archive.
15885 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15886
15887 # Commands used to build and install a shared archive.
15888 archive_cmds=$lt_archive_cmds_F77
15889 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15890 postinstall_cmds=$lt_postinstall_cmds
15891 postuninstall_cmds=$lt_postuninstall_cmds
15892
15893 # Commands used to build a loadable module (assumed same as above if empty)
15894 module_cmds=$lt_module_cmds_F77
15895 module_expsym_cmds=$lt_module_expsym_cmds_F77
15896
15897 # Commands to strip libraries.
15898 old_striplib=$lt_old_striplib
15899 striplib=$lt_striplib
15900
15901 # Dependencies to place before the objects being linked to create a
15902 # shared library.
15903 predep_objects=$lt_predep_objects_F77
15904
15905 # Dependencies to place after the objects being linked to create a
15906 # shared library.
15907 postdep_objects=$lt_postdep_objects_F77
15908
15909 # Dependencies to place before the objects being linked to create a
15910 # shared library.
15911 predeps=$lt_predeps_F77
15912
15913 # Dependencies to place after the objects being linked to create a
15914 # shared library.
15915 postdeps=$lt_postdeps_F77
15916
15917 # The library search path used internally by the compiler when linking
15918 # a shared library.
15919 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15920
15921 # Method to check whether dependent libraries are shared objects.
15922 deplibs_check_method=$lt_deplibs_check_method
15923
15924 # Command to use when deplibs_check_method == file_magic.
15925 file_magic_cmd=$lt_file_magic_cmd
15926
15927 # Flag that allows shared libraries with undefined symbols to be built.
15928 allow_undefined_flag=$lt_allow_undefined_flag_F77
15929
15930 # Flag that forces no undefined symbols.
15931 no_undefined_flag=$lt_no_undefined_flag_F77
15932
15933 # Commands used to finish a libtool library installation in a directory.
15934 finish_cmds=$lt_finish_cmds
15935
15936 # Same as above, but a single script fragment to be evaled but not shown.
15937 finish_eval=$lt_finish_eval
15938
15939 # Take the output of nm and produce a listing of raw symbols and C names.
15940 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15941
15942 # Transform the output of nm in a proper C declaration
15943 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15944
15945 # Transform the output of nm in a C name address pair
15946 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15947
15948 # This is the shared library runtime path variable.
15949 runpath_var=$runpath_var
15950
15951 # This is the shared library path variable.
15952 shlibpath_var=$shlibpath_var
15953
15954 # Is shlibpath searched before the hard-coded library search path?
15955 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15956
15957 # How to hardcode a shared library path into an executable.
15958 hardcode_action=$hardcode_action_F77
15959
15960 # Whether we should hardcode library paths into libraries.
15961 hardcode_into_libs=$hardcode_into_libs
15962
15963 # Flag to hardcode \$libdir into a binary during linking.
15964 # This must work even if \$libdir does not exist.
15965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15966
15967 # If ld is used when linking, flag to hardcode \$libdir into
15968 # a binary during linking. This must work even if \$libdir does
15969 # not exist.
15970 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15971
15972 # Whether we need a single -rpath flag with a separated argument.
15973 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15974
15975 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15976 # resulting binary.
15977 hardcode_direct=$hardcode_direct_F77
15978
15979 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15980 # resulting binary.
15981 hardcode_minus_L=$hardcode_minus_L_F77
15982
15983 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15984 # the resulting binary.
15985 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15986
15987 # Set to yes if building a shared library automatically hardcodes DIR into the library
15988 # and all subsequent libraries and executables linked against it.
15989 hardcode_automatic=$hardcode_automatic_F77
15990
15991 # Variables whose values should be saved in libtool wrapper scripts and
15992 # restored at relink time.
15993 variables_saved_for_relink="$variables_saved_for_relink"
15994
15995 # Whether libtool must link a program against all its dependency libraries.
15996 link_all_deplibs=$link_all_deplibs_F77
15997
15998 # Compile-time system search path for libraries
15999 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16000
16001 # Run-time system search path for libraries
16002 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16003
16004 # Fix the shell variable \$srcfile for the compiler.
16005 fix_srcfile_path="$fix_srcfile_path_F77"
16006
16007 # Set to yes if exported symbols are required.
16008 always_export_symbols=$always_export_symbols_F77
16009
16010 # The commands to list exported symbols.
16011 export_symbols_cmds=$lt_export_symbols_cmds_F77
16012
16013 # The commands to extract the exported symbol list from a shared archive.
16014 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16015
16016 # Symbols that should not be listed in the preloaded symbols.
16017 exclude_expsyms=$lt_exclude_expsyms_F77
16018
16019 # Symbols that must always be exported.
16020 include_expsyms=$lt_include_expsyms_F77
16021
16022 # ### END LIBTOOL TAG CONFIG: $tagname
16023
16024 __EOF__
16025
16026
16027 else
16028 # If there is no Makefile yet, we rely on a make rule to execute
16029 # `config.status --recheck' to rerun these tests and create the
16030 # libtool script then.
16031 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16032 if test -f "$ltmain_in"; then
16033 test -f Makefile && make "$ltmain"
16034 fi
16035 fi
16036
16037
16038 ac_ext=c
16039 ac_cpp='$CPP $CPPFLAGS'
16040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16043
16044 CC="$lt_save_CC"
16045
16046 else
16047 tagname=""
16048 fi
16049 ;;
16050
16051 GCJ)
16052 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16053
16054
16055 # Source file extension for Java test sources.
16056 ac_ext=java
16057
16058 # Object file extension for compiled Java test sources.
16059 objext=o
16060 objext_GCJ=$objext
16061
16062 # Code to be used in simple compile tests
16063 lt_simple_compile_test_code="class foo {}\n"
16064
16065 # Code to be used in simple link tests
16066 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16067
16068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16069
16070 # If no C compiler was specified, use CC.
16071 LTCC=${LTCC-"$CC"}
16072
16073 # If no C compiler flags were specified, use CFLAGS.
16074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16075
16076 # Allow CC to be a program name with arguments.
16077 compiler=$CC
16078
16079
16080 # save warnings/boilerplate of simple test code
16081 ac_outfile=conftest.$ac_objext
16082 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16084 _lt_compiler_boilerplate=`cat conftest.err`
16085 $rm conftest*
16086
16087 ac_outfile=conftest.$ac_objext
16088 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16090 _lt_linker_boilerplate=`cat conftest.err`
16091 $rm conftest*
16092
16093
16094 # Allow CC to be a program name with arguments.
16095 lt_save_CC="$CC"
16096 CC=${GCJ-"gcj"}
16097 compiler=$CC
16098 compiler_GCJ=$CC
16099 for cc_temp in $compiler""; do
16100 case $cc_temp in
16101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16103 \-*) ;;
16104 *) break;;
16105 esac
16106 done
16107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16108
16109
16110 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16111 archive_cmds_need_lc_GCJ=no
16112
16113 old_archive_cmds_GCJ=$old_archive_cmds
16114
16115
16116 lt_prog_compiler_no_builtin_flag_GCJ=
16117
16118 if test "$GCC" = yes; then
16119 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16120
16121
16122 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16123 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16124 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127 lt_cv_prog_compiler_rtti_exceptions=no
16128 ac_outfile=conftest.$ac_objext
16129 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16130 lt_compiler_flag="-fno-rtti -fno-exceptions"
16131 # Insert the option either (1) after the last *FLAGS variable, or
16132 # (2) before a word containing "conftest.", or (3) at the end.
16133 # Note that $ac_compile itself does not contain backslashes and begins
16134 # with a dollar sign (not a hyphen), so the echo should work correctly.
16135 # The option is referenced via a variable to avoid confusing sed.
16136 lt_compile=`echo "$ac_compile" | $SED \
16137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16139 -e 's:$: $lt_compiler_flag:'`
16140 (eval echo "\"\$as_me:16140: $lt_compile\"" >&5)
16141 (eval "$lt_compile" 2>conftest.err)
16142 ac_status=$?
16143 cat conftest.err >&5
16144 echo "$as_me:16144: \$? = $ac_status" >&5
16145 if (exit $ac_status) && test -s "$ac_outfile"; then
16146 # The compiler can only warn and ignore the option if not recognized
16147 # So say no if there are warnings other than the usual output.
16148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16151 lt_cv_prog_compiler_rtti_exceptions=yes
16152 fi
16153 fi
16154 $rm conftest*
16155
16156 fi
16157 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16158 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16159
16160 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16161 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16162 else
16163 :
16164 fi
16165
16166 fi
16167
16168 lt_prog_compiler_wl_GCJ=
16169 lt_prog_compiler_pic_GCJ=
16170 lt_prog_compiler_static_GCJ=
16171
16172 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16174
16175 if test "$GCC" = yes; then
16176 lt_prog_compiler_wl_GCJ='-Wl,'
16177 lt_prog_compiler_static_GCJ='-static'
16178
16179 case $host_os in
16180 aix*)
16181 # All AIX code is PIC.
16182 if test "$host_cpu" = ia64; then
16183 # AIX 5 now supports IA64 processor
16184 lt_prog_compiler_static_GCJ='-Bstatic'
16185 fi
16186 ;;
16187
16188 amigaos*)
16189 # FIXME: we need at least 68020 code to build shared libraries, but
16190 # adding the `-m68020' flag to GCC prevents building anything better,
16191 # like `-m68040'.
16192 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16193 ;;
16194
16195 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16196 # PIC is the default for these OSes.
16197 ;;
16198
16199 mingw* | pw32* | os2*)
16200 # This hack is so that the source file can tell whether it is being
16201 # built for inclusion in a dll (and should export symbols for example).
16202 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16203 ;;
16204
16205 darwin* | rhapsody*)
16206 # PIC is the default on this platform
16207 # Common symbols not allowed in MH_DYLIB files
16208 lt_prog_compiler_pic_GCJ='-fno-common'
16209 ;;
16210
16211 interix3*)
16212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16213 # Instead, we relocate shared libraries at runtime.
16214 ;;
16215
16216 msdosdjgpp*)
16217 # Just because we use GCC doesn't mean we suddenly get shared libraries
16218 # on systems that don't support them.
16219 lt_prog_compiler_can_build_shared_GCJ=no
16220 enable_shared=no
16221 ;;
16222
16223 sysv4*MP*)
16224 if test -d /usr/nec; then
16225 lt_prog_compiler_pic_GCJ=-Kconform_pic
16226 fi
16227 ;;
16228
16229 hpux*)
16230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16231 # not for PA HP-UX.
16232 case $host_cpu in
16233 hppa*64*|ia64*)
16234 # +Z the default
16235 ;;
16236 *)
16237 lt_prog_compiler_pic_GCJ='-fPIC'
16238 ;;
16239 esac
16240 ;;
16241
16242 *)
16243 lt_prog_compiler_pic_GCJ='-fPIC'
16244 ;;
16245 esac
16246 else
16247 # PORTME Check for flag to pass linker flags through the system compiler.
16248 case $host_os in
16249 aix*)
16250 lt_prog_compiler_wl_GCJ='-Wl,'
16251 if test "$host_cpu" = ia64; then
16252 # AIX 5 now supports IA64 processor
16253 lt_prog_compiler_static_GCJ='-Bstatic'
16254 else
16255 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16256 fi
16257 ;;
16258 darwin*)
16259 # PIC is the default on this platform
16260 # Common symbols not allowed in MH_DYLIB files
16261 case $cc_basename in
16262 xlc*)
16263 lt_prog_compiler_pic_GCJ='-qnocommon'
16264 lt_prog_compiler_wl_GCJ='-Wl,'
16265 ;;
16266 esac
16267 ;;
16268
16269 mingw* | pw32* | os2*)
16270 # This hack is so that the source file can tell whether it is being
16271 # built for inclusion in a dll (and should export symbols for example).
16272 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16273 ;;
16274
16275 hpux9* | hpux10* | hpux11*)
16276 lt_prog_compiler_wl_GCJ='-Wl,'
16277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16278 # not for PA HP-UX.
16279 case $host_cpu in
16280 hppa*64*|ia64*)
16281 # +Z the default
16282 ;;
16283 *)
16284 lt_prog_compiler_pic_GCJ='+Z'
16285 ;;
16286 esac
16287 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16288 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16289 ;;
16290
16291 irix5* | irix6* | nonstopux*)
16292 lt_prog_compiler_wl_GCJ='-Wl,'
16293 # PIC (with -KPIC) is the default.
16294 lt_prog_compiler_static_GCJ='-non_shared'
16295 ;;
16296
16297 newsos6)
16298 lt_prog_compiler_pic_GCJ='-KPIC'
16299 lt_prog_compiler_static_GCJ='-Bstatic'
16300 ;;
16301
16302 linux* | k*bsd*-gnu)
16303 case $cc_basename in
16304 icc* | ecc*)
16305 lt_prog_compiler_wl_GCJ='-Wl,'
16306 lt_prog_compiler_pic_GCJ='-KPIC'
16307 lt_prog_compiler_static_GCJ='-static'
16308 ;;
16309 pgcc* | pgf77* | pgf90* | pgf95*)
16310 # Portland Group compilers (*not* the Pentium gcc compiler,
16311 # which looks to be a dead project)
16312 lt_prog_compiler_wl_GCJ='-Wl,'
16313 lt_prog_compiler_pic_GCJ='-fpic'
16314 lt_prog_compiler_static_GCJ='-Bstatic'
16315 ;;
16316 ccc*)
16317 lt_prog_compiler_wl_GCJ='-Wl,'
16318 # All Alpha code is PIC.
16319 lt_prog_compiler_static_GCJ='-non_shared'
16320 ;;
16321 esac
16322 ;;
16323
16324 osf3* | osf4* | osf5*)
16325 lt_prog_compiler_wl_GCJ='-Wl,'
16326 # All OSF/1 code is PIC.
16327 lt_prog_compiler_static_GCJ='-non_shared'
16328 ;;
16329
16330 solaris*)
16331 lt_prog_compiler_pic_GCJ='-KPIC'
16332 lt_prog_compiler_static_GCJ='-Bstatic'
16333 case $cc_basename in
16334 f77* | f90* | f95*)
16335 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16336 *)
16337 lt_prog_compiler_wl_GCJ='-Wl,';;
16338 esac
16339 ;;
16340
16341 sunos4*)
16342 lt_prog_compiler_wl_GCJ='-Qoption ld '
16343 lt_prog_compiler_pic_GCJ='-PIC'
16344 lt_prog_compiler_static_GCJ='-Bstatic'
16345 ;;
16346
16347 sysv4 | sysv4.2uw2* | sysv4.3*)
16348 lt_prog_compiler_wl_GCJ='-Wl,'
16349 lt_prog_compiler_pic_GCJ='-KPIC'
16350 lt_prog_compiler_static_GCJ='-Bstatic'
16351 ;;
16352
16353 sysv4*MP*)
16354 if test -d /usr/nec ;then
16355 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16356 lt_prog_compiler_static_GCJ='-Bstatic'
16357 fi
16358 ;;
16359
16360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16361 lt_prog_compiler_wl_GCJ='-Wl,'
16362 lt_prog_compiler_pic_GCJ='-KPIC'
16363 lt_prog_compiler_static_GCJ='-Bstatic'
16364 ;;
16365
16366 unicos*)
16367 lt_prog_compiler_wl_GCJ='-Wl,'
16368 lt_prog_compiler_can_build_shared_GCJ=no
16369 ;;
16370
16371 uts4*)
16372 lt_prog_compiler_pic_GCJ='-pic'
16373 lt_prog_compiler_static_GCJ='-Bstatic'
16374 ;;
16375
16376 *)
16377 lt_prog_compiler_can_build_shared_GCJ=no
16378 ;;
16379 esac
16380 fi
16381
16382 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16383 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16384
16385 #
16386 # Check to make sure the PIC flag actually works.
16387 #
16388 if test -n "$lt_prog_compiler_pic_GCJ"; then
16389
16390 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16391 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16392 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395 lt_prog_compiler_pic_works_GCJ=no
16396 ac_outfile=conftest.$ac_objext
16397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16398 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16399 # Insert the option either (1) after the last *FLAGS variable, or
16400 # (2) before a word containing "conftest.", or (3) at the end.
16401 # Note that $ac_compile itself does not contain backslashes and begins
16402 # with a dollar sign (not a hyphen), so the echo should work correctly.
16403 # The option is referenced via a variable to avoid confusing sed.
16404 lt_compile=`echo "$ac_compile" | $SED \
16405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16407 -e 's:$: $lt_compiler_flag:'`
16408 (eval echo "\"\$as_me:16408: $lt_compile\"" >&5)
16409 (eval "$lt_compile" 2>conftest.err)
16410 ac_status=$?
16411 cat conftest.err >&5
16412 echo "$as_me:16412: \$? = $ac_status" >&5
16413 if (exit $ac_status) && test -s "$ac_outfile"; then
16414 # The compiler can only warn and ignore the option if not recognized
16415 # So say no if there are warnings other than the usual output.
16416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16419 lt_prog_compiler_pic_works_GCJ=yes
16420 fi
16421 fi
16422 $rm conftest*
16423
16424 fi
16425 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16426 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16427
16428 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16429 case $lt_prog_compiler_pic_GCJ in
16430 "" | " "*) ;;
16431 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16432 esac
16433 else
16434 lt_prog_compiler_pic_GCJ=
16435 lt_prog_compiler_can_build_shared_GCJ=no
16436 fi
16437
16438 fi
16439 case $host_os in
16440 # For platforms which do not support PIC, -DPIC is meaningless:
16441 *djgpp*)
16442 lt_prog_compiler_pic_GCJ=
16443 ;;
16444 *)
16445 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16446 ;;
16447 esac
16448
16449 #
16450 # Check to make sure the static flag actually works.
16451 #
16452 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16453 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16454 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16455 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458 lt_prog_compiler_static_works_GCJ=no
16459 save_LDFLAGS="$LDFLAGS"
16460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16461 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16463 # The linker can only warn and ignore the option if not recognized
16464 # So say no if there are warnings
16465 if test -s conftest.err; then
16466 # Append any errors to the config.log.
16467 cat conftest.err 1>&5
16468 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16470 if diff conftest.exp conftest.er2 >/dev/null; then
16471 lt_prog_compiler_static_works_GCJ=yes
16472 fi
16473 else
16474 lt_prog_compiler_static_works_GCJ=yes
16475 fi
16476 fi
16477 $rm conftest*
16478 LDFLAGS="$save_LDFLAGS"
16479
16480 fi
16481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16482 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16483
16484 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16485 :
16486 else
16487 lt_prog_compiler_static_GCJ=
16488 fi
16489
16490
16491 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16493 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496 lt_cv_prog_compiler_c_o_GCJ=no
16497 $rm -r conftest 2>/dev/null
16498 mkdir conftest
16499 cd conftest
16500 mkdir out
16501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16502
16503 lt_compiler_flag="-o out/conftest2.$ac_objext"
16504 # Insert the option either (1) after the last *FLAGS variable, or
16505 # (2) before a word containing "conftest.", or (3) at the end.
16506 # Note that $ac_compile itself does not contain backslashes and begins
16507 # with a dollar sign (not a hyphen), so the echo should work correctly.
16508 lt_compile=`echo "$ac_compile" | $SED \
16509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16511 -e 's:$: $lt_compiler_flag:'`
16512 (eval echo "\"\$as_me:16512: $lt_compile\"" >&5)
16513 (eval "$lt_compile" 2>out/conftest.err)
16514 ac_status=$?
16515 cat out/conftest.err >&5
16516 echo "$as_me:16516: \$? = $ac_status" >&5
16517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16518 then
16519 # The compiler can only warn and ignore the option if not recognized
16520 # So say no if there are warnings
16521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16524 lt_cv_prog_compiler_c_o_GCJ=yes
16525 fi
16526 fi
16527 chmod u+w . 2>&5
16528 $rm conftest*
16529 # SGI C++ compiler will create directory out/ii_files/ for
16530 # template instantiation
16531 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16532 $rm out/* && rmdir out
16533 cd ..
16534 rmdir conftest
16535 $rm conftest*
16536
16537 fi
16538 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16539 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16540
16541
16542 hard_links="nottested"
16543 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16544 # do not overwrite the value of need_locks provided by the user
16545 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16546 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16547 hard_links=yes
16548 $rm conftest*
16549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16550 touch conftest.a
16551 ln conftest.a conftest.b 2>&5 || hard_links=no
16552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16553 { echo "$as_me:$LINENO: result: $hard_links" >&5
16554 echo "${ECHO_T}$hard_links" >&6; }
16555 if test "$hard_links" = no; then
16556 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16557 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16558 need_locks=warn
16559 fi
16560 else
16561 need_locks=no
16562 fi
16563
16564 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16565 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16566
16567 runpath_var=
16568 allow_undefined_flag_GCJ=
16569 enable_shared_with_static_runtimes_GCJ=no
16570 archive_cmds_GCJ=
16571 archive_expsym_cmds_GCJ=
16572 old_archive_From_new_cmds_GCJ=
16573 old_archive_from_expsyms_cmds_GCJ=
16574 export_dynamic_flag_spec_GCJ=
16575 whole_archive_flag_spec_GCJ=
16576 thread_safe_flag_spec_GCJ=
16577 hardcode_libdir_flag_spec_GCJ=
16578 hardcode_libdir_flag_spec_ld_GCJ=
16579 hardcode_libdir_separator_GCJ=
16580 hardcode_direct_GCJ=no
16581 hardcode_minus_L_GCJ=no
16582 hardcode_shlibpath_var_GCJ=unsupported
16583 link_all_deplibs_GCJ=unknown
16584 hardcode_automatic_GCJ=no
16585 module_cmds_GCJ=
16586 module_expsym_cmds_GCJ=
16587 always_export_symbols_GCJ=no
16588 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16589 # include_expsyms should be a list of space-separated symbols to be *always*
16590 # included in the symbol list
16591 include_expsyms_GCJ=
16592 # exclude_expsyms can be an extended regexp of symbols to exclude
16593 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16594 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16595 # as well as any symbol that contains `d'.
16596 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16597 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16598 # platforms (ab)use it in PIC code, but their linkers get confused if
16599 # the symbol is explicitly referenced. Since portable code cannot
16600 # rely on this symbol name, it's probably fine to never include it in
16601 # preloaded symbol tables.
16602 extract_expsyms_cmds=
16603 # Just being paranoid about ensuring that cc_basename is set.
16604 for cc_temp in $compiler""; do
16605 case $cc_temp in
16606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16608 \-*) ;;
16609 *) break;;
16610 esac
16611 done
16612 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16613
16614 case $host_os in
16615 cygwin* | mingw* | pw32*)
16616 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16617 # When not using gcc, we currently assume that we are using
16618 # Microsoft Visual C++.
16619 if test "$GCC" != yes; then
16620 with_gnu_ld=no
16621 fi
16622 ;;
16623 interix*)
16624 # we just hope/assume this is gcc and not c89 (= MSVC++)
16625 with_gnu_ld=yes
16626 ;;
16627 openbsd*)
16628 with_gnu_ld=no
16629 ;;
16630 esac
16631
16632 ld_shlibs_GCJ=yes
16633 if test "$with_gnu_ld" = yes; then
16634 # If archive_cmds runs LD, not CC, wlarc should be empty
16635 wlarc='${wl}'
16636
16637 # Set some defaults for GNU ld with shared library support. These
16638 # are reset later if shared libraries are not supported. Putting them
16639 # here allows them to be overridden if necessary.
16640 runpath_var=LD_RUN_PATH
16641 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16642 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16643 # ancient GNU ld didn't support --whole-archive et. al.
16644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16645 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16646 else
16647 whole_archive_flag_spec_GCJ=
16648 fi
16649 supports_anon_versioning=no
16650 case `$LD -v 2>/dev/null` in
16651 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16652 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16653 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16654 *\ 2.11.*) ;; # other 2.11 versions
16655 *) supports_anon_versioning=yes ;;
16656 esac
16657
16658 # See if GNU ld supports shared libraries.
16659 case $host_os in
16660 aix3* | aix4* | aix5*)
16661 # On AIX/PPC, the GNU linker is very broken
16662 if test "$host_cpu" != ia64; then
16663 ld_shlibs_GCJ=no
16664 cat <<EOF 1>&2
16665
16666 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16667 *** to be unable to reliably create shared libraries on AIX.
16668 *** Therefore, libtool is disabling shared libraries support. If you
16669 *** really care for shared libraries, you may want to modify your PATH
16670 *** so that a non-GNU linker is found, and then restart.
16671
16672 EOF
16673 fi
16674 ;;
16675
16676 amigaos*)
16677 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)'
16678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16679 hardcode_minus_L_GCJ=yes
16680
16681 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16682 # that the semantics of dynamic libraries on AmigaOS, at least up
16683 # to version 4, is to share data among multiple programs linked
16684 # with the same dynamic library. Since this doesn't match the
16685 # behavior of shared libraries on other platforms, we can't use
16686 # them.
16687 ld_shlibs_GCJ=no
16688 ;;
16689
16690 beos*)
16691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16692 allow_undefined_flag_GCJ=unsupported
16693 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16694 # support --undefined. This deserves some investigation. FIXME
16695 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16696 else
16697 ld_shlibs_GCJ=no
16698 fi
16699 ;;
16700
16701 cygwin* | mingw* | pw32*)
16702 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16703 # as there is no search path for DLLs.
16704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16705 allow_undefined_flag_GCJ=unsupported
16706 always_export_symbols_GCJ=no
16707 enable_shared_with_static_runtimes_GCJ=yes
16708 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16709
16710 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16711 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16712 # If the export-symbols file already is a .def file (1st line
16713 # is EXPORTS), use it as is; otherwise, prepend...
16714 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16715 cp $export_symbols $output_objdir/$soname.def;
16716 else
16717 echo EXPORTS > $output_objdir/$soname.def;
16718 cat $export_symbols >> $output_objdir/$soname.def;
16719 fi~
16720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16721 else
16722 ld_shlibs_GCJ=no
16723 fi
16724 ;;
16725
16726 interix3*)
16727 hardcode_direct_GCJ=no
16728 hardcode_shlibpath_var_GCJ=no
16729 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16730 export_dynamic_flag_spec_GCJ='${wl}-E'
16731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16732 # Instead, shared libraries are loaded at an image base (0x10000000 by
16733 # default) and relocated if they conflict, which is a slow very memory
16734 # consuming and fragmenting process. To avoid this, we pick a random,
16735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16737 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'
16738 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'
16739 ;;
16740
16741 linux* | k*bsd*-gnu)
16742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16743 tmp_addflag=
16744 case $cc_basename,$host_cpu in
16745 pgcc*) # Portland Group C compiler
16746 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'
16747 tmp_addflag=' $pic_flag'
16748 ;;
16749 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16750 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'
16751 tmp_addflag=' $pic_flag -Mnomain' ;;
16752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16753 tmp_addflag=' -i_dynamic' ;;
16754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16755 tmp_addflag=' -i_dynamic -nofor_main' ;;
16756 ifc* | ifort*) # Intel Fortran compiler
16757 tmp_addflag=' -nofor_main' ;;
16758 esac
16759 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16760
16761 if test $supports_anon_versioning = yes; then
16762 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16764 $echo "local: *; };" >> $output_objdir/$libname.ver~
16765 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16766 fi
16767 link_all_deplibs_GCJ=no
16768 else
16769 ld_shlibs_GCJ=no
16770 fi
16771 ;;
16772
16773 netbsd* | netbsdelf*-gnu)
16774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16775 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16776 wlarc=
16777 else
16778 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16779 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16780 fi
16781 ;;
16782
16783 solaris*)
16784 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16785 ld_shlibs_GCJ=no
16786 cat <<EOF 1>&2
16787
16788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16789 *** create shared libraries on Solaris systems. Therefore, libtool
16790 *** is disabling shared libraries support. We urge you to upgrade GNU
16791 *** binutils to release 2.9.1 or newer. Another option is to modify
16792 *** your PATH or compiler configuration so that the native linker is
16793 *** used, and then restart.
16794
16795 EOF
16796 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16797 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16798 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16799 else
16800 ld_shlibs_GCJ=no
16801 fi
16802 ;;
16803
16804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16805 case `$LD -v 2>&1` in
16806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16807 ld_shlibs_GCJ=no
16808 cat <<_LT_EOF 1>&2
16809
16810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16811 *** reliably create shared libraries on SCO systems. Therefore, libtool
16812 *** is disabling shared libraries support. We urge you to upgrade GNU
16813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16814 *** your PATH or compiler configuration so that the native linker is
16815 *** used, and then restart.
16816
16817 _LT_EOF
16818 ;;
16819 *)
16820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16821 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16822 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16823 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16824 else
16825 ld_shlibs_GCJ=no
16826 fi
16827 ;;
16828 esac
16829 ;;
16830
16831 sunos4*)
16832 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16833 wlarc=
16834 hardcode_direct_GCJ=yes
16835 hardcode_shlibpath_var_GCJ=no
16836 ;;
16837
16838 *)
16839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16840 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16841 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16842 else
16843 ld_shlibs_GCJ=no
16844 fi
16845 ;;
16846 esac
16847
16848 if test "$ld_shlibs_GCJ" = no; then
16849 runpath_var=
16850 hardcode_libdir_flag_spec_GCJ=
16851 export_dynamic_flag_spec_GCJ=
16852 whole_archive_flag_spec_GCJ=
16853 fi
16854 else
16855 # PORTME fill in a description of your system's linker (not GNU ld)
16856 case $host_os in
16857 aix3*)
16858 allow_undefined_flag_GCJ=unsupported
16859 always_export_symbols_GCJ=yes
16860 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'
16861 # Note: this linker hardcodes the directories in LIBPATH if there
16862 # are no directories specified by -L.
16863 hardcode_minus_L_GCJ=yes
16864 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16865 # Neither direct hardcoding nor static linking is supported with a
16866 # broken collect2.
16867 hardcode_direct_GCJ=unsupported
16868 fi
16869 ;;
16870
16871 aix4* | aix5*)
16872 if test "$host_cpu" = ia64; then
16873 # On IA64, the linker does run time linking by default, so we don't
16874 # have to do anything special.
16875 aix_use_runtimelinking=no
16876 exp_sym_flag='-Bexport'
16877 no_entry_flag=""
16878 else
16879 # If we're using GNU nm, then we don't want the "-C" option.
16880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16881 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16882 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'
16883 else
16884 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'
16885 fi
16886 aix_use_runtimelinking=no
16887
16888 # Test if we are trying to use run time linking or normal
16889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16890 # need to do runtime linking.
16891 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16892 for ld_flag in $LDFLAGS; do
16893 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16894 aix_use_runtimelinking=yes
16895 break
16896 fi
16897 done
16898 ;;
16899 esac
16900
16901 exp_sym_flag='-bexport'
16902 no_entry_flag='-bnoentry'
16903 fi
16904
16905 # When large executables or shared objects are built, AIX ld can
16906 # have problems creating the table of contents. If linking a library
16907 # or program results in "error TOC overflow" add -mminimal-toc to
16908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16910
16911 archive_cmds_GCJ=''
16912 hardcode_direct_GCJ=yes
16913 hardcode_libdir_separator_GCJ=':'
16914 link_all_deplibs_GCJ=yes
16915
16916 if test "$GCC" = yes; then
16917 case $host_os in aix4.[012]|aix4.[012].*)
16918 # We only want to do this on AIX 4.2 and lower, the check
16919 # below for broken collect2 doesn't work under 4.3+
16920 collect2name=`${CC} -print-prog-name=collect2`
16921 if test -f "$collect2name" && \
16922 strings "$collect2name" | grep resolve_lib_name >/dev/null
16923 then
16924 # We have reworked collect2
16925 hardcode_direct_GCJ=yes
16926 else
16927 # We have old collect2
16928 hardcode_direct_GCJ=unsupported
16929 # It fails to find uninstalled libraries when the uninstalled
16930 # path is not listed in the libpath. Setting hardcode_minus_L
16931 # to unsupported forces relinking
16932 hardcode_minus_L_GCJ=yes
16933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16934 hardcode_libdir_separator_GCJ=
16935 fi
16936 ;;
16937 esac
16938 shared_flag='-shared'
16939 if test "$aix_use_runtimelinking" = yes; then
16940 shared_flag="$shared_flag "'${wl}-G'
16941 fi
16942 else
16943 # not using gcc
16944 if test "$host_cpu" = ia64; then
16945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16946 # chokes on -Wl,-G. The following line is correct:
16947 shared_flag='-G'
16948 else
16949 if test "$aix_use_runtimelinking" = yes; then
16950 shared_flag='${wl}-G'
16951 else
16952 shared_flag='${wl}-bM:SRE'
16953 fi
16954 fi
16955 fi
16956
16957 # It seems that -bexpall does not export symbols beginning with
16958 # underscore (_), so it is better to generate a list of symbols to export.
16959 always_export_symbols_GCJ=yes
16960 if test "$aix_use_runtimelinking" = yes; then
16961 # Warning - without using the other runtime loading flags (-brtl),
16962 # -berok will link without error, but may produce a broken library.
16963 allow_undefined_flag_GCJ='-berok'
16964 # Determine the default libpath from the value encoded in an empty executable.
16965 cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h. */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16971
16972 int
16973 main ()
16974 {
16975
16976 ;
16977 return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_link") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } && {
16994 test -z "$ac_c_werror_flag" ||
16995 test ! -s conftest.err
16996 } && test -s conftest$ac_exeext &&
16997 $as_test_x conftest$ac_exeext; then
16998
16999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17000 }'`
17001 # Check for a 64-bit object if we didn't find anything.
17002 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; }
17003 }'`; fi
17004 else
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008
17009 fi
17010
17011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17012 conftest$ac_exeext conftest.$ac_ext
17013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17014
17015 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17016 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"
17017 else
17018 if test "$host_cpu" = ia64; then
17019 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17020 allow_undefined_flag_GCJ="-z nodefs"
17021 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"
17022 else
17023 # Determine the default libpath from the value encoded in an empty executable.
17024 cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h. */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030
17031 int
17032 main ()
17033 {
17034
17035 ;
17036 return 0;
17037 }
17038 _ACEOF
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_link") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest$ac_exeext &&
17056 $as_test_x conftest$ac_exeext; then
17057
17058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17059 }'`
17060 # Check for a 64-bit object if we didn't find anything.
17061 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; }
17062 }'`; fi
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17073
17074 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17075 # Warning - without using the other run time loading flags,
17076 # -berok will link without error, but may produce a broken library.
17077 no_undefined_flag_GCJ=' ${wl}-bernotok'
17078 allow_undefined_flag_GCJ=' ${wl}-berok'
17079 # Exported symbols can be pulled into shared objects from archives
17080 whole_archive_flag_spec_GCJ='$convenience'
17081 archive_cmds_need_lc_GCJ=yes
17082 # This is similar to how AIX traditionally builds its shared libraries.
17083 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'
17084 fi
17085 fi
17086 ;;
17087
17088 amigaos*)
17089 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)'
17090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17091 hardcode_minus_L_GCJ=yes
17092 # see comment about different semantics on the GNU ld section
17093 ld_shlibs_GCJ=no
17094 ;;
17095
17096 bsdi[45]*)
17097 export_dynamic_flag_spec_GCJ=-rdynamic
17098 ;;
17099
17100 cygwin* | mingw* | pw32*)
17101 # When not using gcc, we currently assume that we are using
17102 # Microsoft Visual C++.
17103 # hardcode_libdir_flag_spec is actually meaningless, as there is
17104 # no search path for DLLs.
17105 hardcode_libdir_flag_spec_GCJ=' '
17106 allow_undefined_flag_GCJ=unsupported
17107 # Tell ltmain to make .lib files, not .a files.
17108 libext=lib
17109 # Tell ltmain to make .dll files, not .so files.
17110 shrext_cmds=".dll"
17111 # FIXME: Setting linknames here is a bad hack.
17112 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17113 # The linker will automatically build a .lib file if we build a DLL.
17114 old_archive_From_new_cmds_GCJ='true'
17115 # FIXME: Should let the user specify the lib program.
17116 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17117 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17118 enable_shared_with_static_runtimes_GCJ=yes
17119 ;;
17120
17121 darwin* | rhapsody*)
17122 case $host_os in
17123 rhapsody* | darwin1.[012])
17124 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17125 ;;
17126 *) # Darwin 1.3 on
17127 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17128 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17129 else
17130 case ${MACOSX_DEPLOYMENT_TARGET} in
17131 10.[012])
17132 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17133 ;;
17134 10.*)
17135 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17136 ;;
17137 esac
17138 fi
17139 ;;
17140 esac
17141 archive_cmds_need_lc_GCJ=no
17142 hardcode_direct_GCJ=no
17143 hardcode_automatic_GCJ=yes
17144 hardcode_shlibpath_var_GCJ=unsupported
17145 whole_archive_flag_spec_GCJ=''
17146 link_all_deplibs_GCJ=yes
17147 if test "$GCC" = yes ; then
17148 output_verbose_link_cmd='echo'
17149 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17150 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17152 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}'
17153 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}'
17154 else
17155 case $cc_basename in
17156 xlc*)
17157 output_verbose_link_cmd='echo'
17158 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17159 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17161 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}'
17162 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}'
17163 ;;
17164 *)
17165 ld_shlibs_GCJ=no
17166 ;;
17167 esac
17168 fi
17169 ;;
17170
17171 dgux*)
17172 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174 hardcode_shlibpath_var_GCJ=no
17175 ;;
17176
17177 freebsd1*)
17178 ld_shlibs_GCJ=no
17179 ;;
17180
17181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17182 # support. Future versions do this automatically, but an explicit c++rt0.o
17183 # does not break anything, and helps significantly (at the cost of a little
17184 # extra space).
17185 freebsd2.2*)
17186 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17187 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17188 hardcode_direct_GCJ=yes
17189 hardcode_shlibpath_var_GCJ=no
17190 ;;
17191
17192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17193 freebsd2*)
17194 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17195 hardcode_direct_GCJ=yes
17196 hardcode_minus_L_GCJ=yes
17197 hardcode_shlibpath_var_GCJ=no
17198 ;;
17199
17200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17201 freebsd* | dragonfly*)
17202 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17203 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17204 hardcode_direct_GCJ=yes
17205 hardcode_shlibpath_var_GCJ=no
17206 ;;
17207
17208 hpux9*)
17209 if test "$GCC" = yes; then
17210 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'
17211 else
17212 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'
17213 fi
17214 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17215 hardcode_libdir_separator_GCJ=:
17216 hardcode_direct_GCJ=yes
17217
17218 # hardcode_minus_L: Not really in the search PATH,
17219 # but as the default location of the library.
17220 hardcode_minus_L_GCJ=yes
17221 export_dynamic_flag_spec_GCJ='${wl}-E'
17222 ;;
17223
17224 hpux10*)
17225 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17226 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17227 else
17228 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17229 fi
17230 if test "$with_gnu_ld" = no; then
17231 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17232 hardcode_libdir_separator_GCJ=:
17233
17234 hardcode_direct_GCJ=yes
17235 export_dynamic_flag_spec_GCJ='${wl}-E'
17236
17237 # hardcode_minus_L: Not really in the search PATH,
17238 # but as the default location of the library.
17239 hardcode_minus_L_GCJ=yes
17240 fi
17241 ;;
17242
17243 hpux11*)
17244 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17245 case $host_cpu in
17246 hppa*64*)
17247 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17248 ;;
17249 ia64*)
17250 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17251 ;;
17252 *)
17253 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17254 ;;
17255 esac
17256 else
17257 case $host_cpu in
17258 hppa*64*)
17259 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17260 ;;
17261 ia64*)
17262 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17263 ;;
17264 *)
17265 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17266 ;;
17267 esac
17268 fi
17269 if test "$with_gnu_ld" = no; then
17270 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17271 hardcode_libdir_separator_GCJ=:
17272
17273 case $host_cpu in
17274 hppa*64*|ia64*)
17275 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17276 hardcode_direct_GCJ=no
17277 hardcode_shlibpath_var_GCJ=no
17278 ;;
17279 *)
17280 hardcode_direct_GCJ=yes
17281 export_dynamic_flag_spec_GCJ='${wl}-E'
17282
17283 # hardcode_minus_L: Not really in the search PATH,
17284 # but as the default location of the library.
17285 hardcode_minus_L_GCJ=yes
17286 ;;
17287 esac
17288 fi
17289 ;;
17290
17291 irix5* | irix6* | nonstopux*)
17292 if test "$GCC" = yes; then
17293 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'
17294 else
17295 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'
17296 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17297 fi
17298 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17299 hardcode_libdir_separator_GCJ=:
17300 link_all_deplibs_GCJ=yes
17301 ;;
17302
17303 netbsd* | netbsdelf*-gnu)
17304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17305 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17306 else
17307 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17308 fi
17309 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17310 hardcode_direct_GCJ=yes
17311 hardcode_shlibpath_var_GCJ=no
17312 ;;
17313
17314 newsos6)
17315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17316 hardcode_direct_GCJ=yes
17317 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17318 hardcode_libdir_separator_GCJ=:
17319 hardcode_shlibpath_var_GCJ=no
17320 ;;
17321
17322 openbsd*)
17323 hardcode_direct_GCJ=yes
17324 hardcode_shlibpath_var_GCJ=no
17325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17326 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17327 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17329 export_dynamic_flag_spec_GCJ='${wl}-E'
17330 else
17331 case $host_os in
17332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17333 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17334 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17335 ;;
17336 *)
17337 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17339 ;;
17340 esac
17341 fi
17342 ;;
17343
17344 os2*)
17345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17346 hardcode_minus_L_GCJ=yes
17347 allow_undefined_flag_GCJ=unsupported
17348 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'
17349 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17350 ;;
17351
17352 osf3*)
17353 if test "$GCC" = yes; then
17354 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17355 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'
17356 else
17357 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17358 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'
17359 fi
17360 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17361 hardcode_libdir_separator_GCJ=:
17362 ;;
17363
17364 osf4* | osf5*) # as osf3* with the addition of -msym flag
17365 if test "$GCC" = yes; then
17366 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17367 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'
17368 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17369 else
17370 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17371 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'
17372 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~
17373 $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'
17374
17375 # Both c and cxx compiler support -rpath directly
17376 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17377 fi
17378 hardcode_libdir_separator_GCJ=:
17379 ;;
17380
17381 solaris*)
17382 no_undefined_flag_GCJ=' -z text'
17383 if test "$GCC" = yes; then
17384 wlarc='${wl}'
17385 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17386 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17387 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17388 else
17389 wlarc=''
17390 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17391 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17393 fi
17394 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17395 hardcode_shlibpath_var_GCJ=no
17396 case $host_os in
17397 solaris2.[0-5] | solaris2.[0-5].*) ;;
17398 *)
17399 # The compiler driver will combine linker options so we
17400 # cannot just pass the convience library names through
17401 # without $wl, iff we do not link with $LD.
17402 # Luckily, gcc supports the same syntax we need for Sun Studio.
17403 # Supported since Solaris 2.6 (maybe 2.5.1?)
17404 case $wlarc in
17405 '')
17406 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17407 *)
17408 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' ;;
17409 esac ;;
17410 esac
17411 link_all_deplibs_GCJ=yes
17412 ;;
17413
17414 sunos4*)
17415 if test "x$host_vendor" = xsequent; then
17416 # Use $CC to link under sequent, because it throws in some extra .o
17417 # files that make .init and .fini sections work.
17418 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17419 else
17420 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17421 fi
17422 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17423 hardcode_direct_GCJ=yes
17424 hardcode_minus_L_GCJ=yes
17425 hardcode_shlibpath_var_GCJ=no
17426 ;;
17427
17428 sysv4)
17429 case $host_vendor in
17430 sni)
17431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432 hardcode_direct_GCJ=yes # is this really true???
17433 ;;
17434 siemens)
17435 ## LD is ld it makes a PLAMLIB
17436 ## CC just makes a GrossModule.
17437 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17438 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17439 hardcode_direct_GCJ=no
17440 ;;
17441 motorola)
17442 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17444 ;;
17445 esac
17446 runpath_var='LD_RUN_PATH'
17447 hardcode_shlibpath_var_GCJ=no
17448 ;;
17449
17450 sysv4.3*)
17451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452 hardcode_shlibpath_var_GCJ=no
17453 export_dynamic_flag_spec_GCJ='-Bexport'
17454 ;;
17455
17456 sysv4*MP*)
17457 if test -d /usr/nec; then
17458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17459 hardcode_shlibpath_var_GCJ=no
17460 runpath_var=LD_RUN_PATH
17461 hardcode_runpath_var=yes
17462 ld_shlibs_GCJ=yes
17463 fi
17464 ;;
17465
17466 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17467 no_undefined_flag_GCJ='${wl}-z,text'
17468 archive_cmds_need_lc_GCJ=no
17469 hardcode_shlibpath_var_GCJ=no
17470 runpath_var='LD_RUN_PATH'
17471
17472 if test "$GCC" = yes; then
17473 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17474 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17475 else
17476 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17477 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 fi
17479 ;;
17480
17481 sysv5* | sco3.2v5* | sco5v6*)
17482 # Note: We can NOT use -z defs as we might desire, because we do not
17483 # link with -lc, and that would cause any symbols used from libc to
17484 # always be unresolved, which means just about no library would
17485 # ever link correctly. If we're not using GNU ld we use -z text
17486 # though, which does catch some bad symbols but isn't as heavy-handed
17487 # as -z defs.
17488 no_undefined_flag_GCJ='${wl}-z,text'
17489 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17490 archive_cmds_need_lc_GCJ=no
17491 hardcode_shlibpath_var_GCJ=no
17492 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17493 hardcode_libdir_separator_GCJ=':'
17494 link_all_deplibs_GCJ=yes
17495 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17496 runpath_var='LD_RUN_PATH'
17497
17498 if test "$GCC" = yes; then
17499 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17500 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501 else
17502 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17503 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 fi
17505 ;;
17506
17507 uts4*)
17508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17510 hardcode_shlibpath_var_GCJ=no
17511 ;;
17512
17513 *)
17514 ld_shlibs_GCJ=no
17515 ;;
17516 esac
17517 fi
17518
17519 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17520 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17521 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17522
17523 #
17524 # Do we need to explicitly link libc?
17525 #
17526 case "x$archive_cmds_need_lc_GCJ" in
17527 x|xyes)
17528 # Assume -lc should be added
17529 archive_cmds_need_lc_GCJ=yes
17530
17531 if test "$enable_shared" = yes && test "$GCC" = yes; then
17532 case $archive_cmds_GCJ in
17533 *'~'*)
17534 # FIXME: we may have to deal with multi-command sequences.
17535 ;;
17536 '$CC '*)
17537 # Test whether the compiler implicitly links with -lc since on some
17538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17539 # to ld, don't add -lc before -lgcc.
17540 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17541 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17542 $rm conftest*
17543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17544
17545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17546 (eval $ac_compile) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } 2>conftest.err; then
17550 soname=conftest
17551 lib=conftest
17552 libobjs=conftest.$ac_objext
17553 deplibs=
17554 wl=$lt_prog_compiler_wl_GCJ
17555 pic_flag=$lt_prog_compiler_pic_GCJ
17556 compiler_flags=-v
17557 linker_flags=-v
17558 verstring=
17559 output_objdir=.
17560 libname=conftest
17561 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17562 allow_undefined_flag_GCJ=
17563 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17564 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }
17568 then
17569 archive_cmds_need_lc_GCJ=no
17570 else
17571 archive_cmds_need_lc_GCJ=yes
17572 fi
17573 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17574 else
17575 cat conftest.err 1>&5
17576 fi
17577 $rm conftest*
17578 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17579 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17580 ;;
17581 esac
17582 fi
17583 ;;
17584 esac
17585
17586 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17587 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17588 library_names_spec=
17589 libname_spec='lib$name'
17590 soname_spec=
17591 shrext_cmds=".so"
17592 postinstall_cmds=
17593 postuninstall_cmds=
17594 finish_cmds=
17595 finish_eval=
17596 shlibpath_var=
17597 shlibpath_overrides_runpath=unknown
17598 version_type=none
17599 dynamic_linker="$host_os ld.so"
17600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17601 if test "$GCC" = yes; then
17602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17603 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17604 # if the path contains ";" then we assume it to be the separator
17605 # otherwise default to the standard path separator (i.e. ":") - it is
17606 # assumed that no part of a normal pathname contains ";" but that should
17607 # okay in the real world where ";" in dirpaths is itself problematic.
17608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17609 else
17610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17611 fi
17612 else
17613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17614 fi
17615 need_lib_prefix=unknown
17616 hardcode_into_libs=no
17617
17618 # when you set need_version to no, make sure it does not cause -set_version
17619 # flags to be left without arguments
17620 need_version=unknown
17621
17622 case $host_os in
17623 aix3*)
17624 version_type=linux
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17626 shlibpath_var=LIBPATH
17627
17628 # AIX 3 has no versioning support, so we append a major version to the name.
17629 soname_spec='${libname}${release}${shared_ext}$major'
17630 ;;
17631
17632 aix4* | aix5*)
17633 version_type=linux
17634 need_lib_prefix=no
17635 need_version=no
17636 hardcode_into_libs=yes
17637 if test "$host_cpu" = ia64; then
17638 # AIX 5 supports IA64
17639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 else
17642 # With GCC up to 2.95.x, collect2 would create an import file
17643 # for dependence libraries. The import file would start with
17644 # the line `#! .'. This would cause the generated library to
17645 # depend on `.', always an invalid library. This was fixed in
17646 # development snapshots of GCC prior to 3.0.
17647 case $host_os in
17648 aix4 | aix4.[01] | aix4.[01].*)
17649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17650 echo ' yes '
17651 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17652 :
17653 else
17654 can_build_shared=no
17655 fi
17656 ;;
17657 esac
17658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17659 # soname into executable. Probably we can add versioning support to
17660 # collect2, so additional links can be useful in future.
17661 if test "$aix_use_runtimelinking" = yes; then
17662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17663 # instead of lib<name>.a to let people know that these are not
17664 # typical AIX shared libraries.
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17666 else
17667 # We preserve .a as extension for shared libraries through AIX4.2
17668 # and later when we are not doing run time linking.
17669 library_names_spec='${libname}${release}.a $libname.a'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 fi
17672 shlibpath_var=LIBPATH
17673 fi
17674 ;;
17675
17676 amigaos*)
17677 library_names_spec='$libname.ixlibrary $libname.a'
17678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17679 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'
17680 ;;
17681
17682 beos*)
17683 library_names_spec='${libname}${shared_ext}'
17684 dynamic_linker="$host_os ld.so"
17685 shlibpath_var=LIBRARY_PATH
17686 ;;
17687
17688 bsdi[45]*)
17689 version_type=linux
17690 need_version=no
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692 soname_spec='${libname}${release}${shared_ext}$major'
17693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17697 # the default ld.so.conf also contains /usr/contrib/lib and
17698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17699 # libtool to hard-code these into programs
17700 ;;
17701
17702 cygwin* | mingw* | pw32*)
17703 version_type=windows
17704 shrext_cmds=".dll"
17705 need_version=no
17706 need_lib_prefix=no
17707
17708 case $GCC,$host_os in
17709 yes,cygwin* | yes,mingw* | yes,pw32*)
17710 library_names_spec='$libname.dll.a'
17711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17712 postinstall_cmds='base_file=`basename \${file}`~
17713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17714 dldir=$destdir/`dirname \$dlpath`~
17715 test -d \$dldir || mkdir -p \$dldir~
17716 $install_prog $dir/$dlname \$dldir/$dlname~
17717 chmod a+x \$dldir/$dlname'
17718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17719 dlpath=$dir/\$dldll~
17720 $rm \$dlpath'
17721 shlibpath_overrides_runpath=yes
17722
17723 case $host_os in
17724 cygwin*)
17725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17727 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17728 ;;
17729 mingw*)
17730 # MinGW DLLs use traditional 'lib' prefix
17731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17733 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17734 # It is most probably a Windows format PATH printed by
17735 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17736 # path with ; separators, and with drive letters. We can handle the
17737 # drive letters (cygwin fileutils understands them), so leave them,
17738 # especially as we might pass files found there to a mingw objdump,
17739 # which wouldn't understand a cygwinified path. Ahh.
17740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17741 else
17742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17743 fi
17744 ;;
17745 pw32*)
17746 # pw32 DLLs use 'pw' prefix rather than 'lib'
17747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17748 ;;
17749 esac
17750 ;;
17751
17752 *)
17753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17754 ;;
17755 esac
17756 dynamic_linker='Win32 ld.exe'
17757 # FIXME: first we should search . and the directory the executable is in
17758 shlibpath_var=PATH
17759 ;;
17760
17761 darwin* | rhapsody*)
17762 dynamic_linker="$host_os dyld"
17763 version_type=darwin
17764 need_lib_prefix=no
17765 need_version=no
17766 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17767 soname_spec='${libname}${release}${major}$shared_ext'
17768 shlibpath_overrides_runpath=yes
17769 shlibpath_var=DYLD_LIBRARY_PATH
17770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17771 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17772 if test "$GCC" = yes; then
17773 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"`
17774 else
17775 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17776 fi
17777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17778 ;;
17779
17780 dgux*)
17781 version_type=linux
17782 need_lib_prefix=no
17783 need_version=no
17784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17785 soname_spec='${libname}${release}${shared_ext}$major'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 ;;
17788
17789 freebsd1*)
17790 dynamic_linker=no
17791 ;;
17792
17793 freebsd* | dragonfly*)
17794 # DragonFly does not have aout. When/if they implement a new
17795 # versioning mechanism, adjust this.
17796 if test -x /usr/bin/objformat; then
17797 objformat=`/usr/bin/objformat`
17798 else
17799 case $host_os in
17800 freebsd[123]*) objformat=aout ;;
17801 *) objformat=elf ;;
17802 esac
17803 fi
17804 version_type=freebsd-$objformat
17805 case $version_type in
17806 freebsd-elf*)
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17808 need_version=no
17809 need_lib_prefix=no
17810 ;;
17811 freebsd-*)
17812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17813 need_version=yes
17814 ;;
17815 esac
17816 shlibpath_var=LD_LIBRARY_PATH
17817 case $host_os in
17818 freebsd2*)
17819 shlibpath_overrides_runpath=yes
17820 ;;
17821 freebsd3.[01]* | freebsdelf3.[01]*)
17822 shlibpath_overrides_runpath=yes
17823 hardcode_into_libs=yes
17824 ;;
17825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17827 shlibpath_overrides_runpath=no
17828 hardcode_into_libs=yes
17829 ;;
17830 freebsd*) # from 4.6 on
17831 shlibpath_overrides_runpath=yes
17832 hardcode_into_libs=yes
17833 ;;
17834 esac
17835 ;;
17836
17837 gnu*)
17838 version_type=linux
17839 need_lib_prefix=no
17840 need_version=no
17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17842 soname_spec='${libname}${release}${shared_ext}$major'
17843 shlibpath_var=LD_LIBRARY_PATH
17844 hardcode_into_libs=yes
17845 ;;
17846
17847 hpux9* | hpux10* | hpux11*)
17848 # Give a soname corresponding to the major version so that dld.sl refuses to
17849 # link against other versions.
17850 version_type=sunos
17851 need_lib_prefix=no
17852 need_version=no
17853 case $host_cpu in
17854 ia64*)
17855 shrext_cmds='.so'
17856 hardcode_into_libs=yes
17857 dynamic_linker="$host_os dld.so"
17858 shlibpath_var=LD_LIBRARY_PATH
17859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17861 soname_spec='${libname}${release}${shared_ext}$major'
17862 if test "X$HPUX_IA64_MODE" = X32; then
17863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17864 else
17865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17866 fi
17867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17868 ;;
17869 hppa*64*)
17870 shrext_cmds='.sl'
17871 hardcode_into_libs=yes
17872 dynamic_linker="$host_os dld.sl"
17873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17879 ;;
17880 *)
17881 shrext_cmds='.sl'
17882 dynamic_linker="$host_os dld.sl"
17883 shlibpath_var=SHLIB_PATH
17884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 ;;
17888 esac
17889 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17890 postinstall_cmds='chmod 555 $lib'
17891 ;;
17892
17893 interix3*)
17894 version_type=linux
17895 need_lib_prefix=no
17896 need_version=no
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17898 soname_spec='${libname}${release}${shared_ext}$major'
17899 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 shlibpath_overrides_runpath=no
17902 hardcode_into_libs=yes
17903 ;;
17904
17905 irix5* | irix6* | nonstopux*)
17906 case $host_os in
17907 nonstopux*) version_type=nonstopux ;;
17908 *)
17909 if test "$lt_cv_prog_gnu_ld" = yes; then
17910 version_type=linux
17911 else
17912 version_type=irix
17913 fi ;;
17914 esac
17915 need_lib_prefix=no
17916 need_version=no
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17919 case $host_os in
17920 irix5* | nonstopux*)
17921 libsuff= shlibsuff=
17922 ;;
17923 *)
17924 case $LD in # libtool.m4 will add one of these switches to LD
17925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17926 libsuff= shlibsuff= libmagic=32-bit;;
17927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17928 libsuff=32 shlibsuff=N32 libmagic=N32;;
17929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17930 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17931 *) libsuff= shlibsuff= libmagic=never-match;;
17932 esac
17933 ;;
17934 esac
17935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17936 shlibpath_overrides_runpath=no
17937 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17938 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17939 hardcode_into_libs=yes
17940 ;;
17941
17942 # No shared lib support for Linux oldld, aout, or coff.
17943 linux*oldld* | linux*aout* | linux*coff*)
17944 dynamic_linker=no
17945 ;;
17946
17947 # This must be Linux ELF.
17948 linux* | k*bsd*-gnu)
17949 version_type=linux
17950 need_lib_prefix=no
17951 need_version=no
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17955 shlibpath_var=LD_LIBRARY_PATH
17956 shlibpath_overrides_runpath=no
17957 # This implies no fast_install, which is unacceptable.
17958 # Some rework will be needed to allow for fast_install
17959 # before this can be enabled.
17960 hardcode_into_libs=yes
17961
17962 # Append ld.so.conf contents to the search path
17963 if test -f /etc/ld.so.conf; then
17964 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' ' '`
17965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17966 fi
17967
17968 # We used to test for /lib/ld.so.1 and disable shared libraries on
17969 # powerpc, because MkLinux only supported shared libraries with the
17970 # GNU dynamic linker. Since this was broken with cross compilers,
17971 # most powerpc-linux boxes support dynamic linking these days and
17972 # people can always --disable-shared, the test was removed, and we
17973 # assume the GNU/Linux dynamic linker is in use.
17974 dynamic_linker='GNU/Linux ld.so'
17975 ;;
17976
17977 netbsdelf*-gnu)
17978 version_type=linux
17979 need_lib_prefix=no
17980 need_version=no
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982 soname_spec='${libname}${release}${shared_ext}$major'
17983 shlibpath_var=LD_LIBRARY_PATH
17984 shlibpath_overrides_runpath=no
17985 hardcode_into_libs=yes
17986 dynamic_linker='NetBSD ld.elf_so'
17987 ;;
17988
17989 netbsd*)
17990 version_type=sunos
17991 need_lib_prefix=no
17992 need_version=no
17993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17996 dynamic_linker='NetBSD (a.out) ld.so'
17997 else
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 dynamic_linker='NetBSD ld.elf_so'
18001 fi
18002 shlibpath_var=LD_LIBRARY_PATH
18003 shlibpath_overrides_runpath=yes
18004 hardcode_into_libs=yes
18005 ;;
18006
18007 newsos6)
18008 version_type=linux
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010 shlibpath_var=LD_LIBRARY_PATH
18011 shlibpath_overrides_runpath=yes
18012 ;;
18013
18014 nto-qnx*)
18015 version_type=linux
18016 need_lib_prefix=no
18017 need_version=no
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019 soname_spec='${libname}${release}${shared_ext}$major'
18020 shlibpath_var=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath=yes
18022 ;;
18023
18024 openbsd*)
18025 version_type=sunos
18026 sys_lib_dlsearch_path_spec="/usr/lib"
18027 need_lib_prefix=no
18028 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18029 case $host_os in
18030 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18031 *) need_version=no ;;
18032 esac
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18035 shlibpath_var=LD_LIBRARY_PATH
18036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18037 case $host_os in
18038 openbsd2.[89] | openbsd2.[89].*)
18039 shlibpath_overrides_runpath=no
18040 ;;
18041 *)
18042 shlibpath_overrides_runpath=yes
18043 ;;
18044 esac
18045 else
18046 shlibpath_overrides_runpath=yes
18047 fi
18048 ;;
18049
18050 os2*)
18051 libname_spec='$name'
18052 shrext_cmds=".dll"
18053 need_lib_prefix=no
18054 library_names_spec='$libname${shared_ext} $libname.a'
18055 dynamic_linker='OS/2 ld.exe'
18056 shlibpath_var=LIBPATH
18057 ;;
18058
18059 osf3* | osf4* | osf5*)
18060 version_type=osf
18061 need_lib_prefix=no
18062 need_version=no
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 shlibpath_var=LD_LIBRARY_PATH
18066 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18067 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18068 ;;
18069
18070 solaris*)
18071 version_type=linux
18072 need_lib_prefix=no
18073 need_version=no
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 shlibpath_var=LD_LIBRARY_PATH
18077 shlibpath_overrides_runpath=yes
18078 hardcode_into_libs=yes
18079 # ldd complains unless libraries are executable
18080 postinstall_cmds='chmod +x $lib'
18081 ;;
18082
18083 sunos4*)
18084 version_type=sunos
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 shlibpath_overrides_runpath=yes
18089 if test "$with_gnu_ld" = yes; then
18090 need_lib_prefix=no
18091 fi
18092 need_version=yes
18093 ;;
18094
18095 sysv4 | sysv4.3*)
18096 version_type=linux
18097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18098 soname_spec='${libname}${release}${shared_ext}$major'
18099 shlibpath_var=LD_LIBRARY_PATH
18100 case $host_vendor in
18101 sni)
18102 shlibpath_overrides_runpath=no
18103 need_lib_prefix=no
18104 export_dynamic_flag_spec='${wl}-Blargedynsym'
18105 runpath_var=LD_RUN_PATH
18106 ;;
18107 siemens)
18108 need_lib_prefix=no
18109 ;;
18110 motorola)
18111 need_lib_prefix=no
18112 need_version=no
18113 shlibpath_overrides_runpath=no
18114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18115 ;;
18116 esac
18117 ;;
18118
18119 sysv4*MP*)
18120 if test -d /usr/nec ;then
18121 version_type=linux
18122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18123 soname_spec='$libname${shared_ext}.$major'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 fi
18126 ;;
18127
18128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18129 version_type=freebsd-elf
18130 need_lib_prefix=no
18131 need_version=no
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18133 soname_spec='${libname}${release}${shared_ext}$major'
18134 shlibpath_var=LD_LIBRARY_PATH
18135 hardcode_into_libs=yes
18136 if test "$with_gnu_ld" = yes; then
18137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18138 shlibpath_overrides_runpath=no
18139 else
18140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18141 shlibpath_overrides_runpath=yes
18142 case $host_os in
18143 sco3.2v5*)
18144 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18145 ;;
18146 esac
18147 fi
18148 sys_lib_dlsearch_path_spec='/usr/lib'
18149 ;;
18150
18151 uts4*)
18152 version_type=linux
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 shlibpath_var=LD_LIBRARY_PATH
18156 ;;
18157
18158 *)
18159 dynamic_linker=no
18160 ;;
18161 esac
18162 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18163 echo "${ECHO_T}$dynamic_linker" >&6; }
18164 test "$dynamic_linker" = no && can_build_shared=no
18165
18166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18167 if test "$GCC" = yes; then
18168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18169 fi
18170
18171 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18172 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18173 hardcode_action_GCJ=
18174 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18175 test -n "$runpath_var_GCJ" || \
18176 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18177
18178 # We can hardcode non-existant directories.
18179 if test "$hardcode_direct_GCJ" != no &&
18180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18181 # have to relink, otherwise we might link with an installed library
18182 # when we should be linking with a yet-to-be-installed one
18183 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18184 test "$hardcode_minus_L_GCJ" != no; then
18185 # Linking always hardcodes the temporary library directory.
18186 hardcode_action_GCJ=relink
18187 else
18188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18189 hardcode_action_GCJ=immediate
18190 fi
18191 else
18192 # We cannot hardcode anything, or else we can only hardcode existing
18193 # directories.
18194 hardcode_action_GCJ=unsupported
18195 fi
18196 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18197 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18198
18199 if test "$hardcode_action_GCJ" = relink; then
18200 # Fast installation is not supported
18201 enable_fast_install=no
18202 elif test "$shlibpath_overrides_runpath" = yes ||
18203 test "$enable_shared" = no; then
18204 # Fast installation is not necessary
18205 enable_fast_install=needless
18206 fi
18207
18208
18209 # The else clause should only fire when bootstrapping the
18210 # libtool distribution, otherwise you forgot to ship ltmain.sh
18211 # with your package, and you will get complaints that there are
18212 # no rules to generate ltmain.sh.
18213 if test -f "$ltmain"; then
18214 # See if we are running on zsh, and set the options which allow our commands through
18215 # without removal of \ escapes.
18216 if test -n "${ZSH_VERSION+set}" ; then
18217 setopt NO_GLOB_SUBST
18218 fi
18219 # Now quote all the things that may contain metacharacters while being
18220 # careful not to overquote the AC_SUBSTed values. We take copies of the
18221 # variables and quote the copies for generation of the libtool script.
18222 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18223 SED SHELL STRIP \
18224 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18225 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18226 deplibs_check_method reload_flag reload_cmds need_locks \
18227 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18228 lt_cv_sys_global_symbol_to_c_name_address \
18229 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18230 old_postinstall_cmds old_postuninstall_cmds \
18231 compiler_GCJ \
18232 CC_GCJ \
18233 LD_GCJ \
18234 lt_prog_compiler_wl_GCJ \
18235 lt_prog_compiler_pic_GCJ \
18236 lt_prog_compiler_static_GCJ \
18237 lt_prog_compiler_no_builtin_flag_GCJ \
18238 export_dynamic_flag_spec_GCJ \
18239 thread_safe_flag_spec_GCJ \
18240 whole_archive_flag_spec_GCJ \
18241 enable_shared_with_static_runtimes_GCJ \
18242 old_archive_cmds_GCJ \
18243 old_archive_from_new_cmds_GCJ \
18244 predep_objects_GCJ \
18245 postdep_objects_GCJ \
18246 predeps_GCJ \
18247 postdeps_GCJ \
18248 compiler_lib_search_path_GCJ \
18249 archive_cmds_GCJ \
18250 archive_expsym_cmds_GCJ \
18251 postinstall_cmds_GCJ \
18252 postuninstall_cmds_GCJ \
18253 old_archive_from_expsyms_cmds_GCJ \
18254 allow_undefined_flag_GCJ \
18255 no_undefined_flag_GCJ \
18256 export_symbols_cmds_GCJ \
18257 hardcode_libdir_flag_spec_GCJ \
18258 hardcode_libdir_flag_spec_ld_GCJ \
18259 hardcode_libdir_separator_GCJ \
18260 hardcode_automatic_GCJ \
18261 module_cmds_GCJ \
18262 module_expsym_cmds_GCJ \
18263 lt_cv_prog_compiler_c_o_GCJ \
18264 exclude_expsyms_GCJ \
18265 include_expsyms_GCJ; do
18266
18267 case $var in
18268 old_archive_cmds_GCJ | \
18269 old_archive_from_new_cmds_GCJ | \
18270 archive_cmds_GCJ | \
18271 archive_expsym_cmds_GCJ | \
18272 module_cmds_GCJ | \
18273 module_expsym_cmds_GCJ | \
18274 old_archive_from_expsyms_cmds_GCJ | \
18275 export_symbols_cmds_GCJ | \
18276 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18277 postinstall_cmds | postuninstall_cmds | \
18278 old_postinstall_cmds | old_postuninstall_cmds | \
18279 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18280 # Double-quote double-evaled strings.
18281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18282 ;;
18283 *)
18284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18285 ;;
18286 esac
18287 done
18288
18289 case $lt_echo in
18290 *'\$0 --fallback-echo"')
18291 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18292 ;;
18293 esac
18294
18295 cfgfile="$ofile"
18296
18297 cat <<__EOF__ >> "$cfgfile"
18298 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18299
18300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18301
18302 # Shell to use when invoking shell scripts.
18303 SHELL=$lt_SHELL
18304
18305 # Whether or not to build shared libraries.
18306 build_libtool_libs=$enable_shared
18307
18308 # Whether or not to build static libraries.
18309 build_old_libs=$enable_static
18310
18311 # Whether or not to add -lc for building shared libraries.
18312 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18313
18314 # Whether or not to disallow shared libs when runtime libs are static
18315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18316
18317 # Whether or not to optimize for fast installation.
18318 fast_install=$enable_fast_install
18319
18320 # The host system.
18321 host_alias=$host_alias
18322 host=$host
18323 host_os=$host_os
18324
18325 # The build system.
18326 build_alias=$build_alias
18327 build=$build
18328 build_os=$build_os
18329
18330 # An echo program that does not interpret backslashes.
18331 echo=$lt_echo
18332
18333 # The archiver.
18334 AR=$lt_AR
18335 AR_FLAGS=$lt_AR_FLAGS
18336
18337 # A C compiler.
18338 LTCC=$lt_LTCC
18339
18340 # LTCC compiler flags.
18341 LTCFLAGS=$lt_LTCFLAGS
18342
18343 # A language-specific compiler.
18344 CC=$lt_compiler_GCJ
18345
18346 # Is the compiler the GNU C compiler?
18347 with_gcc=$GCC_GCJ
18348
18349 # An ERE matcher.
18350 EGREP=$lt_EGREP
18351
18352 # The linker used to build libraries.
18353 LD=$lt_LD_GCJ
18354
18355 # Whether we need hard or soft links.
18356 LN_S=$lt_LN_S
18357
18358 # A BSD-compatible nm program.
18359 NM=$lt_NM
18360
18361 # A symbol stripping program
18362 STRIP=$lt_STRIP
18363
18364 # Used to examine libraries when file_magic_cmd begins "file"
18365 MAGIC_CMD=$MAGIC_CMD
18366
18367 # Used on cygwin: DLL creation program.
18368 DLLTOOL="$DLLTOOL"
18369
18370 # Used on cygwin: object dumper.
18371 OBJDUMP="$OBJDUMP"
18372
18373 # Used on cygwin: assembler.
18374 AS="$AS"
18375
18376 # The name of the directory that contains temporary libtool files.
18377 objdir=$objdir
18378
18379 # How to create reloadable object files.
18380 reload_flag=$lt_reload_flag
18381 reload_cmds=$lt_reload_cmds
18382
18383 # How to pass a linker flag through the compiler.
18384 wl=$lt_lt_prog_compiler_wl_GCJ
18385
18386 # Object file suffix (normally "o").
18387 objext="$ac_objext"
18388
18389 # Old archive suffix (normally "a").
18390 libext="$libext"
18391
18392 # Shared library suffix (normally ".so").
18393 shrext_cmds='$shrext_cmds'
18394
18395 # Executable file suffix (normally "").
18396 exeext="$exeext"
18397
18398 # Additional compiler flags for building library objects.
18399 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18400 pic_mode=$pic_mode
18401
18402 # What is the maximum length of a command?
18403 max_cmd_len=$lt_cv_sys_max_cmd_len
18404
18405 # Does compiler simultaneously support -c and -o options?
18406 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18407
18408 # Must we lock files when doing compilation?
18409 need_locks=$lt_need_locks
18410
18411 # Do we need the lib prefix for modules?
18412 need_lib_prefix=$need_lib_prefix
18413
18414 # Do we need a version for libraries?
18415 need_version=$need_version
18416
18417 # Whether dlopen is supported.
18418 dlopen_support=$enable_dlopen
18419
18420 # Whether dlopen of programs is supported.
18421 dlopen_self=$enable_dlopen_self
18422
18423 # Whether dlopen of statically linked programs is supported.
18424 dlopen_self_static=$enable_dlopen_self_static
18425
18426 # Compiler flag to prevent dynamic linking.
18427 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18428
18429 # Compiler flag to turn off builtin functions.
18430 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18431
18432 # Compiler flag to allow reflexive dlopens.
18433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18434
18435 # Compiler flag to generate shared objects directly from archives.
18436 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18437
18438 # Compiler flag to generate thread-safe objects.
18439 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18440
18441 # Library versioning type.
18442 version_type=$version_type
18443
18444 # Format of library name prefix.
18445 libname_spec=$lt_libname_spec
18446
18447 # List of archive names. First name is the real one, the rest are links.
18448 # The last name is the one that the linker finds with -lNAME.
18449 library_names_spec=$lt_library_names_spec
18450
18451 # The coded name of the library, if different from the real name.
18452 soname_spec=$lt_soname_spec
18453
18454 # Commands used to build and install an old-style archive.
18455 RANLIB=$lt_RANLIB
18456 old_archive_cmds=$lt_old_archive_cmds_GCJ
18457 old_postinstall_cmds=$lt_old_postinstall_cmds
18458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18459
18460 # Create an old-style archive from a shared archive.
18461 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18462
18463 # Create a temporary old-style archive to link instead of a shared archive.
18464 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18465
18466 # Commands used to build and install a shared archive.
18467 archive_cmds=$lt_archive_cmds_GCJ
18468 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18469 postinstall_cmds=$lt_postinstall_cmds
18470 postuninstall_cmds=$lt_postuninstall_cmds
18471
18472 # Commands used to build a loadable module (assumed same as above if empty)
18473 module_cmds=$lt_module_cmds_GCJ
18474 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18475
18476 # Commands to strip libraries.
18477 old_striplib=$lt_old_striplib
18478 striplib=$lt_striplib
18479
18480 # Dependencies to place before the objects being linked to create a
18481 # shared library.
18482 predep_objects=$lt_predep_objects_GCJ
18483
18484 # Dependencies to place after the objects being linked to create a
18485 # shared library.
18486 postdep_objects=$lt_postdep_objects_GCJ
18487
18488 # Dependencies to place before the objects being linked to create a
18489 # shared library.
18490 predeps=$lt_predeps_GCJ
18491
18492 # Dependencies to place after the objects being linked to create a
18493 # shared library.
18494 postdeps=$lt_postdeps_GCJ
18495
18496 # The library search path used internally by the compiler when linking
18497 # a shared library.
18498 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18499
18500 # Method to check whether dependent libraries are shared objects.
18501 deplibs_check_method=$lt_deplibs_check_method
18502
18503 # Command to use when deplibs_check_method == file_magic.
18504 file_magic_cmd=$lt_file_magic_cmd
18505
18506 # Flag that allows shared libraries with undefined symbols to be built.
18507 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18508
18509 # Flag that forces no undefined symbols.
18510 no_undefined_flag=$lt_no_undefined_flag_GCJ
18511
18512 # Commands used to finish a libtool library installation in a directory.
18513 finish_cmds=$lt_finish_cmds
18514
18515 # Same as above, but a single script fragment to be evaled but not shown.
18516 finish_eval=$lt_finish_eval
18517
18518 # Take the output of nm and produce a listing of raw symbols and C names.
18519 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18520
18521 # Transform the output of nm in a proper C declaration
18522 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18523
18524 # Transform the output of nm in a C name address pair
18525 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18526
18527 # This is the shared library runtime path variable.
18528 runpath_var=$runpath_var
18529
18530 # This is the shared library path variable.
18531 shlibpath_var=$shlibpath_var
18532
18533 # Is shlibpath searched before the hard-coded library search path?
18534 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18535
18536 # How to hardcode a shared library path into an executable.
18537 hardcode_action=$hardcode_action_GCJ
18538
18539 # Whether we should hardcode library paths into libraries.
18540 hardcode_into_libs=$hardcode_into_libs
18541
18542 # Flag to hardcode \$libdir into a binary during linking.
18543 # This must work even if \$libdir does not exist.
18544 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18545
18546 # If ld is used when linking, flag to hardcode \$libdir into
18547 # a binary during linking. This must work even if \$libdir does
18548 # not exist.
18549 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18550
18551 # Whether we need a single -rpath flag with a separated argument.
18552 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18553
18554 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18555 # resulting binary.
18556 hardcode_direct=$hardcode_direct_GCJ
18557
18558 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18559 # resulting binary.
18560 hardcode_minus_L=$hardcode_minus_L_GCJ
18561
18562 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18563 # the resulting binary.
18564 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18565
18566 # Set to yes if building a shared library automatically hardcodes DIR into the library
18567 # and all subsequent libraries and executables linked against it.
18568 hardcode_automatic=$hardcode_automatic_GCJ
18569
18570 # Variables whose values should be saved in libtool wrapper scripts and
18571 # restored at relink time.
18572 variables_saved_for_relink="$variables_saved_for_relink"
18573
18574 # Whether libtool must link a program against all its dependency libraries.
18575 link_all_deplibs=$link_all_deplibs_GCJ
18576
18577 # Compile-time system search path for libraries
18578 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18579
18580 # Run-time system search path for libraries
18581 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18582
18583 # Fix the shell variable \$srcfile for the compiler.
18584 fix_srcfile_path="$fix_srcfile_path_GCJ"
18585
18586 # Set to yes if exported symbols are required.
18587 always_export_symbols=$always_export_symbols_GCJ
18588
18589 # The commands to list exported symbols.
18590 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18591
18592 # The commands to extract the exported symbol list from a shared archive.
18593 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18594
18595 # Symbols that should not be listed in the preloaded symbols.
18596 exclude_expsyms=$lt_exclude_expsyms_GCJ
18597
18598 # Symbols that must always be exported.
18599 include_expsyms=$lt_include_expsyms_GCJ
18600
18601 # ### END LIBTOOL TAG CONFIG: $tagname
18602
18603 __EOF__
18604
18605
18606 else
18607 # If there is no Makefile yet, we rely on a make rule to execute
18608 # `config.status --recheck' to rerun these tests and create the
18609 # libtool script then.
18610 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18611 if test -f "$ltmain_in"; then
18612 test -f Makefile && make "$ltmain"
18613 fi
18614 fi
18615
18616
18617 ac_ext=c
18618 ac_cpp='$CPP $CPPFLAGS'
18619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18622
18623 CC="$lt_save_CC"
18624
18625 else
18626 tagname=""
18627 fi
18628 ;;
18629
18630 RC)
18631
18632
18633 # Source file extension for RC test sources.
18634 ac_ext=rc
18635
18636 # Object file extension for compiled RC test sources.
18637 objext=o
18638 objext_RC=$objext
18639
18640 # Code to be used in simple compile tests
18641 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18642
18643 # Code to be used in simple link tests
18644 lt_simple_link_test_code="$lt_simple_compile_test_code"
18645
18646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18647
18648 # If no C compiler was specified, use CC.
18649 LTCC=${LTCC-"$CC"}
18650
18651 # If no C compiler flags were specified, use CFLAGS.
18652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18653
18654 # Allow CC to be a program name with arguments.
18655 compiler=$CC
18656
18657
18658 # save warnings/boilerplate of simple test code
18659 ac_outfile=conftest.$ac_objext
18660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18662 _lt_compiler_boilerplate=`cat conftest.err`
18663 $rm conftest*
18664
18665 ac_outfile=conftest.$ac_objext
18666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18668 _lt_linker_boilerplate=`cat conftest.err`
18669 $rm conftest*
18670
18671
18672 # Allow CC to be a program name with arguments.
18673 lt_save_CC="$CC"
18674 CC=${RC-"windres"}
18675 compiler=$CC
18676 compiler_RC=$CC
18677 for cc_temp in $compiler""; do
18678 case $cc_temp in
18679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18681 \-*) ;;
18682 *) break;;
18683 esac
18684 done
18685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18686
18687 lt_cv_prog_compiler_c_o_RC=yes
18688
18689 # The else clause should only fire when bootstrapping the
18690 # libtool distribution, otherwise you forgot to ship ltmain.sh
18691 # with your package, and you will get complaints that there are
18692 # no rules to generate ltmain.sh.
18693 if test -f "$ltmain"; then
18694 # See if we are running on zsh, and set the options which allow our commands through
18695 # without removal of \ escapes.
18696 if test -n "${ZSH_VERSION+set}" ; then
18697 setopt NO_GLOB_SUBST
18698 fi
18699 # Now quote all the things that may contain metacharacters while being
18700 # careful not to overquote the AC_SUBSTed values. We take copies of the
18701 # variables and quote the copies for generation of the libtool script.
18702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18703 SED SHELL STRIP \
18704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18706 deplibs_check_method reload_flag reload_cmds need_locks \
18707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18708 lt_cv_sys_global_symbol_to_c_name_address \
18709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18710 old_postinstall_cmds old_postuninstall_cmds \
18711 compiler_RC \
18712 CC_RC \
18713 LD_RC \
18714 lt_prog_compiler_wl_RC \
18715 lt_prog_compiler_pic_RC \
18716 lt_prog_compiler_static_RC \
18717 lt_prog_compiler_no_builtin_flag_RC \
18718 export_dynamic_flag_spec_RC \
18719 thread_safe_flag_spec_RC \
18720 whole_archive_flag_spec_RC \
18721 enable_shared_with_static_runtimes_RC \
18722 old_archive_cmds_RC \
18723 old_archive_from_new_cmds_RC \
18724 predep_objects_RC \
18725 postdep_objects_RC \
18726 predeps_RC \
18727 postdeps_RC \
18728 compiler_lib_search_path_RC \
18729 archive_cmds_RC \
18730 archive_expsym_cmds_RC \
18731 postinstall_cmds_RC \
18732 postuninstall_cmds_RC \
18733 old_archive_from_expsyms_cmds_RC \
18734 allow_undefined_flag_RC \
18735 no_undefined_flag_RC \
18736 export_symbols_cmds_RC \
18737 hardcode_libdir_flag_spec_RC \
18738 hardcode_libdir_flag_spec_ld_RC \
18739 hardcode_libdir_separator_RC \
18740 hardcode_automatic_RC \
18741 module_cmds_RC \
18742 module_expsym_cmds_RC \
18743 lt_cv_prog_compiler_c_o_RC \
18744 exclude_expsyms_RC \
18745 include_expsyms_RC; do
18746
18747 case $var in
18748 old_archive_cmds_RC | \
18749 old_archive_from_new_cmds_RC | \
18750 archive_cmds_RC | \
18751 archive_expsym_cmds_RC | \
18752 module_cmds_RC | \
18753 module_expsym_cmds_RC | \
18754 old_archive_from_expsyms_cmds_RC | \
18755 export_symbols_cmds_RC | \
18756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18757 postinstall_cmds | postuninstall_cmds | \
18758 old_postinstall_cmds | old_postuninstall_cmds | \
18759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18760 # Double-quote double-evaled strings.
18761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18762 ;;
18763 *)
18764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18765 ;;
18766 esac
18767 done
18768
18769 case $lt_echo in
18770 *'\$0 --fallback-echo"')
18771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18772 ;;
18773 esac
18774
18775 cfgfile="$ofile"
18776
18777 cat <<__EOF__ >> "$cfgfile"
18778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18779
18780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18781
18782 # Shell to use when invoking shell scripts.
18783 SHELL=$lt_SHELL
18784
18785 # Whether or not to build shared libraries.
18786 build_libtool_libs=$enable_shared
18787
18788 # Whether or not to build static libraries.
18789 build_old_libs=$enable_static
18790
18791 # Whether or not to add -lc for building shared libraries.
18792 build_libtool_need_lc=$archive_cmds_need_lc_RC
18793
18794 # Whether or not to disallow shared libs when runtime libs are static
18795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18796
18797 # Whether or not to optimize for fast installation.
18798 fast_install=$enable_fast_install
18799
18800 # The host system.
18801 host_alias=$host_alias
18802 host=$host
18803 host_os=$host_os
18804
18805 # The build system.
18806 build_alias=$build_alias
18807 build=$build
18808 build_os=$build_os
18809
18810 # An echo program that does not interpret backslashes.
18811 echo=$lt_echo
18812
18813 # The archiver.
18814 AR=$lt_AR
18815 AR_FLAGS=$lt_AR_FLAGS
18816
18817 # A C compiler.
18818 LTCC=$lt_LTCC
18819
18820 # LTCC compiler flags.
18821 LTCFLAGS=$lt_LTCFLAGS
18822
18823 # A language-specific compiler.
18824 CC=$lt_compiler_RC
18825
18826 # Is the compiler the GNU C compiler?
18827 with_gcc=$GCC_RC
18828
18829 # An ERE matcher.
18830 EGREP=$lt_EGREP
18831
18832 # The linker used to build libraries.
18833 LD=$lt_LD_RC
18834
18835 # Whether we need hard or soft links.
18836 LN_S=$lt_LN_S
18837
18838 # A BSD-compatible nm program.
18839 NM=$lt_NM
18840
18841 # A symbol stripping program
18842 STRIP=$lt_STRIP
18843
18844 # Used to examine libraries when file_magic_cmd begins "file"
18845 MAGIC_CMD=$MAGIC_CMD
18846
18847 # Used on cygwin: DLL creation program.
18848 DLLTOOL="$DLLTOOL"
18849
18850 # Used on cygwin: object dumper.
18851 OBJDUMP="$OBJDUMP"
18852
18853 # Used on cygwin: assembler.
18854 AS="$AS"
18855
18856 # The name of the directory that contains temporary libtool files.
18857 objdir=$objdir
18858
18859 # How to create reloadable object files.
18860 reload_flag=$lt_reload_flag
18861 reload_cmds=$lt_reload_cmds
18862
18863 # How to pass a linker flag through the compiler.
18864 wl=$lt_lt_prog_compiler_wl_RC
18865
18866 # Object file suffix (normally "o").
18867 objext="$ac_objext"
18868
18869 # Old archive suffix (normally "a").
18870 libext="$libext"
18871
18872 # Shared library suffix (normally ".so").
18873 shrext_cmds='$shrext_cmds'
18874
18875 # Executable file suffix (normally "").
18876 exeext="$exeext"
18877
18878 # Additional compiler flags for building library objects.
18879 pic_flag=$lt_lt_prog_compiler_pic_RC
18880 pic_mode=$pic_mode
18881
18882 # What is the maximum length of a command?
18883 max_cmd_len=$lt_cv_sys_max_cmd_len
18884
18885 # Does compiler simultaneously support -c and -o options?
18886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18887
18888 # Must we lock files when doing compilation?
18889 need_locks=$lt_need_locks
18890
18891 # Do we need the lib prefix for modules?
18892 need_lib_prefix=$need_lib_prefix
18893
18894 # Do we need a version for libraries?
18895 need_version=$need_version
18896
18897 # Whether dlopen is supported.
18898 dlopen_support=$enable_dlopen
18899
18900 # Whether dlopen of programs is supported.
18901 dlopen_self=$enable_dlopen_self
18902
18903 # Whether dlopen of statically linked programs is supported.
18904 dlopen_self_static=$enable_dlopen_self_static
18905
18906 # Compiler flag to prevent dynamic linking.
18907 link_static_flag=$lt_lt_prog_compiler_static_RC
18908
18909 # Compiler flag to turn off builtin functions.
18910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18911
18912 # Compiler flag to allow reflexive dlopens.
18913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18914
18915 # Compiler flag to generate shared objects directly from archives.
18916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18917
18918 # Compiler flag to generate thread-safe objects.
18919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18920
18921 # Library versioning type.
18922 version_type=$version_type
18923
18924 # Format of library name prefix.
18925 libname_spec=$lt_libname_spec
18926
18927 # List of archive names. First name is the real one, the rest are links.
18928 # The last name is the one that the linker finds with -lNAME.
18929 library_names_spec=$lt_library_names_spec
18930
18931 # The coded name of the library, if different from the real name.
18932 soname_spec=$lt_soname_spec
18933
18934 # Commands used to build and install an old-style archive.
18935 RANLIB=$lt_RANLIB
18936 old_archive_cmds=$lt_old_archive_cmds_RC
18937 old_postinstall_cmds=$lt_old_postinstall_cmds
18938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18939
18940 # Create an old-style archive from a shared archive.
18941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18942
18943 # Create a temporary old-style archive to link instead of a shared archive.
18944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18945
18946 # Commands used to build and install a shared archive.
18947 archive_cmds=$lt_archive_cmds_RC
18948 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18949 postinstall_cmds=$lt_postinstall_cmds
18950 postuninstall_cmds=$lt_postuninstall_cmds
18951
18952 # Commands used to build a loadable module (assumed same as above if empty)
18953 module_cmds=$lt_module_cmds_RC
18954 module_expsym_cmds=$lt_module_expsym_cmds_RC
18955
18956 # Commands to strip libraries.
18957 old_striplib=$lt_old_striplib
18958 striplib=$lt_striplib
18959
18960 # Dependencies to place before the objects being linked to create a
18961 # shared library.
18962 predep_objects=$lt_predep_objects_RC
18963
18964 # Dependencies to place after the objects being linked to create a
18965 # shared library.
18966 postdep_objects=$lt_postdep_objects_RC
18967
18968 # Dependencies to place before the objects being linked to create a
18969 # shared library.
18970 predeps=$lt_predeps_RC
18971
18972 # Dependencies to place after the objects being linked to create a
18973 # shared library.
18974 postdeps=$lt_postdeps_RC
18975
18976 # The library search path used internally by the compiler when linking
18977 # a shared library.
18978 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18979
18980 # Method to check whether dependent libraries are shared objects.
18981 deplibs_check_method=$lt_deplibs_check_method
18982
18983 # Command to use when deplibs_check_method == file_magic.
18984 file_magic_cmd=$lt_file_magic_cmd
18985
18986 # Flag that allows shared libraries with undefined symbols to be built.
18987 allow_undefined_flag=$lt_allow_undefined_flag_RC
18988
18989 # Flag that forces no undefined symbols.
18990 no_undefined_flag=$lt_no_undefined_flag_RC
18991
18992 # Commands used to finish a libtool library installation in a directory.
18993 finish_cmds=$lt_finish_cmds
18994
18995 # Same as above, but a single script fragment to be evaled but not shown.
18996 finish_eval=$lt_finish_eval
18997
18998 # Take the output of nm and produce a listing of raw symbols and C names.
18999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19000
19001 # Transform the output of nm in a proper C declaration
19002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19003
19004 # Transform the output of nm in a C name address pair
19005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19006
19007 # This is the shared library runtime path variable.
19008 runpath_var=$runpath_var
19009
19010 # This is the shared library path variable.
19011 shlibpath_var=$shlibpath_var
19012
19013 # Is shlibpath searched before the hard-coded library search path?
19014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19015
19016 # How to hardcode a shared library path into an executable.
19017 hardcode_action=$hardcode_action_RC
19018
19019 # Whether we should hardcode library paths into libraries.
19020 hardcode_into_libs=$hardcode_into_libs
19021
19022 # Flag to hardcode \$libdir into a binary during linking.
19023 # This must work even if \$libdir does not exist.
19024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19025
19026 # If ld is used when linking, flag to hardcode \$libdir into
19027 # a binary during linking. This must work even if \$libdir does
19028 # not exist.
19029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19030
19031 # Whether we need a single -rpath flag with a separated argument.
19032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19033
19034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19035 # resulting binary.
19036 hardcode_direct=$hardcode_direct_RC
19037
19038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19039 # resulting binary.
19040 hardcode_minus_L=$hardcode_minus_L_RC
19041
19042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19043 # the resulting binary.
19044 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19045
19046 # Set to yes if building a shared library automatically hardcodes DIR into the library
19047 # and all subsequent libraries and executables linked against it.
19048 hardcode_automatic=$hardcode_automatic_RC
19049
19050 # Variables whose values should be saved in libtool wrapper scripts and
19051 # restored at relink time.
19052 variables_saved_for_relink="$variables_saved_for_relink"
19053
19054 # Whether libtool must link a program against all its dependency libraries.
19055 link_all_deplibs=$link_all_deplibs_RC
19056
19057 # Compile-time system search path for libraries
19058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19059
19060 # Run-time system search path for libraries
19061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19062
19063 # Fix the shell variable \$srcfile for the compiler.
19064 fix_srcfile_path="$fix_srcfile_path_RC"
19065
19066 # Set to yes if exported symbols are required.
19067 always_export_symbols=$always_export_symbols_RC
19068
19069 # The commands to list exported symbols.
19070 export_symbols_cmds=$lt_export_symbols_cmds_RC
19071
19072 # The commands to extract the exported symbol list from a shared archive.
19073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19074
19075 # Symbols that should not be listed in the preloaded symbols.
19076 exclude_expsyms=$lt_exclude_expsyms_RC
19077
19078 # Symbols that must always be exported.
19079 include_expsyms=$lt_include_expsyms_RC
19080
19081 # ### END LIBTOOL TAG CONFIG: $tagname
19082
19083 __EOF__
19084
19085
19086 else
19087 # If there is no Makefile yet, we rely on a make rule to execute
19088 # `config.status --recheck' to rerun these tests and create the
19089 # libtool script then.
19090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19091 if test -f "$ltmain_in"; then
19092 test -f Makefile && make "$ltmain"
19093 fi
19094 fi
19095
19096
19097 ac_ext=c
19098 ac_cpp='$CPP $CPPFLAGS'
19099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102
19103 CC="$lt_save_CC"
19104
19105 ;;
19106
19107 *)
19108 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19109 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19110 { (exit 1); exit 1; }; }
19111 ;;
19112 esac
19113
19114 # Append the new tag name to the list of available tags.
19115 if test -n "$tagname" ; then
19116 available_tags="$available_tags $tagname"
19117 fi
19118 fi
19119 done
19120 IFS="$lt_save_ifs"
19121
19122 # Now substitute the updated list of available tags.
19123 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19124 mv "${ofile}T" "$ofile"
19125 chmod +x "$ofile"
19126 else
19127 rm -f "${ofile}T"
19128 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19129 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19130 { (exit 1); exit 1; }; }
19131 fi
19132 fi
19133
19134
19135
19136 # This can be used to rebuild libtool when needed
19137 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19138
19139 # Always use our own libtool.
19140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19141
19142 # Prevent multiple expansion
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165 # Extract the first word of "xmlto", so it can be a program name with args.
19166 set dummy xmlto; ac_word=$2
19167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19169 if test "${ac_cv_path_XMLTO+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172 case $XMLTO in
19173 [\\/]* | ?:[\\/]*)
19174 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19175 ;;
19176 *)
19177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19178 for as_dir in $PATH
19179 do
19180 IFS=$as_save_IFS
19181 test -z "$as_dir" && as_dir=.
19182 for ac_exec_ext in '' $ac_executable_extensions; do
19183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19184 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19186 break 2
19187 fi
19188 done
19189 done
19190 IFS=$as_save_IFS
19191
19192 ;;
19193 esac
19194 fi
19195 XMLTO=$ac_cv_path_XMLTO
19196 if test -n "$XMLTO"; then
19197 { echo "$as_me:$LINENO: result: $XMLTO" >&5
19198 echo "${ECHO_T}$XMLTO" >&6; }
19199 else
19200 { echo "$as_me:$LINENO: result: no" >&5
19201 echo "${ECHO_T}no" >&6; }
19202 fi
19203
19204
19205
19206
19207 if test "x$XMLTO" != "x"; then
19208 HAVE_XMLTO_TRUE=
19209 HAVE_XMLTO_FALSE='#'
19210 else
19211 HAVE_XMLTO_TRUE='#'
19212 HAVE_XMLTO_FALSE=
19213 fi
19214
19215 if test "x$XMLTO" = "x" -a ! -f $srcdir/man/Xcomposite.man ; then
19216 { echo "$as_me:$LINENO: WARNING: xmlto not found - cannot create man pages without it" >&5
19217 echo "$as_me: WARNING: xmlto not found - cannot create man pages without it" >&2;}
19218 fi
19219
19220 # Check compositeext configuration, strip extra digits from package version to
19221 # find the required protocol version
19222
19223 if test "$VERSION" = "" ; then
19224 VERSION=$PACKAGE_VERSION;
19225 fi
19226 COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19227
19228
19229
19230 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19231 if test -n "$ac_tool_prefix"; then
19232 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19233 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19236 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239 case $PKG_CONFIG in
19240 [\\/]* | ?:[\\/]*)
19241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19242 ;;
19243 *)
19244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19245 for as_dir in $PATH
19246 do
19247 IFS=$as_save_IFS
19248 test -z "$as_dir" && as_dir=.
19249 for ac_exec_ext in '' $ac_executable_extensions; do
19250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19251 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19253 break 2
19254 fi
19255 done
19256 done
19257 IFS=$as_save_IFS
19258
19259 ;;
19260 esac
19261 fi
19262 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19263 if test -n "$PKG_CONFIG"; then
19264 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19265 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19266 else
19267 { echo "$as_me:$LINENO: result: no" >&5
19268 echo "${ECHO_T}no" >&6; }
19269 fi
19270
19271
19272 fi
19273 if test -z "$ac_cv_path_PKG_CONFIG"; then
19274 ac_pt_PKG_CONFIG=$PKG_CONFIG
19275 # Extract the first word of "pkg-config", so it can be a program name with args.
19276 set dummy pkg-config; ac_word=$2
19277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19279 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282 case $ac_pt_PKG_CONFIG in
19283 [\\/]* | ?:[\\/]*)
19284 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19285 ;;
19286 *)
19287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19288 for as_dir in $PATH
19289 do
19290 IFS=$as_save_IFS
19291 test -z "$as_dir" && as_dir=.
19292 for ac_exec_ext in '' $ac_executable_extensions; do
19293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19294 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19296 break 2
19297 fi
19298 done
19299 done
19300 IFS=$as_save_IFS
19301
19302 ;;
19303 esac
19304 fi
19305 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19306 if test -n "$ac_pt_PKG_CONFIG"; then
19307 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19308 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19309 else
19310 { echo "$as_me:$LINENO: result: no" >&5
19311 echo "${ECHO_T}no" >&6; }
19312 fi
19313
19314 if test "x$ac_pt_PKG_CONFIG" = x; then
19315 PKG_CONFIG=""
19316 else
19317 case $cross_compiling:$ac_tool_warned in
19318 yes:)
19319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19320 whose name does not start with the host triplet. If you think this
19321 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19323 whose name does not start with the host triplet. If you think this
19324 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19325 ac_tool_warned=yes ;;
19326 esac
19327 PKG_CONFIG=$ac_pt_PKG_CONFIG
19328 fi
19329 else
19330 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19331 fi
19332
19333 fi
19334 if test -n "$PKG_CONFIG"; then
19335 _pkg_min_version=0.9.0
19336 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19337 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19338 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19339 { echo "$as_me:$LINENO: result: yes" >&5
19340 echo "${ECHO_T}yes" >&6; }
19341 else
19342 { echo "$as_me:$LINENO: result: no" >&5
19343 echo "${ECHO_T}no" >&6; }
19344 PKG_CONFIG=""
19345 fi
19346
19347 fi
19348
19349 pkg_failed=no
19350 { echo "$as_me:$LINENO: checking for XCOMPOSITE" >&5
19351 echo $ECHO_N "checking for XCOMPOSITE... $ECHO_C" >&6; }
19352
19353 if test -n "$PKG_CONFIG"; then
19354 if test -n "$XCOMPOSITE_CFLAGS"; then
19355 pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS"
19356 else
19357 if test -n "$PKG_CONFIG" && \
19358 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
19359 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; then
19363 pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
19364 else
19365 pkg_failed=yes
19366 fi
19367 fi
19368 else
19369 pkg_failed=untried
19370 fi
19371 if test -n "$PKG_CONFIG"; then
19372 if test -n "$XCOMPOSITE_LIBS"; then
19373 pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS"
19374 else
19375 if test -n "$PKG_CONFIG" && \
19376 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
19377 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; then
19381 pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
19382 else
19383 pkg_failed=yes
19384 fi
19385 fi
19386 else
19387 pkg_failed=untried
19388 fi
19389
19390
19391
19392 if test $pkg_failed = yes; then
19393
19394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19395 _pkg_short_errors_supported=yes
19396 else
19397 _pkg_short_errors_supported=no
19398 fi
19399 if test $_pkg_short_errors_supported = yes; then
19400 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto"`
19401 else
19402 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto"`
19403 fi
19404 # Put the nasty error message in config.log where it belongs
19405 echo "$XCOMPOSITE_PKG_ERRORS" >&5
19406
19407 { { echo "$as_me:$LINENO: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
19408
19409 $XCOMPOSITE_PKG_ERRORS
19410
19411 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19412 installed software in a non-standard prefix.
19413
19414 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
19415 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
19416 See the pkg-config man page for more details.
19417 " >&5
19418 echo "$as_me: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
19419
19420 $XCOMPOSITE_PKG_ERRORS
19421
19422 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19423 installed software in a non-standard prefix.
19424
19425 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
19426 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
19427 See the pkg-config man page for more details.
19428 " >&2;}
19429 { (exit 1); exit 1; }; }
19430 elif test $pkg_failed = untried; then
19431 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19432 is in your PATH or set the PKG_CONFIG environment variable to the full
19433 path to pkg-config.
19434
19435 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
19436 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
19437 See the pkg-config man page for more details.
19438
19439 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19440 See \`config.log' for more details." >&5
19441 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19442 is in your PATH or set the PKG_CONFIG environment variable to the full
19443 path to pkg-config.
19444
19445 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
19446 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
19447 See the pkg-config man page for more details.
19448
19449 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19450 See \`config.log' for more details." >&2;}
19451 { (exit 1); exit 1; }; }
19452 else
19453 XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS
19454 XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS
19455 { echo "$as_me:$LINENO: result: yes" >&5
19456 echo "${ECHO_T}yes" >&6; }
19457 :
19458 fi
19459
19460
19461
19462
19463
19464
19465 if test x$APP_MAN_SUFFIX = x ; then
19466 APP_MAN_SUFFIX=1
19467 fi
19468 if test x$APP_MAN_DIR = x ; then
19469 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19470 fi
19471
19472 if test x$LIB_MAN_SUFFIX = x ; then
19473 LIB_MAN_SUFFIX=3
19474 fi
19475 if test x$LIB_MAN_DIR = x ; then
19476 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19477 fi
19478
19479 if test x$FILE_MAN_SUFFIX = x ; then
19480 case $host_os in
19481 solaris*) FILE_MAN_SUFFIX=4 ;;
19482 *) FILE_MAN_SUFFIX=5 ;;
19483 esac
19484 fi
19485 if test x$FILE_MAN_DIR = x ; then
19486 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19487 fi
19488
19489 if test x$MISC_MAN_SUFFIX = x ; then
19490 case $host_os in
19491 solaris*) MISC_MAN_SUFFIX=5 ;;
19492 *) MISC_MAN_SUFFIX=7 ;;
19493 esac
19494 fi
19495 if test x$MISC_MAN_DIR = x ; then
19496 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19497 fi
19498
19499 if test x$DRIVER_MAN_SUFFIX = x ; then
19500 case $host_os in
19501 solaris*) DRIVER_MAN_SUFFIX=7 ;;
19502 *) DRIVER_MAN_SUFFIX=4 ;;
19503 esac
19504 fi
19505 if test x$DRIVER_MAN_DIR = x ; then
19506 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19507 fi
19508
19509 if test x$ADMIN_MAN_SUFFIX = x ; then
19510 case $host_os in
19511 solaris*) ADMIN_MAN_SUFFIX=1m ;;
19512 *) ADMIN_MAN_SUFFIX=8 ;;
19513 esac
19514 fi
19515 if test x$ADMIN_MAN_DIR = x ; then
19516 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19517 fi
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535 # Check whether --with-release-version was given.
19536 if test "${with_release_version+set}" = set; then
19537 withval=$with_release_version; RELEASE_VERSION="$withval"
19538 else
19539 RELEASE_VERSION=""
19540 fi
19541
19542 if test "x$RELEASE_VERSION" != "x"; then
19543 PACKAGE="$PACKAGE-$RELEASE_VERSION"
19544 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19545 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19546 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19547 fi
19548
19549 cat >>confdefs.h <<_ACEOF
19550 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19551 _ACEOF
19552
19553 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
19554 if test "x$PVM" = "x"; then
19555 PVM="0"
19556 fi
19557
19558 cat >>confdefs.h <<_ACEOF
19559 #define PACKAGE_VERSION_MINOR $PVM
19560 _ACEOF
19561
19562 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
19563 if test "x$PVP" = "x"; then
19564 PVP="0"
19565 fi
19566
19567 cat >>confdefs.h <<_ACEOF
19568 #define PACKAGE_VERSION_PATCHLEVEL $PVP
19569 _ACEOF
19570
19571
19572
19573 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcomposite.pc"
19574
19575 cat >confcache <<\_ACEOF
19576 # This file is a shell script that caches the results of configure
19577 # tests run on this system so they can be shared between configure
19578 # scripts and configure runs, see configure's option --config-cache.
19579 # It is not useful on other systems. If it contains results you don't
19580 # want to keep, you may remove or edit it.
19581 #
19582 # config.status only pays attention to the cache file if you give it
19583 # the --recheck option to rerun configure.
19584 #
19585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19587 # following values.
19588
19589 _ACEOF
19590
19591 # The following way of writing the cache mishandles newlines in values,
19592 # but we know of no workaround that is simple, portable, and efficient.
19593 # So, we kill variables containing newlines.
19594 # Ultrix sh set writes to stderr and can't be redirected directly,
19595 # and sets the high bit in the cache file unless we assign to the vars.
19596 (
19597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19598 eval ac_val=\$$ac_var
19599 case $ac_val in #(
19600 *${as_nl}*)
19601 case $ac_var in #(
19602 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19603 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19604 esac
19605 case $ac_var in #(
19606 _ | IFS | as_nl) ;; #(
19607 *) $as_unset $ac_var ;;
19608 esac ;;
19609 esac
19610 done
19611
19612 (set) 2>&1 |
19613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19614 *${as_nl}ac_space=\ *)
19615 # `set' does not quote correctly, so add quotes (double-quote
19616 # substitution turns \\\\ into \\, and sed turns \\ into \).
19617 sed -n \
19618 "s/'/'\\\\''/g;
19619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19620 ;; #(
19621 *)
19622 # `set' quotes correctly as required by POSIX, so do not add quotes.
19623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19624 ;;
19625 esac |
19626 sort
19627 ) |
19628 sed '
19629 /^ac_cv_env_/b end
19630 t clear
19631 :clear
19632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19633 t end
19634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19635 :end' >>confcache
19636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19637 if test -w "$cache_file"; then
19638 test "x$cache_file" != "x/dev/null" &&
19639 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19640 echo "$as_me: updating cache $cache_file" >&6;}
19641 cat confcache >$cache_file
19642 else
19643 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19644 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19645 fi
19646 fi
19647 rm -f confcache
19648
19649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19650 # Let make expand exec_prefix.
19651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19652
19653 DEFS=-DHAVE_CONFIG_H
19654
19655 ac_libobjs=
19656 ac_ltlibobjs=
19657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19658 # 1. Remove the extension, and $U if already installed.
19659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19660 ac_i=`echo "$ac_i" | sed "$ac_script"`
19661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19662 # will be set to the directory where LIBOBJS objects are built.
19663 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19664 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19665 done
19666 LIBOBJS=$ac_libobjs
19667
19668 LTLIBOBJS=$ac_ltlibobjs
19669
19670
19671 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19672 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19673 Usually this means the macro was only invoked conditionally." >&5
19674 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19675 Usually this means the macro was only invoked conditionally." >&2;}
19676 { (exit 1); exit 1; }; }
19677 fi
19678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19679 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19680 Usually this means the macro was only invoked conditionally." >&5
19681 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19682 Usually this means the macro was only invoked conditionally." >&2;}
19683 { (exit 1); exit 1; }; }
19684 fi
19685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19686 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19687 Usually this means the macro was only invoked conditionally." >&5
19688 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19689 Usually this means the macro was only invoked conditionally." >&2;}
19690 { (exit 1); exit 1; }; }
19691 fi
19692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19693 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19694 Usually this means the macro was only invoked conditionally." >&5
19695 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19696 Usually this means the macro was only invoked conditionally." >&2;}
19697 { (exit 1); exit 1; }; }
19698 fi
19699 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19700 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
19701 Usually this means the macro was only invoked conditionally." >&5
19702 echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
19703 Usually this means the macro was only invoked conditionally." >&2;}
19704 { (exit 1); exit 1; }; }
19705 fi
19706
19707 : ${CONFIG_STATUS=./config.status}
19708 ac_clean_files_save=$ac_clean_files
19709 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19710 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19711 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19712 cat >$CONFIG_STATUS <<_ACEOF
19713 #! $SHELL
19714 # Generated by $as_me.
19715 # Run this file to recreate the current configuration.
19716 # Compiler output produced by configure, useful for debugging
19717 # configure, is in config.log if it exists.
19718
19719 debug=false
19720 ac_cs_recheck=false
19721 ac_cs_silent=false
19722 SHELL=\${CONFIG_SHELL-$SHELL}
19723 _ACEOF
19724
19725 cat >>$CONFIG_STATUS <<\_ACEOF
19726 ## --------------------- ##
19727 ## M4sh Initialization. ##
19728 ## --------------------- ##
19729
19730 # Be more Bourne compatible
19731 DUALCASE=1; export DUALCASE # for MKS sh
19732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19733 emulate sh
19734 NULLCMD=:
19735 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19736 # is contrary to our usage. Disable this feature.
19737 alias -g '${1+"$@"}'='"$@"'
19738 setopt NO_GLOB_SUBST
19739 else
19740 case `(set -o) 2>/dev/null` in
19741 *posix*) set -o posix ;;
19742 esac
19743
19744 fi
19745
19746
19747
19748
19749 # PATH needs CR
19750 # Avoid depending upon Character Ranges.
19751 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19754 as_cr_digits='0123456789'
19755 as_cr_alnum=$as_cr_Letters$as_cr_digits
19756
19757 # The user is always right.
19758 if test "${PATH_SEPARATOR+set}" != set; then
19759 echo "#! /bin/sh" >conf$$.sh
19760 echo "exit 0" >>conf$$.sh
19761 chmod +x conf$$.sh
19762 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19763 PATH_SEPARATOR=';'
19764 else
19765 PATH_SEPARATOR=:
19766 fi
19767 rm -f conf$$.sh
19768 fi
19769
19770 # Support unset when possible.
19771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19772 as_unset=unset
19773 else
19774 as_unset=false
19775 fi
19776
19777
19778 # IFS
19779 # We need space, tab and new line, in precisely that order. Quoting is
19780 # there to prevent editors from complaining about space-tab.
19781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19782 # splitting by setting IFS to empty value.)
19783 as_nl='
19784 '
19785 IFS=" "" $as_nl"
19786
19787 # Find who we are. Look in the path if we contain no directory separator.
19788 case $0 in
19789 *[\\/]* ) as_myself=$0 ;;
19790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19791 for as_dir in $PATH
19792 do
19793 IFS=$as_save_IFS
19794 test -z "$as_dir" && as_dir=.
19795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19796 done
19797 IFS=$as_save_IFS
19798
19799 ;;
19800 esac
19801 # We did not find ourselves, most probably we were run as `sh COMMAND'
19802 # in which case we are not to be found in the path.
19803 if test "x$as_myself" = x; then
19804 as_myself=$0
19805 fi
19806 if test ! -f "$as_myself"; then
19807 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19808 { (exit 1); exit 1; }
19809 fi
19810
19811 # Work around bugs in pre-3.0 UWIN ksh.
19812 for as_var in ENV MAIL MAILPATH
19813 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19814 done
19815 PS1='$ '
19816 PS2='> '
19817 PS4='+ '
19818
19819 # NLS nuisances.
19820 for as_var in \
19821 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19822 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19823 LC_TELEPHONE LC_TIME
19824 do
19825 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19826 eval $as_var=C; export $as_var
19827 else
19828 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19829 fi
19830 done
19831
19832 # Required to use basename.
19833 if expr a : '\(a\)' >/dev/null 2>&1 &&
19834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19835 as_expr=expr
19836 else
19837 as_expr=false
19838 fi
19839
19840 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19841 as_basename=basename
19842 else
19843 as_basename=false
19844 fi
19845
19846
19847 # Name of the executable.
19848 as_me=`$as_basename -- "$0" ||
19849 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19850 X"$0" : 'X\(//\)$' \| \
19851 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19852 echo X/"$0" |
19853 sed '/^.*\/\([^/][^/]*\)\/*$/{
19854 s//\1/
19855 q
19856 }
19857 /^X\/\(\/\/\)$/{
19858 s//\1/
19859 q
19860 }
19861 /^X\/\(\/\).*/{
19862 s//\1/
19863 q
19864 }
19865 s/.*/./; q'`
19866
19867 # CDPATH.
19868 $as_unset CDPATH
19869
19870
19871
19872 as_lineno_1=$LINENO
19873 as_lineno_2=$LINENO
19874 test "x$as_lineno_1" != "x$as_lineno_2" &&
19875 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19876
19877 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19878 # uniformly replaced by the line number. The first 'sed' inserts a
19879 # line-number line after each line using $LINENO; the second 'sed'
19880 # does the real work. The second script uses 'N' to pair each
19881 # line-number line with the line containing $LINENO, and appends
19882 # trailing '-' during substitution so that $LINENO is not a special
19883 # case at line end.
19884 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19885 # scripts with optimization help from Paolo Bonzini. Blame Lee
19886 # E. McMahon (1931-1989) for sed's syntax. :-)
19887 sed -n '
19888 p
19889 /[$]LINENO/=
19890 ' <$as_myself |
19891 sed '
19892 s/[$]LINENO.*/&-/
19893 t lineno
19894 b
19895 :lineno
19896 N
19897 :loop
19898 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19899 t loop
19900 s/-\n.*//
19901 ' >$as_me.lineno &&
19902 chmod +x "$as_me.lineno" ||
19903 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19904 { (exit 1); exit 1; }; }
19905
19906 # Don't try to exec as it changes $[0], causing all sort of problems
19907 # (the dirname of $[0] is not the place where we might find the
19908 # original and so on. Autoconf is especially sensitive to this).
19909 . "./$as_me.lineno"
19910 # Exit status is that of the last command.
19911 exit
19912 }
19913
19914
19915 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19916 as_dirname=dirname
19917 else
19918 as_dirname=false
19919 fi
19920
19921 ECHO_C= ECHO_N= ECHO_T=
19922 case `echo -n x` in
19923 -n*)
19924 case `echo 'x\c'` in
19925 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19926 *) ECHO_C='\c';;
19927 esac;;
19928 *)
19929 ECHO_N='-n';;
19930 esac
19931
19932 if expr a : '\(a\)' >/dev/null 2>&1 &&
19933 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19934 as_expr=expr
19935 else
19936 as_expr=false
19937 fi
19938
19939 rm -f conf$$ conf$$.exe conf$$.file
19940 if test -d conf$$.dir; then
19941 rm -f conf$$.dir/conf$$.file
19942 else
19943 rm -f conf$$.dir
19944 mkdir conf$$.dir
19945 fi
19946 echo >conf$$.file
19947 if ln -s conf$$.file conf$$ 2>/dev/null; then
19948 as_ln_s='ln -s'
19949 # ... but there are two gotchas:
19950 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19951 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19952 # In both cases, we have to default to `cp -p'.
19953 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19954 as_ln_s='cp -p'
19955 elif ln conf$$.file conf$$ 2>/dev/null; then
19956 as_ln_s=ln
19957 else
19958 as_ln_s='cp -p'
19959 fi
19960 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19961 rmdir conf$$.dir 2>/dev/null
19962
19963 if mkdir -p . 2>/dev/null; then
19964 as_mkdir_p=:
19965 else
19966 test -d ./-p && rmdir ./-p
19967 as_mkdir_p=false
19968 fi
19969
19970 if test -x / >/dev/null 2>&1; then
19971 as_test_x='test -x'
19972 else
19973 if ls -dL / >/dev/null 2>&1; then
19974 as_ls_L_option=L
19975 else
19976 as_ls_L_option=
19977 fi
19978 as_test_x='
19979 eval sh -c '\''
19980 if test -d "$1"; then
19981 test -d "$1/.";
19982 else
19983 case $1 in
19984 -*)set "./$1";;
19985 esac;
19986 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19987 ???[sx]*):;;*)false;;esac;fi
19988 '\'' sh
19989 '
19990 fi
19991 as_executable_p=$as_test_x
19992
19993 # Sed expression to map a string onto a valid CPP name.
19994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19995
19996 # Sed expression to map a string onto a valid variable name.
19997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19998
19999
20000 exec 6>&1
20001
20002 # Save the log message, to keep $[0] and so on meaningful, and to
20003 # report actual input values of CONFIG_FILES etc. instead of their
20004 # values after options handling.
20005 ac_log="
20006 This file was extended by libXcomposite $as_me 0.4.0, which was
20007 generated by GNU Autoconf 2.61. Invocation command line was
20008
20009 CONFIG_FILES = $CONFIG_FILES
20010 CONFIG_HEADERS = $CONFIG_HEADERS
20011 CONFIG_LINKS = $CONFIG_LINKS
20012 CONFIG_COMMANDS = $CONFIG_COMMANDS
20013 $ $0 $@
20014
20015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20016 "
20017
20018 _ACEOF
20019
20020 cat >>$CONFIG_STATUS <<_ACEOF
20021 # Files that config.status was made for.
20022 config_files="$ac_config_files"
20023 config_headers="$ac_config_headers"
20024 config_commands="$ac_config_commands"
20025
20026 _ACEOF
20027
20028 cat >>$CONFIG_STATUS <<\_ACEOF
20029 ac_cs_usage="\
20030 \`$as_me' instantiates files from templates according to the
20031 current configuration.
20032
20033 Usage: $0 [OPTIONS] [FILE]...
20034
20035 -h, --help print this help, then exit
20036 -V, --version print version number and configuration settings, then exit
20037 -q, --quiet do not print progress messages
20038 -d, --debug don't remove temporary files
20039 --recheck update $as_me by reconfiguring in the same conditions
20040 --file=FILE[:TEMPLATE]
20041 instantiate the configuration file FILE
20042 --header=FILE[:TEMPLATE]
20043 instantiate the configuration header FILE
20044
20045 Configuration files:
20046 $config_files
20047
20048 Configuration headers:
20049 $config_headers
20050
20051 Configuration commands:
20052 $config_commands
20053
20054 Report bugs to <bug-autoconf (at] gnu.org>."
20055
20056 _ACEOF
20057 cat >>$CONFIG_STATUS <<_ACEOF
20058 ac_cs_version="\\
20059 libXcomposite config.status 0.4.0
20060 configured by $0, generated by GNU Autoconf 2.61,
20061 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20062
20063 Copyright (C) 2006 Free Software Foundation, Inc.
20064 This config.status script is free software; the Free Software Foundation
20065 gives unlimited permission to copy, distribute and modify it."
20066
20067 ac_pwd='$ac_pwd'
20068 srcdir='$srcdir'
20069 INSTALL='$INSTALL'
20070 _ACEOF
20071
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 # If no file are specified by the user, then we need to provide default
20074 # value. By we need to know if files were specified by the user.
20075 ac_need_defaults=:
20076 while test $# != 0
20077 do
20078 case $1 in
20079 --*=*)
20080 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20081 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20082 ac_shift=:
20083 ;;
20084 *)
20085 ac_option=$1
20086 ac_optarg=$2
20087 ac_shift=shift
20088 ;;
20089 esac
20090
20091 case $ac_option in
20092 # Handling of the options.
20093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20094 ac_cs_recheck=: ;;
20095 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20096 echo "$ac_cs_version"; exit ;;
20097 --debug | --debu | --deb | --de | --d | -d )
20098 debug=: ;;
20099 --file | --fil | --fi | --f )
20100 $ac_shift
20101 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20102 ac_need_defaults=false;;
20103 --header | --heade | --head | --hea )
20104 $ac_shift
20105 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20106 ac_need_defaults=false;;
20107 --he | --h)
20108 # Conflict between --help and --header
20109 { echo "$as_me: error: ambiguous option: $1
20110 Try \`$0 --help' for more information." >&2
20111 { (exit 1); exit 1; }; };;
20112 --help | --hel | -h )
20113 echo "$ac_cs_usage"; exit ;;
20114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20116 ac_cs_silent=: ;;
20117
20118 # This is an error.
20119 -*) { echo "$as_me: error: unrecognized option: $1
20120 Try \`$0 --help' for more information." >&2
20121 { (exit 1); exit 1; }; } ;;
20122
20123 *) ac_config_targets="$ac_config_targets $1"
20124 ac_need_defaults=false ;;
20125
20126 esac
20127 shift
20128 done
20129
20130 ac_configure_extra_args=
20131
20132 if $ac_cs_silent; then
20133 exec 6>/dev/null
20134 ac_configure_extra_args="$ac_configure_extra_args --silent"
20135 fi
20136
20137 _ACEOF
20138 cat >>$CONFIG_STATUS <<_ACEOF
20139 if \$ac_cs_recheck; then
20140 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20141 CONFIG_SHELL=$SHELL
20142 export CONFIG_SHELL
20143 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20144 fi
20145
20146 _ACEOF
20147 cat >>$CONFIG_STATUS <<\_ACEOF
20148 exec 5>>config.log
20149 {
20150 echo
20151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20152 ## Running $as_me. ##
20153 _ASBOX
20154 echo "$ac_log"
20155 } >&5
20156
20157 _ACEOF
20158 cat >>$CONFIG_STATUS <<_ACEOF
20159 #
20160 # INIT-COMMANDS
20161 #
20162 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20163
20164 _ACEOF
20165
20166 cat >>$CONFIG_STATUS <<\_ACEOF
20167
20168 # Handling of arguments.
20169 for ac_config_target in $ac_config_targets
20170 do
20171 case $ac_config_target in
20172 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20173 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20174 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20175 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20176 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20177 "xcomposite.pc") CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;;
20178
20179 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20180 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20181 { (exit 1); exit 1; }; };;
20182 esac
20183 done
20184
20185
20186 # If the user did not use the arguments to specify the items to instantiate,
20187 # then the envvar interface is used. Set only those that are not.
20188 # We use the long form for the default assignment because of an extremely
20189 # bizarre bug on SunOS 4.1.3.
20190 if $ac_need_defaults; then
20191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20194 fi
20195
20196 # Have a temporary directory for convenience. Make it in the build tree
20197 # simply because there is no reason against having it here, and in addition,
20198 # creating and moving files from /tmp can sometimes cause problems.
20199 # Hook for its removal unless debugging.
20200 # Note that there is a small window in which the directory will not be cleaned:
20201 # after its creation but before its name has been assigned to `$tmp'.
20202 $debug ||
20203 {
20204 tmp=
20205 trap 'exit_status=$?
20206 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20207 ' 0
20208 trap '{ (exit 1); exit 1; }' 1 2 13 15
20209 }
20210 # Create a (secure) tmp directory for tmp files.
20211
20212 {
20213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20214 test -n "$tmp" && test -d "$tmp"
20215 } ||
20216 {
20217 tmp=./conf$$-$RANDOM
20218 (umask 077 && mkdir "$tmp")
20219 } ||
20220 {
20221 echo "$me: cannot create a temporary directory in ." >&2
20222 { (exit 1); exit 1; }
20223 }
20224
20225 #
20226 # Set up the sed scripts for CONFIG_FILES section.
20227 #
20228
20229 # No need to generate the scripts if there are no CONFIG_FILES.
20230 # This happens for instance when ./config.status config.h
20231 if test -n "$CONFIG_FILES"; then
20232
20233 _ACEOF
20234
20235
20236
20237 ac_delim='%!_!# '
20238 for ac_last_try in false false false false false :; do
20239 cat >conf$$subs.sed <<_ACEOF
20240 SHELL!$SHELL$ac_delim
20241 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20242 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20243 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20244 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20245 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20246 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20247 exec_prefix!$exec_prefix$ac_delim
20248 prefix!$prefix$ac_delim
20249 program_transform_name!$program_transform_name$ac_delim
20250 bindir!$bindir$ac_delim
20251 sbindir!$sbindir$ac_delim
20252 libexecdir!$libexecdir$ac_delim
20253 datarootdir!$datarootdir$ac_delim
20254 datadir!$datadir$ac_delim
20255 sysconfdir!$sysconfdir$ac_delim
20256 sharedstatedir!$sharedstatedir$ac_delim
20257 localstatedir!$localstatedir$ac_delim
20258 includedir!$includedir$ac_delim
20259 oldincludedir!$oldincludedir$ac_delim
20260 docdir!$docdir$ac_delim
20261 infodir!$infodir$ac_delim
20262 htmldir!$htmldir$ac_delim
20263 dvidir!$dvidir$ac_delim
20264 pdfdir!$pdfdir$ac_delim
20265 psdir!$psdir$ac_delim
20266 libdir!$libdir$ac_delim
20267 localedir!$localedir$ac_delim
20268 mandir!$mandir$ac_delim
20269 DEFS!$DEFS$ac_delim
20270 ECHO_C!$ECHO_C$ac_delim
20271 ECHO_N!$ECHO_N$ac_delim
20272 ECHO_T!$ECHO_T$ac_delim
20273 LIBS!$LIBS$ac_delim
20274 build_alias!$build_alias$ac_delim
20275 host_alias!$host_alias$ac_delim
20276 target_alias!$target_alias$ac_delim
20277 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20278 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20279 INSTALL_DATA!$INSTALL_DATA$ac_delim
20280 CYGPATH_W!$CYGPATH_W$ac_delim
20281 PACKAGE!$PACKAGE$ac_delim
20282 VERSION!$VERSION$ac_delim
20283 ACLOCAL!$ACLOCAL$ac_delim
20284 AUTOCONF!$AUTOCONF$ac_delim
20285 AUTOMAKE!$AUTOMAKE$ac_delim
20286 AUTOHEADER!$AUTOHEADER$ac_delim
20287 MAKEINFO!$MAKEINFO$ac_delim
20288 install_sh!$install_sh$ac_delim
20289 STRIP!$STRIP$ac_delim
20290 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20291 mkdir_p!$mkdir_p$ac_delim
20292 AWK!$AWK$ac_delim
20293 SET_MAKE!$SET_MAKE$ac_delim
20294 am__leading_dot!$am__leading_dot$ac_delim
20295 AMTAR!$AMTAR$ac_delim
20296 am__tar!$am__tar$ac_delim
20297 am__untar!$am__untar$ac_delim
20298 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20299 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20300 MAINT!$MAINT$ac_delim
20301 CC!$CC$ac_delim
20302 CFLAGS!$CFLAGS$ac_delim
20303 LDFLAGS!$LDFLAGS$ac_delim
20304 CPPFLAGS!$CPPFLAGS$ac_delim
20305 ac_ct_CC!$ac_ct_CC$ac_delim
20306 EXEEXT!$EXEEXT$ac_delim
20307 OBJEXT!$OBJEXT$ac_delim
20308 DEPDIR!$DEPDIR$ac_delim
20309 am__include!$am__include$ac_delim
20310 am__quote!$am__quote$ac_delim
20311 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20312 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20313 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20314 CCDEPMODE!$CCDEPMODE$ac_delim
20315 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20316 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20317 build!$build$ac_delim
20318 build_cpu!$build_cpu$ac_delim
20319 build_vendor!$build_vendor$ac_delim
20320 build_os!$build_os$ac_delim
20321 host!$host$ac_delim
20322 host_cpu!$host_cpu$ac_delim
20323 host_vendor!$host_vendor$ac_delim
20324 host_os!$host_os$ac_delim
20325 GREP!$GREP$ac_delim
20326 EGREP!$EGREP$ac_delim
20327 LN_S!$LN_S$ac_delim
20328 ECHO!$ECHO$ac_delim
20329 AR!$AR$ac_delim
20330 RANLIB!$RANLIB$ac_delim
20331 CPP!$CPP$ac_delim
20332 CXX!$CXX$ac_delim
20333 CXXFLAGS!$CXXFLAGS$ac_delim
20334 ac_ct_CXX!$ac_ct_CXX$ac_delim
20335 CXXDEPMODE!$CXXDEPMODE$ac_delim
20336 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20337 _ACEOF
20338
20339 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20340 break
20341 elif $ac_last_try; then
20342 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20343 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20344 { (exit 1); exit 1; }; }
20345 else
20346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20347 fi
20348 done
20349
20350 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20351 if test -n "$ac_eof"; then
20352 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20353 ac_eof=`expr $ac_eof + 1`
20354 fi
20355
20356 cat >>$CONFIG_STATUS <<_ACEOF
20357 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20359 _ACEOF
20360 sed '
20361 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20362 s/^/s,@/; s/!/@,|#_!!_#|/
20363 :n
20364 t n
20365 s/'"$ac_delim"'$/,g/; t
20366 s/$/\\/; p
20367 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20368 ' >>$CONFIG_STATUS <conf$$subs.sed
20369 rm -f conf$$subs.sed
20370 cat >>$CONFIG_STATUS <<_ACEOF
20371 CEOF$ac_eof
20372 _ACEOF
20373
20374
20375 ac_delim='%!_!# '
20376 for ac_last_try in false false false false false :; do
20377 cat >conf$$subs.sed <<_ACEOF
20378 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20379 CXXCPP!$CXXCPP$ac_delim
20380 F77!$F77$ac_delim
20381 FFLAGS!$FFLAGS$ac_delim
20382 ac_ct_F77!$ac_ct_F77$ac_delim
20383 LIBTOOL!$LIBTOOL$ac_delim
20384 XMLTO!$XMLTO$ac_delim
20385 HAVE_XMLTO_TRUE!$HAVE_XMLTO_TRUE$ac_delim
20386 HAVE_XMLTO_FALSE!$HAVE_XMLTO_FALSE$ac_delim
20387 COMPOSITEEXT_VERSION!$COMPOSITEEXT_VERSION$ac_delim
20388 PKG_CONFIG!$PKG_CONFIG$ac_delim
20389 XCOMPOSITE_CFLAGS!$XCOMPOSITE_CFLAGS$ac_delim
20390 XCOMPOSITE_LIBS!$XCOMPOSITE_LIBS$ac_delim
20391 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
20392 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
20393 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
20394 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
20395 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
20396 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
20397 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
20398 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
20399 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
20400 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
20401 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
20402 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
20403 LIBOBJS!$LIBOBJS$ac_delim
20404 LTLIBOBJS!$LTLIBOBJS$ac_delim
20405 _ACEOF
20406
20407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
20408 break
20409 elif $ac_last_try; then
20410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20412 { (exit 1); exit 1; }; }
20413 else
20414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20415 fi
20416 done
20417
20418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20419 if test -n "$ac_eof"; then
20420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20421 ac_eof=`expr $ac_eof + 1`
20422 fi
20423
20424 cat >>$CONFIG_STATUS <<_ACEOF
20425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20427 _ACEOF
20428 sed '
20429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20430 s/^/s,@/; s/!/@,|#_!!_#|/
20431 :n
20432 t n
20433 s/'"$ac_delim"'$/,g/; t
20434 s/$/\\/; p
20435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20436 ' >>$CONFIG_STATUS <conf$$subs.sed
20437 rm -f conf$$subs.sed
20438 cat >>$CONFIG_STATUS <<_ACEOF
20439 :end
20440 s/|#_!!_#|//g
20441 CEOF$ac_eof
20442 _ACEOF
20443
20444
20445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20447 # trailing colons and then remove the whole line if VPATH becomes empty
20448 # (actually we leave an empty line to preserve line numbers).
20449 if test "x$srcdir" = x.; then
20450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20451 s/:*\$(srcdir):*/:/
20452 s/:*\${srcdir}:*/:/
20453 s/:*@srcdir@:*/:/
20454 s/^\([^=]*=[ ]*\):*/\1/
20455 s/:*$//
20456 s/^[^=]*=[ ]*$//
20457 }'
20458 fi
20459
20460 cat >>$CONFIG_STATUS <<\_ACEOF
20461 fi # test -n "$CONFIG_FILES"
20462
20463
20464 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20465 do
20466 case $ac_tag in
20467 :[FHLC]) ac_mode=$ac_tag; continue;;
20468 esac
20469 case $ac_mode$ac_tag in
20470 :[FHL]*:*);;
20471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20473 { (exit 1); exit 1; }; };;
20474 :[FH]-) ac_tag=-:-;;
20475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20476 esac
20477 ac_save_IFS=$IFS
20478 IFS=:
20479 set x $ac_tag
20480 IFS=$ac_save_IFS
20481 shift
20482 ac_file=$1
20483 shift
20484
20485 case $ac_mode in
20486 :L) ac_source=$1;;
20487 :[FH])
20488 ac_file_inputs=
20489 for ac_f
20490 do
20491 case $ac_f in
20492 -) ac_f="$tmp/stdin";;
20493 *) # Look for the file first in the build tree, then in the source tree
20494 # (if the path is not absolute). The absolute path cannot be DOS-style,
20495 # because $ac_f cannot contain `:'.
20496 test -f "$ac_f" ||
20497 case $ac_f in
20498 [\\/$]*) false;;
20499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20500 esac ||
20501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20503 { (exit 1); exit 1; }; };;
20504 esac
20505 ac_file_inputs="$ac_file_inputs $ac_f"
20506 done
20507
20508 # Let's still pretend it is `configure' which instantiates (i.e., don't
20509 # use $as_me), people would be surprised to read:
20510 # /* config.h. Generated by config.status. */
20511 configure_input="Generated from "`IFS=:
20512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20513 if test x"$ac_file" != x-; then
20514 configure_input="$ac_file. $configure_input"
20515 { echo "$as_me:$LINENO: creating $ac_file" >&5
20516 echo "$as_me: creating $ac_file" >&6;}
20517 fi
20518
20519 case $ac_tag in
20520 *:-:* | *:-) cat >"$tmp/stdin";;
20521 esac
20522 ;;
20523 esac
20524
20525 ac_dir=`$as_dirname -- "$ac_file" ||
20526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20527 X"$ac_file" : 'X\(//\)[^/]' \| \
20528 X"$ac_file" : 'X\(//\)$' \| \
20529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20530 echo X"$ac_file" |
20531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20532 s//\1/
20533 q
20534 }
20535 /^X\(\/\/\)[^/].*/{
20536 s//\1/
20537 q
20538 }
20539 /^X\(\/\/\)$/{
20540 s//\1/
20541 q
20542 }
20543 /^X\(\/\).*/{
20544 s//\1/
20545 q
20546 }
20547 s/.*/./; q'`
20548 { as_dir="$ac_dir"
20549 case $as_dir in #(
20550 -*) as_dir=./$as_dir;;
20551 esac
20552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20553 as_dirs=
20554 while :; do
20555 case $as_dir in #(
20556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20557 *) as_qdir=$as_dir;;
20558 esac
20559 as_dirs="'$as_qdir' $as_dirs"
20560 as_dir=`$as_dirname -- "$as_dir" ||
20561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20562 X"$as_dir" : 'X\(//\)[^/]' \| \
20563 X"$as_dir" : 'X\(//\)$' \| \
20564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20565 echo X"$as_dir" |
20566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20567 s//\1/
20568 q
20569 }
20570 /^X\(\/\/\)[^/].*/{
20571 s//\1/
20572 q
20573 }
20574 /^X\(\/\/\)$/{
20575 s//\1/
20576 q
20577 }
20578 /^X\(\/\).*/{
20579 s//\1/
20580 q
20581 }
20582 s/.*/./; q'`
20583 test -d "$as_dir" && break
20584 done
20585 test -z "$as_dirs" || eval "mkdir $as_dirs"
20586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20588 { (exit 1); exit 1; }; }; }
20589 ac_builddir=.
20590
20591 case "$ac_dir" in
20592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20593 *)
20594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20595 # A ".." for each directory in $ac_dir_suffix.
20596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20597 case $ac_top_builddir_sub in
20598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20600 esac ;;
20601 esac
20602 ac_abs_top_builddir=$ac_pwd
20603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20604 # for backward compatibility:
20605 ac_top_builddir=$ac_top_build_prefix
20606
20607 case $srcdir in
20608 .) # We are building in place.
20609 ac_srcdir=.
20610 ac_top_srcdir=$ac_top_builddir_sub
20611 ac_abs_top_srcdir=$ac_pwd ;;
20612 [\\/]* | ?:[\\/]* ) # Absolute name.
20613 ac_srcdir=$srcdir$ac_dir_suffix;
20614 ac_top_srcdir=$srcdir
20615 ac_abs_top_srcdir=$srcdir ;;
20616 *) # Relative name.
20617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20618 ac_top_srcdir=$ac_top_build_prefix$srcdir
20619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20620 esac
20621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20622
20623
20624 case $ac_mode in
20625 :F)
20626 #
20627 # CONFIG_FILE
20628 #
20629
20630 case $INSTALL in
20631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20633 esac
20634 _ACEOF
20635
20636 cat >>$CONFIG_STATUS <<\_ACEOF
20637 # If the template does not know about datarootdir, expand it.
20638 # FIXME: This hack should be removed a few years after 2.60.
20639 ac_datarootdir_hack=; ac_datarootdir_seen=
20640
20641 case `sed -n '/datarootdir/ {
20642 p
20643 q
20644 }
20645 /@datadir@/p
20646 /@docdir@/p
20647 /@infodir@/p
20648 /@localedir@/p
20649 /@mandir@/p
20650 ' $ac_file_inputs` in
20651 *datarootdir*) ac_datarootdir_seen=yes;;
20652 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20653 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20654 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20655 _ACEOF
20656 cat >>$CONFIG_STATUS <<_ACEOF
20657 ac_datarootdir_hack='
20658 s&@datadir@&$datadir&g
20659 s&@docdir@&$docdir&g
20660 s&@infodir@&$infodir&g
20661 s&@localedir@&$localedir&g
20662 s&@mandir@&$mandir&g
20663 s&\\\${datarootdir}&$datarootdir&g' ;;
20664 esac
20665 _ACEOF
20666
20667 # Neutralize VPATH when `$srcdir' = `.'.
20668 # Shell code in configure.ac might set extrasub.
20669 # FIXME: do we really want to maintain this feature?
20670 cat >>$CONFIG_STATUS <<_ACEOF
20671 sed "$ac_vpsub
20672 $extrasub
20673 _ACEOF
20674 cat >>$CONFIG_STATUS <<\_ACEOF
20675 :t
20676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20677 s&@configure_input@&$configure_input&;t t
20678 s&@top_builddir@&$ac_top_builddir_sub&;t t
20679 s&@srcdir@&$ac_srcdir&;t t
20680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20681 s&@top_srcdir@&$ac_top_srcdir&;t t
20682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20683 s&@builddir@&$ac_builddir&;t t
20684 s&@abs_builddir@&$ac_abs_builddir&;t t
20685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20686 s&@INSTALL@&$ac_INSTALL&;t t
20687 $ac_datarootdir_hack
20688 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20689
20690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20693 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20694 which seems to be undefined. Please make sure it is defined." >&5
20695 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20696 which seems to be undefined. Please make sure it is defined." >&2;}
20697
20698 rm -f "$tmp/stdin"
20699 case $ac_file in
20700 -) cat "$tmp/out"; rm -f "$tmp/out";;
20701 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20702 esac
20703 ;;
20704 :H)
20705 #
20706 # CONFIG_HEADER
20707 #
20708 _ACEOF
20709
20710 # Transform confdefs.h into a sed script `conftest.defines', that
20711 # substitutes the proper values into config.h.in to produce config.h.
20712 rm -f conftest.defines conftest.tail
20713 # First, append a space to every undef/define line, to ease matching.
20714 echo 's/$/ /' >conftest.defines
20715 # Then, protect against being on the right side of a sed subst, or in
20716 # an unquoted here document, in config.status. If some macros were
20717 # called several times there might be several #defines for the same
20718 # symbol, which is useless. But do not sort them, since the last
20719 # AC_DEFINE must be honored.
20720 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20721 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20722 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20723 # PARAMS is the parameter list in the macro definition--in most cases, it's
20724 # just an empty string.
20725 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20726 ac_dB='\\)[ (].*,\\1define\\2'
20727 ac_dC=' '
20728 ac_dD=' ,'
20729
20730 uniq confdefs.h |
20731 sed -n '
20732 t rset
20733 :rset
20734 s/^[ ]*#[ ]*define[ ][ ]*//
20735 t ok
20736 d
20737 :ok
20738 s/[\\&,]/\\&/g
20739 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20740 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20741 ' >>conftest.defines
20742
20743 # Remove the space that was appended to ease matching.
20744 # Then replace #undef with comments. This is necessary, for
20745 # example, in the case of _POSIX_SOURCE, which is predefined and required
20746 # on some systems where configure will not decide to define it.
20747 # (The regexp can be short, since the line contains either #define or #undef.)
20748 echo 's/ $//
20749 s,^[ #]*u.*,/* & */,' >>conftest.defines
20750
20751 # Break up conftest.defines:
20752 ac_max_sed_lines=50
20753
20754 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20755 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20756 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20757 # et cetera.
20758 ac_in='$ac_file_inputs'
20759 ac_out='"$tmp/out1"'
20760 ac_nxt='"$tmp/out2"'
20761
20762 while :
20763 do
20764 # Write a here document:
20765 cat >>$CONFIG_STATUS <<_ACEOF
20766 # First, check the format of the line:
20767 cat >"\$tmp/defines.sed" <<\\CEOF
20768 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20769 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20770 b
20771 :def
20772 _ACEOF
20773 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20774 echo 'CEOF
20775 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20776 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20777 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20778 grep . conftest.tail >/dev/null || break
20779 rm -f conftest.defines
20780 mv conftest.tail conftest.defines
20781 done
20782 rm -f conftest.defines conftest.tail
20783
20784 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20786 if test x"$ac_file" != x-; then
20787 echo "/* $configure_input */" >"$tmp/config.h"
20788 cat "$ac_result" >>"$tmp/config.h"
20789 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20791 echo "$as_me: $ac_file is unchanged" >&6;}
20792 else
20793 rm -f $ac_file
20794 mv "$tmp/config.h" $ac_file
20795 fi
20796 else
20797 echo "/* $configure_input */"
20798 cat "$ac_result"
20799 fi
20800 rm -f "$tmp/out12"
20801 # Compute $ac_file's index in $config_headers.
20802 _am_stamp_count=1
20803 for _am_header in $config_headers :; do
20804 case $_am_header in
20805 $ac_file | $ac_file:* )
20806 break ;;
20807 * )
20808 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20809 esac
20810 done
20811 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20812 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20813 X$ac_file : 'X\(//\)[^/]' \| \
20814 X$ac_file : 'X\(//\)$' \| \
20815 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20816 echo X$ac_file |
20817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20818 s//\1/
20819 q
20820 }
20821 /^X\(\/\/\)[^/].*/{
20822 s//\1/
20823 q
20824 }
20825 /^X\(\/\/\)$/{
20826 s//\1/
20827 q
20828 }
20829 /^X\(\/\).*/{
20830 s//\1/
20831 q
20832 }
20833 s/.*/./; q'`/stamp-h$_am_stamp_count
20834 ;;
20835
20836 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20837 echo "$as_me: executing $ac_file commands" >&6;}
20838 ;;
20839 esac
20840
20841
20842 case $ac_file$ac_mode in
20843 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20844 # Strip MF so we end up with the name of the file.
20845 mf=`echo "$mf" | sed -e 's/:.*$//'`
20846 # Check whether this is an Automake generated Makefile or not.
20847 # We used to match only the files named `Makefile.in', but
20848 # some people rename them; so instead we look at the file content.
20849 # Grep'ing the first line is not enough: some people post-process
20850 # each Makefile.in and add a new line on top of each file to say so.
20851 # So let's grep whole file.
20852 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20853 dirpart=`$as_dirname -- "$mf" ||
20854 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20855 X"$mf" : 'X\(//\)[^/]' \| \
20856 X"$mf" : 'X\(//\)$' \| \
20857 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20858 echo X"$mf" |
20859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20860 s//\1/
20861 q
20862 }
20863 /^X\(\/\/\)[^/].*/{
20864 s//\1/
20865 q
20866 }
20867 /^X\(\/\/\)$/{
20868 s//\1/
20869 q
20870 }
20871 /^X\(\/\).*/{
20872 s//\1/
20873 q
20874 }
20875 s/.*/./; q'`
20876 else
20877 continue
20878 fi
20879 # Extract the definition of DEPDIR, am__include, and am__quote
20880 # from the Makefile without running `make'.
20881 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20882 test -z "$DEPDIR" && continue
20883 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20884 test -z "am__include" && continue
20885 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20886 # When using ansi2knr, U may be empty or an underscore; expand it
20887 U=`sed -n 's/^U = //p' < "$mf"`
20888 # Find all dependency output files, they are included files with
20889 # $(DEPDIR) in their names. We invoke sed twice because it is the
20890 # simplest approach to changing $(DEPDIR) to its actual value in the
20891 # expansion.
20892 for file in `sed -n "
20893 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20894 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20895 # Make sure the directory exists.
20896 test -f "$dirpart/$file" && continue
20897 fdir=`$as_dirname -- "$file" ||
20898 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20899 X"$file" : 'X\(//\)[^/]' \| \
20900 X"$file" : 'X\(//\)$' \| \
20901 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20902 echo X"$file" |
20903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20904 s//\1/
20905 q
20906 }
20907 /^X\(\/\/\)[^/].*/{
20908 s//\1/
20909 q
20910 }
20911 /^X\(\/\/\)$/{
20912 s//\1/
20913 q
20914 }
20915 /^X\(\/\).*/{
20916 s//\1/
20917 q
20918 }
20919 s/.*/./; q'`
20920 { as_dir=$dirpart/$fdir
20921 case $as_dir in #(
20922 -*) as_dir=./$as_dir;;
20923 esac
20924 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20925 as_dirs=
20926 while :; do
20927 case $as_dir in #(
20928 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20929 *) as_qdir=$as_dir;;
20930 esac
20931 as_dirs="'$as_qdir' $as_dirs"
20932 as_dir=`$as_dirname -- "$as_dir" ||
20933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20934 X"$as_dir" : 'X\(//\)[^/]' \| \
20935 X"$as_dir" : 'X\(//\)$' \| \
20936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20937 echo X"$as_dir" |
20938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20939 s//\1/
20940 q
20941 }
20942 /^X\(\/\/\)[^/].*/{
20943 s//\1/
20944 q
20945 }
20946 /^X\(\/\/\)$/{
20947 s//\1/
20948 q
20949 }
20950 /^X\(\/\).*/{
20951 s//\1/
20952 q
20953 }
20954 s/.*/./; q'`
20955 test -d "$as_dir" && break
20956 done
20957 test -z "$as_dirs" || eval "mkdir $as_dirs"
20958 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20959 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20960 { (exit 1); exit 1; }; }; }
20961 # echo "creating $dirpart/$file"
20962 echo '# dummy' > "$dirpart/$file"
20963 done
20964 done
20965 ;;
20966
20967 esac
20968 done # for ac_tag
20969
20970
20971 { (exit 0); exit 0; }
20972 _ACEOF
20973 chmod +x $CONFIG_STATUS
20974 ac_clean_files=$ac_clean_files_save
20975
20976
20977 # configure is writing to config.log, and then calls config.status.
20978 # config.status does its own redirection, appending to config.log.
20979 # Unfortunately, on DOS this fails, as config.log is still kept open
20980 # by configure, so config.status won't be able to write to it; its
20981 # output is simply discarded. So we exec the FD to /dev/null,
20982 # effectively closing config.log, so it can be properly (re)opened and
20983 # appended to by config.status. When coming back to configure, we
20984 # need to make the FD available again.
20985 if test "$no_create" != yes; then
20986 ac_cs_success=:
20987 ac_config_status_args=
20988 test "$silent" = yes &&
20989 ac_config_status_args="$ac_config_status_args --quiet"
20990 exec 5>/dev/null
20991 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20992 exec 5>>config.log
20993 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20994 # would make configure fail if this is the last instruction.
20995 $ac_cs_success || { (exit 1); exit 1; }
20996 fi
20997
20998
20999