configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xf86-video-savage 2.2.1.
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='xf86-video-savage'
730 PACKAGE_TARNAME='xf86-video-savage'
731 PACKAGE_VERSION='2.2.1'
732 PACKAGE_STRING='xf86-video-savage 2.2.1'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 ac_unique_file="Makefile.am"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 MAINTAINER_MODE_TRUE
832 MAINTAINER_MODE_FALSE
833 MAINT
834 build
835 build_cpu
836 build_vendor
837 build_os
838 host
839 host_cpu
840 host_vendor
841 host_os
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 SED
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 PKG_CONFIG
878 XORG_CFLAGS
879 XORG_LIBS
880 DRI_TRUE
881 DRI_FALSE
882 DRI_CFLAGS
883 DRI_LIBS
884 PCIACCESS_CFLAGS
885 PCIACCESS_LIBS
886 XSERVER_LIBPCIACCESS_TRUE
887 XSERVER_LIBPCIACCESS_FALSE
888 moduledir
889 DRIVER_NAME
890 APP_MAN_SUFFIX
891 LIB_MAN_SUFFIX
892 FILE_MAN_SUFFIX
893 MISC_MAN_SUFFIX
894 DRIVER_MAN_SUFFIX
895 ADMIN_MAN_SUFFIX
896 APP_MAN_DIR
897 LIB_MAN_DIR
898 FILE_MAN_DIR
899 MISC_MAN_DIR
900 DRIVER_MAN_DIR
901 ADMIN_MAN_DIR
902 LIBOBJS
903 LTLIBOBJS'
904 ac_subst_files=''
905 ac_precious_vars='build_alias
906 host_alias
907 target_alias
908 CC
909 CFLAGS
910 LDFLAGS
911 LIBS
912 CPPFLAGS
913 CPP
914 CXX
915 CXXFLAGS
916 CCC
917 CXXCPP
918 F77
919 FFLAGS
920 PKG_CONFIG
921 XORG_CFLAGS
922 XORG_LIBS
923 DRI_CFLAGS
924 DRI_LIBS
925 PCIACCESS_CFLAGS
926 PCIACCESS_LIBS'
927
928
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
934 cache_file=/dev/null
935 exec_prefix=NONE
936 no_create=
937 no_recursion=
938 prefix=NONE
939 program_prefix=NONE
940 program_suffix=NONE
941 program_transform_name=s,x,x,
942 silent=
943 site=
944 srcdir=
945 verbose=
946 x_includes=NONE
947 x_libraries=NONE
948
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
967 htmldir='${docdir}'
968 dvidir='${docdir}'
969 pdfdir='${docdir}'
970 psdir='${docdir}'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
974
975 ac_prev=
976 ac_dashdash=
977 for ac_option
978 do
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
982 ac_prev=
983 continue
984 fi
985
986 case $ac_option in
987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 *) ac_optarg=yes ;;
989 esac
990
991 # Accept the important Cygnus configure options, so we can diagnose typos.
992
993 case $ac_dashdash$ac_option in
994 --)
995 ac_dashdash=yes ;;
996
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 ac_prev=bindir ;;
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1001
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1006
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1013
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1016
1017 -datadir | --datadir | --datadi | --datad)
1018 ac_prev=datadir ;;
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1021
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1028
1029 -disable-* | --disable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_$ac_feature=no ;;
1037
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1042
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1047
1048 -enable-* | --enable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1055 eval enable_$ac_feature=\$ac_optarg ;;
1056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1076
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1081
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1111
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1128
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1149
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1185
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1216
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1226
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1233
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1244
1245 -with-* | --with-*)
1246 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 { echo "$as_me: error: invalid package name: $ac_package" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1252 eval with_$ac_package=\$ac_optarg ;;
1253
1254 -without-* | --without-*)
1255 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1261 eval with_$ac_package=no ;;
1262
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1266
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1273
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1280
1281 -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283 { (exit 1); exit 1; }; }
1284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291 { (exit 1); exit 1; }; }
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1294
1295 *)
1296 # FIXME: should be removed in autoconf 3.0.
1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301 ;;
1302
1303 esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 { echo "$as_me: error: missing argument to $ac_option" >&2
1309 { (exit 1); exit 1; }; }
1310 fi
1311
1312 # Be sure to have absolute directory names.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1317 do
1318 eval ac_val=\$$ac_var
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 { echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$0" : 'X\(//\)[^/]' \| \
1368 X"$0" : 'X\(//\)$' \| \
1369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370 echo X"$0" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1391 fi
1392 else
1393 ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 \`configure' configures xf86-video-savage 2.2.1 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-savage]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1482 _ACEOF
1483
1484 cat <<\_ACEOF
1485
1486 Program names:
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1490
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of xf86-video-savage 2.2.1:";;
1500 esac
1501 cat <<\_ACEOF
1502
1503 Optional Features:
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-maintainer-mode enable make rules and dependencies not useful
1507 (and sometimes confusing) to the casual installer
1508 --enable-static[=PKGS] build static libraries [default=no]
1509 --enable-shared[=PKGS] build shared libraries [default=yes]
1510 --enable-fast-install[=PKGS]
1511 optimize for fast installation [default=yes]
1512 --disable-dependency-tracking speeds up one-time build
1513 --enable-dependency-tracking do not reject slow dependency extractors
1514 --disable-libtool-lock avoid locking (might break parallel builds)
1515 --disable-dri Disable DRI support [default=auto]
1516
1517 Optional Packages:
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-pic try to use only PIC/non-PIC objects [default=use
1522 both]
1523 --with-tags[=TAGS] include additional configurations [automatic]
1524 --with-xorg-module-dir=DIR
1525 Default xorg module directory
1526 [default=$libdir/xorg/modules]
1527 --with-release-version=STRING
1528 Use release version string in package name
1529
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CPP C preprocessor
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1541 CXXCPP C++ preprocessor
1542 F77 Fortran 77 compiler command
1543 FFLAGS Fortran 77 compiler flags
1544 PKG_CONFIG path to pkg-config utility
1545 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1546 XORG_LIBS linker flags for XORG, overriding pkg-config
1547 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1548 DRI_LIBS linker flags for DRI, overriding pkg-config
1549 PCIACCESS_CFLAGS
1550 C compiler flags for PCIACCESS, overriding pkg-config
1551 PCIACCESS_LIBS
1552 linker flags for PCIACCESS, overriding pkg-config
1553
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1556
1557 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1558 _ACEOF
1559 ac_status=$?
1560 fi
1561
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565 test -d "$ac_dir" || continue
1566 ac_builddir=.
1567
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *)
1571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1583
1584 case $srcdir in
1585 .) # We are building in place.
1586 ac_srcdir=.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1593 *) # Relative name.
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1608 else
1609 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 fi || ac_status=$?
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1612 done
1613 fi
1614
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617 cat <<\_ACEOF
1618 xf86-video-savage configure 2.2.1
1619 generated by GNU Autoconf 2.61
1620
1621 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1622 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1625 _ACEOF
1626 exit
1627 fi
1628 cat >config.log <<_ACEOF
1629 This file contains any messages produced by compilers while
1630 running configure, to aid debugging if configure makes a mistake.
1631
1632 It was created by xf86-video-savage $as_me 2.2.1, which was
1633 generated by GNU Autoconf 2.61. Invocation command line was
1634
1635 $ $0 $@
1636
1637 _ACEOF
1638 exec 5>>config.log
1639 {
1640 cat <<_ASUNAME
1641 ## --------- ##
1642 ## Platform. ##
1643 ## --------- ##
1644
1645 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1646 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1647 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1648 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1649 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1650
1651 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1652 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1653
1654 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1655 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1656 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1657 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1658 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1659 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1660 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1661
1662 _ASUNAME
1663
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 echo "PATH: $as_dir"
1670 done
1671 IFS=$as_save_IFS
1672
1673 } >&5
1674
1675 cat >&5 <<_ACEOF
1676
1677
1678 ## ----------- ##
1679 ## Core tests. ##
1680 ## ----------- ##
1681
1682 _ACEOF
1683
1684
1685 # Keep a trace of the command line.
1686 # Strip out --no-create and --no-recursion so they do not pile up.
1687 # Strip out --silent because we don't want to record it for future runs.
1688 # Also quote any args containing shell meta-characters.
1689 # Make two passes to allow for proper duplicate-argument suppression.
1690 ac_configure_args=
1691 ac_configure_args0=
1692 ac_configure_args1=
1693 ac_must_keep_next=false
1694 for ac_pass in 1 2
1695 do
1696 for ac_arg
1697 do
1698 case $ac_arg in
1699 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1701 | -silent | --silent | --silen | --sile | --sil)
1702 continue ;;
1703 *\'*)
1704 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 esac
1706 case $ac_pass in
1707 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1708 2)
1709 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1710 if test $ac_must_keep_next = true; then
1711 ac_must_keep_next=false # Got value, back to normal.
1712 else
1713 case $ac_arg in
1714 *=* | --config-cache | -C | -disable-* | --disable-* \
1715 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1716 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1717 | -with-* | --with-* | -without-* | --without-* | --x)
1718 case "$ac_configure_args0 " in
1719 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 esac
1721 ;;
1722 -* ) ac_must_keep_next=true ;;
1723 esac
1724 fi
1725 ac_configure_args="$ac_configure_args '$ac_arg'"
1726 ;;
1727 esac
1728 done
1729 done
1730 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1731 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1732
1733 # When interrupted or exit'd, cleanup temporary files, and complete
1734 # config.log. We remove comments because anyway the quotes in there
1735 # would cause problems or look ugly.
1736 # WARNING: Use '\'' to represent an apostrophe within the trap.
1737 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1738 trap 'exit_status=$?
1739 # Save into config.log some information that might help in debugging.
1740 {
1741 echo
1742
1743 cat <<\_ASBOX
1744 ## ---------------- ##
1745 ## Cache variables. ##
1746 ## ---------------- ##
1747 _ASBOX
1748 echo
1749 # The following way of writing the cache mishandles newlines in values,
1750 (
1751 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1752 eval ac_val=\$$ac_var
1753 case $ac_val in #(
1754 *${as_nl}*)
1755 case $ac_var in #(
1756 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1757 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1758 esac
1759 case $ac_var in #(
1760 _ | IFS | as_nl) ;; #(
1761 *) $as_unset $ac_var ;;
1762 esac ;;
1763 esac
1764 done
1765 (set) 2>&1 |
1766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1767 *${as_nl}ac_space=\ *)
1768 sed -n \
1769 "s/'\''/'\''\\\\'\'''\''/g;
1770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 ;; #(
1772 *)
1773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1774 ;;
1775 esac |
1776 sort
1777 )
1778 echo
1779
1780 cat <<\_ASBOX
1781 ## ----------------- ##
1782 ## Output variables. ##
1783 ## ----------------- ##
1784 _ASBOX
1785 echo
1786 for ac_var in $ac_subst_vars
1787 do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1795
1796 if test -n "$ac_subst_files"; then
1797 cat <<\_ASBOX
1798 ## ------------------- ##
1799 ## File substitutions. ##
1800 ## ------------------- ##
1801 _ASBOX
1802 echo
1803 for ac_var in $ac_subst_files
1804 do
1805 eval ac_val=\$$ac_var
1806 case $ac_val in
1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 esac
1809 echo "$ac_var='\''$ac_val'\''"
1810 done | sort
1811 echo
1812 fi
1813
1814 if test -s confdefs.h; then
1815 cat <<\_ASBOX
1816 ## ----------- ##
1817 ## confdefs.h. ##
1818 ## ----------- ##
1819 _ASBOX
1820 echo
1821 cat confdefs.h
1822 echo
1823 fi
1824 test "$ac_signal" != 0 &&
1825 echo "$as_me: caught signal $ac_signal"
1826 echo "$as_me: exit $exit_status"
1827 } >&5
1828 rm -f core *.core core.conftest.* &&
1829 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 exit $exit_status
1831 ' 0
1832 for ac_signal in 1 2 13 15; do
1833 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1834 done
1835 ac_signal=0
1836
1837 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1838 rm -f -r conftest* confdefs.h
1839
1840 # Predefined preprocessor variables.
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_NAME "$PACKAGE_NAME"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_STRING "$PACKAGE_STRING"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1864 _ACEOF
1865
1866
1867 # Let the site file select an alternate cache file if it wants to.
1868 # Prefer explicitly selected file to automatically selected ones.
1869 if test -n "$CONFIG_SITE"; then
1870 set x "$CONFIG_SITE"
1871 elif test "x$prefix" != xNONE; then
1872 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1873 else
1874 set x "$ac_default_prefix/share/config.site" \
1875 "$ac_default_prefix/etc/config.site"
1876 fi
1877 shift
1878 for ac_site_file
1879 do
1880 if test -r "$ac_site_file"; then
1881 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1882 echo "$as_me: loading site script $ac_site_file" >&6;}
1883 sed 's/^/| /' "$ac_site_file" >&5
1884 . "$ac_site_file"
1885 fi
1886 done
1887
1888 if test -r "$cache_file"; then
1889 # Some versions of bash will fail to source /dev/null (special
1890 # files actually), so we avoid doing that.
1891 if test -f "$cache_file"; then
1892 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1893 echo "$as_me: loading cache $cache_file" >&6;}
1894 case $cache_file in
1895 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1896 *) . "./$cache_file";;
1897 esac
1898 fi
1899 else
1900 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1901 echo "$as_me: creating cache $cache_file" >&6;}
1902 >$cache_file
1903 fi
1904
1905 # Check that the precious variables saved in the cache have kept the same
1906 # value.
1907 ac_cache_corrupted=false
1908 for ac_var in $ac_precious_vars; do
1909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1910 eval ac_new_set=\$ac_env_${ac_var}_set
1911 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1912 eval ac_new_val=\$ac_env_${ac_var}_value
1913 case $ac_old_set,$ac_new_set in
1914 set,)
1915 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1916 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1917 ac_cache_corrupted=: ;;
1918 ,set)
1919 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1920 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1921 ac_cache_corrupted=: ;;
1922 ,);;
1923 *)
1924 if test "x$ac_old_val" != "x$ac_new_val"; then
1925 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1926 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1927 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1928 echo "$as_me: former value: $ac_old_val" >&2;}
1929 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1930 echo "$as_me: current value: $ac_new_val" >&2;}
1931 ac_cache_corrupted=:
1932 fi;;
1933 esac
1934 # Pass precious variables to config.status.
1935 if test "$ac_new_set" = set; then
1936 case $ac_new_val in
1937 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 *) ac_arg=$ac_var=$ac_new_val ;;
1939 esac
1940 case " $ac_configure_args " in
1941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1942 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1943 esac
1944 fi
1945 done
1946 if $ac_cache_corrupted; then
1947 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1948 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1949 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1950 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1951 { (exit 1); exit 1; }; }
1952 fi
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978 ac_ext=c
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983
1984
1985
1986
1987 ac_config_headers="$ac_config_headers config.h"
1988
1989 ac_aux_dir=
1990 for ac_dir in . "$srcdir"/.; do
1991 if test -f "$ac_dir/install-sh"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/install-sh -c"
1994 break
1995 elif test -f "$ac_dir/install.sh"; then
1996 ac_aux_dir=$ac_dir
1997 ac_install_sh="$ac_aux_dir/install.sh -c"
1998 break
1999 elif test -f "$ac_dir/shtool"; then
2000 ac_aux_dir=$ac_dir
2001 ac_install_sh="$ac_aux_dir/shtool install -c"
2002 break
2003 fi
2004 done
2005 if test -z "$ac_aux_dir"; then
2006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2008 { (exit 1); exit 1; }; }
2009 fi
2010
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2018
2019
2020
2021 am__api_version='1.10'
2022
2023 # Find a good install program. We prefer a C program (faster),
2024 # so one script is as good as another. But avoid the broken or
2025 # incompatible versions:
2026 # SysV /etc/install, /usr/sbin/install
2027 # SunOS /usr/etc/install
2028 # IRIX /sbin/install
2029 # AIX /bin/install
2030 # AmigaOS /C/install, which installs bootblocks on floppy discs
2031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2034 # OS/2's system install, which has a completely different semantic
2035 # ./install, which can be erroneously created by make from ./install.sh.
2036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2038 if test -z "$INSTALL"; then
2039 if test "${ac_cv_path_install+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 # Account for people who put trailing slashes in PATH elements.
2048 case $as_dir/ in
2049 ./ | .// | /cC/* | \
2050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2052 /usr/ucb/* ) ;;
2053 *)
2054 # OSF1 and SCO ODT 3.0 have their own names for install.
2055 # Don't use installbsd from OSF since it installs stuff as root
2056 # by default.
2057 for ac_prog in ginstall scoinst install; do
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2060 if test $ac_prog = install &&
2061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2062 # AIX install. It has an incompatible calling convention.
2063 :
2064 elif test $ac_prog = install &&
2065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066 # program-specific install script used by HP pwplus--don't use.
2067 :
2068 else
2069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2070 break 3
2071 fi
2072 fi
2073 done
2074 done
2075 ;;
2076 esac
2077 done
2078 IFS=$as_save_IFS
2079
2080
2081 fi
2082 if test "${ac_cv_path_install+set}" = set; then
2083 INSTALL=$ac_cv_path_install
2084 else
2085 # As a last resort, use the slow shell script. Don't cache a
2086 # value for INSTALL within a source directory, because that will
2087 # break other packages using the cache if that directory is
2088 # removed, or if the value is a relative name.
2089 INSTALL=$ac_install_sh
2090 fi
2091 fi
2092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2093 echo "${ECHO_T}$INSTALL" >&6; }
2094
2095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2096 # It thinks the first close brace ends the variable substitution.
2097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2098
2099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2100
2101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2102
2103 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2104 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2105 # Just in case
2106 sleep 1
2107 echo timestamp > conftest.file
2108 # Do `set' in a subshell so we don't clobber the current shell's
2109 # arguments. Must try -L first in case configure is actually a
2110 # symlink; some systems play weird games with the mod time of symlinks
2111 # (eg FreeBSD returns the mod time of the symlink's containing
2112 # directory).
2113 if (
2114 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2115 if test "$*" = "X"; then
2116 # -L didn't work.
2117 set X `ls -t $srcdir/configure conftest.file`
2118 fi
2119 rm -f conftest.file
2120 if test "$*" != "X $srcdir/configure conftest.file" \
2121 && test "$*" != "X conftest.file $srcdir/configure"; then
2122
2123 # If neither matched, then we have a broken ls. This can happen
2124 # if, for instance, CONFIG_SHELL is bash and it inherits a
2125 # broken ls alias from the environment. This has actually
2126 # happened. Such a system could not be considered "sane".
2127 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2128 alias in your environment" >&5
2129 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2130 alias in your environment" >&2;}
2131 { (exit 1); exit 1; }; }
2132 fi
2133
2134 test "$2" = conftest.file
2135 )
2136 then
2137 # Ok.
2138 :
2139 else
2140 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2141 Check your system clock" >&5
2142 echo "$as_me: error: newly created file is older than distributed files!
2143 Check your system clock" >&2;}
2144 { (exit 1); exit 1; }; }
2145 fi
2146 { echo "$as_me:$LINENO: result: yes" >&5
2147 echo "${ECHO_T}yes" >&6; }
2148 test "$program_prefix" != NONE &&
2149 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2150 # Use a double $ so make ignores it.
2151 test "$program_suffix" != NONE &&
2152 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2153 # Double any \ or $. echo might interpret backslashes.
2154 # By default was `s,x,x', remove it if useless.
2155 cat <<\_ACEOF >conftest.sed
2156 s/[\\$]/&&/g;s/;s,x,x,$//
2157 _ACEOF
2158 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2159 rm -f conftest.sed
2160
2161 # expand $ac_aux_dir to an absolute path
2162 am_aux_dir=`cd $ac_aux_dir && pwd`
2163
2164 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2165 # Use eval to expand $SHELL
2166 if eval "$MISSING --run true"; then
2167 am_missing_run="$MISSING --run "
2168 else
2169 am_missing_run=
2170 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2171 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2172 fi
2173
2174 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2175 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2176 if test -z "$MKDIR_P"; then
2177 if test "${ac_cv_path_mkdir+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2182 do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_prog in mkdir gmkdir; do
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2188 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2189 'mkdir (GNU coreutils) '* | \
2190 'mkdir (coreutils) '* | \
2191 'mkdir (fileutils) '4.1*)
2192 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2193 break 3;;
2194 esac
2195 done
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201
2202 if test "${ac_cv_path_mkdir+set}" = set; then
2203 MKDIR_P="$ac_cv_path_mkdir -p"
2204 else
2205 # As a last resort, use the slow shell script. Don't cache a
2206 # value for MKDIR_P within a source directory, because that will
2207 # break other packages using the cache if that directory is
2208 # removed, or if the value is a relative name.
2209 test -d ./--version && rmdir ./--version
2210 MKDIR_P="$ac_install_sh -d"
2211 fi
2212 fi
2213 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2214 echo "${ECHO_T}$MKDIR_P" >&6; }
2215
2216 mkdir_p="$MKDIR_P"
2217 case $mkdir_p in
2218 [\\/$]* | ?:[\\/]*) ;;
2219 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2220 esac
2221
2222 for ac_prog in gawk mawk nawk awk
2223 do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2228 if test "${ac_cv_prog_AWK+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231 if test -n "$AWK"; then
2232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_AWK="$ac_prog"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2244 fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 AWK=$ac_cv_prog_AWK
2252 if test -n "$AWK"; then
2253 { echo "$as_me:$LINENO: result: $AWK" >&5
2254 echo "${ECHO_T}$AWK" >&6; }
2255 else
2256 { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2258 fi
2259
2260
2261 test -n "$AWK" && break
2262 done
2263
2264 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2265 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2266 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2267 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 cat >conftest.make <<\_ACEOF
2271 SHELL = /bin/sh
2272 all:
2273 @echo '@@@%%%=$(MAKE)=@@@%%%'
2274 _ACEOF
2275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2276 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2277 *@@@%%%=?*=@@@%%%*)
2278 eval ac_cv_prog_make_${ac_make}_set=yes;;
2279 *)
2280 eval ac_cv_prog_make_${ac_make}_set=no;;
2281 esac
2282 rm -f conftest.make
2283 fi
2284 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2285 { echo "$as_me:$LINENO: result: yes" >&5
2286 echo "${ECHO_T}yes" >&6; }
2287 SET_MAKE=
2288 else
2289 { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2291 SET_MAKE="MAKE=${MAKE-make}"
2292 fi
2293
2294 rm -rf .tst 2>/dev/null
2295 mkdir .tst 2>/dev/null
2296 if test -d .tst; then
2297 am__leading_dot=.
2298 else
2299 am__leading_dot=_
2300 fi
2301 rmdir .tst 2>/dev/null
2302
2303 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2304 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2305 # is not polluted with repeated "-I."
2306 am__isrc=' -I$(srcdir)'
2307 # test to see if srcdir already configured
2308 if test -f $srcdir/config.status; then
2309 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2310 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2311 { (exit 1); exit 1; }; }
2312 fi
2313 fi
2314
2315 # test whether we have cygpath
2316 if test -z "$CYGPATH_W"; then
2317 if (cygpath --version) >/dev/null 2>/dev/null; then
2318 CYGPATH_W='cygpath -w'
2319 else
2320 CYGPATH_W=echo
2321 fi
2322 fi
2323
2324
2325 # Define the identity of the package.
2326 PACKAGE='xf86-video-savage'
2327 VERSION='2.2.1'
2328
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE "$PACKAGE"
2332 _ACEOF
2333
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define VERSION "$VERSION"
2337 _ACEOF
2338
2339 # Some tools Automake needs.
2340
2341 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2342
2343
2344 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2345
2346
2347 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2348
2349
2350 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2351
2352
2353 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2354
2355 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2356
2357 # Installed binaries are usually stripped using `strip' when the user
2358 # run `make install-strip'. However `strip' might not be the right
2359 # tool to use in cross-compilation environments, therefore Automake
2360 # will honor the `STRIP' environment variable to overrule this program.
2361 if test "$cross_compiling" != no; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}strip; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_STRIP+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$STRIP"; then
2371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 STRIP=$ac_cv_prog_STRIP
2391 if test -n "$STRIP"; then
2392 { echo "$as_me:$LINENO: result: $STRIP" >&5
2393 echo "${ECHO_T}$STRIP" >&6; }
2394 else
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2397 fi
2398
2399
2400 fi
2401 if test -z "$ac_cv_prog_STRIP"; then
2402 ac_ct_STRIP=$STRIP
2403 # Extract the first word of "strip", so it can be a program name with args.
2404 set dummy strip; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 if test -n "$ac_ct_STRIP"; then
2411 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_STRIP="strip"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2431 if test -n "$ac_ct_STRIP"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2433 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2434 else
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439 if test "x$ac_ct_STRIP" = x; then
2440 STRIP=":"
2441 else
2442 case $cross_compiling:$ac_tool_warned in
2443 yes:)
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2450 ac_tool_warned=yes ;;
2451 esac
2452 STRIP=$ac_ct_STRIP
2453 fi
2454 else
2455 STRIP="$ac_cv_prog_STRIP"
2456 fi
2457
2458 fi
2459 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2460
2461 # We need awk for the "check" target. The system "awk" is bad on
2462 # some platforms.
2463 # Always define AMTAR for backward compatibility.
2464
2465 AMTAR=${AMTAR-"${am_missing_run}tar"}
2466
2467 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2468
2469
2470
2471
2472
2473
2474 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2475 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2476 # Check whether --enable-maintainer-mode was given.
2477 if test "${enable_maintainer_mode+set}" = set; then
2478 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2479 else
2480 USE_MAINTAINER_MODE=no
2481 fi
2482
2483 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2484 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2485 if test $USE_MAINTAINER_MODE = yes; then
2486 MAINTAINER_MODE_TRUE=
2487 MAINTAINER_MODE_FALSE='#'
2488 else
2489 MAINTAINER_MODE_TRUE='#'
2490 MAINTAINER_MODE_FALSE=
2491 fi
2492
2493 MAINT=$MAINTAINER_MODE_TRUE
2494
2495
2496
2497 # Checks for programs.
2498 # Check whether --enable-static was given.
2499 if test "${enable_static+set}" = set; then
2500 enableval=$enable_static; p=${PACKAGE-default}
2501 case $enableval in
2502 yes) enable_static=yes ;;
2503 no) enable_static=no ;;
2504 *)
2505 enable_static=no
2506 # Look at the argument we got. We use all the common list separators.
2507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2508 for pkg in $enableval; do
2509 IFS="$lt_save_ifs"
2510 if test "X$pkg" = "X$p"; then
2511 enable_static=yes
2512 fi
2513 done
2514 IFS="$lt_save_ifs"
2515 ;;
2516 esac
2517 else
2518 enable_static=no
2519 fi
2520
2521
2522
2523 # Check whether --enable-shared was given.
2524 if test "${enable_shared+set}" = set; then
2525 enableval=$enable_shared; p=${PACKAGE-default}
2526 case $enableval in
2527 yes) enable_shared=yes ;;
2528 no) enable_shared=no ;;
2529 *)
2530 enable_shared=no
2531 # Look at the argument we got. We use all the common list separators.
2532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2533 for pkg in $enableval; do
2534 IFS="$lt_save_ifs"
2535 if test "X$pkg" = "X$p"; then
2536 enable_shared=yes
2537 fi
2538 done
2539 IFS="$lt_save_ifs"
2540 ;;
2541 esac
2542 else
2543 enable_shared=yes
2544 fi
2545
2546
2547 # Check whether --enable-fast-install was given.
2548 if test "${enable_fast_install+set}" = set; then
2549 enableval=$enable_fast_install; p=${PACKAGE-default}
2550 case $enableval in
2551 yes) enable_fast_install=yes ;;
2552 no) enable_fast_install=no ;;
2553 *)
2554 enable_fast_install=no
2555 # Look at the argument we got. We use all the common list separators.
2556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2557 for pkg in $enableval; do
2558 IFS="$lt_save_ifs"
2559 if test "X$pkg" = "X$p"; then
2560 enable_fast_install=yes
2561 fi
2562 done
2563 IFS="$lt_save_ifs"
2564 ;;
2565 esac
2566 else
2567 enable_fast_install=yes
2568 fi
2569
2570
2571 # Make sure we can run config.sub.
2572 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2573 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2574 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2575 { (exit 1); exit 1; }; }
2576
2577 { echo "$as_me:$LINENO: checking build system type" >&5
2578 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2579 if test "${ac_cv_build+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 ac_build_alias=$build_alias
2583 test "x$ac_build_alias" = x &&
2584 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2585 test "x$ac_build_alias" = x &&
2586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2587 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2588 { (exit 1); exit 1; }; }
2589 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2592 { (exit 1); exit 1; }; }
2593
2594 fi
2595 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2596 echo "${ECHO_T}$ac_cv_build" >&6; }
2597 case $ac_cv_build in
2598 *-*-*) ;;
2599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2600 echo "$as_me: error: invalid value of canonical build" >&2;}
2601 { (exit 1); exit 1; }; };;
2602 esac
2603 build=$ac_cv_build
2604 ac_save_IFS=$IFS; IFS='-'
2605 set x $ac_cv_build
2606 shift
2607 build_cpu=$1
2608 build_vendor=$2
2609 shift; shift
2610 # Remember, the first character of IFS is used to create $*,
2611 # except with old shells:
2612 build_os=$*
2613 IFS=$ac_save_IFS
2614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2615
2616
2617 { echo "$as_me:$LINENO: checking host system type" >&5
2618 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2619 if test "${ac_cv_host+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622 if test "x$host_alias" = x; then
2623 ac_cv_host=$ac_cv_build
2624 else
2625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2628 { (exit 1); exit 1; }; }
2629 fi
2630
2631 fi
2632 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2633 echo "${ECHO_T}$ac_cv_host" >&6; }
2634 case $ac_cv_host in
2635 *-*-*) ;;
2636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2637 echo "$as_me: error: invalid value of canonical host" >&2;}
2638 { (exit 1); exit 1; }; };;
2639 esac
2640 host=$ac_cv_host
2641 ac_save_IFS=$IFS; IFS='-'
2642 set x $ac_cv_host
2643 shift
2644 host_cpu=$1
2645 host_vendor=$2
2646 shift; shift
2647 # Remember, the first character of IFS is used to create $*,
2648 # except with old shells:
2649 host_os=$*
2650 IFS=$ac_save_IFS
2651 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2652
2653
2654 DEPDIR="${am__leading_dot}deps"
2655
2656 ac_config_commands="$ac_config_commands depfiles"
2657
2658
2659 am_make=${MAKE-make}
2660 cat > confinc << 'END'
2661 am__doit:
2662 @echo done
2663 .PHONY: am__doit
2664 END
2665 # If we don't find an include directive, just comment out the code.
2666 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2667 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2668 am__include="#"
2669 am__quote=
2670 _am_result=none
2671 # First try GNU make style include.
2672 echo "include confinc" > confmf
2673 # We grep out `Entering directory' and `Leaving directory'
2674 # messages which can occur if `w' ends up in MAKEFLAGS.
2675 # In particular we don't look at `^make:' because GNU make might
2676 # be invoked under some other name (usually "gmake"), in which
2677 # case it prints its new name instead of `make'.
2678 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2679 am__include=include
2680 am__quote=
2681 _am_result=GNU
2682 fi
2683 # Now try BSD make style include.
2684 if test "$am__include" = "#"; then
2685 echo '.include "confinc"' > confmf
2686 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2687 am__include=.include
2688 am__quote="\""
2689 _am_result=BSD
2690 fi
2691 fi
2692
2693
2694 { echo "$as_me:$LINENO: result: $_am_result" >&5
2695 echo "${ECHO_T}$_am_result" >&6; }
2696 rm -f confinc confmf
2697
2698 # Check whether --enable-dependency-tracking was given.
2699 if test "${enable_dependency_tracking+set}" = set; then
2700 enableval=$enable_dependency_tracking;
2701 fi
2702
2703 if test "x$enable_dependency_tracking" != xno; then
2704 am_depcomp="$ac_aux_dir/depcomp"
2705 AMDEPBACKSLASH='\'
2706 fi
2707 if test "x$enable_dependency_tracking" != xno; then
2708 AMDEP_TRUE=
2709 AMDEP_FALSE='#'
2710 else
2711 AMDEP_TRUE='#'
2712 AMDEP_FALSE=
2713 fi
2714
2715
2716 ac_ext=c
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6; }
2753 else
2754 { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2756 fi
2757
2758
2759 fi
2760 if test -z "$ac_cv_prog_CC"; then
2761 ac_ct_CC=$CC
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 echo "${ECHO_T}$ac_ct_CC" >&6; }
2793 else
2794 { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2797
2798 if test "x$ac_ct_CC" = x; then
2799 CC=""
2800 else
2801 case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2804 whose name does not start with the host triplet. If you think this
2805 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet. If you think this
2808 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2809 ac_tool_warned=yes ;;
2810 esac
2811 CC=$ac_ct_CC
2812 fi
2813 else
2814 CC="$ac_cv_prog_CC"
2815 fi
2816
2817 if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2820 set dummy ${ac_tool_prefix}cc; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CC+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CC="${ac_tool_prefix}cc"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848 { echo "$as_me:$LINENO: result: $CC" >&5
2849 echo "${ECHO_T}$CC" >&6; }
2850 else
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2854
2855
2856 fi
2857 fi
2858 if test -z "$CC"; then
2859 # Extract the first word of "cc", so it can be a program name with args.
2860 set dummy cc; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 ac_prog_rejected=no
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878 ac_prog_rejected=yes
2879 continue
2880 fi
2881 ac_cv_prog_CC="cc"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899 fi
2900 fi
2901 fi
2902 fi
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 { echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6; }
2907 else
2908 { echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6; }
2910 fi
2911
2912
2913 fi
2914 if test -z "$CC"; then
2915 if test -n "$ac_tool_prefix"; then
2916 for ac_prog in cl.exe
2917 do
2918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_CC+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { echo "$as_me:$LINENO: result: $CC" >&5
2948 echo "${ECHO_T}$CC" >&6; }
2949 else
2950 { echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6; }
2952 fi
2953
2954
2955 test -n "$CC" && break
2956 done
2957 fi
2958 if test -z "$CC"; then
2959 ac_ct_CC=$CC
2960 for ac_prog in cl.exe
2961 do
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC="$ac_prog"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2992 echo "${ECHO_T}$ac_ct_CC" >&6; }
2993 else
2994 { echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6; }
2996 fi
2997
2998
2999 test -n "$ac_ct_CC" && break
3000 done
3001
3002 if test "x$ac_ct_CC" = x; then
3003 CC=""
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3008 whose name does not start with the host triplet. If you think this
3009 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
3010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3011 whose name does not start with the host triplet. If you think this
3012 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
3013 ac_tool_warned=yes ;;
3014 esac
3015 CC=$ac_ct_CC
3016 fi
3017 fi
3018
3019 fi
3020
3021
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3027
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO: checking for C compiler version" >&5
3030 ac_compiler=`set X $ac_compile; echo $2`
3031 { (ac_try="$ac_compiler --version >&5"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compiler --version >&5") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041 { (ac_try="$ac_compiler -v >&5"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compiler -v >&5") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051 { (ac_try="$ac_compiler -V >&5"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compiler -V >&5") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }
3061
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068
3069 int
3070 main ()
3071 {
3072
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 ac_clean_files_save=$ac_clean_files
3078 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3079 # Try to create an executable without -o first, disregard a.out.
3080 # It will help us diagnose broken compilers, and finding out an intuition
3081 # of exeext.
3082 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3083 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3084 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085 #
3086 # List of possible output files, starting from the most likely.
3087 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3088 # only as a last resort. b.out is created by i960 compilers.
3089 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3090 #
3091 # The IRIX 6 linker writes into existing files which may not be
3092 # executable, retaining their permissions. Remove them first so a
3093 # subsequent execution test works.
3094 ac_rmfiles=
3095 for ac_file in $ac_files
3096 do
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3099 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100 esac
3101 done
3102 rm -f $ac_rmfiles
3103
3104 if { (ac_try="$ac_link_default"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_link_default") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; then
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3118 # Autoconf.
3119 for ac_file in $ac_files ''
3120 do
3121 test -f "$ac_file" || continue
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3124 ;;
3125 [ab].out )
3126 # We found the default executable, but exeext='' is most
3127 # certainly right.
3128 break;;
3129 *.* )
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3131 then :; else
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133 fi
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3138 # actually working.
3139 break;;
3140 * )
3141 break;;
3142 esac
3143 done
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3145
3146 else
3147 ac_file=''
3148 fi
3149
3150 { echo "$as_me:$LINENO: result: $ac_file" >&5
3151 echo "${ECHO_T}$ac_file" >&6; }
3152 if test -z "$ac_file"; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: C compiler cannot create executables
3159 See \`config.log' for more details." >&2;}
3160 { (exit 77); exit 77; }; }
3161 fi
3162
3163 ac_exeext=$ac_cv_exeext
3164
3165 # Check that the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3168 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3169 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3170 # If not cross compiling, check that we can run a simple program.
3171 if test "$cross_compiling" != yes; then
3172 if { ac_try='./$ac_file'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&5
3190 echo "$as_me: error: cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3194 fi
3195 fi
3196 fi
3197 { echo "$as_me:$LINENO: result: yes" >&5
3198 echo "${ECHO_T}yes" >&6; }
3199
3200 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3201 ac_clean_files=$ac_clean_files_save
3202 # Check that the compiler produces executables we can run. If not, either
3203 # the compiler is broken, or we cross compile.
3204 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3205 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3206 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3207 echo "${ECHO_T}$cross_compiling" >&6; }
3208
3209 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3210 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3211 if { (ac_try="$ac_link"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_link") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; then
3221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3223 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 # `rm'.
3225 for ac_file in conftest.exe conftest conftest.*; do
3226 test -f "$ac_file" || continue
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 break;;
3231 * ) break;;
3232 esac
3233 done
3234 else
3235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&2;}
3239 { (exit 1); exit 1; }; }
3240 fi
3241
3242 rm -f conftest$ac_cv_exeext
3243 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3244 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3245
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3251 if test "${ac_cv_objext+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { (ac_try="$ac_compile"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; then
3280 for ac_file in conftest.o conftest.obj conftest.*; do
3281 test -f "$ac_file" || continue;
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3284 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3285 break;;
3286 esac
3287 done
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details." >&5
3294 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3295 See \`config.log' for more details." >&2;}
3296 { (exit 1); exit 1; }; }
3297 fi
3298
3299 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3300 fi
3301 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3302 echo "${ECHO_T}$ac_cv_objext" >&6; }
3303 OBJEXT=$ac_cv_objext
3304 ac_objext=$OBJEXT
3305 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3306 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3307 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316
3317 int
3318 main ()
3319 {
3320 #ifndef __GNUC__
3321 choke me
3322 #endif
3323
3324 ;
3325 return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
3345 ac_compiler_gnu=yes
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 ac_compiler_gnu=no
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355
3356 fi
3357 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3359 GCC=`test $ac_compiler_gnu = yes && echo yes`
3360 ac_test_CFLAGS=${CFLAGS+set}
3361 ac_save_CFLAGS=$CFLAGS
3362 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_g+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 ac_save_c_werror_flag=$ac_c_werror_flag
3368 ac_c_werror_flag=yes
3369 ac_cv_prog_cc_g=no
3370 CFLAGS="-g"
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377
3378 int
3379 main ()
3380 {
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_cv_prog_cc_g=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 CFLAGS=""
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415
3416 int
3417 main ()
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_compile") 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } && {
3438 test -z "$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest.$ac_objext; then
3441 :
3442 else
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447 CFLAGS="-g"
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_compile") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } && {
3477 test -z "$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 } && test -s conftest.$ac_objext; then
3480 ac_cv_prog_cc_g=yes
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485
3486 fi
3487
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3490
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3496 fi
3497 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3498 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3499 if test "$ac_test_CFLAGS" = set; then
3500 CFLAGS=$ac_save_CFLAGS
3501 elif test $ac_cv_prog_cc_g = yes; then
3502 if test "$GCC" = yes; then
3503 CFLAGS="-g -O2"
3504 else
3505 CFLAGS="-g"
3506 fi
3507 else
3508 if test "$GCC" = yes; then
3509 CFLAGS="-O2"
3510 else
3511 CFLAGS=
3512 fi
3513 fi
3514 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3515 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3516 if test "${ac_cv_prog_cc_c89+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 ac_cv_prog_cc_c89=no
3520 ac_save_CC=$CC
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <stdarg.h>
3528 #include <stdio.h>
3529 #include <sys/types.h>
3530 #include <sys/stat.h>
3531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3532 struct buf { int x; };
3533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3534 static char *e (p, i)
3535 char **p;
3536 int i;
3537 {
3538 return p[i];
3539 }
3540 static char *f (char * (*g) (char **, int), char **p, ...)
3541 {
3542 char *s;
3543 va_list v;
3544 va_start (v,p);
3545 s = g (p, va_arg (v,int));
3546 va_end (v);
3547 return s;
3548 }
3549
3550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3551 function prototypes and stuff, but not '\xHH' hex character constants.
3552 These don't provoke an error unfortunately, instead are silently treated
3553 as 'x'. The following induces an error, until -std is added to get
3554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3555 array size at least. It's necessary to write '\x00'==0 to get something
3556 that's true only with -std. */
3557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3558
3559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3560 inside strings and character constants. */
3561 #define FOO(x) 'x'
3562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3563
3564 int test (int i, double x);
3565 struct s1 {int (*f) (int a);};
3566 struct s2 {int (*f) (double a);};
3567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3568 int argc;
3569 char **argv;
3570 int
3571 main ()
3572 {
3573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3580 do
3581 CC="$ac_save_CC $ac_arg"
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_compile") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3599 ac_cv_prog_cc_c89=$ac_arg
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext
3608 test "x$ac_cv_prog_cc_c89" != "xno" && break
3609 done
3610 rm -f conftest.$ac_ext
3611 CC=$ac_save_CC
3612
3613 fi
3614 # AC_CACHE_VAL
3615 case "x$ac_cv_prog_cc_c89" in
3616 x)
3617 { echo "$as_me:$LINENO: result: none needed" >&5
3618 echo "${ECHO_T}none needed" >&6; } ;;
3619 xno)
3620 { echo "$as_me:$LINENO: result: unsupported" >&5
3621 echo "${ECHO_T}unsupported" >&6; } ;;
3622 *)
3623 CC="$CC $ac_cv_prog_cc_c89"
3624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3625 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3626 esac
3627
3628
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635 depcc="$CC" am_compiler_list=
3636
3637 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3638 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3639 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3643 # We make a subdir and do the tests there. Otherwise we can end up
3644 # making bogus files that we don't know about and never remove. For
3645 # instance it was reported that on HP-UX the gcc test will end up
3646 # making a dummy file named `D' -- because `-MD' means `put the output
3647 # in D'.
3648 mkdir conftest.dir
3649 # Copy depcomp to subdir because otherwise we won't find it if we're
3650 # using a relative directory.
3651 cp "$am_depcomp" conftest.dir
3652 cd conftest.dir
3653 # We will build objects and dependencies in a subdirectory because
3654 # it helps to detect inapplicable dependency modes. For instance
3655 # both Tru64's cc and ICC support -MD to output dependencies as a
3656 # side effect of compilation, but ICC will put the dependencies in
3657 # the current directory while Tru64 will put them in the object
3658 # directory.
3659 mkdir sub
3660
3661 am_cv_CC_dependencies_compiler_type=none
3662 if test "$am_compiler_list" = ""; then
3663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3664 fi
3665 for depmode in $am_compiler_list; do
3666 # Setup a source with many dependencies, because some compilers
3667 # like to wrap large dependency lists on column 80 (with \), and
3668 # we should not choose a depcomp mode which is confused by this.
3669 #
3670 # We need to recreate these files for each test, as the compiler may
3671 # overwrite some of them when testing with obscure command lines.
3672 # This happens at least with the AIX C compiler.
3673 : > sub/conftest.c
3674 for i in 1 2 3 4 5 6; do
3675 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3676 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3677 # Solaris 8's {/usr,}/bin/sh.
3678 touch sub/conftst$i.h
3679 done
3680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3681
3682 case $depmode in
3683 nosideeffect)
3684 # after this tag, mechanisms are not by side-effect, so they'll
3685 # only be used when explicitly requested
3686 if test "x$enable_dependency_tracking" = xyes; then
3687 continue
3688 else
3689 break
3690 fi
3691 ;;
3692 none) break ;;
3693 esac
3694 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3695 # mode. It turns out that the SunPro C++ compiler does not properly
3696 # handle `-M -o', and we need to detect this.
3697 if depmode=$depmode \
3698 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3700 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3701 >/dev/null 2>conftest.err &&
3702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3704 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3706 # icc doesn't choke on unknown options, it will just issue warnings
3707 # or remarks (even with -Werror). So we grep stderr for any message
3708 # that says an option was ignored or not supported.
3709 # When given -MP, icc 7.0 and 7.1 complain thusly:
3710 # icc: Command line warning: ignoring option '-M'; no argument required
3711 # The diagnosis changed in icc 8.0:
3712 # icc: Command line remark: option '-MP' not supported
3713 if (grep 'ignoring option' conftest.err ||
3714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3715 am_cv_CC_dependencies_compiler_type=$depmode
3716 break
3717 fi
3718 fi
3719 done
3720
3721 cd ..
3722 rm -rf conftest.dir
3723 else
3724 am_cv_CC_dependencies_compiler_type=none
3725 fi
3726
3727 fi
3728 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3729 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3731
3732 if
3733 test "x$enable_dependency_tracking" != xno \
3734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3735 am__fastdepCC_TRUE=
3736 am__fastdepCC_FALSE='#'
3737 else
3738 am__fastdepCC_TRUE='#'
3739 am__fastdepCC_FALSE=
3740 fi
3741
3742
3743 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3744 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3745 if test "${lt_cv_path_SED+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 # Loop through the user's path and test for sed and gsed.
3749 # Then use that list of sed's as ones to test for truncation.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for lt_ac_prog in sed gsed; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3758 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3759 fi
3760 done
3761 done
3762 done
3763 IFS=$as_save_IFS
3764 lt_ac_max=0
3765 lt_ac_count=0
3766 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3767 # along with /bin/sed that truncates output.
3768 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3769 test ! -f $lt_ac_sed && continue
3770 cat /dev/null > conftest.in
3771 lt_ac_count=0
3772 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3773 # Check for GNU sed and select it if it is found.
3774 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3775 lt_cv_path_SED=$lt_ac_sed
3776 break
3777 fi
3778 while true; do
3779 cat conftest.in conftest.in >conftest.tmp
3780 mv conftest.tmp conftest.in
3781 cp conftest.in conftest.nl
3782 echo >>conftest.nl
3783 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3784 cmp -s conftest.out conftest.nl || break
3785 # 10000 chars as input seems more than enough
3786 test $lt_ac_count -gt 10 && break
3787 lt_ac_count=`expr $lt_ac_count + 1`
3788 if test $lt_ac_count -gt $lt_ac_max; then
3789 lt_ac_max=$lt_ac_count
3790 lt_cv_path_SED=$lt_ac_sed
3791 fi
3792 done
3793 done
3794
3795 fi
3796
3797 SED=$lt_cv_path_SED
3798
3799 { echo "$as_me:$LINENO: result: $SED" >&5
3800 echo "${ECHO_T}$SED" >&6; }
3801
3802 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3803 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3804 if test "${ac_cv_path_GREP+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807 # Extract the first word of "grep ggrep" to use in msg output
3808 if test -z "$GREP"; then
3809 set dummy grep ggrep; ac_prog_name=$2
3810 if test "${ac_cv_path_GREP+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 ac_path_GREP_found=false
3814 # Loop through the user's path and test for each of PROGNAME-LIST
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3817 do
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for ac_prog in grep ggrep; do
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3823 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3824 # Check for GNU ac_path_GREP and select it if it is found.
3825 # Check for GNU $ac_path_GREP
3826 case `"$ac_path_GREP" --version 2>&1` in
3827 *GNU*)
3828 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3829 *)
3830 ac_count=0
3831 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3832 while :
3833 do
3834 cat "conftest.in" "conftest.in" >"conftest.tmp"
3835 mv "conftest.tmp" "conftest.in"
3836 cp "conftest.in" "conftest.nl"
3837 echo 'GREP' >> "conftest.nl"
3838 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3840 ac_count=`expr $ac_count + 1`
3841 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3842 # Best one so far, save it but keep looking for a better one
3843 ac_cv_path_GREP="$ac_path_GREP"
3844 ac_path_GREP_max=$ac_count
3845 fi
3846 # 10*(2^10) chars as input seems more than enough
3847 test $ac_count -gt 10 && break
3848 done
3849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3850 esac
3851
3852
3853 $ac_path_GREP_found && break 3
3854 done
3855 done
3856
3857 done
3858 IFS=$as_save_IFS
3859
3860
3861 fi
3862
3863 GREP="$ac_cv_path_GREP"
3864 if test -z "$GREP"; then
3865 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3866 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3867 { (exit 1); exit 1; }; }
3868 fi
3869
3870 else
3871 ac_cv_path_GREP=$GREP
3872 fi
3873
3874
3875 fi
3876 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3877 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3878 GREP="$ac_cv_path_GREP"
3879
3880
3881 { echo "$as_me:$LINENO: checking for egrep" >&5
3882 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3883 if test "${ac_cv_path_EGREP+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3887 then ac_cv_path_EGREP="$GREP -E"
3888 else
3889 # Extract the first word of "egrep" to use in msg output
3890 if test -z "$EGREP"; then
3891 set dummy egrep; ac_prog_name=$2
3892 if test "${ac_cv_path_EGREP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 ac_path_EGREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_prog in egrep; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3905 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3906 # Check for GNU ac_path_EGREP and select it if it is found.
3907 # Check for GNU $ac_path_EGREP
3908 case `"$ac_path_EGREP" --version 2>&1` in
3909 *GNU*)
3910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3911 *)
3912 ac_count=0
3913 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3914 while :
3915 do
3916 cat "conftest.in" "conftest.in" >"conftest.tmp"
3917 mv "conftest.tmp" "conftest.in"
3918 cp "conftest.in" "conftest.nl"
3919 echo 'EGREP' >> "conftest.nl"
3920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922 ac_count=`expr $ac_count + 1`
3923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3924 # Best one so far, save it but keep looking for a better one
3925 ac_cv_path_EGREP="$ac_path_EGREP"
3926 ac_path_EGREP_max=$ac_count
3927 fi
3928 # 10*(2^10) chars as input seems more than enough
3929 test $ac_count -gt 10 && break
3930 done
3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 esac
3933
3934
3935 $ac_path_EGREP_found && break 3
3936 done
3937 done
3938
3939 done
3940 IFS=$as_save_IFS
3941
3942
3943 fi
3944
3945 EGREP="$ac_cv_path_EGREP"
3946 if test -z "$EGREP"; then
3947 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3948 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3949 { (exit 1); exit 1; }; }
3950 fi
3951
3952 else
3953 ac_cv_path_EGREP=$EGREP
3954 fi
3955
3956
3957 fi
3958 fi
3959 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3960 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3961 EGREP="$ac_cv_path_EGREP"
3962
3963
3964
3965 # Check whether --with-gnu-ld was given.
3966 if test "${with_gnu_ld+set}" = set; then
3967 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3968 else
3969 with_gnu_ld=no
3970 fi
3971
3972 ac_prog=ld
3973 if test "$GCC" = yes; then
3974 # Check if gcc -print-prog-name=ld gives a path.
3975 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3976 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3977 case $host in
3978 *-*-mingw*)
3979 # gcc leaves a trailing carriage return which upsets mingw
3980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3981 *)
3982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3983 esac
3984 case $ac_prog in
3985 # Accept absolute paths.
3986 [\\/]* | ?:[\\/]*)
3987 re_direlt='/[^/][^/]*/\.\./'
3988 # Canonicalize the pathname of ld
3989 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3991 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3992 done
3993 test -z "$LD" && LD="$ac_prog"
3994 ;;
3995 "")
3996 # If it fails, then pretend we aren't using GCC.
3997 ac_prog=ld
3998 ;;
3999 *)
4000 # If it is relative, then search for the first ld in PATH.
4001 with_gnu_ld=unknown
4002 ;;
4003 esac
4004 elif test "$with_gnu_ld" = yes; then
4005 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4006 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4007 else
4008 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4009 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4010 fi
4011 if test "${lt_cv_path_LD+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 if test -z "$LD"; then
4015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4016 for ac_dir in $PATH; do
4017 IFS="$lt_save_ifs"
4018 test -z "$ac_dir" && ac_dir=.
4019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4020 lt_cv_path_LD="$ac_dir/$ac_prog"
4021 # Check to see if the program is GNU ld. I'd rather use --version,
4022 # but apparently some variants of GNU ld only accept -v.
4023 # Break only if it was the GNU/non-GNU ld that we prefer.
4024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4025 *GNU* | *'with BFD'*)
4026 test "$with_gnu_ld" != no && break
4027 ;;
4028 *)
4029 test "$with_gnu_ld" != yes && break
4030 ;;
4031 esac
4032 fi
4033 done
4034 IFS="$lt_save_ifs"
4035 else
4036 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4037 fi
4038 fi
4039
4040 LD="$lt_cv_path_LD"
4041 if test -n "$LD"; then
4042 { echo "$as_me:$LINENO: result: $LD" >&5
4043 echo "${ECHO_T}$LD" >&6; }
4044 else
4045 { echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6; }
4047 fi
4048 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4049 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4050 { (exit 1); exit 1; }; }
4051 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4052 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4053 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4057 case `$LD -v 2>&1 </dev/null` in
4058 *GNU* | *'with BFD'*)
4059 lt_cv_prog_gnu_ld=yes
4060 ;;
4061 *)
4062 lt_cv_prog_gnu_ld=no
4063 ;;
4064 esac
4065 fi
4066 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4067 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4068 with_gnu_ld=$lt_cv_prog_gnu_ld
4069
4070
4071 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4072 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4073 if test "${lt_cv_ld_reload_flag+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 lt_cv_ld_reload_flag='-r'
4077 fi
4078 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4079 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4080 reload_flag=$lt_cv_ld_reload_flag
4081 case $reload_flag in
4082 "" | " "*) ;;
4083 *) reload_flag=" $reload_flag" ;;
4084 esac
4085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4086 case $host_os in
4087 darwin*)
4088 if test "$GCC" = yes; then
4089 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4090 else
4091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4092 fi
4093 ;;
4094 esac
4095
4096 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4097 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4098 if test "${lt_cv_path_NM+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 if test -n "$NM"; then
4102 # Let the user override the test.
4103 lt_cv_path_NM="$NM"
4104 else
4105 lt_nm_to_check="${ac_tool_prefix}nm"
4106 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4107 lt_nm_to_check="$lt_nm_to_check nm"
4108 fi
4109 for lt_tmp_nm in $lt_nm_to_check; do
4110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4111 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4112 IFS="$lt_save_ifs"
4113 test -z "$ac_dir" && ac_dir=.
4114 tmp_nm="$ac_dir/$lt_tmp_nm"
4115 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4116 # Check to see if the nm accepts a BSD-compat flag.
4117 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4118 # nm: unknown option "B" ignored
4119 # Tru64's nm complains that /dev/null is an invalid object file
4120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4121 */dev/null* | *'Invalid file or object type'*)
4122 lt_cv_path_NM="$tmp_nm -B"
4123 break
4124 ;;
4125 *)
4126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4127 */dev/null*)
4128 lt_cv_path_NM="$tmp_nm -p"
4129 break
4130 ;;
4131 *)
4132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4133 continue # so that we can try to find one that supports BSD flags
4134 ;;
4135 esac
4136 ;;
4137 esac
4138 fi
4139 done
4140 IFS="$lt_save_ifs"
4141 done
4142 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4143 fi
4144 fi
4145 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4146 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4147 NM="$lt_cv_path_NM"
4148
4149 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4150 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4151 LN_S=$as_ln_s
4152 if test "$LN_S" = "ln -s"; then
4153 { echo "$as_me:$LINENO: result: yes" >&5
4154 echo "${ECHO_T}yes" >&6; }
4155 else
4156 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4157 echo "${ECHO_T}no, using $LN_S" >&6; }
4158 fi
4159
4160 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4161 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4162 if test "${lt_cv_deplibs_check_method+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 lt_cv_file_magic_cmd='$MAGIC_CMD'
4166 lt_cv_file_magic_test_file=
4167 lt_cv_deplibs_check_method='unknown'
4168 # Need to set the preceding variable on all platforms that support
4169 # interlibrary dependencies.
4170 # 'none' -- dependencies not supported.
4171 # `unknown' -- same as none, but documents that we really don't know.
4172 # 'pass_all' -- all dependencies passed with no checks.
4173 # 'test_compile' -- check by making test program.
4174 # 'file_magic [[regex]]' -- check by looking for files in library path
4175 # which responds to the $file_magic_cmd with a given extended regex.
4176 # If you have `file' or equivalent on your system and you're not sure
4177 # whether `pass_all' will *always* work, you probably want this one.
4178
4179 case $host_os in
4180 aix4* | aix5*)
4181 lt_cv_deplibs_check_method=pass_all
4182 ;;
4183
4184 beos*)
4185 lt_cv_deplibs_check_method=pass_all
4186 ;;
4187
4188 bsdi[45]*)
4189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4190 lt_cv_file_magic_cmd='/usr/bin/file -L'
4191 lt_cv_file_magic_test_file=/shlib/libc.so
4192 ;;
4193
4194 cygwin*)
4195 # func_win32_libid is a shell function defined in ltmain.sh
4196 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4197 lt_cv_file_magic_cmd='func_win32_libid'
4198 ;;
4199
4200 mingw* | pw32*)
4201 # Base MSYS/MinGW do not provide the 'file' command needed by
4202 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4203 # unless we find 'file', for example because we are cross-compiling.
4204 if ( file / ) >/dev/null 2>&1; then
4205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4206 lt_cv_file_magic_cmd='func_win32_libid'
4207 else
4208 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4209 lt_cv_file_magic_cmd='$OBJDUMP -f'
4210 fi
4211 ;;
4212
4213 darwin* | rhapsody*)
4214 lt_cv_deplibs_check_method=pass_all
4215 ;;
4216
4217 freebsd* | dragonfly*)
4218 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4219 case $host_cpu in
4220 i*86 )
4221 # Not sure whether the presence of OpenBSD here was a mistake.
4222 # Let's accept both of them until this is cleared up.
4223 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4224 lt_cv_file_magic_cmd=/usr/bin/file
4225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4226 ;;
4227 esac
4228 else
4229 lt_cv_deplibs_check_method=pass_all
4230 fi
4231 ;;
4232
4233 gnu*)
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237 hpux10.20* | hpux11*)
4238 lt_cv_file_magic_cmd=/usr/bin/file
4239 case $host_cpu in
4240 ia64*)
4241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4242 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4243 ;;
4244 hppa*64*)
4245 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]'
4246 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4247 ;;
4248 *)
4249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4250 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4251 ;;
4252 esac
4253 ;;
4254
4255 interix[3-9]*)
4256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4258 ;;
4259
4260 irix5* | irix6* | nonstopux*)
4261 case $LD in
4262 *-32|*"-32 ") libmagic=32-bit;;
4263 *-n32|*"-n32 ") libmagic=N32;;
4264 *-64|*"-64 ") libmagic=64-bit;;
4265 *) libmagic=never-match;;
4266 esac
4267 lt_cv_deplibs_check_method=pass_all
4268 ;;
4269
4270 # This must be Linux ELF.
4271 linux* | k*bsd*-gnu)
4272 lt_cv_deplibs_check_method=pass_all
4273 ;;
4274
4275 netbsd*)
4276 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4278 else
4279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4280 fi
4281 ;;
4282
4283 newos6*)
4284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4285 lt_cv_file_magic_cmd=/usr/bin/file
4286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4287 ;;
4288
4289 nto-qnx*)
4290 lt_cv_deplibs_check_method=unknown
4291 ;;
4292
4293 openbsd*)
4294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4296 else
4297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4298 fi
4299 ;;
4300
4301 osf3* | osf4* | osf5*)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305 rdos*)
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
4309 solaris*)
4310 lt_cv_deplibs_check_method=pass_all
4311 ;;
4312
4313 sysv4 | sysv4.3*)
4314 case $host_vendor in
4315 motorola)
4316 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]'
4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4318 ;;
4319 ncr)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322 sequent)
4323 lt_cv_file_magic_cmd='/bin/file'
4324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4325 ;;
4326 sni)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4329 lt_cv_file_magic_test_file=/lib/libc.so
4330 ;;
4331 siemens)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334 pc)
4335 lt_cv_deplibs_check_method=pass_all
4336 ;;
4337 esac
4338 ;;
4339
4340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343 esac
4344
4345 fi
4346 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4347 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4348 file_magic_cmd=$lt_cv_file_magic_cmd
4349 deplibs_check_method=$lt_cv_deplibs_check_method
4350 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4351
4352
4353
4354
4355 # If no C compiler was specified, use CC.
4356 LTCC=${LTCC-"$CC"}
4357
4358 # If no C compiler flags were specified, use CFLAGS.
4359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4360
4361 # Allow CC to be a program name with arguments.
4362 compiler=$CC
4363
4364
4365 # Check whether --enable-libtool-lock was given.
4366 if test "${enable_libtool_lock+set}" = set; then
4367 enableval=$enable_libtool_lock;
4368 fi
4369
4370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4371
4372 # Some flags need to be propagated to the compiler or linker for good
4373 # libtool support.
4374 case $host in
4375 ia64-*-hpux*)
4376 # Find out which ABI we are using.
4377 echo 'int i;' > conftest.$ac_ext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; then
4383 case `/usr/bin/file conftest.$ac_objext` in
4384 *ELF-32*)
4385 HPUX_IA64_MODE="32"
4386 ;;
4387 *ELF-64*)
4388 HPUX_IA64_MODE="64"
4389 ;;
4390 esac
4391 fi
4392 rm -rf conftest*
4393 ;;
4394 *-*-irix6*)
4395 # Find out which ABI we are using.
4396 echo '#line 4396 "configure"' > conftest.$ac_ext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 if test "$lt_cv_prog_gnu_ld" = yes; then
4403 case `/usr/bin/file conftest.$ac_objext` in
4404 *32-bit*)
4405 LD="${LD-ld} -melf32bsmip"
4406 ;;
4407 *N32*)
4408 LD="${LD-ld} -melf32bmipn32"
4409 ;;
4410 *64-bit*)
4411 LD="${LD-ld} -melf64bmip"
4412 ;;
4413 esac
4414 else
4415 case `/usr/bin/file conftest.$ac_objext` in
4416 *32-bit*)
4417 LD="${LD-ld} -32"
4418 ;;
4419 *N32*)
4420 LD="${LD-ld} -n32"
4421 ;;
4422 *64-bit*)
4423 LD="${LD-ld} -64"
4424 ;;
4425 esac
4426 fi
4427 fi
4428 rm -rf conftest*
4429 ;;
4430
4431 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4432 s390*-*linux*|sparc*-*linux*)
4433 # Find out which ABI we are using.
4434 echo 'int i;' > conftest.$ac_ext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; then
4440 case `/usr/bin/file conftest.o` in
4441 *32-bit*)
4442 case $host in
4443 x86_64-*kfreebsd*-gnu)
4444 LD="${LD-ld} -m elf_i386_fbsd"
4445 ;;
4446 x86_64-*linux*)
4447 LD="${LD-ld} -m elf_i386"
4448 ;;
4449 ppc64-*linux*|powerpc64-*linux*)
4450 LD="${LD-ld} -m elf32ppclinux"
4451 ;;
4452 s390x-*linux*)
4453 LD="${LD-ld} -m elf_s390"
4454 ;;
4455 sparc64-*linux*)
4456 LD="${LD-ld} -m elf32_sparc"
4457 ;;
4458 esac
4459 ;;
4460 *64-bit*)
4461 libsuff=64
4462 case $host in
4463 x86_64-*kfreebsd*-gnu)
4464 LD="${LD-ld} -m elf_x86_64_fbsd"
4465 ;;
4466 x86_64-*linux*)
4467 LD="${LD-ld} -m elf_x86_64"
4468 ;;
4469 ppc*-*linux*|powerpc*-*linux*)
4470 LD="${LD-ld} -m elf64ppc"
4471 ;;
4472 s390*-*linux*)
4473 LD="${LD-ld} -m elf64_s390"
4474 ;;
4475 sparc*-*linux*)
4476 LD="${LD-ld} -m elf64_sparc"
4477 ;;
4478 esac
4479 ;;
4480 esac
4481 fi
4482 rm -rf conftest*
4483 ;;
4484
4485 *-*-sco3.2v5*)
4486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4487 SAVE_CFLAGS="$CFLAGS"
4488 CFLAGS="$CFLAGS -belf"
4489 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4490 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4491 if test "${lt_cv_cc_needs_belf+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506
4507 int
4508 main ()
4509 {
4510
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.$ac_objext conftest$ac_exeext
4516 if { (ac_try="$ac_link"
4517 case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4520 esac
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522 (eval "$ac_link") 2>conftest.er1
4523 ac_status=$?
4524 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && {
4529 test -z "$ac_c_werror_flag" ||
4530 test ! -s conftest.err
4531 } && test -s conftest$ac_exeext &&
4532 $as_test_x conftest$ac_exeext; then
4533 lt_cv_cc_needs_belf=yes
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 lt_cv_cc_needs_belf=no
4539 fi
4540
4541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4542 conftest$ac_exeext conftest.$ac_ext
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548
4549 fi
4550 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4551 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4552 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4553 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4554 CFLAGS="$SAVE_CFLAGS"
4555 fi
4556 ;;
4557 sparc*-*solaris*)
4558 # Find out which ABI we are using.
4559 echo 'int i;' > conftest.$ac_ext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; then
4565 case `/usr/bin/file conftest.o` in
4566 *64-bit*)
4567 case $lt_cv_prog_gnu_ld in
4568 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4569 *) LD="${LD-ld} -64" ;;
4570 esac
4571 ;;
4572 esac
4573 fi
4574 rm -rf conftest*
4575 ;;
4576
4577
4578 esac
4579
4580 need_locks="$enable_libtool_lock"
4581
4582
4583 ac_ext=c
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4589 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4590 # On Suns, sometimes $CPP names a directory.
4591 if test -n "$CPP" && test -d "$CPP"; then
4592 CPP=
4593 fi
4594 if test -z "$CPP"; then
4595 if test "${ac_cv_prog_CPP+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 # Double quotes because CPP needs to be expanded
4599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4600 do
4601 ac_preproc_ok=false
4602 for ac_c_preproc_warn_flag in '' yes
4603 do
4604 # Use a header file that comes with gcc, so configuring glibc
4605 # with a fresh cross-compiler works.
4606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607 # <limits.h> exists even on freestanding compilers.
4608 # On the NeXT, cc -E runs the code through the compiler's parser,
4609 # not just through cpp. "Syntax error" is here to catch this case.
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 #ifdef __STDC__
4617 # include <limits.h>
4618 #else
4619 # include <assert.h>
4620 #endif
4621 Syntax error
4622 _ACEOF
4623 if { (ac_try="$ac_cpp conftest.$ac_ext"
4624 case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } >/dev/null && {
4636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4637 test ! -s conftest.err
4638 }; then
4639 :
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 # Broken: fails on valid input.
4645 continue
4646 fi
4647
4648 rm -f conftest.err conftest.$ac_ext
4649
4650 # OK, works on sane cases. Now check whether nonexistent headers
4651 # can be detected and how.
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #include <ac_nonexistent.h>
4659 _ACEOF
4660 if { (ac_try="$ac_cpp conftest.$ac_ext"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null && {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 }; then
4676 # Broken: success on invalid input.
4677 continue
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 # Passes both tests.
4683 ac_preproc_ok=:
4684 break
4685 fi
4686
4687 rm -f conftest.err conftest.$ac_ext
4688
4689 done
4690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4691 rm -f conftest.err conftest.$ac_ext
4692 if $ac_preproc_ok; then
4693 break
4694 fi
4695
4696 done
4697 ac_cv_prog_CPP=$CPP
4698
4699 fi
4700 CPP=$ac_cv_prog_CPP
4701 else
4702 ac_cv_prog_CPP=$CPP
4703 fi
4704 { echo "$as_me:$LINENO: result: $CPP" >&5
4705 echo "${ECHO_T}$CPP" >&6; }
4706 ac_preproc_ok=false
4707 for ac_c_preproc_warn_flag in '' yes
4708 do
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #ifdef __STDC__
4722 # include <limits.h>
4723 #else
4724 # include <assert.h>
4725 #endif
4726 Syntax error
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null && {
4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 }; then
4744 :
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 # Broken: fails on valid input.
4750 continue
4751 fi
4752
4753 rm -f conftest.err conftest.$ac_ext
4754
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ac_nonexistent.h>
4764 _ACEOF
4765 if { (ac_try="$ac_cpp conftest.$ac_ext"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null && {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 }; then
4781 # Broken: success on invalid input.
4782 continue
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 # Passes both tests.
4788 ac_preproc_ok=:
4789 break
4790 fi
4791
4792 rm -f conftest.err conftest.$ac_ext
4793
4794 done
4795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4796 rm -f conftest.err conftest.$ac_ext
4797 if $ac_preproc_ok; then
4798 :
4799 else
4800 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4801 See \`config.log' for more details." >&5
4802 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4803 See \`config.log' for more details." >&2;}
4804 { (exit 1); exit 1; }; }
4805 fi
4806
4807 ac_ext=c
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812
4813
4814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4816 if test "${ac_cv_header_stdc+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <stdlib.h>
4826 #include <stdarg.h>
4827 #include <string.h>
4828 #include <float.h>
4829
4830 int
4831 main ()
4832 {
4833
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4855 ac_cv_header_stdc=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ac_cv_header_stdc=no
4861 fi
4862
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864
4865 if test $ac_cv_header_stdc = yes; then
4866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <string.h>
4874
4875 _ACEOF
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 $EGREP "memchr" >/dev/null 2>&1; then
4878 :
4879 else
4880 ac_cv_header_stdc=no
4881 fi
4882 rm -f conftest*
4883
4884 fi
4885
4886 if test $ac_cv_header_stdc = yes; then
4887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 #include <stdlib.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "free" >/dev/null 2>&1; then
4899 :
4900 else
4901 ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4909 if test "$cross_compiling" = yes; then
4910 :
4911 else
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <ctype.h>
4919 #include <stdlib.h>
4920 #if ((' ' & 0x0FF) == 0x020)
4921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4923 #else
4924 # define ISLOWER(c) \
4925 (('a' <= (c) && (c) <= 'i') \
4926 || ('j' <= (c) && (c) <= 'r') \
4927 || ('s' <= (c) && (c) <= 'z'))
4928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4929 #endif
4930
4931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4932 int
4933 main ()
4934 {
4935 int i;
4936 for (i = 0; i < 256; i++)
4937 if (XOR (islower (i), ISLOWER (i))
4938 || toupper (i) != TOUPPER (i))
4939 return 2;
4940 return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest$ac_exeext
4944 if { (ac_try="$ac_link"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_link") 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4954 { (case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_try") 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 :
4964 else
4965 echo "$as_me: program exited with status $ac_status" >&5
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 ( exit $ac_status )
4970 ac_cv_header_stdc=no
4971 fi
4972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4973 fi
4974
4975
4976 fi
4977 fi
4978 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4979 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4980 if test $ac_cv_header_stdc = yes; then
4981
4982 cat >>confdefs.h <<\_ACEOF
4983 #define STDC_HEADERS 1
4984 _ACEOF
4985
4986 fi
4987
4988 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4999 inttypes.h stdint.h unistd.h
5000 do
5001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h. */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5014
5015 #include <$ac_header>
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.$ac_objext; then
5034 eval "$as_ac_Header=yes"
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5038
5039 eval "$as_ac_Header=no"
5040 fi
5041
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 ac_res=`eval echo '${'$as_ac_Header'}'`
5045 { echo "$as_me:$LINENO: result: $ac_res" >&5
5046 echo "${ECHO_T}$ac_res" >&6; }
5047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5048 cat >>confdefs.h <<_ACEOF
5049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5050 _ACEOF
5051
5052 fi
5053
5054 done
5055
5056
5057
5058 for ac_header in dlfcn.h
5059 do
5060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 fi
5067 ac_res=`eval echo '${'$as_ac_Header'}'`
5068 { echo "$as_me:$LINENO: result: $ac_res" >&5
5069 echo "${ECHO_T}$ac_res" >&6; }
5070 else
5071 # Is the header compilable?
5072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5081 #include <$ac_header>
5082 _ACEOF
5083 rm -f conftest.$ac_objext
5084 if { (ac_try="$ac_compile"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_compile") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && {
5097 test -z "$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 } && test -s conftest.$ac_objext; then
5100 ac_header_compiler=yes
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_header_compiler=no
5106 fi
5107
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5110 echo "${ECHO_T}$ac_header_compiler" >&6; }
5111
5112 # Is the header present?
5113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <$ac_header>
5122 _ACEOF
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5124 case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null && {
5136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 }; then
5139 ac_header_preproc=yes
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144 ac_header_preproc=no
5145 fi
5146
5147 rm -f conftest.err conftest.$ac_ext
5148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5149 echo "${ECHO_T}$ac_header_preproc" >&6; }
5150
5151 # So? What about this header?
5152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5153 yes:no: )
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5158 ac_header_preproc=yes
5159 ;;
5160 no:yes:* )
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5173 ( cat <<\_ASBOX
5174 ## ---------------------------------------------------------------------- ##
5175 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5176 ## ---------------------------------------------------------------------- ##
5177 _ASBOX
5178 ) | sed "s/^/$as_me: WARNING: /" >&2
5179 ;;
5180 esac
5181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 eval "$as_ac_Header=\$ac_header_preproc"
5187 fi
5188 ac_res=`eval echo '${'$as_ac_Header'}'`
5189 { echo "$as_me:$LINENO: result: $ac_res" >&5
5190 echo "${ECHO_T}$ac_res" >&6; }
5191
5192 fi
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194 cat >>confdefs.h <<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5196 _ACEOF
5197
5198 fi
5199
5200 done
5201
5202 ac_ext=cpp
5203 ac_cpp='$CXXCPP $CPPFLAGS'
5204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5207 if test -z "$CXX"; then
5208 if test -n "$CCC"; then
5209 CXX=$CCC
5210 else
5211 if test -n "$ac_tool_prefix"; then
5212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5213 do
5214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_CXX+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 if test -n "$CXX"; then
5222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 CXX=$ac_cv_prog_CXX
5242 if test -n "$CXX"; then
5243 { echo "$as_me:$LINENO: result: $CXX" >&5
5244 echo "${ECHO_T}$CXX" >&6; }
5245 else
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5248 fi
5249
5250
5251 test -n "$CXX" && break
5252 done
5253 fi
5254 if test -z "$CXX"; then
5255 ac_ct_CXX=$CXX
5256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5257 do
5258 # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 if test -n "$ac_ct_CXX"; then
5266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_ac_ct_CXX="$ac_prog"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5286 if test -n "$ac_ct_CXX"; then
5287 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5288 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5289 else
5290 { echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6; }
5292 fi
5293
5294
5295 test -n "$ac_ct_CXX" && break
5296 done
5297
5298 if test "x$ac_ct_CXX" = x; then
5299 CXX="g++"
5300 else
5301 case $cross_compiling:$ac_tool_warned in
5302 yes:)
5303 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5304 whose name does not start with the host triplet. If you think this
5305 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5306 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5307 whose name does not start with the host triplet. If you think this
5308 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5309 ac_tool_warned=yes ;;
5310 esac
5311 CXX=$ac_ct_CXX
5312 fi
5313 fi
5314
5315 fi
5316 fi
5317 # Provide some information about the compiler.
5318 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5319 ac_compiler=`set X $ac_compile; echo $2`
5320 { (ac_try="$ac_compiler --version >&5"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler --version >&5") 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }
5330 { (ac_try="$ac_compiler -v >&5"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler -v >&5") 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5340 { (ac_try="$ac_compiler -V >&5"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compiler -V >&5") 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }
5350
5351 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5352 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5353 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362
5363 int
5364 main ()
5365 {
5366 #ifndef __GNUC__
5367 choke me
5368 #endif
5369
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5376 case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_compile") 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_cxx_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
5391 ac_compiler_gnu=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 ac_compiler_gnu=no
5397 fi
5398
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5401
5402 fi
5403 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5404 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5405 GXX=`test $ac_compiler_gnu = yes && echo yes`
5406 ac_test_CXXFLAGS=${CXXFLAGS+set}
5407 ac_save_CXXFLAGS=$CXXFLAGS
5408 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5409 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_cxx_g+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5414 ac_cxx_werror_flag=yes
5415 ac_cv_prog_cxx_g=no
5416 CXXFLAGS="-g"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423
5424 int
5425 main ()
5426 {
5427
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5434 case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_cxx_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_cv_prog_cxx_g=yes
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 CXXFLAGS=""
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461
5462 int
5463 main ()
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_cxx_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 :
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491
5492 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5493 CXXFLAGS="-g"
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500
5501 int
5502 main ()
5503 {
5504
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (ac_try="$ac_compile"
5511 case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514 esac
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_compile") 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } && {
5523 test -z "$ac_cxx_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest.$ac_objext; then
5526 ac_cv_prog_cxx_g=yes
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531
5532 fi
5533
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 fi
5536
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 fi
5539
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5542 fi
5543 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5544 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5545 if test "$ac_test_CXXFLAGS" = set; then
5546 CXXFLAGS=$ac_save_CXXFLAGS
5547 elif test $ac_cv_prog_cxx_g = yes; then
5548 if test "$GXX" = yes; then
5549 CXXFLAGS="-g -O2"
5550 else
5551 CXXFLAGS="-g"
5552 fi
5553 else
5554 if test "$GXX" = yes; then
5555 CXXFLAGS="-O2"
5556 else
5557 CXXFLAGS=
5558 fi
5559 fi
5560 ac_ext=cpp
5561 ac_cpp='$CXXCPP $CPPFLAGS'
5562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5565
5566 depcc="$CXX" am_compiler_list=
5567
5568 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5569 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5570 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5574 # We make a subdir and do the tests there. Otherwise we can end up
5575 # making bogus files that we don't know about and never remove. For
5576 # instance it was reported that on HP-UX the gcc test will end up
5577 # making a dummy file named `D' -- because `-MD' means `put the output
5578 # in D'.
5579 mkdir conftest.dir
5580 # Copy depcomp to subdir because otherwise we won't find it if we're
5581 # using a relative directory.
5582 cp "$am_depcomp" conftest.dir
5583 cd conftest.dir
5584 # We will build objects and dependencies in a subdirectory because
5585 # it helps to detect inapplicable dependency modes. For instance
5586 # both Tru64's cc and ICC support -MD to output dependencies as a
5587 # side effect of compilation, but ICC will put the dependencies in
5588 # the current directory while Tru64 will put them in the object
5589 # directory.
5590 mkdir sub
5591
5592 am_cv_CXX_dependencies_compiler_type=none
5593 if test "$am_compiler_list" = ""; then
5594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5595 fi
5596 for depmode in $am_compiler_list; do
5597 # Setup a source with many dependencies, because some compilers
5598 # like to wrap large dependency lists on column 80 (with \), and
5599 # we should not choose a depcomp mode which is confused by this.
5600 #
5601 # We need to recreate these files for each test, as the compiler may
5602 # overwrite some of them when testing with obscure command lines.
5603 # This happens at least with the AIX C compiler.
5604 : > sub/conftest.c
5605 for i in 1 2 3 4 5 6; do
5606 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5607 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5608 # Solaris 8's {/usr,}/bin/sh.
5609 touch sub/conftst$i.h
5610 done
5611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5612
5613 case $depmode in
5614 nosideeffect)
5615 # after this tag, mechanisms are not by side-effect, so they'll
5616 # only be used when explicitly requested
5617 if test "x$enable_dependency_tracking" = xyes; then
5618 continue
5619 else
5620 break
5621 fi
5622 ;;
5623 none) break ;;
5624 esac
5625 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5626 # mode. It turns out that the SunPro C++ compiler does not properly
5627 # handle `-M -o', and we need to detect this.
5628 if depmode=$depmode \
5629 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5631 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5632 >/dev/null 2>conftest.err &&
5633 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5634 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5635 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5636 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5637 # icc doesn't choke on unknown options, it will just issue warnings
5638 # or remarks (even with -Werror). So we grep stderr for any message
5639 # that says an option was ignored or not supported.
5640 # When given -MP, icc 7.0 and 7.1 complain thusly:
5641 # icc: Command line warning: ignoring option '-M'; no argument required
5642 # The diagnosis changed in icc 8.0:
5643 # icc: Command line remark: option '-MP' not supported
5644 if (grep 'ignoring option' conftest.err ||
5645 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5646 am_cv_CXX_dependencies_compiler_type=$depmode
5647 break
5648 fi
5649 fi
5650 done
5651
5652 cd ..
5653 rm -rf conftest.dir
5654 else
5655 am_cv_CXX_dependencies_compiler_type=none
5656 fi
5657
5658 fi
5659 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5660 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5661 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5662
5663 if
5664 test "x$enable_dependency_tracking" != xno \
5665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5666 am__fastdepCXX_TRUE=
5667 am__fastdepCXX_FALSE='#'
5668 else
5669 am__fastdepCXX_TRUE='#'
5670 am__fastdepCXX_FALSE=
5671 fi
5672
5673
5674
5675
5676 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5677 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5678 (test "X$CXX" != "Xg++"))) ; then
5679 ac_ext=cpp
5680 ac_cpp='$CXXCPP $CPPFLAGS'
5681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5684 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5685 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5686 if test -z "$CXXCPP"; then
5687 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 # Double quotes because CXXCPP needs to be expanded
5691 for CXXCPP in "$CXX -E" "/lib/cpp"
5692 do
5693 ac_preproc_ok=false
5694 for ac_cxx_preproc_warn_flag in '' yes
5695 do
5696 # Use a header file that comes with gcc, so configuring glibc
5697 # with a fresh cross-compiler works.
5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 # <limits.h> exists even on freestanding compilers.
5700 # On the NeXT, cc -E runs the code through the compiler's parser,
5701 # not just through cpp. "Syntax error" is here to catch this case.
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 #ifdef __STDC__
5709 # include <limits.h>
5710 #else
5711 # include <assert.h>
5712 #endif
5713 Syntax error
5714 _ACEOF
5715 if { (ac_try="$ac_cpp conftest.$ac_ext"
5716 case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } >/dev/null && {
5728 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5729 test ! -s conftest.err
5730 }; then
5731 :
5732 else
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 # Broken: fails on valid input.
5737 continue
5738 fi
5739
5740 rm -f conftest.err conftest.$ac_ext
5741
5742 # OK, works on sane cases. Now check whether nonexistent headers
5743 # can be detected and how.
5744 cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 #include <ac_nonexistent.h>
5751 _ACEOF
5752 if { (ac_try="$ac_cpp conftest.$ac_ext"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } >/dev/null && {
5765 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 }; then
5768 # Broken: success on invalid input.
5769 continue
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 # Passes both tests.
5775 ac_preproc_ok=:
5776 break
5777 fi
5778
5779 rm -f conftest.err conftest.$ac_ext
5780
5781 done
5782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5783 rm -f conftest.err conftest.$ac_ext
5784 if $ac_preproc_ok; then
5785 break
5786 fi
5787
5788 done
5789 ac_cv_prog_CXXCPP=$CXXCPP
5790
5791 fi
5792 CXXCPP=$ac_cv_prog_CXXCPP
5793 else
5794 ac_cv_prog_CXXCPP=$CXXCPP
5795 fi
5796 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5797 echo "${ECHO_T}$CXXCPP" >&6; }
5798 ac_preproc_ok=false
5799 for ac_cxx_preproc_warn_flag in '' yes
5800 do
5801 # Use a header file that comes with gcc, so configuring glibc
5802 # with a fresh cross-compiler works.
5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804 # <limits.h> exists even on freestanding compilers.
5805 # On the NeXT, cc -E runs the code through the compiler's parser,
5806 # not just through cpp. "Syntax error" is here to catch this case.
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #ifdef __STDC__
5814 # include <limits.h>
5815 #else
5816 # include <assert.h>
5817 #endif
5818 Syntax error
5819 _ACEOF
5820 if { (ac_try="$ac_cpp conftest.$ac_ext"
5821 case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null && {
5833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5834 test ! -s conftest.err
5835 }; then
5836 :
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 # Broken: fails on valid input.
5842 continue
5843 fi
5844
5845 rm -f conftest.err conftest.$ac_ext
5846
5847 # OK, works on sane cases. Now check whether nonexistent headers
5848 # can be detected and how.
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <ac_nonexistent.h>
5856 _ACEOF
5857 if { (ac_try="$ac_cpp conftest.$ac_ext"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } >/dev/null && {
5870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 }; then
5873 # Broken: success on invalid input.
5874 continue
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 # Passes both tests.
5880 ac_preproc_ok=:
5881 break
5882 fi
5883
5884 rm -f conftest.err conftest.$ac_ext
5885
5886 done
5887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5888 rm -f conftest.err conftest.$ac_ext
5889 if $ac_preproc_ok; then
5890 :
5891 else
5892 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5893 See \`config.log' for more details." >&5
5894 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5895 See \`config.log' for more details." >&2;}
5896 { (exit 1); exit 1; }; }
5897 fi
5898
5899 ac_ext=cpp
5900 ac_cpp='$CXXCPP $CPPFLAGS'
5901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5904
5905 fi
5906
5907
5908 ac_ext=f
5909 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5910 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5912 if test -n "$ac_tool_prefix"; then
5913 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
5914 do
5915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_F77+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 if test -n "$F77"; then
5923 ac_cv_prog_F77="$F77" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 F77=$ac_cv_prog_F77
5943 if test -n "$F77"; then
5944 { echo "$as_me:$LINENO: result: $F77" >&5
5945 echo "${ECHO_T}$F77" >&6; }
5946 else
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5949 fi
5950
5951
5952 test -n "$F77" && break
5953 done
5954 fi
5955 if test -z "$F77"; then
5956 ac_ct_F77=$F77
5957 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
5958 do
5959 # Extract the first word of "$ac_prog", so it can be a program name with args.
5960 set dummy $ac_prog; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 if test -n "$ac_ct_F77"; then
5967 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_ac_ct_F77="$ac_prog"
5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5987 if test -n "$ac_ct_F77"; then
5988 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5989 echo "${ECHO_T}$ac_ct_F77" >&6; }
5990 else
5991 { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5993 fi
5994
5995
5996 test -n "$ac_ct_F77" && break
5997 done
5998
5999 if test "x$ac_ct_F77" = x; then
6000 F77=""
6001 else
6002 case $cross_compiling:$ac_tool_warned in
6003 yes:)
6004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6005 whose name does not start with the host triplet. If you think this
6006 configuration is useful to you, please write to autoconf@gnu.org." >&5
6007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6008 whose name does not start with the host triplet. If you think this
6009 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6010 ac_tool_warned=yes ;;
6011 esac
6012 F77=$ac_ct_F77
6013 fi
6014 fi
6015
6016
6017 # Provide some information about the compiler.
6018 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6019 ac_compiler=`set X $ac_compile; echo $2`
6020 { (ac_try="$ac_compiler --version >&5"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compiler --version >&5") 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }
6030 { (ac_try="$ac_compiler -v >&5"
6031 case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_compiler -v >&5") 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }
6040 { (ac_try="$ac_compiler -V >&5"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compiler -V >&5") 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }
6050 rm -f a.out
6051
6052 # If we don't use `.F' as extension, the preprocessor is not run on the
6053 # input file. (Note that this only needs to work for GNU compilers.)
6054 ac_save_ext=$ac_ext
6055 ac_ext=F
6056 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6057 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6058 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 cat >conftest.$ac_ext <<_ACEOF
6062 program main
6063 #ifndef __GNUC__
6064 choke me
6065 #endif
6066
6067 end
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (ac_try="$ac_compile"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_compile") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_f77_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest.$ac_objext; then
6086 ac_compiler_gnu=yes
6087 else
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091 ac_compiler_gnu=no
6092 fi
6093
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6096
6097 fi
6098 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6099 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6100 ac_ext=$ac_save_ext
6101 ac_test_FFLAGS=${FFLAGS+set}
6102 ac_save_FFLAGS=$FFLAGS
6103 FFLAGS=
6104 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6105 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6106 if test "${ac_cv_prog_f77_g+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 FFLAGS=-g
6110 cat >conftest.$ac_ext <<_ACEOF
6111 program main
6112
6113 end
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_f77_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest.$ac_objext; then
6132 ac_cv_prog_f77_g=yes
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_cv_prog_f77_g=no
6138 fi
6139
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141
6142 fi
6143 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6144 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6145 if test "$ac_test_FFLAGS" = set; then
6146 FFLAGS=$ac_save_FFLAGS
6147 elif test $ac_cv_prog_f77_g = yes; then
6148 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6149 FFLAGS="-g -O2"
6150 else
6151 FFLAGS="-g"
6152 fi
6153 else
6154 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6155 FFLAGS="-O2"
6156 else
6157 FFLAGS=
6158 fi
6159 fi
6160
6161 G77=`test $ac_compiler_gnu = yes && echo yes`
6162 ac_ext=c
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167
6168
6169
6170 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6171
6172 # find the maximum length of command line arguments
6173 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6174 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6175 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 i=0
6179 teststring="ABCD"
6180
6181 case $build_os in
6182 msdosdjgpp*)
6183 # On DJGPP, this test can blow up pretty badly due to problems in libc
6184 # (any single argument exceeding 2000 bytes causes a buffer overrun
6185 # during glob expansion). Even if it were fixed, the result of this
6186 # check would be larger than it should be.
6187 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6188 ;;
6189
6190 gnu*)
6191 # Under GNU Hurd, this test is not required because there is
6192 # no limit to the length of command line arguments.
6193 # Libtool will interpret -1 as no limit whatsoever
6194 lt_cv_sys_max_cmd_len=-1;
6195 ;;
6196
6197 cygwin* | mingw*)
6198 # On Win9x/ME, this test blows up -- it succeeds, but takes
6199 # about 5 minutes as the teststring grows exponentially.
6200 # Worse, since 9x/ME are not pre-emptively multitasking,
6201 # you end up with a "frozen" computer, even though with patience
6202 # the test eventually succeeds (with a max line length of 256k).
6203 # Instead, let's just punt: use the minimum linelength reported by
6204 # all of the supported platforms: 8192 (on NT/2K/XP).
6205 lt_cv_sys_max_cmd_len=8192;
6206 ;;
6207
6208 amigaos*)
6209 # On AmigaOS with pdksh, this test takes hours, literally.
6210 # So we just punt and use a minimum line length of 8192.
6211 lt_cv_sys_max_cmd_len=8192;
6212 ;;
6213
6214 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6215 # This has been around since 386BSD, at least. Likely further.
6216 if test -x /sbin/sysctl; then
6217 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6218 elif test -x /usr/sbin/sysctl; then
6219 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6220 else
6221 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6222 fi
6223 # And add a safety zone
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6226 ;;
6227
6228 interix*)
6229 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6230 lt_cv_sys_max_cmd_len=196608
6231 ;;
6232
6233 osf*)
6234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6236 # nice to cause kernel panics so lets avoid the loop below.
6237 # First set a reasonable default.
6238 lt_cv_sys_max_cmd_len=16384
6239 #
6240 if test -x /sbin/sysconfig; then
6241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6242 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6243 esac
6244 fi
6245 ;;
6246 sco3.2v5*)
6247 lt_cv_sys_max_cmd_len=102400
6248 ;;
6249 sysv5* | sco5v6* | sysv4.2uw2*)
6250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6251 if test -n "$kargmax"; then
6252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6253 else
6254 lt_cv_sys_max_cmd_len=32768
6255 fi
6256 ;;
6257 *)
6258 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6259 if test -n "$lt_cv_sys_max_cmd_len"; then
6260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6262 else
6263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6264 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6265 = "XX$teststring") >/dev/null 2>&1 &&
6266 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6267 lt_cv_sys_max_cmd_len=$new_result &&
6268 test $i != 17 # 1/2 MB should be enough
6269 do
6270 i=`expr $i + 1`
6271 teststring=$teststring$teststring
6272 done
6273 teststring=
6274 # Add a significant safety factor because C++ compilers can tack on massive
6275 # amounts of additional arguments before passing them to the linker.
6276 # It appears as though 1/2 is a usable value.
6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6278 fi
6279 ;;
6280 esac
6281
6282 fi
6283
6284 if test -n $lt_cv_sys_max_cmd_len ; then
6285 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6286 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6287 else
6288 { echo "$as_me:$LINENO: result: none" >&5
6289 echo "${ECHO_T}none" >&6; }
6290 fi
6291
6292
6293
6294
6295
6296 # Check for command to grab the raw symbol name followed by C symbol from nm.
6297 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6298 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6299 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302
6303 # These are sane defaults that work on at least a few old systems.
6304 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6305
6306 # Character class describing NM global symbol codes.
6307 symcode='[BCDEGRST]'
6308
6309 # Regexp to match symbols that can be accessed directly from C.
6310 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6311
6312 # Transform an extracted symbol line into a proper C declaration
6313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6314
6315 # Transform an extracted symbol line into symbol name and symbol address
6316 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'"
6317
6318 # Define system-specific variables.
6319 case $host_os in
6320 aix*)
6321 symcode='[BCDT]'
6322 ;;
6323 cygwin* | mingw* | pw32*)
6324 symcode='[ABCDGISTW]'
6325 ;;
6326 hpux*) # Its linker distinguishes data from code symbols
6327 if test "$host_cpu" = ia64; then
6328 symcode='[ABCDEGRST]'
6329 fi
6330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6331 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'"
6332 ;;
6333 linux* | k*bsd*-gnu)
6334 if test "$host_cpu" = ia64; then
6335 symcode='[ABCDGIRSTW]'
6336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6337 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'"
6338 fi
6339 ;;
6340 irix* | nonstopux*)
6341 symcode='[BCDEGRST]'
6342 ;;
6343 osf*)
6344 symcode='[BCDEGQRST]'
6345 ;;
6346 solaris*)
6347 symcode='[BDRT]'
6348 ;;
6349 sco3.2v5*)
6350 symcode='[DT]'
6351 ;;
6352 sysv4.2uw2*)
6353 symcode='[DT]'
6354 ;;
6355 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6356 symcode='[ABDT]'
6357 ;;
6358 sysv4)
6359 symcode='[DFNSTU]'
6360 ;;
6361 esac
6362
6363 # Handle CRLF in mingw tool chain
6364 opt_cr=
6365 case $build_os in
6366 mingw*)
6367 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6368 ;;
6369 esac
6370
6371 # If we're using GNU nm, then use its standard symbol codes.
6372 case `$NM -V 2>&1` in
6373 *GNU* | *'with BFD'*)
6374 symcode='[ABCDGIRSTW]' ;;
6375 esac
6376
6377 # Try without a prefix undercore, then with it.
6378 for ac_symprfx in "" "_"; do
6379
6380 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6381 symxfrm="\\1 $ac_symprfx\\2 \\2"
6382
6383 # Write the raw and C identifiers.
6384 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6385
6386 # Check to see that the pipe works correctly.
6387 pipe_works=no
6388
6389 rm -f conftest*
6390 cat > conftest.$ac_ext <<EOF
6391 #ifdef __cplusplus
6392 extern "C" {
6393 #endif
6394 char nm_test_var;
6395 void nm_test_func(){}
6396 #ifdef __cplusplus
6397 }
6398 #endif
6399 int main(){nm_test_var='a';nm_test_func();return(0);}
6400 EOF
6401
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; then
6407 # Now try to grab the symbols.
6408 nlist=conftest.nm
6409 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6410 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && test -s "$nlist"; then
6414 # Try sorting and uniquifying the output.
6415 if sort "$nlist" | uniq > "$nlist"T; then
6416 mv -f "$nlist"T "$nlist"
6417 else
6418 rm -f "$nlist"T
6419 fi
6420
6421 # Make sure that we snagged all the symbols we need.
6422 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6423 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6424 cat <<EOF > conftest.$ac_ext
6425 #ifdef __cplusplus
6426 extern "C" {
6427 #endif
6428
6429 EOF
6430 # Now generate the symbol file.
6431 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6432
6433 cat <<EOF >> conftest.$ac_ext
6434 #if defined (__STDC__) && __STDC__
6435 # define lt_ptr_t void *
6436 #else
6437 # define lt_ptr_t char *
6438 # define const
6439 #endif
6440
6441 /* The mapping between symbol names and symbols. */
6442 const struct {
6443 const char *name;
6444 lt_ptr_t address;
6445 }
6446 lt_preloaded_symbols[] =
6447 {
6448 EOF
6449 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6450 cat <<\EOF >> conftest.$ac_ext
6451 {0, (lt_ptr_t) 0}
6452 };
6453
6454 #ifdef __cplusplus
6455 }
6456 #endif
6457 EOF
6458 # Now try linking the two files.
6459 mv conftest.$ac_objext conftstm.$ac_objext
6460 lt_save_LIBS="$LIBS"
6461 lt_save_CFLAGS="$CFLAGS"
6462 LIBS="conftstm.$ac_objext"
6463 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465 (eval $ac_link) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6469 pipe_works=yes
6470 fi
6471 LIBS="$lt_save_LIBS"
6472 CFLAGS="$lt_save_CFLAGS"
6473 else
6474 echo "cannot find nm_test_func in $nlist" >&5
6475 fi
6476 else
6477 echo "cannot find nm_test_var in $nlist" >&5
6478 fi
6479 else
6480 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6481 fi
6482 else
6483 echo "$progname: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6485 fi
6486 rm -f conftest* conftst*
6487
6488 # Do not use the global_symbol_pipe unless it works.
6489 if test "$pipe_works" = yes; then
6490 break
6491 else
6492 lt_cv_sys_global_symbol_pipe=
6493 fi
6494 done
6495
6496 fi
6497
6498 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6499 lt_cv_sys_global_symbol_to_cdecl=
6500 fi
6501 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6502 { echo "$as_me:$LINENO: result: failed" >&5
6503 echo "${ECHO_T}failed" >&6; }
6504 else
6505 { echo "$as_me:$LINENO: result: ok" >&5
6506 echo "${ECHO_T}ok" >&6; }
6507 fi
6508
6509 { echo "$as_me:$LINENO: checking for objdir" >&5
6510 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6511 if test "${lt_cv_objdir+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514 rm -f .libs 2>/dev/null
6515 mkdir .libs 2>/dev/null
6516 if test -d .libs; then
6517 lt_cv_objdir=.libs
6518 else
6519 # MS-DOS does not allow filenames that begin with a dot.
6520 lt_cv_objdir=_libs
6521 fi
6522 rmdir .libs 2>/dev/null
6523 fi
6524 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6525 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6526 objdir=$lt_cv_objdir
6527
6528
6529
6530
6531
6532 case $host_os in
6533 aix3*)
6534 # AIX sometimes has problems with the GCC collect2 program. For some
6535 # reason, if we set the COLLECT_NAMES environment variable, the problems
6536 # vanish in a puff of smoke.
6537 if test "X${COLLECT_NAMES+set}" != Xset; then
6538 COLLECT_NAMES=
6539 export COLLECT_NAMES
6540 fi
6541 ;;
6542 esac
6543
6544 # Sed substitution that helps us do robust quoting. It backslashifies
6545 # metacharacters that are still active within double-quoted strings.
6546 Xsed='sed -e 1s/^X//'
6547 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6548
6549 # Same as above, but do not quote variable references.
6550 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6551
6552 # Sed substitution to delay expansion of an escaped shell variable in a
6553 # double_quote_subst'ed string.
6554 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6555
6556 # Sed substitution to avoid accidental globbing in evaled expressions
6557 no_glob_subst='s/\*/\\\*/g'
6558
6559 # Constants:
6560 rm="rm -f"
6561
6562 # Global variables:
6563 default_ofile=libtool
6564 can_build_shared=yes
6565
6566 # All known linkers require a `.a' archive for static linking (except MSVC,
6567 # which needs '.lib').
6568 libext=a
6569 ltmain="$ac_aux_dir/ltmain.sh"
6570 ofile="$default_ofile"
6571 with_gnu_ld="$lt_cv_prog_gnu_ld"
6572
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}ar; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_prog_AR+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 if test -n "$AR"; then
6582 ac_cv_prog_AR="$AR" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_AR="${ac_tool_prefix}ar"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 AR=$ac_cv_prog_AR
6602 if test -n "$AR"; then
6603 { echo "$as_me:$LINENO: result: $AR" >&5
6604 echo "${ECHO_T}$AR" >&6; }
6605 else
6606 { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6608 fi
6609
6610
6611 fi
6612 if test -z "$ac_cv_prog_AR"; then
6613 ac_ct_AR=$AR
6614 # Extract the first word of "ar", so it can be a program name with args.
6615 set dummy ar; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 if test -n "$ac_ct_AR"; then
6622 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_ac_ct_AR="ar"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6642 if test -n "$ac_ct_AR"; then
6643 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6644 echo "${ECHO_T}$ac_ct_AR" >&6; }
6645 else
6646 { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6648 fi
6649
6650 if test "x$ac_ct_AR" = x; then
6651 AR="false"
6652 else
6653 case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet. If you think this
6657 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6659 whose name does not start with the host triplet. If you think this
6660 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663 AR=$ac_ct_AR
6664 fi
6665 else
6666 AR="$ac_cv_prog_AR"
6667 fi
6668
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_prog_RANLIB+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 if test -n "$RANLIB"; then
6678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 RANLIB=$ac_cv_prog_RANLIB
6698 if test -n "$RANLIB"; then
6699 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6700 echo "${ECHO_T}$RANLIB" >&6; }
6701 else
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_RANLIB"; then
6709 ac_ct_RANLIB=$RANLIB
6710 # Extract the first word of "ranlib", so it can be a program name with args.
6711 set dummy ranlib; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 if test -n "$ac_ct_RANLIB"; then
6718 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_prog_ac_ct_RANLIB="ranlib"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6738 if test -n "$ac_ct_RANLIB"; then
6739 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6740 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6741 else
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6745
6746 if test "x$ac_ct_RANLIB" = x; then
6747 RANLIB=":"
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6752 whose name does not start with the host triplet. If you think this
6753 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6757 ac_tool_warned=yes ;;
6758 esac
6759 RANLIB=$ac_ct_RANLIB
6760 fi
6761 else
6762 RANLIB="$ac_cv_prog_RANLIB"
6763 fi
6764
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}strip; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_prog_STRIP+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 if test -n "$STRIP"; then
6774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 STRIP=$ac_cv_prog_STRIP
6794 if test -n "$STRIP"; then
6795 { echo "$as_me:$LINENO: result: $STRIP" >&5
6796 echo "${ECHO_T}$STRIP" >&6; }
6797 else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6800 fi
6801
6802
6803 fi
6804 if test -z "$ac_cv_prog_STRIP"; then
6805 ac_ct_STRIP=$STRIP
6806 # Extract the first word of "strip", so it can be a program name with args.
6807 set dummy strip; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 if test -n "$ac_ct_STRIP"; then
6814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_ac_ct_STRIP="strip"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6834 if test -n "$ac_ct_STRIP"; then
6835 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6836 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6837 else
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6840 fi
6841
6842 if test "x$ac_ct_STRIP" = x; then
6843 STRIP=":"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6848 whose name does not start with the host triplet. If you think this
6849 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet. If you think this
6852 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6853 ac_tool_warned=yes ;;
6854 esac
6855 STRIP=$ac_ct_STRIP
6856 fi
6857 else
6858 STRIP="$ac_cv_prog_STRIP"
6859 fi
6860
6861
6862 old_CC="$CC"
6863 old_CFLAGS="$CFLAGS"
6864
6865 # Set sane defaults for various variables
6866 test -z "$AR" && AR=ar
6867 test -z "$AR_FLAGS" && AR_FLAGS=cru
6868 test -z "$AS" && AS=as
6869 test -z "$CC" && CC=cc
6870 test -z "$LTCC" && LTCC=$CC
6871 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6872 test -z "$DLLTOOL" && DLLTOOL=dlltool
6873 test -z "$LD" && LD=ld
6874 test -z "$LN_S" && LN_S="ln -s"
6875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6876 test -z "$NM" && NM=nm
6877 test -z "$SED" && SED=sed
6878 test -z "$OBJDUMP" && OBJDUMP=objdump
6879 test -z "$RANLIB" && RANLIB=:
6880 test -z "$STRIP" && STRIP=:
6881 test -z "$ac_objext" && ac_objext=o
6882
6883 # Determine commands to create old-style static archives.
6884 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6885 old_postinstall_cmds='chmod 644 $oldlib'
6886 old_postuninstall_cmds=
6887
6888 if test -n "$RANLIB"; then
6889 case $host_os in
6890 openbsd*)
6891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6892 ;;
6893 *)
6894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6895 ;;
6896 esac
6897 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6898 fi
6899
6900 for cc_temp in $compiler""; do
6901 case $cc_temp in
6902 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6903 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6904 \-*) ;;
6905 *) break;;
6906 esac
6907 done
6908 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6909
6910
6911 # Only perform the check for file, if the check method requires it
6912 case $deplibs_check_method in
6913 file_magic*)
6914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6915 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6916 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 case $MAGIC_CMD in
6921 [\\/*] | ?:[\\/]*)
6922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6923 ;;
6924 *)
6925 lt_save_MAGIC_CMD="$MAGIC_CMD"
6926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6928 for ac_dir in $ac_dummy; do
6929 IFS="$lt_save_ifs"
6930 test -z "$ac_dir" && ac_dir=.
6931 if test -f $ac_dir/${ac_tool_prefix}file; then
6932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6933 if test -n "$file_magic_test_file"; then
6934 case $deplibs_check_method in
6935 "file_magic "*)
6936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6939 $EGREP "$file_magic_regex" > /dev/null; then
6940 :
6941 else
6942 cat <<EOF 1>&2
6943
6944 *** Warning: the command libtool uses to detect shared libraries,
6945 *** $file_magic_cmd, produces output that libtool cannot recognize.
6946 *** The result is that libtool may fail to recognize shared libraries
6947 *** as such. This will affect the creation of libtool libraries that
6948 *** depend on shared libraries, but programs linked with such libtool
6949 *** libraries will work regardless of this problem. Nevertheless, you
6950 *** may want to report the problem to your system manager and/or to
6951 *** bug-libtool@gnu.org
6952
6953 EOF
6954 fi ;;
6955 esac
6956 fi
6957 break
6958 fi
6959 done
6960 IFS="$lt_save_ifs"
6961 MAGIC_CMD="$lt_save_MAGIC_CMD"
6962 ;;
6963 esac
6964 fi
6965
6966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6967 if test -n "$MAGIC_CMD"; then
6968 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6969 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6970 else
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6973 fi
6974
6975 if test -z "$lt_cv_path_MAGIC_CMD"; then
6976 if test -n "$ac_tool_prefix"; then
6977 { echo "$as_me:$LINENO: checking for file" >&5
6978 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6979 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 case $MAGIC_CMD in
6983 [\\/*] | ?:[\\/]*)
6984 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6985 ;;
6986 *)
6987 lt_save_MAGIC_CMD="$MAGIC_CMD"
6988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6989 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6990 for ac_dir in $ac_dummy; do
6991 IFS="$lt_save_ifs"
6992 test -z "$ac_dir" && ac_dir=.
6993 if test -f $ac_dir/file; then
6994 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6995 if test -n "$file_magic_test_file"; then
6996 case $deplibs_check_method in
6997 "file_magic "*)
6998 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7000 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7001 $EGREP "$file_magic_regex" > /dev/null; then
7002 :
7003 else
7004 cat <<EOF 1>&2
7005
7006 *** Warning: the command libtool uses to detect shared libraries,
7007 *** $file_magic_cmd, produces output that libtool cannot recognize.
7008 *** The result is that libtool may fail to recognize shared libraries
7009 *** as such. This will affect the creation of libtool libraries that
7010 *** depend on shared libraries, but programs linked with such libtool
7011 *** libraries will work regardless of this problem. Nevertheless, you
7012 *** may want to report the problem to your system manager and/or to
7013 *** bug-libtool@gnu.org
7014
7015 EOF
7016 fi ;;
7017 esac
7018 fi
7019 break
7020 fi
7021 done
7022 IFS="$lt_save_ifs"
7023 MAGIC_CMD="$lt_save_MAGIC_CMD"
7024 ;;
7025 esac
7026 fi
7027
7028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7029 if test -n "$MAGIC_CMD"; then
7030 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7031 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7032 else
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037 else
7038 MAGIC_CMD=:
7039 fi
7040 fi
7041
7042 fi
7043 ;;
7044 esac
7045
7046 enable_dlopen=no
7047 enable_win32_dll=no
7048
7049 # Check whether --enable-libtool-lock was given.
7050 if test "${enable_libtool_lock+set}" = set; then
7051 enableval=$enable_libtool_lock;
7052 fi
7053
7054 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7055
7056
7057 # Check whether --with-pic was given.
7058 if test "${with_pic+set}" = set; then
7059 withval=$with_pic; pic_mode="$withval"
7060 else
7061 pic_mode=default
7062 fi
7063
7064 test -z "$pic_mode" && pic_mode=default
7065
7066 # Use C for the default configuration in the libtool script
7067 tagname=
7068 lt_save_CC="$CC"
7069 ac_ext=c
7070 ac_cpp='$CPP $CPPFLAGS'
7071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7074
7075
7076 # Source file extension for C test sources.
7077 ac_ext=c
7078
7079 # Object file extension for compiled C test sources.
7080 objext=o
7081 objext=$objext
7082
7083 # Code to be used in simple compile tests
7084 lt_simple_compile_test_code="int some_variable = 0;"
7085
7086 # Code to be used in simple link tests
7087 lt_simple_link_test_code='int main(){return(0);}'
7088
7089
7090 # If no C compiler was specified, use CC.
7091 LTCC=${LTCC-"$CC"}
7092
7093 # If no C compiler flags were specified, use CFLAGS.
7094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7095
7096 # Allow CC to be a program name with arguments.
7097 compiler=$CC
7098
7099
7100 # save warnings/boilerplate of simple test code
7101 ac_outfile=conftest.$ac_objext
7102 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7103 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7104 _lt_compiler_boilerplate=`cat conftest.err`
7105 $rm conftest*
7106
7107 ac_outfile=conftest.$ac_objext
7108 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7109 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7110 _lt_linker_boilerplate=`cat conftest.err`
7111 $rm conftest*
7112
7113
7114
7115 lt_prog_compiler_no_builtin_flag=
7116
7117 if test "$GCC" = yes; then
7118 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7119
7120
7121 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7122 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7123 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 lt_cv_prog_compiler_rtti_exceptions=no
7127 ac_outfile=conftest.$ac_objext
7128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7129 lt_compiler_flag="-fno-rtti -fno-exceptions"
7130 # Insert the option either (1) after the last *FLAGS variable, or
7131 # (2) before a word containing "conftest.", or (3) at the end.
7132 # Note that $ac_compile itself does not contain backslashes and begins
7133 # with a dollar sign (not a hyphen), so the echo should work correctly.
7134 # The option is referenced via a variable to avoid confusing sed.
7135 lt_compile=`echo "$ac_compile" | $SED \
7136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138 -e 's:$: $lt_compiler_flag:'`
7139 (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
7140 (eval "$lt_compile" 2>conftest.err)
7141 ac_status=$?
7142 cat conftest.err >&5
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 if (exit $ac_status) && test -s "$ac_outfile"; then
7145 # The compiler can only warn and ignore the option if not recognized
7146 # So say no if there are warnings other than the usual output.
7147 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7150 lt_cv_prog_compiler_rtti_exceptions=yes
7151 fi
7152 fi
7153 $rm conftest*
7154
7155 fi
7156 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7157 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7158
7159 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7160 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7161 else
7162 :
7163 fi
7164
7165 fi
7166
7167 lt_prog_compiler_wl=
7168 lt_prog_compiler_pic=
7169 lt_prog_compiler_static=
7170
7171 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7172 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7173
7174 if test "$GCC" = yes; then
7175 lt_prog_compiler_wl='-Wl,'
7176 lt_prog_compiler_static='-static'
7177
7178 case $host_os in
7179 aix*)
7180 # All AIX code is PIC.
7181 if test "$host_cpu" = ia64; then
7182 # AIX 5 now supports IA64 processor
7183 lt_prog_compiler_static='-Bstatic'
7184 fi
7185 ;;
7186
7187 amigaos*)
7188 # FIXME: we need at least 68020 code to build shared libraries, but
7189 # adding the `-m68020' flag to GCC prevents building anything better,
7190 # like `-m68040'.
7191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7192 ;;
7193
7194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7195 # PIC is the default for these OSes.
7196 ;;
7197
7198 mingw* | cygwin* | pw32* | os2*)
7199 # This hack is so that the source file can tell whether it is being
7200 # built for inclusion in a dll (and should export symbols for example).
7201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7202 # (--disable-auto-import) libraries
7203 lt_prog_compiler_pic='-DDLL_EXPORT'
7204 ;;
7205
7206 darwin* | rhapsody*)
7207 # PIC is the default on this platform
7208 # Common symbols not allowed in MH_DYLIB files
7209 lt_prog_compiler_pic='-fno-common'
7210 ;;
7211
7212 interix[3-9]*)
7213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7214 # Instead, we relocate shared libraries at runtime.
7215 ;;
7216
7217 msdosdjgpp*)
7218 # Just because we use GCC doesn't mean we suddenly get shared libraries
7219 # on systems that don't support them.
7220 lt_prog_compiler_can_build_shared=no
7221 enable_shared=no
7222 ;;
7223
7224 sysv4*MP*)
7225 if test -d /usr/nec; then
7226 lt_prog_compiler_pic=-Kconform_pic
7227 fi
7228 ;;
7229
7230 hpux*)
7231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7232 # not for PA HP-UX.
7233 case $host_cpu in
7234 hppa*64*|ia64*)
7235 # +Z the default
7236 ;;
7237 *)
7238 lt_prog_compiler_pic='-fPIC'
7239 ;;
7240 esac
7241 ;;
7242
7243 *)
7244 lt_prog_compiler_pic='-fPIC'
7245 ;;
7246 esac
7247 else
7248 # PORTME Check for flag to pass linker flags through the system compiler.
7249 case $host_os in
7250 aix*)
7251 lt_prog_compiler_wl='-Wl,'
7252 if test "$host_cpu" = ia64; then
7253 # AIX 5 now supports IA64 processor
7254 lt_prog_compiler_static='-Bstatic'
7255 else
7256 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7257 fi
7258 ;;
7259 darwin*)
7260 # PIC is the default on this platform
7261 # Common symbols not allowed in MH_DYLIB files
7262 case $cc_basename in
7263 xlc*)
7264 lt_prog_compiler_pic='-qnocommon'
7265 lt_prog_compiler_wl='-Wl,'
7266 ;;
7267 esac
7268 ;;
7269
7270 mingw* | cygwin* | pw32* | os2*)
7271 # This hack is so that the source file can tell whether it is being
7272 # built for inclusion in a dll (and should export symbols for example).
7273 lt_prog_compiler_pic='-DDLL_EXPORT'
7274 ;;
7275
7276 hpux9* | hpux10* | hpux11*)
7277 lt_prog_compiler_wl='-Wl,'
7278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7279 # not for PA HP-UX.
7280 case $host_cpu in
7281 hppa*64*|ia64*)
7282 # +Z the default
7283 ;;
7284 *)
7285 lt_prog_compiler_pic='+Z'
7286 ;;
7287 esac
7288 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7289 lt_prog_compiler_static='${wl}-a ${wl}archive'
7290 ;;
7291
7292 irix5* | irix6* | nonstopux*)
7293 lt_prog_compiler_wl='-Wl,'
7294 # PIC (with -KPIC) is the default.
7295 lt_prog_compiler_static='-non_shared'
7296 ;;
7297
7298 newsos6)
7299 lt_prog_compiler_pic='-KPIC'
7300 lt_prog_compiler_static='-Bstatic'
7301 ;;
7302
7303 linux* | k*bsd*-gnu)
7304 case $cc_basename in
7305 icc* | ecc*)
7306 lt_prog_compiler_wl='-Wl,'
7307 lt_prog_compiler_pic='-KPIC'
7308 lt_prog_compiler_static='-static'
7309 ;;
7310 pgcc* | pgf77* | pgf90* | pgf95*)
7311 # Portland Group compilers (*not* the Pentium gcc compiler,
7312 # which looks to be a dead project)
7313 lt_prog_compiler_wl='-Wl,'
7314 lt_prog_compiler_pic='-fpic'
7315 lt_prog_compiler_static='-Bstatic'
7316 ;;
7317 ccc*)
7318 lt_prog_compiler_wl='-Wl,'
7319 # All Alpha code is PIC.
7320 lt_prog_compiler_static='-non_shared'
7321 ;;
7322 *)
7323 case `$CC -V 2>&1 | sed 5q` in
7324 *Sun\ C*)
7325 # Sun C 5.9
7326 lt_prog_compiler_pic='-KPIC'
7327 lt_prog_compiler_static='-Bstatic'
7328 lt_prog_compiler_wl='-Wl,'
7329 ;;
7330 *Sun\ F*)
7331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7332 lt_prog_compiler_pic='-KPIC'
7333 lt_prog_compiler_static='-Bstatic'
7334 lt_prog_compiler_wl=''
7335 ;;
7336 esac
7337 ;;
7338 esac
7339 ;;
7340
7341 osf3* | osf4* | osf5*)
7342 lt_prog_compiler_wl='-Wl,'
7343 # All OSF/1 code is PIC.
7344 lt_prog_compiler_static='-non_shared'
7345 ;;
7346
7347 rdos*)
7348 lt_prog_compiler_static='-non_shared'
7349 ;;
7350
7351 solaris*)
7352 lt_prog_compiler_pic='-KPIC'
7353 lt_prog_compiler_static='-Bstatic'
7354 case $cc_basename in
7355 f77* | f90* | f95*)
7356 lt_prog_compiler_wl='-Qoption ld ';;
7357 *)
7358 lt_prog_compiler_wl='-Wl,';;
7359 esac
7360 ;;
7361
7362 sunos4*)
7363 lt_prog_compiler_wl='-Qoption ld '
7364 lt_prog_compiler_pic='-PIC'
7365 lt_prog_compiler_static='-Bstatic'
7366 ;;
7367
7368 sysv4 | sysv4.2uw2* | sysv4.3*)
7369 lt_prog_compiler_wl='-Wl,'
7370 lt_prog_compiler_pic='-KPIC'
7371 lt_prog_compiler_static='-Bstatic'
7372 ;;
7373
7374 sysv4*MP*)
7375 if test -d /usr/nec ;then
7376 lt_prog_compiler_pic='-Kconform_pic'
7377 lt_prog_compiler_static='-Bstatic'
7378 fi
7379 ;;
7380
7381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7382 lt_prog_compiler_wl='-Wl,'
7383 lt_prog_compiler_pic='-KPIC'
7384 lt_prog_compiler_static='-Bstatic'
7385 ;;
7386
7387 unicos*)
7388 lt_prog_compiler_wl='-Wl,'
7389 lt_prog_compiler_can_build_shared=no
7390 ;;
7391
7392 uts4*)
7393 lt_prog_compiler_pic='-pic'
7394 lt_prog_compiler_static='-Bstatic'
7395 ;;
7396
7397 *)
7398 lt_prog_compiler_can_build_shared=no
7399 ;;
7400 esac
7401 fi
7402
7403 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7404 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7405
7406 #
7407 # Check to make sure the PIC flag actually works.
7408 #
7409 if test -n "$lt_prog_compiler_pic"; then
7410
7411 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7412 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7413 if test "${lt_prog_compiler_pic_works+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 lt_prog_compiler_pic_works=no
7417 ac_outfile=conftest.$ac_objext
7418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7420 # Insert the option either (1) after the last *FLAGS variable, or
7421 # (2) before a word containing "conftest.", or (3) at the end.
7422 # Note that $ac_compile itself does not contain backslashes and begins
7423 # with a dollar sign (not a hyphen), so the echo should work correctly.
7424 # The option is referenced via a variable to avoid confusing sed.
7425 lt_compile=`echo "$ac_compile" | $SED \
7426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7428 -e 's:$: $lt_compiler_flag:'`
7429 (eval echo "\"\$as_me:7429: $lt_compile\"" >&5)
7430 (eval "$lt_compile" 2>conftest.err)
7431 ac_status=$?
7432 cat conftest.err >&5
7433 echo "$as_me:7433: \$? = $ac_status" >&5
7434 if (exit $ac_status) && test -s "$ac_outfile"; then
7435 # The compiler can only warn and ignore the option if not recognized
7436 # So say no if there are warnings other than the usual output.
7437 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7440 lt_prog_compiler_pic_works=yes
7441 fi
7442 fi
7443 $rm conftest*
7444
7445 fi
7446 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7447 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7448
7449 if test x"$lt_prog_compiler_pic_works" = xyes; then
7450 case $lt_prog_compiler_pic in
7451 "" | " "*) ;;
7452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7453 esac
7454 else
7455 lt_prog_compiler_pic=
7456 lt_prog_compiler_can_build_shared=no
7457 fi
7458
7459 fi
7460 case $host_os in
7461 # For platforms which do not support PIC, -DPIC is meaningless:
7462 *djgpp*)
7463 lt_prog_compiler_pic=
7464 ;;
7465 *)
7466 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7467 ;;
7468 esac
7469
7470 #
7471 # Check to make sure the static flag actually works.
7472 #
7473 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7474 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7475 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7476 if test "${lt_prog_compiler_static_works+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479 lt_prog_compiler_static_works=no
7480 save_LDFLAGS="$LDFLAGS"
7481 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7482 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7484 # The linker can only warn and ignore the option if not recognized
7485 # So say no if there are warnings
7486 if test -s conftest.err; then
7487 # Append any errors to the config.log.
7488 cat conftest.err 1>&5
7489 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7491 if diff conftest.exp conftest.er2 >/dev/null; then
7492 lt_prog_compiler_static_works=yes
7493 fi
7494 else
7495 lt_prog_compiler_static_works=yes
7496 fi
7497 fi
7498 $rm conftest*
7499 LDFLAGS="$save_LDFLAGS"
7500
7501 fi
7502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7503 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7504
7505 if test x"$lt_prog_compiler_static_works" = xyes; then
7506 :
7507 else
7508 lt_prog_compiler_static=
7509 fi
7510
7511
7512 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7513 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7514 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517 lt_cv_prog_compiler_c_o=no
7518 $rm -r conftest 2>/dev/null
7519 mkdir conftest
7520 cd conftest
7521 mkdir out
7522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7523
7524 lt_compiler_flag="-o out/conftest2.$ac_objext"
7525 # Insert the option either (1) after the last *FLAGS variable, or
7526 # (2) before a word containing "conftest.", or (3) at the end.
7527 # Note that $ac_compile itself does not contain backslashes and begins
7528 # with a dollar sign (not a hyphen), so the echo should work correctly.
7529 lt_compile=`echo "$ac_compile" | $SED \
7530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7532 -e 's:$: $lt_compiler_flag:'`
7533 (eval echo "\"\$as_me:7533: $lt_compile\"" >&5)
7534 (eval "$lt_compile" 2>out/conftest.err)
7535 ac_status=$?
7536 cat out/conftest.err >&5
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7539 then
7540 # The compiler can only warn and ignore the option if not recognized
7541 # So say no if there are warnings
7542 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7545 lt_cv_prog_compiler_c_o=yes
7546 fi
7547 fi
7548 chmod u+w . 2>&5
7549 $rm conftest*
7550 # SGI C++ compiler will create directory out/ii_files/ for
7551 # template instantiation
7552 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7553 $rm out/* && rmdir out
7554 cd ..
7555 rmdir conftest
7556 $rm conftest*
7557
7558 fi
7559 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7560 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7561
7562
7563 hard_links="nottested"
7564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7565 # do not overwrite the value of need_locks provided by the user
7566 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7567 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7568 hard_links=yes
7569 $rm conftest*
7570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7571 touch conftest.a
7572 ln conftest.a conftest.b 2>&5 || hard_links=no
7573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7574 { echo "$as_me:$LINENO: result: $hard_links" >&5
7575 echo "${ECHO_T}$hard_links" >&6; }
7576 if test "$hard_links" = no; then
7577 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7578 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7579 need_locks=warn
7580 fi
7581 else
7582 need_locks=no
7583 fi
7584
7585 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7587
7588 runpath_var=
7589 allow_undefined_flag=
7590 enable_shared_with_static_runtimes=no
7591 archive_cmds=
7592 archive_expsym_cmds=
7593 old_archive_From_new_cmds=
7594 old_archive_from_expsyms_cmds=
7595 export_dynamic_flag_spec=
7596 whole_archive_flag_spec=
7597 thread_safe_flag_spec=
7598 hardcode_libdir_flag_spec=
7599 hardcode_libdir_flag_spec_ld=
7600 hardcode_libdir_separator=
7601 hardcode_direct=no
7602 hardcode_minus_L=no
7603 hardcode_shlibpath_var=unsupported
7604 link_all_deplibs=unknown
7605 hardcode_automatic=no
7606 module_cmds=
7607 module_expsym_cmds=
7608 always_export_symbols=no
7609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7610 # include_expsyms should be a list of space-separated symbols to be *always*
7611 # included in the symbol list
7612 include_expsyms=
7613 # exclude_expsyms can be an extended regexp of symbols to exclude
7614 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7616 # as well as any symbol that contains `d'.
7617 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7619 # platforms (ab)use it in PIC code, but their linkers get confused if
7620 # the symbol is explicitly referenced. Since portable code cannot
7621 # rely on this symbol name, it's probably fine to never include it in
7622 # preloaded symbol tables.
7623 extract_expsyms_cmds=
7624 # Just being paranoid about ensuring that cc_basename is set.
7625 for cc_temp in $compiler""; do
7626 case $cc_temp in
7627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 \-*) ;;
7630 *) break;;
7631 esac
7632 done
7633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7634
7635 case $host_os in
7636 cygwin* | mingw* | pw32*)
7637 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7638 # When not using gcc, we currently assume that we are using
7639 # Microsoft Visual C++.
7640 if test "$GCC" != yes; then
7641 with_gnu_ld=no
7642 fi
7643 ;;
7644 interix*)
7645 # we just hope/assume this is gcc and not c89 (= MSVC++)
7646 with_gnu_ld=yes
7647 ;;
7648 openbsd*)
7649 with_gnu_ld=no
7650 ;;
7651 esac
7652
7653 ld_shlibs=yes
7654 if test "$with_gnu_ld" = yes; then
7655 # If archive_cmds runs LD, not CC, wlarc should be empty
7656 wlarc='${wl}'
7657
7658 # Set some defaults for GNU ld with shared library support. These
7659 # are reset later if shared libraries are not supported. Putting them
7660 # here allows them to be overridden if necessary.
7661 runpath_var=LD_RUN_PATH
7662 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7663 export_dynamic_flag_spec='${wl}--export-dynamic'
7664 # ancient GNU ld didn't support --whole-archive et. al.
7665 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7666 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7667 else
7668 whole_archive_flag_spec=
7669 fi
7670 supports_anon_versioning=no
7671 case `$LD -v 2>/dev/null` in
7672 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7673 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7674 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7675 *\ 2.11.*) ;; # other 2.11 versions
7676 *) supports_anon_versioning=yes ;;
7677 esac
7678
7679 # See if GNU ld supports shared libraries.
7680 case $host_os in
7681 aix3* | aix4* | aix5*)
7682 # On AIX/PPC, the GNU linker is very broken
7683 if test "$host_cpu" != ia64; then
7684 ld_shlibs=no
7685 cat <<EOF 1>&2
7686
7687 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7688 *** to be unable to reliably create shared libraries on AIX.
7689 *** Therefore, libtool is disabling shared libraries support. If you
7690 *** really care for shared libraries, you may want to modify your PATH
7691 *** so that a non-GNU linker is found, and then restart.
7692
7693 EOF
7694 fi
7695 ;;
7696
7697 amigaos*)
7698 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)'
7699 hardcode_libdir_flag_spec='-L$libdir'
7700 hardcode_minus_L=yes
7701
7702 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7703 # that the semantics of dynamic libraries on AmigaOS, at least up
7704 # to version 4, is to share data among multiple programs linked
7705 # with the same dynamic library. Since this doesn't match the
7706 # behavior of shared libraries on other platforms, we can't use
7707 # them.
7708 ld_shlibs=no
7709 ;;
7710
7711 beos*)
7712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7713 allow_undefined_flag=unsupported
7714 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7715 # support --undefined. This deserves some investigation. FIXME
7716 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7717 else
7718 ld_shlibs=no
7719 fi
7720 ;;
7721
7722 cygwin* | mingw* | pw32*)
7723 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7724 # as there is no search path for DLLs.
7725 hardcode_libdir_flag_spec='-L$libdir'
7726 allow_undefined_flag=unsupported
7727 always_export_symbols=no
7728 enable_shared_with_static_runtimes=yes
7729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7730
7731 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7733 # If the export-symbols file already is a .def file (1st line
7734 # is EXPORTS), use it as is; otherwise, prepend...
7735 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7736 cp $export_symbols $output_objdir/$soname.def;
7737 else
7738 echo EXPORTS > $output_objdir/$soname.def;
7739 cat $export_symbols >> $output_objdir/$soname.def;
7740 fi~
7741 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7742 else
7743 ld_shlibs=no
7744 fi
7745 ;;
7746
7747 interix[3-9]*)
7748 hardcode_direct=no
7749 hardcode_shlibpath_var=no
7750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7751 export_dynamic_flag_spec='${wl}-E'
7752 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7753 # Instead, shared libraries are loaded at an image base (0x10000000 by
7754 # default) and relocated if they conflict, which is a slow very memory
7755 # consuming and fragmenting process. To avoid this, we pick a random,
7756 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7757 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7758 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7759 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'
7760 ;;
7761
7762 gnu* | linux* | k*bsd*-gnu)
7763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7764 tmp_addflag=
7765 case $cc_basename,$host_cpu in
7766 pgcc*) # Portland Group C compiler
7767 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'
7768 tmp_addflag=' $pic_flag'
7769 ;;
7770 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7771 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'
7772 tmp_addflag=' $pic_flag -Mnomain' ;;
7773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7774 tmp_addflag=' -i_dynamic' ;;
7775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7776 tmp_addflag=' -i_dynamic -nofor_main' ;;
7777 ifc* | ifort*) # Intel Fortran compiler
7778 tmp_addflag=' -nofor_main' ;;
7779 esac
7780 case `$CC -V 2>&1 | sed 5q` in
7781 *Sun\ C*) # Sun C 5.9
7782 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7783 tmp_sharedflag='-G' ;;
7784 *Sun\ F*) # Sun Fortran 8.3
7785 tmp_sharedflag='-G' ;;
7786 *)
7787 tmp_sharedflag='-shared' ;;
7788 esac
7789 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7790
7791 if test $supports_anon_versioning = yes; then
7792 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7794 $echo "local: *; };" >> $output_objdir/$libname.ver~
7795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7796 fi
7797 else
7798 ld_shlibs=no
7799 fi
7800 ;;
7801
7802 netbsd*)
7803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7805 wlarc=
7806 else
7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7809 fi
7810 ;;
7811
7812 solaris*)
7813 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7814 ld_shlibs=no
7815 cat <<EOF 1>&2
7816
7817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7818 *** create shared libraries on Solaris systems. Therefore, libtool
7819 *** is disabling shared libraries support. We urge you to upgrade GNU
7820 *** binutils to release 2.9.1 or newer. Another option is to modify
7821 *** your PATH or compiler configuration so that the native linker is
7822 *** used, and then restart.
7823
7824 EOF
7825 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7828 else
7829 ld_shlibs=no
7830 fi
7831 ;;
7832
7833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7834 case `$LD -v 2>&1` in
7835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7836 ld_shlibs=no
7837 cat <<_LT_EOF 1>&2
7838
7839 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7840 *** reliably create shared libraries on SCO systems. Therefore, libtool
7841 *** is disabling shared libraries support. We urge you to upgrade GNU
7842 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7843 *** your PATH or compiler configuration so that the native linker is
7844 *** used, and then restart.
7845
7846 _LT_EOF
7847 ;;
7848 *)
7849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7850 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7853 else
7854 ld_shlibs=no
7855 fi
7856 ;;
7857 esac
7858 ;;
7859
7860 sunos4*)
7861 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7862 wlarc=
7863 hardcode_direct=yes
7864 hardcode_shlibpath_var=no
7865 ;;
7866
7867 *)
7868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7871 else
7872 ld_shlibs=no
7873 fi
7874 ;;
7875 esac
7876
7877 if test "$ld_shlibs" = no; then
7878 runpath_var=
7879 hardcode_libdir_flag_spec=
7880 export_dynamic_flag_spec=
7881 whole_archive_flag_spec=
7882 fi
7883 else
7884 # PORTME fill in a description of your system's linker (not GNU ld)
7885 case $host_os in
7886 aix3*)
7887 allow_undefined_flag=unsupported
7888 always_export_symbols=yes
7889 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'
7890 # Note: this linker hardcodes the directories in LIBPATH if there
7891 # are no directories specified by -L.
7892 hardcode_minus_L=yes
7893 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7894 # Neither direct hardcoding nor static linking is supported with a
7895 # broken collect2.
7896 hardcode_direct=unsupported
7897 fi
7898 ;;
7899
7900 aix4* | aix5*)
7901 if test "$host_cpu" = ia64; then
7902 # On IA64, the linker does run time linking by default, so we don't
7903 # have to do anything special.
7904 aix_use_runtimelinking=no
7905 exp_sym_flag='-Bexport'
7906 no_entry_flag=""
7907 else
7908 # If we're using GNU nm, then we don't want the "-C" option.
7909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7911 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'
7912 else
7913 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'
7914 fi
7915 aix_use_runtimelinking=no
7916
7917 # Test if we are trying to use run time linking or normal
7918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7919 # need to do runtime linking.
7920 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7921 for ld_flag in $LDFLAGS; do
7922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7923 aix_use_runtimelinking=yes
7924 break
7925 fi
7926 done
7927 ;;
7928 esac
7929
7930 exp_sym_flag='-bexport'
7931 no_entry_flag='-bnoentry'
7932 fi
7933
7934 # When large executables or shared objects are built, AIX ld can
7935 # have problems creating the table of contents. If linking a library
7936 # or program results in "error TOC overflow" add -mminimal-toc to
7937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7939
7940 archive_cmds=''
7941 hardcode_direct=yes
7942 hardcode_libdir_separator=':'
7943 link_all_deplibs=yes
7944
7945 if test "$GCC" = yes; then
7946 case $host_os in aix4.[012]|aix4.[012].*)
7947 # We only want to do this on AIX 4.2 and lower, the check
7948 # below for broken collect2 doesn't work under 4.3+
7949 collect2name=`${CC} -print-prog-name=collect2`
7950 if test -f "$collect2name" && \
7951 strings "$collect2name" | grep resolve_lib_name >/dev/null
7952 then
7953 # We have reworked collect2
7954 :
7955 else
7956 # We have old collect2
7957 hardcode_direct=unsupported
7958 # It fails to find uninstalled libraries when the uninstalled
7959 # path is not listed in the libpath. Setting hardcode_minus_L
7960 # to unsupported forces relinking
7961 hardcode_minus_L=yes
7962 hardcode_libdir_flag_spec='-L$libdir'
7963 hardcode_libdir_separator=
7964 fi
7965 ;;
7966 esac
7967 shared_flag='-shared'
7968 if test "$aix_use_runtimelinking" = yes; then
7969 shared_flag="$shared_flag "'${wl}-G'
7970 fi
7971 else
7972 # not using gcc
7973 if test "$host_cpu" = ia64; then
7974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7975 # chokes on -Wl,-G. The following line is correct:
7976 shared_flag='-G'
7977 else
7978 if test "$aix_use_runtimelinking" = yes; then
7979 shared_flag='${wl}-G'
7980 else
7981 shared_flag='${wl}-bM:SRE'
7982 fi
7983 fi
7984 fi
7985
7986 # It seems that -bexpall does not export symbols beginning with
7987 # underscore (_), so it is better to generate a list of symbols to export.
7988 always_export_symbols=yes
7989 if test "$aix_use_runtimelinking" = yes; then
7990 # Warning - without using the other runtime loading flags (-brtl),
7991 # -berok will link without error, but may produce a broken library.
7992 allow_undefined_flag='-berok'
7993 # Determine the default libpath from the value encoded in an empty executable.
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000
8001 int
8002 main ()
8003 {
8004
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest$ac_exeext &&
8026 $as_test_x conftest$ac_exeext; then
8027
8028 lt_aix_libpath_sed='
8029 /Import File Strings/,/^$/ {
8030 /^0/ {
8031 s/^0 *\(.*\)$/\1/
8032 p
8033 }
8034 }'
8035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8036 # Check for a 64-bit object if we didn't find anything.
8037 if test -z "$aix_libpath"; then
8038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8039 fi
8040 else
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8043
8044
8045 fi
8046
8047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8048 conftest$ac_exeext conftest.$ac_ext
8049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8050
8051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8052 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"
8053 else
8054 if test "$host_cpu" = ia64; then
8055 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8056 allow_undefined_flag="-z nodefs"
8057 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"
8058 else
8059 # Determine the default libpath from the value encoded in an empty executable.
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066
8067 int
8068 main ()
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext conftest$ac_exeext
8076 if { (ac_try="$ac_link"
8077 case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_link") 2>conftest.er1
8083 ac_status=$?
8084 grep -v '^ *+' conftest.er1 >conftest.err
8085 rm -f conftest.er1
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest$ac_exeext &&
8092 $as_test_x conftest$ac_exeext; then
8093
8094 lt_aix_libpath_sed='
8095 /Import File Strings/,/^$/ {
8096 /^0/ {
8097 s/^0 *\(.*\)$/\1/
8098 p
8099 }
8100 }'
8101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8102 # Check for a 64-bit object if we didn't find anything.
8103 if test -z "$aix_libpath"; then
8104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8105 fi
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8114 conftest$ac_exeext conftest.$ac_ext
8115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8116
8117 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8118 # Warning - without using the other run time loading flags,
8119 # -berok will link without error, but may produce a broken library.
8120 no_undefined_flag=' ${wl}-bernotok'
8121 allow_undefined_flag=' ${wl}-berok'
8122 # Exported symbols can be pulled into shared objects from archives
8123 whole_archive_flag_spec='$convenience'
8124 archive_cmds_need_lc=yes
8125 # This is similar to how AIX traditionally builds its shared libraries.
8126 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'
8127 fi
8128 fi
8129 ;;
8130
8131 amigaos*)
8132 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)'
8133 hardcode_libdir_flag_spec='-L$libdir'
8134 hardcode_minus_L=yes
8135 # see comment about different semantics on the GNU ld section
8136 ld_shlibs=no
8137 ;;
8138
8139 bsdi[45]*)
8140 export_dynamic_flag_spec=-rdynamic
8141 ;;
8142
8143 cygwin* | mingw* | pw32*)
8144 # When not using gcc, we currently assume that we are using
8145 # Microsoft Visual C++.
8146 # hardcode_libdir_flag_spec is actually meaningless, as there is
8147 # no search path for DLLs.
8148 hardcode_libdir_flag_spec=' '
8149 allow_undefined_flag=unsupported
8150 # Tell ltmain to make .lib files, not .a files.
8151 libext=lib
8152 # Tell ltmain to make .dll files, not .so files.
8153 shrext_cmds=".dll"
8154 # FIXME: Setting linknames here is a bad hack.
8155 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8156 # The linker will automatically build a .lib file if we build a DLL.
8157 old_archive_From_new_cmds='true'
8158 # FIXME: Should let the user specify the lib program.
8159 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8160 fix_srcfile_path='`cygpath -w "$srcfile"`'
8161 enable_shared_with_static_runtimes=yes
8162 ;;
8163
8164 darwin* | rhapsody*)
8165 case $host_os in
8166 rhapsody* | darwin1.[012])
8167 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8168 ;;
8169 *) # Darwin 1.3 on
8170 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8171 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8172 else
8173 case ${MACOSX_DEPLOYMENT_TARGET} in
8174 10.[012])
8175 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8176 ;;
8177 10.*)
8178 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8179 ;;
8180 esac
8181 fi
8182 ;;
8183 esac
8184 archive_cmds_need_lc=no
8185 hardcode_direct=no
8186 hardcode_automatic=yes
8187 hardcode_shlibpath_var=unsupported
8188 whole_archive_flag_spec=''
8189 link_all_deplibs=yes
8190 if test "$GCC" = yes ; then
8191 output_verbose_link_cmd='echo'
8192 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8193 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8195 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}'
8196 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}'
8197 else
8198 case $cc_basename in
8199 xlc*)
8200 output_verbose_link_cmd='echo'
8201 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8202 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8204 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8205 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}'
8206 ;;
8207 *)
8208 ld_shlibs=no
8209 ;;
8210 esac
8211 fi
8212 ;;
8213
8214 dgux*)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_libdir_flag_spec='-L$libdir'
8217 hardcode_shlibpath_var=no
8218 ;;
8219
8220 freebsd1*)
8221 ld_shlibs=no
8222 ;;
8223
8224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8225 # support. Future versions do this automatically, but an explicit c++rt0.o
8226 # does not break anything, and helps significantly (at the cost of a little
8227 # extra space).
8228 freebsd2.2*)
8229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8230 hardcode_libdir_flag_spec='-R$libdir'
8231 hardcode_direct=yes
8232 hardcode_shlibpath_var=no
8233 ;;
8234
8235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8236 freebsd2*)
8237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_direct=yes
8239 hardcode_minus_L=yes
8240 hardcode_shlibpath_var=no
8241 ;;
8242
8243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8244 freebsd* | dragonfly*)
8245 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8246 hardcode_libdir_flag_spec='-R$libdir'
8247 hardcode_direct=yes
8248 hardcode_shlibpath_var=no
8249 ;;
8250
8251 hpux9*)
8252 if test "$GCC" = yes; then
8253 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'
8254 else
8255 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'
8256 fi
8257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8258 hardcode_libdir_separator=:
8259 hardcode_direct=yes
8260
8261 # hardcode_minus_L: Not really in the search PATH,
8262 # but as the default location of the library.
8263 hardcode_minus_L=yes
8264 export_dynamic_flag_spec='${wl}-E'
8265 ;;
8266
8267 hpux10*)
8268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8270 else
8271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8272 fi
8273 if test "$with_gnu_ld" = no; then
8274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8275 hardcode_libdir_separator=:
8276
8277 hardcode_direct=yes
8278 export_dynamic_flag_spec='${wl}-E'
8279
8280 # hardcode_minus_L: Not really in the search PATH,
8281 # but as the default location of the library.
8282 hardcode_minus_L=yes
8283 fi
8284 ;;
8285
8286 hpux11*)
8287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8288 case $host_cpu in
8289 hppa*64*)
8290 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8291 ;;
8292 ia64*)
8293 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8294 ;;
8295 *)
8296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8297 ;;
8298 esac
8299 else
8300 case $host_cpu in
8301 hppa*64*)
8302 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8303 ;;
8304 ia64*)
8305 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8306 ;;
8307 *)
8308 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8309 ;;
8310 esac
8311 fi
8312 if test "$with_gnu_ld" = no; then
8313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8314 hardcode_libdir_separator=:
8315
8316 case $host_cpu in
8317 hppa*64*|ia64*)
8318 hardcode_libdir_flag_spec_ld='+b $libdir'
8319 hardcode_direct=no
8320 hardcode_shlibpath_var=no
8321 ;;
8322 *)
8323 hardcode_direct=yes
8324 export_dynamic_flag_spec='${wl}-E'
8325
8326 # hardcode_minus_L: Not really in the search PATH,
8327 # but as the default location of the library.
8328 hardcode_minus_L=yes
8329 ;;
8330 esac
8331 fi
8332 ;;
8333
8334 irix5* | irix6* | nonstopux*)
8335 if test "$GCC" = yes; then
8336 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'
8337 else
8338 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'
8339 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8340 fi
8341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8342 hardcode_libdir_separator=:
8343 link_all_deplibs=yes
8344 ;;
8345
8346 netbsd*)
8347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8349 else
8350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8351 fi
8352 hardcode_libdir_flag_spec='-R$libdir'
8353 hardcode_direct=yes
8354 hardcode_shlibpath_var=no
8355 ;;
8356
8357 newsos6)
8358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_direct=yes
8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8361 hardcode_libdir_separator=:
8362 hardcode_shlibpath_var=no
8363 ;;
8364
8365 openbsd*)
8366 if test -f /usr/libexec/ld.so; then
8367 hardcode_direct=yes
8368 hardcode_shlibpath_var=no
8369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8371 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8373 export_dynamic_flag_spec='${wl}-E'
8374 else
8375 case $host_os in
8376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_libdir_flag_spec='-R$libdir'
8379 ;;
8380 *)
8381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8383 ;;
8384 esac
8385 fi
8386 else
8387 ld_shlibs=no
8388 fi
8389 ;;
8390
8391 os2*)
8392 hardcode_libdir_flag_spec='-L$libdir'
8393 hardcode_minus_L=yes
8394 allow_undefined_flag=unsupported
8395 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'
8396 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8397 ;;
8398
8399 osf3*)
8400 if test "$GCC" = yes; then
8401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8402 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'
8403 else
8404 allow_undefined_flag=' -expect_unresolved \*'
8405 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'
8406 fi
8407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8408 hardcode_libdir_separator=:
8409 ;;
8410
8411 osf4* | osf5*) # as osf3* with the addition of -msym flag
8412 if test "$GCC" = yes; then
8413 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8414 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'
8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416 else
8417 allow_undefined_flag=' -expect_unresolved \*'
8418 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'
8419 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8420 $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'
8421
8422 # Both c and cxx compiler support -rpath directly
8423 hardcode_libdir_flag_spec='-rpath $libdir'
8424 fi
8425 hardcode_libdir_separator=:
8426 ;;
8427
8428 solaris*)
8429 no_undefined_flag=' -z text'
8430 if test "$GCC" = yes; then
8431 wlarc='${wl}'
8432 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8434 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8435 else
8436 wlarc=''
8437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8438 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8440 fi
8441 hardcode_libdir_flag_spec='-R$libdir'
8442 hardcode_shlibpath_var=no
8443 case $host_os in
8444 solaris2.[0-5] | solaris2.[0-5].*) ;;
8445 *)
8446 # The compiler driver will combine and reorder linker options,
8447 # but understands `-z linker_flag'. GCC discards it without `$wl',
8448 # but is careful enough not to reorder.
8449 # Supported since Solaris 2.6 (maybe 2.5.1?)
8450 if test "$GCC" = yes; then
8451 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8452 else
8453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8454 fi
8455 ;;
8456 esac
8457 link_all_deplibs=yes
8458 ;;
8459
8460 sunos4*)
8461 if test "x$host_vendor" = xsequent; then
8462 # Use $CC to link under sequent, because it throws in some extra .o
8463 # files that make .init and .fini sections work.
8464 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8465 else
8466 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8467 fi
8468 hardcode_libdir_flag_spec='-L$libdir'
8469 hardcode_direct=yes
8470 hardcode_minus_L=yes
8471 hardcode_shlibpath_var=no
8472 ;;
8473
8474 sysv4)
8475 case $host_vendor in
8476 sni)
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_direct=yes # is this really true???
8479 ;;
8480 siemens)
8481 ## LD is ld it makes a PLAMLIB
8482 ## CC just makes a GrossModule.
8483 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8484 reload_cmds='$CC -r -o $output$reload_objs'
8485 hardcode_direct=no
8486 ;;
8487 motorola)
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8490 ;;
8491 esac
8492 runpath_var='LD_RUN_PATH'
8493 hardcode_shlibpath_var=no
8494 ;;
8495
8496 sysv4.3*)
8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 hardcode_shlibpath_var=no
8499 export_dynamic_flag_spec='-Bexport'
8500 ;;
8501
8502 sysv4*MP*)
8503 if test -d /usr/nec; then
8504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8505 hardcode_shlibpath_var=no
8506 runpath_var=LD_RUN_PATH
8507 hardcode_runpath_var=yes
8508 ld_shlibs=yes
8509 fi
8510 ;;
8511
8512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8513 no_undefined_flag='${wl}-z,text'
8514 archive_cmds_need_lc=no
8515 hardcode_shlibpath_var=no
8516 runpath_var='LD_RUN_PATH'
8517
8518 if test "$GCC" = yes; then
8519 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8521 else
8522 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 fi
8525 ;;
8526
8527 sysv5* | sco3.2v5* | sco5v6*)
8528 # Note: We can NOT use -z defs as we might desire, because we do not
8529 # link with -lc, and that would cause any symbols used from libc to
8530 # always be unresolved, which means just about no library would
8531 # ever link correctly. If we're not using GNU ld we use -z text
8532 # though, which does catch some bad symbols but isn't as heavy-handed
8533 # as -z defs.
8534 no_undefined_flag='${wl}-z,text'
8535 allow_undefined_flag='${wl}-z,nodefs'
8536 archive_cmds_need_lc=no
8537 hardcode_shlibpath_var=no
8538 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8539 hardcode_libdir_separator=':'
8540 link_all_deplibs=yes
8541 export_dynamic_flag_spec='${wl}-Bexport'
8542 runpath_var='LD_RUN_PATH'
8543
8544 if test "$GCC" = yes; then
8545 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8546 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547 else
8548 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 fi
8551 ;;
8552
8553 uts4*)
8554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8555 hardcode_libdir_flag_spec='-L$libdir'
8556 hardcode_shlibpath_var=no
8557 ;;
8558
8559 *)
8560 ld_shlibs=no
8561 ;;
8562 esac
8563 fi
8564
8565 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8566 echo "${ECHO_T}$ld_shlibs" >&6; }
8567 test "$ld_shlibs" = no && can_build_shared=no
8568
8569 #
8570 # Do we need to explicitly link libc?
8571 #
8572 case "x$archive_cmds_need_lc" in
8573 x|xyes)
8574 # Assume -lc should be added
8575 archive_cmds_need_lc=yes
8576
8577 if test "$enable_shared" = yes && test "$GCC" = yes; then
8578 case $archive_cmds in
8579 *'~'*)
8580 # FIXME: we may have to deal with multi-command sequences.
8581 ;;
8582 '$CC '*)
8583 # Test whether the compiler implicitly links with -lc since on some
8584 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8585 # to ld, don't add -lc before -lgcc.
8586 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8587 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8588 $rm conftest*
8589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590
8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8592 (eval $ac_compile) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } 2>conftest.err; then
8596 soname=conftest
8597 lib=conftest
8598 libobjs=conftest.$ac_objext
8599 deplibs=
8600 wl=$lt_prog_compiler_wl
8601 pic_flag=$lt_prog_compiler_pic
8602 compiler_flags=-v
8603 linker_flags=-v
8604 verstring=
8605 output_objdir=.
8606 libname=conftest
8607 lt_save_allow_undefined_flag=$allow_undefined_flag
8608 allow_undefined_flag=
8609 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8610 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }
8614 then
8615 archive_cmds_need_lc=no
8616 else
8617 archive_cmds_need_lc=yes
8618 fi
8619 allow_undefined_flag=$lt_save_allow_undefined_flag
8620 else
8621 cat conftest.err 1>&5
8622 fi
8623 $rm conftest*
8624 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8625 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8626 ;;
8627 esac
8628 fi
8629 ;;
8630 esac
8631
8632 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8633 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8634 library_names_spec=
8635 libname_spec='lib$name'
8636 soname_spec=
8637 shrext_cmds=".so"
8638 postinstall_cmds=
8639 postuninstall_cmds=
8640 finish_cmds=
8641 finish_eval=
8642 shlibpath_var=
8643 shlibpath_overrides_runpath=unknown
8644 version_type=none
8645 dynamic_linker="$host_os ld.so"
8646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8647
8648 if test "$GCC" = yes; then
8649 case $host_os in
8650 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8651 *) lt_awk_arg="/^libraries:/" ;;
8652 esac
8653 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8654 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8655 # if the path contains ";" then we assume it to be the separator
8656 # otherwise default to the standard path separator (i.e. ":") - it is
8657 # assumed that no part of a normal pathname contains ";" but that should
8658 # okay in the real world where ";" in dirpaths is itself problematic.
8659 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8660 else
8661 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8662 fi
8663 # Ok, now we have the path, separated by spaces, we can step through it
8664 # and add multilib dir if necessary.
8665 lt_tmp_lt_search_path_spec=
8666 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8667 for lt_sys_path in $lt_search_path_spec; do
8668 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8669 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8670 else
8671 test -d "$lt_sys_path" && \
8672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8673 fi
8674 done
8675 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8676 BEGIN {RS=" "; FS="/|\n";} {
8677 lt_foo="";
8678 lt_count=0;
8679 for (lt_i = NF; lt_i > 0; lt_i--) {
8680 if ($lt_i != "" && $lt_i != ".") {
8681 if ($lt_i == "..") {
8682 lt_count++;
8683 } else {
8684 if (lt_count == 0) {
8685 lt_foo="/" $lt_i lt_foo;
8686 } else {
8687 lt_count--;
8688 }
8689 }
8690 }
8691 }
8692 if (lt_foo != "") { lt_freq[lt_foo]++; }
8693 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8694 }'`
8695 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8696 else
8697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8698 fi
8699 need_lib_prefix=unknown
8700 hardcode_into_libs=no
8701
8702 # when you set need_version to no, make sure it does not cause -set_version
8703 # flags to be left without arguments
8704 need_version=unknown
8705
8706 case $host_os in
8707 aix3*)
8708 version_type=linux
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8710 shlibpath_var=LIBPATH
8711
8712 # AIX 3 has no versioning support, so we append a major version to the name.
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 ;;
8715
8716 aix4* | aix5*)
8717 version_type=linux
8718 need_lib_prefix=no
8719 need_version=no
8720 hardcode_into_libs=yes
8721 if test "$host_cpu" = ia64; then
8722 # AIX 5 supports IA64
8723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8724 shlibpath_var=LD_LIBRARY_PATH
8725 else
8726 # With GCC up to 2.95.x, collect2 would create an import file
8727 # for dependence libraries. The import file would start with
8728 # the line `#! .'. This would cause the generated library to
8729 # depend on `.', always an invalid library. This was fixed in
8730 # development snapshots of GCC prior to 3.0.
8731 case $host_os in
8732 aix4 | aix4.[01] | aix4.[01].*)
8733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8734 echo ' yes '
8735 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8736 :
8737 else
8738 can_build_shared=no
8739 fi
8740 ;;
8741 esac
8742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8743 # soname into executable. Probably we can add versioning support to
8744 # collect2, so additional links can be useful in future.
8745 if test "$aix_use_runtimelinking" = yes; then
8746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8747 # instead of lib<name>.a to let people know that these are not
8748 # typical AIX shared libraries.
8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750 else
8751 # We preserve .a as extension for shared libraries through AIX4.2
8752 # and later when we are not doing run time linking.
8753 library_names_spec='${libname}${release}.a $libname.a'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 fi
8756 shlibpath_var=LIBPATH
8757 fi
8758 ;;
8759
8760 amigaos*)
8761 library_names_spec='$libname.ixlibrary $libname.a'
8762 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8763 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'
8764 ;;
8765
8766 beos*)
8767 library_names_spec='${libname}${shared_ext}'
8768 dynamic_linker="$host_os ld.so"
8769 shlibpath_var=LIBRARY_PATH
8770 ;;
8771
8772 bsdi[45]*)
8773 version_type=linux
8774 need_version=no
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8776 soname_spec='${libname}${release}${shared_ext}$major'
8777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8778 shlibpath_var=LD_LIBRARY_PATH
8779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8781 # the default ld.so.conf also contains /usr/contrib/lib and
8782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8783 # libtool to hard-code these into programs
8784 ;;
8785
8786 cygwin* | mingw* | pw32*)
8787 version_type=windows
8788 shrext_cmds=".dll"
8789 need_version=no
8790 need_lib_prefix=no
8791
8792 case $GCC,$host_os in
8793 yes,cygwin* | yes,mingw* | yes,pw32*)
8794 library_names_spec='$libname.dll.a'
8795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8796 postinstall_cmds='base_file=`basename \${file}`~
8797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8798 dldir=$destdir/`dirname \$dlpath`~
8799 test -d \$dldir || mkdir -p \$dldir~
8800 $install_prog $dir/$dlname \$dldir/$dlname~
8801 chmod a+x \$dldir/$dlname'
8802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8803 dlpath=$dir/\$dldll~
8804 $rm \$dlpath'
8805 shlibpath_overrides_runpath=yes
8806
8807 case $host_os in
8808 cygwin*)
8809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8810 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8811 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8812 ;;
8813 mingw*)
8814 # MinGW DLLs use traditional 'lib' prefix
8815 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8816 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8817 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8818 # It is most probably a Windows format PATH printed by
8819 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8820 # path with ; separators, and with drive letters. We can handle the
8821 # drive letters (cygwin fileutils understands them), so leave them,
8822 # especially as we might pass files found there to a mingw objdump,
8823 # which wouldn't understand a cygwinified path. Ahh.
8824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8825 else
8826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8827 fi
8828 ;;
8829 pw32*)
8830 # pw32 DLLs use 'pw' prefix rather than 'lib'
8831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8832 ;;
8833 esac
8834 ;;
8835
8836 *)
8837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8838 ;;
8839 esac
8840 dynamic_linker='Win32 ld.exe'
8841 # FIXME: first we should search . and the directory the executable is in
8842 shlibpath_var=PATH
8843 ;;
8844
8845 darwin* | rhapsody*)
8846 dynamic_linker="$host_os dyld"
8847 version_type=darwin
8848 need_lib_prefix=no
8849 need_version=no
8850 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8851 soname_spec='${libname}${release}${major}$shared_ext'
8852 shlibpath_overrides_runpath=yes
8853 shlibpath_var=DYLD_LIBRARY_PATH
8854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8855
8856 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8858 ;;
8859
8860 dgux*)
8861 version_type=linux
8862 need_lib_prefix=no
8863 need_version=no
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 shlibpath_var=LD_LIBRARY_PATH
8867 ;;
8868
8869 freebsd1*)
8870 dynamic_linker=no
8871 ;;
8872
8873 freebsd* | dragonfly*)
8874 # DragonFly does not have aout. When/if they implement a new
8875 # versioning mechanism, adjust this.
8876 if test -x /usr/bin/objformat; then
8877 objformat=`/usr/bin/objformat`
8878 else
8879 case $host_os in
8880 freebsd[123]*) objformat=aout ;;
8881 *) objformat=elf ;;
8882 esac
8883 fi
8884 version_type=freebsd-$objformat
8885 case $version_type in
8886 freebsd-elf*)
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 need_version=no
8889 need_lib_prefix=no
8890 ;;
8891 freebsd-*)
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8893 need_version=yes
8894 ;;
8895 esac
8896 shlibpath_var=LD_LIBRARY_PATH
8897 case $host_os in
8898 freebsd2*)
8899 shlibpath_overrides_runpath=yes
8900 ;;
8901 freebsd3.[01]* | freebsdelf3.[01]*)
8902 shlibpath_overrides_runpath=yes
8903 hardcode_into_libs=yes
8904 ;;
8905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8907 shlibpath_overrides_runpath=no
8908 hardcode_into_libs=yes
8909 ;;
8910 *) # from 4.6 on, and DragonFly
8911 shlibpath_overrides_runpath=yes
8912 hardcode_into_libs=yes
8913 ;;
8914 esac
8915 ;;
8916
8917 gnu*)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 hardcode_into_libs=yes
8925 ;;
8926
8927 hpux9* | hpux10* | hpux11*)
8928 # Give a soname corresponding to the major version so that dld.sl refuses to
8929 # link against other versions.
8930 version_type=sunos
8931 need_lib_prefix=no
8932 need_version=no
8933 case $host_cpu in
8934 ia64*)
8935 shrext_cmds='.so'
8936 hardcode_into_libs=yes
8937 dynamic_linker="$host_os dld.so"
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 if test "X$HPUX_IA64_MODE" = X32; then
8943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8944 else
8945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8946 fi
8947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8948 ;;
8949 hppa*64*)
8950 shrext_cmds='.sl'
8951 hardcode_into_libs=yes
8952 dynamic_linker="$host_os dld.sl"
8953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8959 ;;
8960 *)
8961 shrext_cmds='.sl'
8962 dynamic_linker="$host_os dld.sl"
8963 shlibpath_var=SHLIB_PATH
8964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 ;;
8968 esac
8969 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8970 postinstall_cmds='chmod 555 $lib'
8971 ;;
8972
8973 interix[3-9]*)
8974 version_type=linux
8975 need_lib_prefix=no
8976 need_version=no
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=no
8982 hardcode_into_libs=yes
8983 ;;
8984
8985 irix5* | irix6* | nonstopux*)
8986 case $host_os in
8987 nonstopux*) version_type=nonstopux ;;
8988 *)
8989 if test "$lt_cv_prog_gnu_ld" = yes; then
8990 version_type=linux
8991 else
8992 version_type=irix
8993 fi ;;
8994 esac
8995 need_lib_prefix=no
8996 need_version=no
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8999 case $host_os in
9000 irix5* | nonstopux*)
9001 libsuff= shlibsuff=
9002 ;;
9003 *)
9004 case $LD in # libtool.m4 will add one of these switches to LD
9005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9006 libsuff= shlibsuff= libmagic=32-bit;;
9007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9008 libsuff=32 shlibsuff=N32 libmagic=N32;;
9009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9011 *) libsuff= shlibsuff= libmagic=never-match;;
9012 esac
9013 ;;
9014 esac
9015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9016 shlibpath_overrides_runpath=no
9017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9019 hardcode_into_libs=yes
9020 ;;
9021
9022 # No shared lib support for Linux oldld, aout, or coff.
9023 linux*oldld* | linux*aout* | linux*coff*)
9024 dynamic_linker=no
9025 ;;
9026
9027 # This must be Linux ELF.
9028 linux* | k*bsd*-gnu)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 # This implies no fast_install, which is unacceptable.
9038 # Some rework will be needed to allow for fast_install
9039 # before this can be enabled.
9040 hardcode_into_libs=yes
9041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9043
9044 # Append ld.so.conf contents to the search path
9045 if test -f /etc/ld.so.conf; then
9046 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9047 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9048 fi
9049
9050 # We used to test for /lib/ld.so.1 and disable shared libraries on
9051 # powerpc, because MkLinux only supported shared libraries with the
9052 # GNU dynamic linker. Since this was broken with cross compilers,
9053 # most powerpc-linux boxes support dynamic linking these days and
9054 # people can always --disable-shared, the test was removed, and we
9055 # assume the GNU/Linux dynamic linker is in use.
9056 dynamic_linker='GNU/Linux ld.so'
9057 ;;
9058
9059 netbsd*)
9060 version_type=sunos
9061 need_lib_prefix=no
9062 need_version=no
9063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9066 dynamic_linker='NetBSD (a.out) ld.so'
9067 else
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 dynamic_linker='NetBSD ld.elf_so'
9071 fi
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 hardcode_into_libs=yes
9075 ;;
9076
9077 newsos6)
9078 version_type=linux
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 shlibpath_overrides_runpath=yes
9082 ;;
9083
9084 nto-qnx*)
9085 version_type=linux
9086 need_lib_prefix=no
9087 need_version=no
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes
9092 ;;
9093
9094 openbsd*)
9095 version_type=sunos
9096 sys_lib_dlsearch_path_spec="/usr/lib"
9097 need_lib_prefix=no
9098 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9099 case $host_os in
9100 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9101 *) need_version=no ;;
9102 esac
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9107 case $host_os in
9108 openbsd2.[89] | openbsd2.[89].*)
9109 shlibpath_overrides_runpath=no
9110 ;;
9111 *)
9112 shlibpath_overrides_runpath=yes
9113 ;;
9114 esac
9115 else
9116 shlibpath_overrides_runpath=yes
9117 fi
9118 ;;
9119
9120 os2*)
9121 libname_spec='$name'
9122 shrext_cmds=".dll"
9123 need_lib_prefix=no
9124 library_names_spec='$libname${shared_ext} $libname.a'
9125 dynamic_linker='OS/2 ld.exe'
9126 shlibpath_var=LIBPATH
9127 ;;
9128
9129 osf3* | osf4* | osf5*)
9130 version_type=osf
9131 need_lib_prefix=no
9132 need_version=no
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9138 ;;
9139
9140 rdos*)
9141 dynamic_linker=no
9142 ;;
9143
9144 solaris*)
9145 version_type=linux
9146 need_lib_prefix=no
9147 need_version=no
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 shlibpath_overrides_runpath=yes
9152 hardcode_into_libs=yes
9153 # ldd complains unless libraries are executable
9154 postinstall_cmds='chmod +x $lib'
9155 ;;
9156
9157 sunos4*)
9158 version_type=sunos
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 shlibpath_overrides_runpath=yes
9163 if test "$with_gnu_ld" = yes; then
9164 need_lib_prefix=no
9165 fi
9166 need_version=yes
9167 ;;
9168
9169 sysv4 | sysv4.3*)
9170 version_type=linux
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 case $host_vendor in
9175 sni)
9176 shlibpath_overrides_runpath=no
9177 need_lib_prefix=no
9178 export_dynamic_flag_spec='${wl}-Blargedynsym'
9179 runpath_var=LD_RUN_PATH
9180 ;;
9181 siemens)
9182 need_lib_prefix=no
9183 ;;
9184 motorola)
9185 need_lib_prefix=no
9186 need_version=no
9187 shlibpath_overrides_runpath=no
9188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9189 ;;
9190 esac
9191 ;;
9192
9193 sysv4*MP*)
9194 if test -d /usr/nec ;then
9195 version_type=linux
9196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9197 soname_spec='$libname${shared_ext}.$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 fi
9200 ;;
9201
9202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9203 version_type=freebsd-elf
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 hardcode_into_libs=yes
9210 if test "$with_gnu_ld" = yes; then
9211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9212 shlibpath_overrides_runpath=no
9213 else
9214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9215 shlibpath_overrides_runpath=yes
9216 case $host_os in
9217 sco3.2v5*)
9218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9219 ;;
9220 esac
9221 fi
9222 sys_lib_dlsearch_path_spec='/usr/lib'
9223 ;;
9224
9225 uts4*)
9226 version_type=linux
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 ;;
9231
9232 *)
9233 dynamic_linker=no
9234 ;;
9235 esac
9236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9237 echo "${ECHO_T}$dynamic_linker" >&6; }
9238 test "$dynamic_linker" = no && can_build_shared=no
9239
9240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9241 if test "$GCC" = yes; then
9242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9243 fi
9244
9245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9247 hardcode_action=
9248 if test -n "$hardcode_libdir_flag_spec" || \
9249 test -n "$runpath_var" || \
9250 test "X$hardcode_automatic" = "Xyes" ; then
9251
9252 # We can hardcode non-existant directories.
9253 if test "$hardcode_direct" != no &&
9254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9255 # have to relink, otherwise we might link with an installed library
9256 # when we should be linking with a yet-to-be-installed one
9257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9258 test "$hardcode_minus_L" != no; then
9259 # Linking always hardcodes the temporary library directory.
9260 hardcode_action=relink
9261 else
9262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9263 hardcode_action=immediate
9264 fi
9265 else
9266 # We cannot hardcode anything, or else we can only hardcode existing
9267 # directories.
9268 hardcode_action=unsupported
9269 fi
9270 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9271 echo "${ECHO_T}$hardcode_action" >&6; }
9272
9273 if test "$hardcode_action" = relink; then
9274 # Fast installation is not supported
9275 enable_fast_install=no
9276 elif test "$shlibpath_overrides_runpath" = yes ||
9277 test "$enable_shared" = no; then
9278 # Fast installation is not necessary
9279 enable_fast_install=needless
9280 fi
9281
9282 striplib=
9283 old_striplib=
9284 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9285 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9286 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9287 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9288 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9289 { echo "$as_me:$LINENO: result: yes" >&5
9290 echo "${ECHO_T}yes" >&6; }
9291 else
9292 # FIXME - insert some real tests, host_os isn't really good enough
9293 case $host_os in
9294 darwin*)
9295 if test -n "$STRIP" ; then
9296 striplib="$STRIP -x"
9297 old_striplib="$STRIP -S"
9298 { echo "$as_me:$LINENO: result: yes" >&5
9299 echo "${ECHO_T}yes" >&6; }
9300 else
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9303 fi
9304 ;;
9305 *)
9306 { echo "$as_me:$LINENO: result: no" >&5
9307 echo "${ECHO_T}no" >&6; }
9308 ;;
9309 esac
9310 fi
9311
9312 if test "x$enable_dlopen" != xyes; then
9313 enable_dlopen=unknown
9314 enable_dlopen_self=unknown
9315 enable_dlopen_self_static=unknown
9316 else
9317 lt_cv_dlopen=no
9318 lt_cv_dlopen_libs=
9319
9320 case $host_os in
9321 beos*)
9322 lt_cv_dlopen="load_add_on"
9323 lt_cv_dlopen_libs=
9324 lt_cv_dlopen_self=yes
9325 ;;
9326
9327 mingw* | pw32*)
9328 lt_cv_dlopen="LoadLibrary"
9329 lt_cv_dlopen_libs=
9330 ;;
9331
9332 cygwin*)
9333 lt_cv_dlopen="dlopen"
9334 lt_cv_dlopen_libs=
9335 ;;
9336
9337 darwin*)
9338 # if libdl is installed we need to link against it
9339 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9340 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9341 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344 ac_check_lib_save_LIBS=$LIBS
9345 LIBS="-ldl $LIBS"
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352
9353 /* Override any GCC internal prototype to avoid an error.
9354 Use char because int might match the return type of a GCC
9355 builtin and then its argument prototype would still apply. */
9356 #ifdef __cplusplus
9357 extern "C"
9358 #endif
9359 char dlopen ();
9360 int
9361 main ()
9362 {
9363 return dlopen ();
9364 ;
9365 return 0;
9366 }
9367 _ACEOF
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (ac_try="$ac_link"
9370 case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_link") 2>conftest.er1
9376 ac_status=$?
9377 grep -v '^ *+' conftest.er1 >conftest.err
9378 rm -f conftest.er1
9379 cat conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && {
9382 test -z "$ac_c_werror_flag" ||
9383 test ! -s conftest.err
9384 } && test -s conftest$ac_exeext &&
9385 $as_test_x conftest$ac_exeext; then
9386 ac_cv_lib_dl_dlopen=yes
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391 ac_cv_lib_dl_dlopen=no
9392 fi
9393
9394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$ac_check_lib_save_LIBS
9397 fi
9398 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9399 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9400 if test $ac_cv_lib_dl_dlopen = yes; then
9401 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9402 else
9403
9404 lt_cv_dlopen="dyld"
9405 lt_cv_dlopen_libs=
9406 lt_cv_dlopen_self=yes
9407
9408 fi
9409
9410 ;;
9411
9412 *)
9413 { echo "$as_me:$LINENO: checking for shl_load" >&5
9414 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9415 if test "${ac_cv_func_shl_load+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9426 #define shl_load innocuous_shl_load
9427
9428 /* System header to define __stub macros and hopefully few prototypes,
9429 which can conflict with char shl_load (); below.
9430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9431 <limits.h> exists even on freestanding compilers. */
9432
9433 #ifdef __STDC__
9434 # include <limits.h>
9435 #else
9436 # include <assert.h>
9437 #endif
9438
9439 #undef shl_load
9440
9441 /* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447 char shl_load ();
9448 /* The GNU C library defines this for functions which it implements
9449 to always fail with ENOSYS. Some functions are actually named
9450 something starting with __ and the normal name is an alias. */
9451 #if defined __stub_shl_load || defined __stub___shl_load
9452 choke me
9453 #endif
9454
9455 int
9456 main ()
9457 {
9458 return shl_load ();
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 rm -f conftest.$ac_objext conftest$ac_exeext
9464 if { (ac_try="$ac_link"
9465 case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9468 esac
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_link") 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && {
9477 test -z "$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9479 } && test -s conftest$ac_exeext &&
9480 $as_test_x conftest$ac_exeext; then
9481 ac_cv_func_shl_load=yes
9482 else
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486 ac_cv_func_shl_load=no
9487 fi
9488
9489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9490 conftest$ac_exeext conftest.$ac_ext
9491 fi
9492 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9493 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9494 if test $ac_cv_func_shl_load = yes; then
9495 lt_cv_dlopen="shl_load"
9496 else
9497 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9498 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9499 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502 ac_check_lib_save_LIBS=$LIBS
9503 LIBS="-ldld $LIBS"
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char shl_load ();
9518 int
9519 main ()
9520 {
9521 return shl_load ();
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest$ac_exeext &&
9543 $as_test_x conftest$ac_exeext; then
9544 ac_cv_lib_dld_shl_load=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9548
9549 ac_cv_lib_dld_shl_load=no
9550 fi
9551
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553 conftest$ac_exeext conftest.$ac_ext
9554 LIBS=$ac_check_lib_save_LIBS
9555 fi
9556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9557 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9558 if test $ac_cv_lib_dld_shl_load = yes; then
9559 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9560 else
9561 { echo "$as_me:$LINENO: checking for dlopen" >&5
9562 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9563 if test "${ac_cv_func_dlopen+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9574 #define dlopen innocuous_dlopen
9575
9576 /* System header to define __stub macros and hopefully few prototypes,
9577 which can conflict with char dlopen (); below.
9578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9579 <limits.h> exists even on freestanding compilers. */
9580
9581 #ifdef __STDC__
9582 # include <limits.h>
9583 #else
9584 # include <assert.h>
9585 #endif
9586
9587 #undef dlopen
9588
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 char dlopen ();
9596 /* The GNU C library defines this for functions which it implements
9597 to always fail with ENOSYS. Some functions are actually named
9598 something starting with __ and the normal name is an alias. */
9599 #if defined __stub_dlopen || defined __stub___dlopen
9600 choke me
9601 #endif
9602
9603 int
9604 main ()
9605 {
9606 return dlopen ();
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (ac_try="$ac_link"
9613 case "(($ac_try" in
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9616 esac
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_link") 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && {
9625 test -z "$ac_c_werror_flag" ||
9626 test ! -s conftest.err
9627 } && test -s conftest$ac_exeext &&
9628 $as_test_x conftest$ac_exeext; then
9629 ac_cv_func_dlopen=yes
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9633
9634 ac_cv_func_dlopen=no
9635 fi
9636
9637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9638 conftest$ac_exeext conftest.$ac_ext
9639 fi
9640 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9641 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9642 if test $ac_cv_func_dlopen = yes; then
9643 lt_cv_dlopen="dlopen"
9644 else
9645 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-ldl $LIBS"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 char dlopen ();
9666 int
9667 main ()
9668 {
9669 return dlopen ();
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9676 case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9682 ac_status=$?
9683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest$ac_exeext &&
9691 $as_test_x conftest$ac_exeext; then
9692 ac_cv_lib_dl_dlopen=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697 ac_cv_lib_dl_dlopen=no
9698 fi
9699
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9703 fi
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9706 if test $ac_cv_lib_dl_dlopen = yes; then
9707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9708 else
9709 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9710 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9711 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 ac_check_lib_save_LIBS=$LIBS
9715 LIBS="-lsvld $LIBS"
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char dlopen ();
9730 int
9731 main ()
9732 {
9733 return dlopen ();
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9740 case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext &&
9755 $as_test_x conftest$ac_exeext; then
9756 ac_cv_lib_svld_dlopen=yes
9757 else
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 ac_cv_lib_svld_dlopen=no
9762 fi
9763
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9767 fi
9768 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9769 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9770 if test $ac_cv_lib_svld_dlopen = yes; then
9771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9772 else
9773 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9774 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9775 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 ac_check_lib_save_LIBS=$LIBS
9779 LIBS="-ldld $LIBS"
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786
9787 /* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char dld_link ();
9794 int
9795 main ()
9796 {
9797 return dld_link ();
9798 ;
9799 return 0;
9800 }
9801 _ACEOF
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (ac_try="$ac_link"
9804 case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_link") 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && {
9816 test -z "$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 } && test -s conftest$ac_exeext &&
9819 $as_test_x conftest$ac_exeext; then
9820 ac_cv_lib_dld_dld_link=yes
9821 else
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 ac_cv_lib_dld_dld_link=no
9826 fi
9827
9828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9833 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9834 if test $ac_cv_lib_dld_dld_link = yes; then
9835 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9836 fi
9837
9838
9839 fi
9840
9841
9842 fi
9843
9844
9845 fi
9846
9847
9848 fi
9849
9850
9851 fi
9852
9853 ;;
9854 esac
9855
9856 if test "x$lt_cv_dlopen" != xno; then
9857 enable_dlopen=yes
9858 else
9859 enable_dlopen=no
9860 fi
9861
9862 case $lt_cv_dlopen in
9863 dlopen)
9864 save_CPPFLAGS="$CPPFLAGS"
9865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9866
9867 save_LDFLAGS="$LDFLAGS"
9868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9869
9870 save_LIBS="$LIBS"
9871 LIBS="$lt_cv_dlopen_libs $LIBS"
9872
9873 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9874 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9875 if test "${lt_cv_dlopen_self+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 if test "$cross_compiling" = yes; then :
9879 lt_cv_dlopen_self=cross
9880 else
9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882 lt_status=$lt_dlunknown
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9886
9887 #if HAVE_DLFCN_H
9888 #include <dlfcn.h>
9889 #endif
9890
9891 #include <stdio.h>
9892
9893 #ifdef RTLD_GLOBAL
9894 # define LT_DLGLOBAL RTLD_GLOBAL
9895 #else
9896 # ifdef DL_GLOBAL
9897 # define LT_DLGLOBAL DL_GLOBAL
9898 # else
9899 # define LT_DLGLOBAL 0
9900 # endif
9901 #endif
9902
9903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904 find out it does not work in some platform. */
9905 #ifndef LT_DLLAZY_OR_NOW
9906 # ifdef RTLD_LAZY
9907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9908 # else
9909 # ifdef DL_LAZY
9910 # define LT_DLLAZY_OR_NOW DL_LAZY
9911 # else
9912 # ifdef RTLD_NOW
9913 # define LT_DLLAZY_OR_NOW RTLD_NOW
9914 # else
9915 # ifdef DL_NOW
9916 # define LT_DLLAZY_OR_NOW DL_NOW
9917 # else
9918 # define LT_DLLAZY_OR_NOW 0
9919 # endif
9920 # endif
9921 # endif
9922 # endif
9923 #endif
9924
9925 #ifdef __cplusplus
9926 extern "C" void exit (int);
9927 #endif
9928
9929 void fnord() { int i=42;}
9930 int main ()
9931 {
9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933 int status = $lt_dlunknown;
9934
9935 if (self)
9936 {
9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939 /* dlclose (self); */
9940 }
9941 else
9942 puts (dlerror ());
9943
9944 exit (status);
9945 }
9946 EOF
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952 (./conftest; exit; ) >&5 2>/dev/null
9953 lt_status=$?
9954 case x$lt_status in
9955 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9956 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9957 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9958 esac
9959 else :
9960 # compilation failed
9961 lt_cv_dlopen_self=no
9962 fi
9963 fi
9964 rm -fr conftest*
9965
9966
9967 fi
9968 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9969 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9970
9971 if test "x$lt_cv_dlopen_self" = xyes; then
9972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9973 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9974 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9975 if test "${lt_cv_dlopen_self_static+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 if test "$cross_compiling" = yes; then :
9979 lt_cv_dlopen_self_static=cross
9980 else
9981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9982 lt_status=$lt_dlunknown
9983 cat > conftest.$ac_ext <<EOF
9984 #line 9984 "configure"
9985 #include "confdefs.h"
9986
9987 #if HAVE_DLFCN_H
9988 #include <dlfcn.h>
9989 #endif
9990
9991 #include <stdio.h>
9992
9993 #ifdef RTLD_GLOBAL
9994 # define LT_DLGLOBAL RTLD_GLOBAL
9995 #else
9996 # ifdef DL_GLOBAL
9997 # define LT_DLGLOBAL DL_GLOBAL
9998 # else
9999 # define LT_DLGLOBAL 0
10000 # endif
10001 #endif
10002
10003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10004 find out it does not work in some platform. */
10005 #ifndef LT_DLLAZY_OR_NOW
10006 # ifdef RTLD_LAZY
10007 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10008 # else
10009 # ifdef DL_LAZY
10010 # define LT_DLLAZY_OR_NOW DL_LAZY
10011 # else
10012 # ifdef RTLD_NOW
10013 # define LT_DLLAZY_OR_NOW RTLD_NOW
10014 # else
10015 # ifdef DL_NOW
10016 # define LT_DLLAZY_OR_NOW DL_NOW
10017 # else
10018 # define LT_DLLAZY_OR_NOW 0
10019 # endif
10020 # endif
10021 # endif
10022 # endif
10023 #endif
10024
10025 #ifdef __cplusplus
10026 extern "C" void exit (int);
10027 #endif
10028
10029 void fnord() { int i=42;}
10030 int main ()
10031 {
10032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10033 int status = $lt_dlunknown;
10034
10035 if (self)
10036 {
10037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10038 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10039 /* dlclose (self); */
10040 }
10041 else
10042 puts (dlerror ());
10043
10044 exit (status);
10045 }
10046 EOF
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10052 (./conftest; exit; ) >&5 2>/dev/null
10053 lt_status=$?
10054 case x$lt_status in
10055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10058 esac
10059 else :
10060 # compilation failed
10061 lt_cv_dlopen_self_static=no
10062 fi
10063 fi
10064 rm -fr conftest*
10065
10066
10067 fi
10068 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10069 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10070 fi
10071
10072 CPPFLAGS="$save_CPPFLAGS"
10073 LDFLAGS="$save_LDFLAGS"
10074 LIBS="$save_LIBS"
10075 ;;
10076 esac
10077
10078 case $lt_cv_dlopen_self in
10079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10080 *) enable_dlopen_self=unknown ;;
10081 esac
10082
10083 case $lt_cv_dlopen_self_static in
10084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10085 *) enable_dlopen_self_static=unknown ;;
10086 esac
10087 fi
10088
10089
10090 # Report which library types will actually be built
10091 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10092 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10093 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10094 echo "${ECHO_T}$can_build_shared" >&6; }
10095
10096 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10097 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10098 test "$can_build_shared" = "no" && enable_shared=no
10099
10100 # On AIX, shared libraries and static libraries use the same namespace, and
10101 # are all built from PIC.
10102 case $host_os in
10103 aix3*)
10104 test "$enable_shared" = yes && enable_static=no
10105 if test -n "$RANLIB"; then
10106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10107 postinstall_cmds='$RANLIB $lib'
10108 fi
10109 ;;
10110
10111 aix4* | aix5*)
10112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10113 test "$enable_shared" = yes && enable_static=no
10114 fi
10115 ;;
10116 esac
10117 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10118 echo "${ECHO_T}$enable_shared" >&6; }
10119
10120 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10121 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10122 # Make sure either enable_shared or enable_static is yes.
10123 test "$enable_shared" = yes || enable_static=yes
10124 { echo "$as_me:$LINENO: result: $enable_static" >&5
10125 echo "${ECHO_T}$enable_static" >&6; }
10126
10127 # The else clause should only fire when bootstrapping the
10128 # libtool distribution, otherwise you forgot to ship ltmain.sh
10129 # with your package, and you will get complaints that there are
10130 # no rules to generate ltmain.sh.
10131 if test -f "$ltmain"; then
10132 # See if we are running on zsh, and set the options which allow our commands through
10133 # without removal of \ escapes.
10134 if test -n "${ZSH_VERSION+set}" ; then
10135 setopt NO_GLOB_SUBST
10136 fi
10137 # Now quote all the things that may contain metacharacters while being
10138 # careful not to overquote the AC_SUBSTed values. We take copies of the
10139 # variables and quote the copies for generation of the libtool script.
10140 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10141 SED SHELL STRIP \
10142 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10143 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10144 deplibs_check_method reload_flag reload_cmds need_locks \
10145 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10146 lt_cv_sys_global_symbol_to_c_name_address \
10147 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10148 old_postinstall_cmds old_postuninstall_cmds \
10149 compiler \
10150 CC \
10151 LD \
10152 lt_prog_compiler_wl \
10153 lt_prog_compiler_pic \
10154 lt_prog_compiler_static \
10155 lt_prog_compiler_no_builtin_flag \
10156 export_dynamic_flag_spec \
10157 thread_safe_flag_spec \
10158 whole_archive_flag_spec \
10159 enable_shared_with_static_runtimes \
10160 old_archive_cmds \
10161 old_archive_from_new_cmds \
10162 predep_objects \
10163 postdep_objects \
10164 predeps \
10165 postdeps \
10166 compiler_lib_search_path \
10167 archive_cmds \
10168 archive_expsym_cmds \
10169 postinstall_cmds \
10170 postuninstall_cmds \
10171 old_archive_from_expsyms_cmds \
10172 allow_undefined_flag \
10173 no_undefined_flag \
10174 export_symbols_cmds \
10175 hardcode_libdir_flag_spec \
10176 hardcode_libdir_flag_spec_ld \
10177 hardcode_libdir_separator \
10178 hardcode_automatic \
10179 module_cmds \
10180 module_expsym_cmds \
10181 lt_cv_prog_compiler_c_o \
10182 fix_srcfile_path \
10183 exclude_expsyms \
10184 include_expsyms; do
10185
10186 case $var in
10187 old_archive_cmds | \
10188 old_archive_from_new_cmds | \
10189 archive_cmds | \
10190 archive_expsym_cmds | \
10191 module_cmds | \
10192 module_expsym_cmds | \
10193 old_archive_from_expsyms_cmds | \
10194 export_symbols_cmds | \
10195 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10196 postinstall_cmds | postuninstall_cmds | \
10197 old_postinstall_cmds | old_postuninstall_cmds | \
10198 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10199 # Double-quote double-evaled strings.
10200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10201 ;;
10202 *)
10203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10204 ;;
10205 esac
10206 done
10207
10208 case $lt_echo in
10209 *'\$0 --fallback-echo"')
10210 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10211 ;;
10212 esac
10213
10214 cfgfile="${ofile}T"
10215 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10216 $rm -f "$cfgfile"
10217 { echo "$as_me:$LINENO: creating $ofile" >&5
10218 echo "$as_me: creating $ofile" >&6;}
10219
10220 cat <<__EOF__ >> "$cfgfile"
10221 #! $SHELL
10222
10223 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10224 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10226 #
10227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10228 # Free Software Foundation, Inc.
10229 #
10230 # This file is part of GNU Libtool:
10231 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10232 #
10233 # This program is free software; you can redistribute it and/or modify
10234 # it under the terms of the GNU General Public License as published by
10235 # the Free Software Foundation; either version 2 of the License, or
10236 # (at your option) any later version.
10237 #
10238 # This program is distributed in the hope that it will be useful, but
10239 # WITHOUT ANY WARRANTY; without even the implied warranty of
10240 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10241 # General Public License for more details.
10242 #
10243 # You should have received a copy of the GNU General Public License
10244 # along with this program; if not, write to the Free Software
10245 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10246 #
10247 # As a special exception to the GNU General Public License, if you
10248 # distribute this file as part of a program that contains a
10249 # configuration script generated by Autoconf, you may include it under
10250 # the same distribution terms that you use for the rest of that program.
10251
10252 # A sed program that does not truncate output.
10253 SED=$lt_SED
10254
10255 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10256 Xsed="$SED -e 1s/^X//"
10257
10258 # The HP-UX ksh and POSIX shell print the target directory to stdout
10259 # if CDPATH is set.
10260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10261
10262 # The names of the tagged configurations supported by this script.
10263 available_tags=
10264
10265 # ### BEGIN LIBTOOL CONFIG
10266
10267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10268
10269 # Shell to use when invoking shell scripts.
10270 SHELL=$lt_SHELL
10271
10272 # Whether or not to build shared libraries.
10273 build_libtool_libs=$enable_shared
10274
10275 # Whether or not to build static libraries.
10276 build_old_libs=$enable_static
10277
10278 # Whether or not to add -lc for building shared libraries.
10279 build_libtool_need_lc=$archive_cmds_need_lc
10280
10281 # Whether or not to disallow shared libs when runtime libs are static
10282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10283
10284 # Whether or not to optimize for fast installation.
10285 fast_install=$enable_fast_install
10286
10287 # The host system.
10288 host_alias=$host_alias
10289 host=$host
10290 host_os=$host_os
10291
10292 # The build system.
10293 build_alias=$build_alias
10294 build=$build
10295 build_os=$build_os
10296
10297 # An echo program that does not interpret backslashes.
10298 echo=$lt_echo
10299
10300 # The archiver.
10301 AR=$lt_AR
10302 AR_FLAGS=$lt_AR_FLAGS
10303
10304 # A C compiler.
10305 LTCC=$lt_LTCC
10306
10307 # LTCC compiler flags.
10308 LTCFLAGS=$lt_LTCFLAGS
10309
10310 # A language-specific compiler.
10311 CC=$lt_compiler
10312
10313 # Is the compiler the GNU C compiler?
10314 with_gcc=$GCC
10315
10316 # An ERE matcher.
10317 EGREP=$lt_EGREP
10318
10319 # The linker used to build libraries.
10320 LD=$lt_LD
10321
10322 # Whether we need hard or soft links.
10323 LN_S=$lt_LN_S
10324
10325 # A BSD-compatible nm program.
10326 NM=$lt_NM
10327
10328 # A symbol stripping program
10329 STRIP=$lt_STRIP
10330
10331 # Used to examine libraries when file_magic_cmd begins "file"
10332 MAGIC_CMD=$MAGIC_CMD
10333
10334 # Used on cygwin: DLL creation program.
10335 DLLTOOL="$DLLTOOL"
10336
10337 # Used on cygwin: object dumper.
10338 OBJDUMP="$OBJDUMP"
10339
10340 # Used on cygwin: assembler.
10341 AS="$AS"
10342
10343 # The name of the directory that contains temporary libtool files.
10344 objdir=$objdir
10345
10346 # How to create reloadable object files.
10347 reload_flag=$lt_reload_flag
10348 reload_cmds=$lt_reload_cmds
10349
10350 # How to pass a linker flag through the compiler.
10351 wl=$lt_lt_prog_compiler_wl
10352
10353 # Object file suffix (normally "o").
10354 objext="$ac_objext"
10355
10356 # Old archive suffix (normally "a").
10357 libext="$libext"
10358
10359 # Shared library suffix (normally ".so").
10360 shrext_cmds='$shrext_cmds'
10361
10362 # Executable file suffix (normally "").
10363 exeext="$exeext"
10364
10365 # Additional compiler flags for building library objects.
10366 pic_flag=$lt_lt_prog_compiler_pic
10367 pic_mode=$pic_mode
10368
10369 # What is the maximum length of a command?
10370 max_cmd_len=$lt_cv_sys_max_cmd_len
10371
10372 # Does compiler simultaneously support -c and -o options?
10373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10374
10375 # Must we lock files when doing compilation?
10376 need_locks=$lt_need_locks
10377
10378 # Do we need the lib prefix for modules?
10379 need_lib_prefix=$need_lib_prefix
10380
10381 # Do we need a version for libraries?
10382 need_version=$need_version
10383
10384 # Whether dlopen is supported.
10385 dlopen_support=$enable_dlopen
10386
10387 # Whether dlopen of programs is supported.
10388 dlopen_self=$enable_dlopen_self
10389
10390 # Whether dlopen of statically linked programs is supported.
10391 dlopen_self_static=$enable_dlopen_self_static
10392
10393 # Compiler flag to prevent dynamic linking.
10394 link_static_flag=$lt_lt_prog_compiler_static
10395
10396 # Compiler flag to turn off builtin functions.
10397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10398
10399 # Compiler flag to allow reflexive dlopens.
10400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10401
10402 # Compiler flag to generate shared objects directly from archives.
10403 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10404
10405 # Compiler flag to generate thread-safe objects.
10406 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10407
10408 # Library versioning type.
10409 version_type=$version_type
10410
10411 # Format of library name prefix.
10412 libname_spec=$lt_libname_spec
10413
10414 # List of archive names. First name is the real one, the rest are links.
10415 # The last name is the one that the linker finds with -lNAME.
10416 library_names_spec=$lt_library_names_spec
10417
10418 # The coded name of the library, if different from the real name.
10419 soname_spec=$lt_soname_spec
10420
10421 # Commands used to build and install an old-style archive.
10422 RANLIB=$lt_RANLIB
10423 old_archive_cmds=$lt_old_archive_cmds
10424 old_postinstall_cmds=$lt_old_postinstall_cmds
10425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10426
10427 # Create an old-style archive from a shared archive.
10428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10429
10430 # Create a temporary old-style archive to link instead of a shared archive.
10431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10432
10433 # Commands used to build and install a shared archive.
10434 archive_cmds=$lt_archive_cmds
10435 archive_expsym_cmds=$lt_archive_expsym_cmds
10436 postinstall_cmds=$lt_postinstall_cmds
10437 postuninstall_cmds=$lt_postuninstall_cmds
10438
10439 # Commands used to build a loadable module (assumed same as above if empty)
10440 module_cmds=$lt_module_cmds
10441 module_expsym_cmds=$lt_module_expsym_cmds
10442
10443 # Commands to strip libraries.
10444 old_striplib=$lt_old_striplib
10445 striplib=$lt_striplib
10446
10447 # Dependencies to place before the objects being linked to create a
10448 # shared library.
10449 predep_objects=$lt_predep_objects
10450
10451 # Dependencies to place after the objects being linked to create a
10452 # shared library.
10453 postdep_objects=$lt_postdep_objects
10454
10455 # Dependencies to place before the objects being linked to create a
10456 # shared library.
10457 predeps=$lt_predeps
10458
10459 # Dependencies to place after the objects being linked to create a
10460 # shared library.
10461 postdeps=$lt_postdeps
10462
10463 # The library search path used internally by the compiler when linking
10464 # a shared library.
10465 compiler_lib_search_path=$lt_compiler_lib_search_path
10466
10467 # Method to check whether dependent libraries are shared objects.
10468 deplibs_check_method=$lt_deplibs_check_method
10469
10470 # Command to use when deplibs_check_method == file_magic.
10471 file_magic_cmd=$lt_file_magic_cmd
10472
10473 # Flag that allows shared libraries with undefined symbols to be built.
10474 allow_undefined_flag=$lt_allow_undefined_flag
10475
10476 # Flag that forces no undefined symbols.
10477 no_undefined_flag=$lt_no_undefined_flag
10478
10479 # Commands used to finish a libtool library installation in a directory.
10480 finish_cmds=$lt_finish_cmds
10481
10482 # Same as above, but a single script fragment to be evaled but not shown.
10483 finish_eval=$lt_finish_eval
10484
10485 # Take the output of nm and produce a listing of raw symbols and C names.
10486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10487
10488 # Transform the output of nm in a proper C declaration
10489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10490
10491 # Transform the output of nm in a C name address pair
10492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10493
10494 # This is the shared library runtime path variable.
10495 runpath_var=$runpath_var
10496
10497 # This is the shared library path variable.
10498 shlibpath_var=$shlibpath_var
10499
10500 # Is shlibpath searched before the hard-coded library search path?
10501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10502
10503 # How to hardcode a shared library path into an executable.
10504 hardcode_action=$hardcode_action
10505
10506 # Whether we should hardcode library paths into libraries.
10507 hardcode_into_libs=$hardcode_into_libs
10508
10509 # Flag to hardcode \$libdir into a binary during linking.
10510 # This must work even if \$libdir does not exist.
10511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10512
10513 # If ld is used when linking, flag to hardcode \$libdir into
10514 # a binary during linking. This must work even if \$libdir does
10515 # not exist.
10516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10517
10518 # Whether we need a single -rpath flag with a separated argument.
10519 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10520
10521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10522 # resulting binary.
10523 hardcode_direct=$hardcode_direct
10524
10525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10526 # resulting binary.
10527 hardcode_minus_L=$hardcode_minus_L
10528
10529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10530 # the resulting binary.
10531 hardcode_shlibpath_var=$hardcode_shlibpath_var
10532
10533 # Set to yes if building a shared library automatically hardcodes DIR into the library
10534 # and all subsequent libraries and executables linked against it.
10535 hardcode_automatic=$hardcode_automatic
10536
10537 # Variables whose values should be saved in libtool wrapper scripts and
10538 # restored at relink time.
10539 variables_saved_for_relink="$variables_saved_for_relink"
10540
10541 # Whether libtool must link a program against all its dependency libraries.
10542 link_all_deplibs=$link_all_deplibs
10543
10544 # Compile-time system search path for libraries
10545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10546
10547 # Run-time system search path for libraries
10548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10549
10550 # Fix the shell variable \$srcfile for the compiler.
10551 fix_srcfile_path=$lt_fix_srcfile_path
10552
10553 # Set to yes if exported symbols are required.
10554 always_export_symbols=$always_export_symbols
10555
10556 # The commands to list exported symbols.
10557 export_symbols_cmds=$lt_export_symbols_cmds
10558
10559 # The commands to extract the exported symbol list from a shared archive.
10560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10561
10562 # Symbols that should not be listed in the preloaded symbols.
10563 exclude_expsyms=$lt_exclude_expsyms
10564
10565 # Symbols that must always be exported.
10566 include_expsyms=$lt_include_expsyms
10567
10568 # ### END LIBTOOL CONFIG
10569
10570 __EOF__
10571
10572
10573 case $host_os in
10574 aix3*)
10575 cat <<\EOF >> "$cfgfile"
10576
10577 # AIX sometimes has problems with the GCC collect2 program. For some
10578 # reason, if we set the COLLECT_NAMES environment variable, the problems
10579 # vanish in a puff of smoke.
10580 if test "X${COLLECT_NAMES+set}" != Xset; then
10581 COLLECT_NAMES=
10582 export COLLECT_NAMES
10583 fi
10584 EOF
10585 ;;
10586 esac
10587
10588 # We use sed instead of cat because bash on DJGPP gets confused if
10589 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10590 # text mode, it properly converts lines to CR/LF. This bash problem
10591 # is reportedly fixed, but why not run on old versions too?
10592 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10593
10594 mv -f "$cfgfile" "$ofile" || \
10595 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10596 chmod +x "$ofile"
10597
10598 else
10599 # If there is no Makefile yet, we rely on a make rule to execute
10600 # `config.status --recheck' to rerun these tests and create the
10601 # libtool script then.
10602 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10603 if test -f "$ltmain_in"; then
10604 test -f Makefile && make "$ltmain"
10605 fi
10606 fi
10607
10608
10609 ac_ext=c
10610 ac_cpp='$CPP $CPPFLAGS'
10611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10614
10615 CC="$lt_save_CC"
10616
10617
10618 # Check whether --with-tags was given.
10619 if test "${with_tags+set}" = set; then
10620 withval=$with_tags; tagnames="$withval"
10621 fi
10622
10623
10624 if test -f "$ltmain" && test -n "$tagnames"; then
10625 if test ! -f "${ofile}"; then
10626 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10627 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10628 fi
10629
10630 if test -z "$LTCC"; then
10631 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10632 if test -z "$LTCC"; then
10633 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10634 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10635 else
10636 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10637 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10638 fi
10639 fi
10640 if test -z "$LTCFLAGS"; then
10641 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10642 fi
10643
10644 # Extract list of available tagged configurations in $ofile.
10645 # Note that this assumes the entire list is on one line.
10646 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10647
10648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10649 for tagname in $tagnames; do
10650 IFS="$lt_save_ifs"
10651 # Check whether tagname contains only valid characters
10652 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10653 "") ;;
10654 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10655 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10656 { (exit 1); exit 1; }; }
10657 ;;
10658 esac
10659
10660 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10661 then
10662 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10663 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10664 { (exit 1); exit 1; }; }
10665 fi
10666
10667 # Update the list of available tags.
10668 if test -n "$tagname"; then
10669 echo appending configuration tag \"$tagname\" to $ofile
10670
10671 case $tagname in
10672 CXX)
10673 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10674 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10675 (test "X$CXX" != "Xg++"))) ; then
10676 ac_ext=cpp
10677 ac_cpp='$CXXCPP $CPPFLAGS'
10678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10681
10682
10683
10684
10685 archive_cmds_need_lc_CXX=no
10686 allow_undefined_flag_CXX=
10687 always_export_symbols_CXX=no
10688 archive_expsym_cmds_CXX=
10689 export_dynamic_flag_spec_CXX=
10690 hardcode_direct_CXX=no
10691 hardcode_libdir_flag_spec_CXX=
10692 hardcode_libdir_flag_spec_ld_CXX=
10693 hardcode_libdir_separator_CXX=
10694 hardcode_minus_L_CXX=no
10695 hardcode_shlibpath_var_CXX=unsupported
10696 hardcode_automatic_CXX=no
10697 module_cmds_CXX=
10698 module_expsym_cmds_CXX=
10699 link_all_deplibs_CXX=unknown
10700 old_archive_cmds_CXX=$old_archive_cmds
10701 no_undefined_flag_CXX=
10702 whole_archive_flag_spec_CXX=
10703 enable_shared_with_static_runtimes_CXX=no
10704
10705 # Dependencies to place before and after the object being linked:
10706 predep_objects_CXX=
10707 postdep_objects_CXX=
10708 predeps_CXX=
10709 postdeps_CXX=
10710 compiler_lib_search_path_CXX=
10711
10712 # Source file extension for C++ test sources.
10713 ac_ext=cpp
10714
10715 # Object file extension for compiled C++ test sources.
10716 objext=o
10717 objext_CXX=$objext
10718
10719 # Code to be used in simple compile tests
10720 lt_simple_compile_test_code="int some_variable = 0;"
10721
10722 # Code to be used in simple link tests
10723 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10724
10725 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10726
10727 # If no C compiler was specified, use CC.
10728 LTCC=${LTCC-"$CC"}
10729
10730 # If no C compiler flags were specified, use CFLAGS.
10731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10732
10733 # Allow CC to be a program name with arguments.
10734 compiler=$CC
10735
10736
10737 # save warnings/boilerplate of simple test code
10738 ac_outfile=conftest.$ac_objext
10739 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10741 _lt_compiler_boilerplate=`cat conftest.err`
10742 $rm conftest*
10743
10744 ac_outfile=conftest.$ac_objext
10745 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10747 _lt_linker_boilerplate=`cat conftest.err`
10748 $rm conftest*
10749
10750
10751 # Allow CC to be a program name with arguments.
10752 lt_save_CC=$CC
10753 lt_save_LD=$LD
10754 lt_save_GCC=$GCC
10755 GCC=$GXX
10756 lt_save_with_gnu_ld=$with_gnu_ld
10757 lt_save_path_LD=$lt_cv_path_LD
10758 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10759 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10760 else
10761 $as_unset lt_cv_prog_gnu_ld
10762 fi
10763 if test -n "${lt_cv_path_LDCXX+set}"; then
10764 lt_cv_path_LD=$lt_cv_path_LDCXX
10765 else
10766 $as_unset lt_cv_path_LD
10767 fi
10768 test -z "${LDCXX+set}" || LD=$LDCXX
10769 CC=${CXX-"c++"}
10770 compiler=$CC
10771 compiler_CXX=$CC
10772 for cc_temp in $compiler""; do
10773 case $cc_temp in
10774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10776 \-*) ;;
10777 *) break;;
10778 esac
10779 done
10780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10781
10782
10783 # We don't want -fno-exception wen compiling C++ code, so set the
10784 # no_builtin_flag separately
10785 if test "$GXX" = yes; then
10786 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10787 else
10788 lt_prog_compiler_no_builtin_flag_CXX=
10789 fi
10790
10791 if test "$GXX" = yes; then
10792 # Set up default GNU C++ configuration
10793
10794
10795 # Check whether --with-gnu-ld was given.
10796 if test "${with_gnu_ld+set}" = set; then
10797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10798 else
10799 with_gnu_ld=no
10800 fi
10801
10802 ac_prog=ld
10803 if test "$GCC" = yes; then
10804 # Check if gcc -print-prog-name=ld gives a path.
10805 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10806 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10807 case $host in
10808 *-*-mingw*)
10809 # gcc leaves a trailing carriage return which upsets mingw
10810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10811 *)
10812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10813 esac
10814 case $ac_prog in
10815 # Accept absolute paths.
10816 [\\/]* | ?:[\\/]*)
10817 re_direlt='/[^/][^/]*/\.\./'
10818 # Canonicalize the pathname of ld
10819 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10820 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10821 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10822 done
10823 test -z "$LD" && LD="$ac_prog"
10824 ;;
10825 "")
10826 # If it fails, then pretend we aren't using GCC.
10827 ac_prog=ld
10828 ;;
10829 *)
10830 # If it is relative, then search for the first ld in PATH.
10831 with_gnu_ld=unknown
10832 ;;
10833 esac
10834 elif test "$with_gnu_ld" = yes; then
10835 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10836 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10837 else
10838 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10839 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10840 fi
10841 if test "${lt_cv_path_LD+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844 if test -z "$LD"; then
10845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10846 for ac_dir in $PATH; do
10847 IFS="$lt_save_ifs"
10848 test -z "$ac_dir" && ac_dir=.
10849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10850 lt_cv_path_LD="$ac_dir/$ac_prog"
10851 # Check to see if the program is GNU ld. I'd rather use --version,
10852 # but apparently some variants of GNU ld only accept -v.
10853 # Break only if it was the GNU/non-GNU ld that we prefer.
10854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10855 *GNU* | *'with BFD'*)
10856 test "$with_gnu_ld" != no && break
10857 ;;
10858 *)
10859 test "$with_gnu_ld" != yes && break
10860 ;;
10861 esac
10862 fi
10863 done
10864 IFS="$lt_save_ifs"
10865 else
10866 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10867 fi
10868 fi
10869
10870 LD="$lt_cv_path_LD"
10871 if test -n "$LD"; then
10872 { echo "$as_me:$LINENO: result: $LD" >&5
10873 echo "${ECHO_T}$LD" >&6; }
10874 else
10875 { echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6; }
10877 fi
10878 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10879 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10880 { (exit 1); exit 1; }; }
10881 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10882 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10883 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10887 case `$LD -v 2>&1 </dev/null` in
10888 *GNU* | *'with BFD'*)
10889 lt_cv_prog_gnu_ld=yes
10890 ;;
10891 *)
10892 lt_cv_prog_gnu_ld=no
10893 ;;
10894 esac
10895 fi
10896 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10897 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10898 with_gnu_ld=$lt_cv_prog_gnu_ld
10899
10900
10901
10902 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10903 # archiving commands below assume that GNU ld is being used.
10904 if test "$with_gnu_ld" = yes; then
10905 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10906 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'
10907
10908 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10909 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10910
10911 # If archive_cmds runs LD, not CC, wlarc should be empty
10912 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10913 # investigate it a little bit more. (MM)
10914 wlarc='${wl}'
10915
10916 # ancient GNU ld didn't support --whole-archive et. al.
10917 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10918 grep 'no-whole-archive' > /dev/null; then
10919 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10920 else
10921 whole_archive_flag_spec_CXX=
10922 fi
10923 else
10924 with_gnu_ld=no
10925 wlarc=
10926
10927 # A generic and very simple default shared library creation
10928 # command for GNU C++ for the case where it uses the native
10929 # linker, instead of GNU ld. If possible, this setting should
10930 # overridden to take advantage of the native linker features on
10931 # the platform it is being used on.
10932 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10933 fi
10934
10935 # Commands to make compiler produce verbose output that lists
10936 # what "hidden" libraries, object files and flags are used when
10937 # linking a shared library.
10938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10939
10940 else
10941 GXX=no
10942 with_gnu_ld=no
10943 wlarc=
10944 fi
10945
10946 # PORTME: fill in a description of your system's C++ link characteristics
10947 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10948 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10949 ld_shlibs_CXX=yes
10950 case $host_os in
10951 aix3*)
10952 # FIXME: insert proper C++ library support
10953 ld_shlibs_CXX=no
10954 ;;
10955 aix4* | aix5*)
10956 if test "$host_cpu" = ia64; then
10957 # On IA64, the linker does run time linking by default, so we don't
10958 # have to do anything special.
10959 aix_use_runtimelinking=no
10960 exp_sym_flag='-Bexport'
10961 no_entry_flag=""
10962 else
10963 aix_use_runtimelinking=no
10964
10965 # Test if we are trying to use run time linking or normal
10966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10967 # need to do runtime linking.
10968 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10969 for ld_flag in $LDFLAGS; do
10970 case $ld_flag in
10971 *-brtl*)
10972 aix_use_runtimelinking=yes
10973 break
10974 ;;
10975 esac
10976 done
10977 ;;
10978 esac
10979
10980 exp_sym_flag='-bexport'
10981 no_entry_flag='-bnoentry'
10982 fi
10983
10984 # When large executables or shared objects are built, AIX ld can
10985 # have problems creating the table of contents. If linking a library
10986 # or program results in "error TOC overflow" add -mminimal-toc to
10987 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10988 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10989
10990 archive_cmds_CXX=''
10991 hardcode_direct_CXX=yes
10992 hardcode_libdir_separator_CXX=':'
10993 link_all_deplibs_CXX=yes
10994
10995 if test "$GXX" = yes; then
10996 case $host_os in aix4.[012]|aix4.[012].*)
10997 # We only want to do this on AIX 4.2 and lower, the check
10998 # below for broken collect2 doesn't work under 4.3+
10999 collect2name=`${CC} -print-prog-name=collect2`
11000 if test -f "$collect2name" && \
11001 strings "$collect2name" | grep resolve_lib_name >/dev/null
11002 then
11003 # We have reworked collect2
11004 :
11005 else
11006 # We have old collect2
11007 hardcode_direct_CXX=unsupported
11008 # It fails to find uninstalled libraries when the uninstalled
11009 # path is not listed in the libpath. Setting hardcode_minus_L
11010 # to unsupported forces relinking
11011 hardcode_minus_L_CXX=yes
11012 hardcode_libdir_flag_spec_CXX='-L$libdir'
11013 hardcode_libdir_separator_CXX=
11014 fi
11015 ;;
11016 esac
11017 shared_flag='-shared'
11018 if test "$aix_use_runtimelinking" = yes; then
11019 shared_flag="$shared_flag "'${wl}-G'
11020 fi
11021 else
11022 # not using gcc
11023 if test "$host_cpu" = ia64; then
11024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11025 # chokes on -Wl,-G. The following line is correct:
11026 shared_flag='-G'
11027 else
11028 if test "$aix_use_runtimelinking" = yes; then
11029 shared_flag='${wl}-G'
11030 else
11031 shared_flag='${wl}-bM:SRE'
11032 fi
11033 fi
11034 fi
11035
11036 # It seems that -bexpall does not export symbols beginning with
11037 # underscore (_), so it is better to generate a list of symbols to export.
11038 always_export_symbols_CXX=yes
11039 if test "$aix_use_runtimelinking" = yes; then
11040 # Warning - without using the other runtime loading flags (-brtl),
11041 # -berok will link without error, but may produce a broken library.
11042 allow_undefined_flag_CXX='-berok'
11043 # Determine the default libpath from the value encoded in an empty executable.
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050
11051 int
11052 main ()
11053 {
11054
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (ac_try="$ac_link"
11061 case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_link") 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_cxx_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext &&
11076 $as_test_x conftest$ac_exeext; then
11077
11078 lt_aix_libpath_sed='
11079 /Import File Strings/,/^$/ {
11080 /^0/ {
11081 s/^0 *\(.*\)$/\1/
11082 p
11083 }
11084 }'
11085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11086 # Check for a 64-bit object if we didn't find anything.
11087 if test -z "$aix_libpath"; then
11088 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11089 fi
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11098 conftest$ac_exeext conftest.$ac_ext
11099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11100
11101 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11102
11103 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"
11104 else
11105 if test "$host_cpu" = ia64; then
11106 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11107 allow_undefined_flag_CXX="-z nodefs"
11108 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"
11109 else
11110 # Determine the default libpath from the value encoded in an empty executable.
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117
11118 int
11119 main ()
11120 {
11121
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 rm -f conftest.$ac_objext conftest$ac_exeext
11127 if { (ac_try="$ac_link"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131 esac
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_link") 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_cxx_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest$ac_exeext &&
11143 $as_test_x conftest$ac_exeext; then
11144
11145 lt_aix_libpath_sed='
11146 /Import File Strings/,/^$/ {
11147 /^0/ {
11148 s/^0 *\(.*\)$/\1/
11149 p
11150 }
11151 }'
11152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11153 # Check for a 64-bit object if we didn't find anything.
11154 if test -z "$aix_libpath"; then
11155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11156 fi
11157 else
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11160
11161
11162 fi
11163
11164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11165 conftest$ac_exeext conftest.$ac_ext
11166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11167
11168 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11169 # Warning - without using the other run time loading flags,
11170 # -berok will link without error, but may produce a broken library.
11171 no_undefined_flag_CXX=' ${wl}-bernotok'
11172 allow_undefined_flag_CXX=' ${wl}-berok'
11173 # Exported symbols can be pulled into shared objects from archives
11174 whole_archive_flag_spec_CXX='$convenience'
11175 archive_cmds_need_lc_CXX=yes
11176 # This is similar to how AIX traditionally builds its shared libraries.
11177 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'
11178 fi
11179 fi
11180 ;;
11181
11182 beos*)
11183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11184 allow_undefined_flag_CXX=unsupported
11185 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11186 # support --undefined. This deserves some investigation. FIXME
11187 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11188 else
11189 ld_shlibs_CXX=no
11190 fi
11191 ;;
11192
11193 chorus*)
11194 case $cc_basename in
11195 *)
11196 # FIXME: insert proper C++ library support
11197 ld_shlibs_CXX=no
11198 ;;
11199 esac
11200 ;;
11201
11202 cygwin* | mingw* | pw32*)
11203 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11204 # as there is no search path for DLLs.
11205 hardcode_libdir_flag_spec_CXX='-L$libdir'
11206 allow_undefined_flag_CXX=unsupported
11207 always_export_symbols_CXX=no
11208 enable_shared_with_static_runtimes_CXX=yes
11209
11210 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11211 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'
11212 # If the export-symbols file already is a .def file (1st line
11213 # is EXPORTS), use it as is; otherwise, prepend...
11214 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11215 cp $export_symbols $output_objdir/$soname.def;
11216 else
11217 echo EXPORTS > $output_objdir/$soname.def;
11218 cat $export_symbols >> $output_objdir/$soname.def;
11219 fi~
11220 $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'
11221 else
11222 ld_shlibs_CXX=no
11223 fi
11224 ;;
11225 darwin* | rhapsody*)
11226 case $host_os in
11227 rhapsody* | darwin1.[012])
11228 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11229 ;;
11230 *) # Darwin 1.3 on
11231 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11232 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11233 else
11234 case ${MACOSX_DEPLOYMENT_TARGET} in
11235 10.[012])
11236 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11237 ;;
11238 10.*)
11239 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11240 ;;
11241 esac
11242 fi
11243 ;;
11244 esac
11245 archive_cmds_need_lc_CXX=no
11246 hardcode_direct_CXX=no
11247 hardcode_automatic_CXX=yes
11248 hardcode_shlibpath_var_CXX=unsupported
11249 whole_archive_flag_spec_CXX=''
11250 link_all_deplibs_CXX=yes
11251
11252 if test "$GXX" = yes ; then
11253 lt_int_apple_cc_single_mod=no
11254 output_verbose_link_cmd='echo'
11255 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11256 lt_int_apple_cc_single_mod=yes
11257 fi
11258 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11259 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11260 else
11261 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'
11262 fi
11263 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11265 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11266 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}'
11267 else
11268 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}'
11269 fi
11270 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}'
11271 else
11272 case $cc_basename in
11273 xlc*)
11274 output_verbose_link_cmd='echo'
11275 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11276 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11278 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11279 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}'
11280 ;;
11281 *)
11282 ld_shlibs_CXX=no
11283 ;;
11284 esac
11285 fi
11286 ;;
11287
11288 dgux*)
11289 case $cc_basename in
11290 ec++*)
11291 # FIXME: insert proper C++ library support
11292 ld_shlibs_CXX=no
11293 ;;
11294 ghcx*)
11295 # Green Hills C++ Compiler
11296 # FIXME: insert proper C++ library support
11297 ld_shlibs_CXX=no
11298 ;;
11299 *)
11300 # FIXME: insert proper C++ library support
11301 ld_shlibs_CXX=no
11302 ;;
11303 esac
11304 ;;
11305 freebsd[12]*)
11306 # C++ shared libraries reported to be fairly broken before switch to ELF
11307 ld_shlibs_CXX=no
11308 ;;
11309 freebsd-elf*)
11310 archive_cmds_need_lc_CXX=no
11311 ;;
11312 freebsd* | dragonfly*)
11313 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11314 # conventions
11315 ld_shlibs_CXX=yes
11316 ;;
11317 gnu*)
11318 ;;
11319 hpux9*)
11320 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11321 hardcode_libdir_separator_CXX=:
11322 export_dynamic_flag_spec_CXX='${wl}-E'
11323 hardcode_direct_CXX=yes
11324 hardcode_minus_L_CXX=yes # Not in the search PATH,
11325 # but as the default
11326 # location of the library.
11327
11328 case $cc_basename in
11329 CC*)
11330 # FIXME: insert proper C++ library support
11331 ld_shlibs_CXX=no
11332 ;;
11333 aCC*)
11334 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'
11335 # Commands to make compiler produce verbose output that lists
11336 # what "hidden" libraries, object files and flags are used when
11337 # linking a shared library.
11338 #
11339 # There doesn't appear to be a way to prevent this compiler from
11340 # explicitly linking system object files so we need to strip them
11341 # from the output so that they don't get included in the library
11342 # dependencies.
11343 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'
11344 ;;
11345 *)
11346 if test "$GXX" = yes; then
11347 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'
11348 else
11349 # FIXME: insert proper C++ library support
11350 ld_shlibs_CXX=no
11351 fi
11352 ;;
11353 esac
11354 ;;
11355 hpux10*|hpux11*)
11356 if test $with_gnu_ld = no; then
11357 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11358 hardcode_libdir_separator_CXX=:
11359
11360 case $host_cpu in
11361 hppa*64*|ia64*) ;;
11362 *)
11363 export_dynamic_flag_spec_CXX='${wl}-E'
11364 ;;
11365 esac
11366 fi
11367 case $host_cpu in
11368 hppa*64*|ia64*)
11369 hardcode_direct_CXX=no
11370 hardcode_shlibpath_var_CXX=no
11371 ;;
11372 *)
11373 hardcode_direct_CXX=yes
11374 hardcode_minus_L_CXX=yes # Not in the search PATH,
11375 # but as the default
11376 # location of the library.
11377 ;;
11378 esac
11379
11380 case $cc_basename in
11381 CC*)
11382 # FIXME: insert proper C++ library support
11383 ld_shlibs_CXX=no
11384 ;;
11385 aCC*)
11386 case $host_cpu in
11387 hppa*64*)
11388 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11389 ;;
11390 ia64*)
11391 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392 ;;
11393 *)
11394 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395 ;;
11396 esac
11397 # Commands to make compiler produce verbose output that lists
11398 # what "hidden" libraries, object files and flags are used when
11399 # linking a shared library.
11400 #
11401 # There doesn't appear to be a way to prevent this compiler from
11402 # explicitly linking system object files so we need to strip them
11403 # from the output so that they don't get included in the library
11404 # dependencies.
11405 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'
11406 ;;
11407 *)
11408 if test "$GXX" = yes; then
11409 if test $with_gnu_ld = no; then
11410 case $host_cpu in
11411 hppa*64*)
11412 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11413 ;;
11414 ia64*)
11415 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11416 ;;
11417 *)
11418 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'
11419 ;;
11420 esac
11421 fi
11422 else
11423 # FIXME: insert proper C++ library support
11424 ld_shlibs_CXX=no
11425 fi
11426 ;;
11427 esac
11428 ;;
11429 interix[3-9]*)
11430 hardcode_direct_CXX=no
11431 hardcode_shlibpath_var_CXX=no
11432 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11433 export_dynamic_flag_spec_CXX='${wl}-E'
11434 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11435 # Instead, shared libraries are loaded at an image base (0x10000000 by
11436 # default) and relocated if they conflict, which is a slow very memory
11437 # consuming and fragmenting process. To avoid this, we pick a random,
11438 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11439 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11440 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'
11441 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'
11442 ;;
11443 irix5* | irix6*)
11444 case $cc_basename in
11445 CC*)
11446 # SGI C++
11447 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'
11448
11449 # Archives containing C++ object files must be created using
11450 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11451 # necessary to make sure instantiated templates are included
11452 # in the archive.
11453 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11454 ;;
11455 *)
11456 if test "$GXX" = yes; then
11457 if test "$with_gnu_ld" = no; then
11458 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'
11459 else
11460 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'
11461 fi
11462 fi
11463 link_all_deplibs_CXX=yes
11464 ;;
11465 esac
11466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11467 hardcode_libdir_separator_CXX=:
11468 ;;
11469 linux* | k*bsd*-gnu)
11470 case $cc_basename in
11471 KCC*)
11472 # Kuck and Associates, Inc. (KAI) C++ Compiler
11473
11474 # KCC will only create a shared library if the output file
11475 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11476 # to its proper name (with version) after linking.
11477 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'
11478 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'
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 $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'
11488
11489 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11491
11492 # Archives containing C++ object files must be created using
11493 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11494 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11495 ;;
11496 icpc*)
11497 # Intel C++
11498 with_gnu_ld=yes
11499 # version 8.0 and above of icpc choke on multiply defined symbols
11500 # if we add $predep_objects and $postdep_objects, however 7.1 and
11501 # earlier do not add the objects themselves.
11502 case `$CC -V 2>&1` in
11503 *"Version 7."*)
11504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505 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'
11506 ;;
11507 *) # Version 8.0 or newer
11508 tmp_idyn=
11509 case $host_cpu in
11510 ia64*) tmp_idyn=' -i_dynamic';;
11511 esac
11512 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11513 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'
11514 ;;
11515 esac
11516 archive_cmds_need_lc_CXX=no
11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11519 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11520 ;;
11521 pgCC*)
11522 # Portland Group C++ compiler
11523 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11524 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'
11525
11526 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11528 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'
11529 ;;
11530 cxx*)
11531 # Compaq C++
11532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11533 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'
11534
11535 runpath_var=LD_RUN_PATH
11536 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11537 hardcode_libdir_separator_CXX=:
11538
11539 # Commands to make compiler produce verbose output that lists
11540 # what "hidden" libraries, object files and flags are used when
11541 # linking a shared library.
11542 #
11543 # There doesn't appear to be a way to prevent this compiler from
11544 # explicitly linking system object files so we need to strip them
11545 # from the output so that they don't get included in the library
11546 # dependencies.
11547 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'
11548 ;;
11549 *)
11550 case `$CC -V 2>&1 | sed 5q` in
11551 *Sun\ C*)
11552 # Sun C++ 5.9
11553 no_undefined_flag_CXX=' -zdefs'
11554 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11555 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11556 hardcode_libdir_flag_spec_CXX='-R$libdir'
11557 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11558
11559 # Not sure whether something based on
11560 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11561 # would be better.
11562 output_verbose_link_cmd='echo'
11563
11564 # Archives containing C++ object files must be created using
11565 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11566 # necessary to make sure instantiated templates are included
11567 # in the archive.
11568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11569 ;;
11570 esac
11571 ;;
11572 esac
11573 ;;
11574 lynxos*)
11575 # FIXME: insert proper C++ library support
11576 ld_shlibs_CXX=no
11577 ;;
11578 m88k*)
11579 # FIXME: insert proper C++ library support
11580 ld_shlibs_CXX=no
11581 ;;
11582 mvs*)
11583 case $cc_basename in
11584 cxx*)
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 netbsd*)
11595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11596 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11597 wlarc=
11598 hardcode_libdir_flag_spec_CXX='-R$libdir'
11599 hardcode_direct_CXX=yes
11600 hardcode_shlibpath_var_CXX=no
11601 fi
11602 # Workaround some broken pre-1.5 toolchains
11603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11604 ;;
11605 openbsd2*)
11606 # C++ shared libraries are fairly broken
11607 ld_shlibs_CXX=no
11608 ;;
11609 openbsd*)
11610 if test -f /usr/libexec/ld.so; then
11611 hardcode_direct_CXX=yes
11612 hardcode_shlibpath_var_CXX=no
11613 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11616 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11617 export_dynamic_flag_spec_CXX='${wl}-E'
11618 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11619 fi
11620 output_verbose_link_cmd='echo'
11621 else
11622 ld_shlibs_CXX=no
11623 fi
11624 ;;
11625 osf3*)
11626 case $cc_basename in
11627 KCC*)
11628 # Kuck and Associates, Inc. (KAI) C++ Compiler
11629
11630 # KCC will only create a shared library if the output file
11631 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11632 # to its proper name (with version) after linking.
11633 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'
11634
11635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11636 hardcode_libdir_separator_CXX=:
11637
11638 # Archives containing C++ object files must be created using
11639 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11640 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11641
11642 ;;
11643 RCC*)
11644 # Rational C++ 2.4.1
11645 # FIXME: insert proper C++ library support
11646 ld_shlibs_CXX=no
11647 ;;
11648 cxx*)
11649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11650 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'
11651
11652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11653 hardcode_libdir_separator_CXX=:
11654
11655 # Commands to make compiler produce verbose output that lists
11656 # what "hidden" libraries, object files and flags are used when
11657 # linking a shared library.
11658 #
11659 # There doesn't appear to be a way to prevent this compiler from
11660 # explicitly linking system object files so we need to strip them
11661 # from the output so that they don't get included in the library
11662 # dependencies.
11663 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'
11664 ;;
11665 *)
11666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11668 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'
11669
11670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11671 hardcode_libdir_separator_CXX=:
11672
11673 # Commands to make compiler produce verbose output that lists
11674 # what "hidden" libraries, object files and flags are used when
11675 # linking a shared library.
11676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11677
11678 else
11679 # FIXME: insert proper C++ library support
11680 ld_shlibs_CXX=no
11681 fi
11682 ;;
11683 esac
11684 ;;
11685 osf4* | osf5*)
11686 case $cc_basename in
11687 KCC*)
11688 # Kuck and Associates, Inc. (KAI) C++ Compiler
11689
11690 # KCC will only create a shared library if the output file
11691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11692 # to its proper name (with version) after linking.
11693 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11694
11695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11696 hardcode_libdir_separator_CXX=:
11697
11698 # Archives containing C++ object files must be created using
11699 # the KAI C++ compiler.
11700 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11701 ;;
11702 RCC*)
11703 # Rational C++ 2.4.1
11704 # FIXME: insert proper C++ library support
11705 ld_shlibs_CXX=no
11706 ;;
11707 cxx*)
11708 allow_undefined_flag_CXX=' -expect_unresolved \*'
11709 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'
11710 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11711 echo "-hidden">> $lib.exp~
11712 $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~
11713 $rm $lib.exp'
11714
11715 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11716 hardcode_libdir_separator_CXX=:
11717
11718 # Commands to make compiler produce verbose output that lists
11719 # what "hidden" libraries, object files and flags are used when
11720 # linking a shared library.
11721 #
11722 # There doesn't appear to be a way to prevent this compiler from
11723 # explicitly linking system object files so we need to strip them
11724 # from the output so that they don't get included in the library
11725 # dependencies.
11726 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'
11727 ;;
11728 *)
11729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11731 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'
11732
11733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11734 hardcode_libdir_separator_CXX=:
11735
11736 # Commands to make compiler produce verbose output that lists
11737 # what "hidden" libraries, object files and flags are used when
11738 # linking a shared library.
11739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11740
11741 else
11742 # FIXME: insert proper C++ library support
11743 ld_shlibs_CXX=no
11744 fi
11745 ;;
11746 esac
11747 ;;
11748 psos*)
11749 # FIXME: insert proper C++ library support
11750 ld_shlibs_CXX=no
11751 ;;
11752 sunos4*)
11753 case $cc_basename in
11754 CC*)
11755 # Sun C++ 4.x
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11758 ;;
11759 lcc*)
11760 # Lucid
11761 # FIXME: insert proper C++ library support
11762 ld_shlibs_CXX=no
11763 ;;
11764 *)
11765 # FIXME: insert proper C++ library support
11766 ld_shlibs_CXX=no
11767 ;;
11768 esac
11769 ;;
11770 solaris*)
11771 case $cc_basename in
11772 CC*)
11773 # Sun C++ 4.2, 5.x and Centerline C++
11774 archive_cmds_need_lc_CXX=yes
11775 no_undefined_flag_CXX=' -zdefs'
11776 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11777 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11778 $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'
11779
11780 hardcode_libdir_flag_spec_CXX='-R$libdir'
11781 hardcode_shlibpath_var_CXX=no
11782 case $host_os in
11783 solaris2.[0-5] | solaris2.[0-5].*) ;;
11784 *)
11785 # The compiler driver will combine and reorder linker options,
11786 # but understands `-z linker_flag'.
11787 # Supported since Solaris 2.6 (maybe 2.5.1?)
11788 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11789 ;;
11790 esac
11791 link_all_deplibs_CXX=yes
11792
11793 output_verbose_link_cmd='echo'
11794
11795 # Archives containing C++ object files must be created using
11796 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11797 # necessary to make sure instantiated templates are included
11798 # in the archive.
11799 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11800 ;;
11801 gcx*)
11802 # Green Hills C++ Compiler
11803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11804
11805 # The C++ compiler must be used to create the archive.
11806 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11807 ;;
11808 *)
11809 # GNU C++ compiler with Solaris linker
11810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11811 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11812 if $CC --version | grep -v '^2\.7' > /dev/null; then
11813 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11814 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11815 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11816
11817 # Commands to make compiler produce verbose output that lists
11818 # what "hidden" libraries, object files and flags are used when
11819 # linking a shared library.
11820 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11821 else
11822 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11823 # platform.
11824 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11825 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11826 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11827
11828 # Commands to make compiler produce verbose output that lists
11829 # what "hidden" libraries, object files and flags are used when
11830 # linking a shared library.
11831 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11832 fi
11833
11834 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11835 case $host_os in
11836 solaris2.[0-5] | solaris2.[0-5].*) ;;
11837 *)
11838 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11839 ;;
11840 esac
11841 fi
11842 ;;
11843 esac
11844 ;;
11845 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11846 no_undefined_flag_CXX='${wl}-z,text'
11847 archive_cmds_need_lc_CXX=no
11848 hardcode_shlibpath_var_CXX=no
11849 runpath_var='LD_RUN_PATH'
11850
11851 case $cc_basename in
11852 CC*)
11853 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11854 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11855 ;;
11856 *)
11857 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11859 ;;
11860 esac
11861 ;;
11862 sysv5* | sco3.2v5* | sco5v6*)
11863 # Note: We can NOT use -z defs as we might desire, because we do not
11864 # link with -lc, and that would cause any symbols used from libc to
11865 # always be unresolved, which means just about no library would
11866 # ever link correctly. If we're not using GNU ld we use -z text
11867 # though, which does catch some bad symbols but isn't as heavy-handed
11868 # as -z defs.
11869 # For security reasons, it is highly recommended that you always
11870 # use absolute paths for naming shared libraries, and exclude the
11871 # DT_RUNPATH tag from executables and libraries. But doing so
11872 # requires that you compile everything twice, which is a pain.
11873 # So that behaviour is only enabled if SCOABSPATH is set to a
11874 # non-empty value in the environment. Most likely only useful for
11875 # creating official distributions of packages.
11876 # This is a hack until libtool officially supports absolute path
11877 # names for shared libraries.
11878 no_undefined_flag_CXX='${wl}-z,text'
11879 allow_undefined_flag_CXX='${wl}-z,nodefs'
11880 archive_cmds_need_lc_CXX=no
11881 hardcode_shlibpath_var_CXX=no
11882 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11883 hardcode_libdir_separator_CXX=':'
11884 link_all_deplibs_CXX=yes
11885 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11886 runpath_var='LD_RUN_PATH'
11887
11888 case $cc_basename in
11889 CC*)
11890 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11891 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11892 ;;
11893 *)
11894 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11895 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 ;;
11897 esac
11898 ;;
11899 tandem*)
11900 case $cc_basename in
11901 NCC*)
11902 # NonStop-UX NCC 3.20
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
11905 ;;
11906 *)
11907 # FIXME: insert proper C++ library support
11908 ld_shlibs_CXX=no
11909 ;;
11910 esac
11911 ;;
11912 vxworks*)
11913 # FIXME: insert proper C++ library support
11914 ld_shlibs_CXX=no
11915 ;;
11916 *)
11917 # FIXME: insert proper C++ library support
11918 ld_shlibs_CXX=no
11919 ;;
11920 esac
11921 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11922 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11923 test "$ld_shlibs_CXX" = no && can_build_shared=no
11924
11925 GCC_CXX="$GXX"
11926 LD_CXX="$LD"
11927
11928
11929 cat > conftest.$ac_ext <<EOF
11930 class Foo
11931 {
11932 public:
11933 Foo (void) { a = 0; }
11934 private:
11935 int a;
11936 };
11937 EOF
11938
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; then
11944 # Parse the compiler output and extract the necessary
11945 # objects, libraries and library flags.
11946
11947 # Sentinel used to keep track of whether or not we are before
11948 # the conftest object file.
11949 pre_test_object_deps_done=no
11950
11951 # The `*' in the case matches for architectures that use `case' in
11952 # $output_verbose_cmd can trigger glob expansion during the loop
11953 # eval without this substitution.
11954 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11955
11956 for p in `eval $output_verbose_link_cmd`; do
11957 case $p in
11958
11959 -L* | -R* | -l*)
11960 # Some compilers place space between "-{L,R}" and the path.
11961 # Remove the space.
11962 if test $p = "-L" \
11963 || test $p = "-R"; then
11964 prev=$p
11965 continue
11966 else
11967 prev=
11968 fi
11969
11970 if test "$pre_test_object_deps_done" = no; then
11971 case $p in
11972 -L* | -R*)
11973 # Internal compiler library paths should come after those
11974 # provided the user. The postdeps already come after the
11975 # user supplied libs so there is no need to process them.
11976 if test -z "$compiler_lib_search_path_CXX"; then
11977 compiler_lib_search_path_CXX="${prev}${p}"
11978 else
11979 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11980 fi
11981 ;;
11982 # The "-l" case would never come before the object being
11983 # linked, so don't bother handling this case.
11984 esac
11985 else
11986 if test -z "$postdeps_CXX"; then
11987 postdeps_CXX="${prev}${p}"
11988 else
11989 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11990 fi
11991 fi
11992 ;;
11993
11994 *.$objext)
11995 # This assumes that the test object file only shows up
11996 # once in the compiler output.
11997 if test "$p" = "conftest.$objext"; then
11998 pre_test_object_deps_done=yes
11999 continue
12000 fi
12001
12002 if test "$pre_test_object_deps_done" = no; then
12003 if test -z "$predep_objects_CXX"; then
12004 predep_objects_CXX="$p"
12005 else
12006 predep_objects_CXX="$predep_objects_CXX $p"
12007 fi
12008 else
12009 if test -z "$postdep_objects_CXX"; then
12010 postdep_objects_CXX="$p"
12011 else
12012 postdep_objects_CXX="$postdep_objects_CXX $p"
12013 fi
12014 fi
12015 ;;
12016
12017 *) ;; # Ignore the rest.
12018
12019 esac
12020 done
12021
12022 # Clean up.
12023 rm -f a.out a.exe
12024 else
12025 echo "libtool.m4: error: problem compiling CXX test program"
12026 fi
12027
12028 $rm -f confest.$objext
12029
12030 # PORTME: override above test on systems where it is broken
12031 case $host_os in
12032 interix[3-9]*)
12033 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12034 # hack all around it, let's just trust "g++" to DTRT.
12035 predep_objects_CXX=
12036 postdep_objects_CXX=
12037 postdeps_CXX=
12038 ;;
12039
12040 linux*)
12041 case `$CC -V 2>&1 | sed 5q` in
12042 *Sun\ C*)
12043 # Sun C++ 5.9
12044 #
12045 # The more standards-conforming stlport4 library is
12046 # incompatible with the Cstd library. Avoid specifying
12047 # it if it's in CXXFLAGS. Ignore libCrun as
12048 # -library=stlport4 depends on it.
12049 case " $CXX $CXXFLAGS " in
12050 *" -library=stlport4 "*)
12051 solaris_use_stlport4=yes
12052 ;;
12053 esac
12054 if test "$solaris_use_stlport4" != yes; then
12055 postdeps_CXX='-library=Cstd -library=Crun'
12056 fi
12057 ;;
12058 esac
12059 ;;
12060
12061 solaris*)
12062 case $cc_basename in
12063 CC*)
12064 # The more standards-conforming stlport4 library is
12065 # incompatible with the Cstd library. Avoid specifying
12066 # it if it's in CXXFLAGS. Ignore libCrun as
12067 # -library=stlport4 depends on it.
12068 case " $CXX $CXXFLAGS " in
12069 *" -library=stlport4 "*)
12070 solaris_use_stlport4=yes
12071 ;;
12072 esac
12073
12074 # Adding this requires a known-good setup of shared libraries for
12075 # Sun compiler versions before 5.6, else PIC objects from an old
12076 # archive will be linked into the output, leading to subtle bugs.
12077 if test "$solaris_use_stlport4" != yes; then
12078 postdeps_CXX='-library=Cstd -library=Crun'
12079 fi
12080 ;;
12081 esac
12082 ;;
12083 esac
12084
12085
12086 case " $postdeps_CXX " in
12087 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12088 esac
12089
12090 lt_prog_compiler_wl_CXX=
12091 lt_prog_compiler_pic_CXX=
12092 lt_prog_compiler_static_CXX=
12093
12094 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12095 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12096
12097 # C++ specific cases for pic, static, wl, etc.
12098 if test "$GXX" = yes; then
12099 lt_prog_compiler_wl_CXX='-Wl,'
12100 lt_prog_compiler_static_CXX='-static'
12101
12102 case $host_os in
12103 aix*)
12104 # All AIX code is PIC.
12105 if test "$host_cpu" = ia64; then
12106 # AIX 5 now supports IA64 processor
12107 lt_prog_compiler_static_CXX='-Bstatic'
12108 fi
12109 ;;
12110 amigaos*)
12111 # FIXME: we need at least 68020 code to build shared libraries, but
12112 # adding the `-m68020' flag to GCC prevents building anything better,
12113 # like `-m68040'.
12114 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12115 ;;
12116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12117 # PIC is the default for these OSes.
12118 ;;
12119 mingw* | cygwin* | os2* | pw32*)
12120 # This hack is so that the source file can tell whether it is being
12121 # built for inclusion in a dll (and should export symbols for example).
12122 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12123 # (--disable-auto-import) libraries
12124 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12125 ;;
12126 darwin* | rhapsody*)
12127 # PIC is the default on this platform
12128 # Common symbols not allowed in MH_DYLIB files
12129 lt_prog_compiler_pic_CXX='-fno-common'
12130 ;;
12131 *djgpp*)
12132 # DJGPP does not support shared libraries at all
12133 lt_prog_compiler_pic_CXX=
12134 ;;
12135 interix[3-9]*)
12136 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12137 # Instead, we relocate shared libraries at runtime.
12138 ;;
12139 sysv4*MP*)
12140 if test -d /usr/nec; then
12141 lt_prog_compiler_pic_CXX=-Kconform_pic
12142 fi
12143 ;;
12144 hpux*)
12145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12146 # not for PA HP-UX.
12147 case $host_cpu in
12148 hppa*64*|ia64*)
12149 ;;
12150 *)
12151 lt_prog_compiler_pic_CXX='-fPIC'
12152 ;;
12153 esac
12154 ;;
12155 *)
12156 lt_prog_compiler_pic_CXX='-fPIC'
12157 ;;
12158 esac
12159 else
12160 case $host_os in
12161 aix4* | aix5*)
12162 # All AIX code is PIC.
12163 if test "$host_cpu" = ia64; then
12164 # AIX 5 now supports IA64 processor
12165 lt_prog_compiler_static_CXX='-Bstatic'
12166 else
12167 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12168 fi
12169 ;;
12170 chorus*)
12171 case $cc_basename in
12172 cxch68*)
12173 # Green Hills C++ Compiler
12174 # _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"
12175 ;;
12176 esac
12177 ;;
12178 darwin*)
12179 # PIC is the default on this platform
12180 # Common symbols not allowed in MH_DYLIB files
12181 case $cc_basename in
12182 xlc*)
12183 lt_prog_compiler_pic_CXX='-qnocommon'
12184 lt_prog_compiler_wl_CXX='-Wl,'
12185 ;;
12186 esac
12187 ;;
12188 dgux*)
12189 case $cc_basename in
12190 ec++*)
12191 lt_prog_compiler_pic_CXX='-KPIC'
12192 ;;
12193 ghcx*)
12194 # Green Hills C++ Compiler
12195 lt_prog_compiler_pic_CXX='-pic'
12196 ;;
12197 *)
12198 ;;
12199 esac
12200 ;;
12201 freebsd* | dragonfly*)
12202 # FreeBSD uses GNU C++
12203 ;;
12204 hpux9* | hpux10* | hpux11*)
12205 case $cc_basename in
12206 CC*)
12207 lt_prog_compiler_wl_CXX='-Wl,'
12208 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12209 if test "$host_cpu" != ia64; then
12210 lt_prog_compiler_pic_CXX='+Z'
12211 fi
12212 ;;
12213 aCC*)
12214 lt_prog_compiler_wl_CXX='-Wl,'
12215 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12216 case $host_cpu in
12217 hppa*64*|ia64*)
12218 # +Z the default
12219 ;;
12220 *)
12221 lt_prog_compiler_pic_CXX='+Z'
12222 ;;
12223 esac
12224 ;;
12225 *)
12226 ;;
12227 esac
12228 ;;
12229 interix*)
12230 # This is c89, which is MS Visual C++ (no shared libs)
12231 # Anyone wants to do a port?
12232 ;;
12233 irix5* | irix6* | nonstopux*)
12234 case $cc_basename in
12235 CC*)
12236 lt_prog_compiler_wl_CXX='-Wl,'
12237 lt_prog_compiler_static_CXX='-non_shared'
12238 # CC pic flag -KPIC is the default.
12239 ;;
12240 *)
12241 ;;
12242 esac
12243 ;;
12244 linux* | k*bsd*-gnu)
12245 case $cc_basename in
12246 KCC*)
12247 # KAI C++ Compiler
12248 lt_prog_compiler_wl_CXX='--backend -Wl,'
12249 lt_prog_compiler_pic_CXX='-fPIC'
12250 ;;
12251 icpc* | ecpc*)
12252 # Intel C++
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_pic_CXX='-KPIC'
12255 lt_prog_compiler_static_CXX='-static'
12256 ;;
12257 pgCC*)
12258 # Portland Group C++ compiler.
12259 lt_prog_compiler_wl_CXX='-Wl,'
12260 lt_prog_compiler_pic_CXX='-fpic'
12261 lt_prog_compiler_static_CXX='-Bstatic'
12262 ;;
12263 cxx*)
12264 # Compaq C++
12265 # Make sure the PIC flag is empty. It appears that all Alpha
12266 # Linux and Compaq Tru64 Unix objects are PIC.
12267 lt_prog_compiler_pic_CXX=
12268 lt_prog_compiler_static_CXX='-non_shared'
12269 ;;
12270 *)
12271 case `$CC -V 2>&1 | sed 5q` in
12272 *Sun\ C*)
12273 # Sun C++ 5.9
12274 lt_prog_compiler_pic_CXX='-KPIC'
12275 lt_prog_compiler_static_CXX='-Bstatic'
12276 lt_prog_compiler_wl_CXX='-Qoption ld '
12277 ;;
12278 esac
12279 ;;
12280 esac
12281 ;;
12282 lynxos*)
12283 ;;
12284 m88k*)
12285 ;;
12286 mvs*)
12287 case $cc_basename in
12288 cxx*)
12289 lt_prog_compiler_pic_CXX='-W c,exportall'
12290 ;;
12291 *)
12292 ;;
12293 esac
12294 ;;
12295 netbsd*)
12296 ;;
12297 osf3* | osf4* | osf5*)
12298 case $cc_basename in
12299 KCC*)
12300 lt_prog_compiler_wl_CXX='--backend -Wl,'
12301 ;;
12302 RCC*)
12303 # Rational C++ 2.4.1
12304 lt_prog_compiler_pic_CXX='-pic'
12305 ;;
12306 cxx*)
12307 # Digital/Compaq C++
12308 lt_prog_compiler_wl_CXX='-Wl,'
12309 # Make sure the PIC flag is empty. It appears that all Alpha
12310 # Linux and Compaq Tru64 Unix objects are PIC.
12311 lt_prog_compiler_pic_CXX=
12312 lt_prog_compiler_static_CXX='-non_shared'
12313 ;;
12314 *)
12315 ;;
12316 esac
12317 ;;
12318 psos*)
12319 ;;
12320 solaris*)
12321 case $cc_basename in
12322 CC*)
12323 # Sun C++ 4.2, 5.x and Centerline C++
12324 lt_prog_compiler_pic_CXX='-KPIC'
12325 lt_prog_compiler_static_CXX='-Bstatic'
12326 lt_prog_compiler_wl_CXX='-Qoption ld '
12327 ;;
12328 gcx*)
12329 # Green Hills C++ Compiler
12330 lt_prog_compiler_pic_CXX='-PIC'
12331 ;;
12332 *)
12333 ;;
12334 esac
12335 ;;
12336 sunos4*)
12337 case $cc_basename in
12338 CC*)
12339 # Sun C++ 4.x
12340 lt_prog_compiler_pic_CXX='-pic'
12341 lt_prog_compiler_static_CXX='-Bstatic'
12342 ;;
12343 lcc*)
12344 # Lucid
12345 lt_prog_compiler_pic_CXX='-pic'
12346 ;;
12347 *)
12348 ;;
12349 esac
12350 ;;
12351 tandem*)
12352 case $cc_basename in
12353 NCC*)
12354 # NonStop-UX NCC 3.20
12355 lt_prog_compiler_pic_CXX='-KPIC'
12356 ;;
12357 *)
12358 ;;
12359 esac
12360 ;;
12361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12362 case $cc_basename in
12363 CC*)
12364 lt_prog_compiler_wl_CXX='-Wl,'
12365 lt_prog_compiler_pic_CXX='-KPIC'
12366 lt_prog_compiler_static_CXX='-Bstatic'
12367 ;;
12368 esac
12369 ;;
12370 vxworks*)
12371 ;;
12372 *)
12373 lt_prog_compiler_can_build_shared_CXX=no
12374 ;;
12375 esac
12376 fi
12377
12378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12379 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12380
12381 #
12382 # Check to make sure the PIC flag actually works.
12383 #
12384 if test -n "$lt_prog_compiler_pic_CXX"; then
12385
12386 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12387 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12388 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 lt_prog_compiler_pic_works_CXX=no
12392 ac_outfile=conftest.$ac_objext
12393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12394 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12395 # Insert the option either (1) after the last *FLAGS variable, or
12396 # (2) before a word containing "conftest.", or (3) at the end.
12397 # Note that $ac_compile itself does not contain backslashes and begins
12398 # with a dollar sign (not a hyphen), so the echo should work correctly.
12399 # The option is referenced via a variable to avoid confusing sed.
12400 lt_compile=`echo "$ac_compile" | $SED \
12401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12403 -e 's:$: $lt_compiler_flag:'`
12404 (eval echo "\"\$as_me:12404: $lt_compile\"" >&5)
12405 (eval "$lt_compile" 2>conftest.err)
12406 ac_status=$?
12407 cat conftest.err >&5
12408 echo "$as_me:12408: \$? = $ac_status" >&5
12409 if (exit $ac_status) && test -s "$ac_outfile"; then
12410 # The compiler can only warn and ignore the option if not recognized
12411 # So say no if there are warnings other than the usual output.
12412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12415 lt_prog_compiler_pic_works_CXX=yes
12416 fi
12417 fi
12418 $rm conftest*
12419
12420 fi
12421 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12422 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12423
12424 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12425 case $lt_prog_compiler_pic_CXX in
12426 "" | " "*) ;;
12427 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12428 esac
12429 else
12430 lt_prog_compiler_pic_CXX=
12431 lt_prog_compiler_can_build_shared_CXX=no
12432 fi
12433
12434 fi
12435 case $host_os in
12436 # For platforms which do not support PIC, -DPIC is meaningless:
12437 *djgpp*)
12438 lt_prog_compiler_pic_CXX=
12439 ;;
12440 *)
12441 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12442 ;;
12443 esac
12444
12445 #
12446 # Check to make sure the static flag actually works.
12447 #
12448 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12449 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12450 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12451 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454 lt_prog_compiler_static_works_CXX=no
12455 save_LDFLAGS="$LDFLAGS"
12456 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12457 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12459 # The linker can only warn and ignore the option if not recognized
12460 # So say no if there are warnings
12461 if test -s conftest.err; then
12462 # Append any errors to the config.log.
12463 cat conftest.err 1>&5
12464 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466 if diff conftest.exp conftest.er2 >/dev/null; then
12467 lt_prog_compiler_static_works_CXX=yes
12468 fi
12469 else
12470 lt_prog_compiler_static_works_CXX=yes
12471 fi
12472 fi
12473 $rm conftest*
12474 LDFLAGS="$save_LDFLAGS"
12475
12476 fi
12477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12478 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12479
12480 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12481 :
12482 else
12483 lt_prog_compiler_static_CXX=
12484 fi
12485
12486
12487 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12488 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12489 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492 lt_cv_prog_compiler_c_o_CXX=no
12493 $rm -r conftest 2>/dev/null
12494 mkdir conftest
12495 cd conftest
12496 mkdir out
12497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12498
12499 lt_compiler_flag="-o out/conftest2.$ac_objext"
12500 # Insert the option either (1) after the last *FLAGS variable, or
12501 # (2) before a word containing "conftest.", or (3) at the end.
12502 # Note that $ac_compile itself does not contain backslashes and begins
12503 # with a dollar sign (not a hyphen), so the echo should work correctly.
12504 lt_compile=`echo "$ac_compile" | $SED \
12505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12507 -e 's:$: $lt_compiler_flag:'`
12508 (eval echo "\"\$as_me:12508: $lt_compile\"" >&5)
12509 (eval "$lt_compile" 2>out/conftest.err)
12510 ac_status=$?
12511 cat out/conftest.err >&5
12512 echo "$as_me:12512: \$? = $ac_status" >&5
12513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12514 then
12515 # The compiler can only warn and ignore the option if not recognized
12516 # So say no if there are warnings
12517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12520 lt_cv_prog_compiler_c_o_CXX=yes
12521 fi
12522 fi
12523 chmod u+w . 2>&5
12524 $rm conftest*
12525 # SGI C++ compiler will create directory out/ii_files/ for
12526 # template instantiation
12527 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12528 $rm out/* && rmdir out
12529 cd ..
12530 rmdir conftest
12531 $rm conftest*
12532
12533 fi
12534 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12535 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12536
12537
12538 hard_links="nottested"
12539 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12540 # do not overwrite the value of need_locks provided by the user
12541 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12542 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12543 hard_links=yes
12544 $rm conftest*
12545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12546 touch conftest.a
12547 ln conftest.a conftest.b 2>&5 || hard_links=no
12548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12549 { echo "$as_me:$LINENO: result: $hard_links" >&5
12550 echo "${ECHO_T}$hard_links" >&6; }
12551 if test "$hard_links" = no; then
12552 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12553 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12554 need_locks=warn
12555 fi
12556 else
12557 need_locks=no
12558 fi
12559
12560 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12561 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12562
12563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12564 case $host_os in
12565 aix4* | aix5*)
12566 # If we're using GNU nm, then we don't want the "-C" option.
12567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12569 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'
12570 else
12571 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'
12572 fi
12573 ;;
12574 pw32*)
12575 export_symbols_cmds_CXX="$ltdll_cmds"
12576 ;;
12577 cygwin* | mingw*)
12578 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'
12579 ;;
12580 *)
12581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12582 ;;
12583 esac
12584
12585 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12586 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12587 test "$ld_shlibs_CXX" = no && can_build_shared=no
12588
12589 #
12590 # Do we need to explicitly link libc?
12591 #
12592 case "x$archive_cmds_need_lc_CXX" in
12593 x|xyes)
12594 # Assume -lc should be added
12595 archive_cmds_need_lc_CXX=yes
12596
12597 if test "$enable_shared" = yes && test "$GCC" = yes; then
12598 case $archive_cmds_CXX in
12599 *'~'*)
12600 # FIXME: we may have to deal with multi-command sequences.
12601 ;;
12602 '$CC '*)
12603 # Test whether the compiler implicitly links with -lc since on some
12604 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12605 # to ld, don't add -lc before -lgcc.
12606 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12607 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12608 $rm conftest*
12609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12610
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } 2>conftest.err; then
12616 soname=conftest
12617 lib=conftest
12618 libobjs=conftest.$ac_objext
12619 deplibs=
12620 wl=$lt_prog_compiler_wl_CXX
12621 pic_flag=$lt_prog_compiler_pic_CXX
12622 compiler_flags=-v
12623 linker_flags=-v
12624 verstring=
12625 output_objdir=.
12626 libname=conftest
12627 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12628 allow_undefined_flag_CXX=
12629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12630 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }
12634 then
12635 archive_cmds_need_lc_CXX=no
12636 else
12637 archive_cmds_need_lc_CXX=yes
12638 fi
12639 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12640 else
12641 cat conftest.err 1>&5
12642 fi
12643 $rm conftest*
12644 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12645 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12646 ;;
12647 esac
12648 fi
12649 ;;
12650 esac
12651
12652 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12654 library_names_spec=
12655 libname_spec='lib$name'
12656 soname_spec=
12657 shrext_cmds=".so"
12658 postinstall_cmds=
12659 postuninstall_cmds=
12660 finish_cmds=
12661 finish_eval=
12662 shlibpath_var=
12663 shlibpath_overrides_runpath=unknown
12664 version_type=none
12665 dynamic_linker="$host_os ld.so"
12666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12667
12668 need_lib_prefix=unknown
12669 hardcode_into_libs=no
12670
12671 # when you set need_version to no, make sure it does not cause -set_version
12672 # flags to be left without arguments
12673 need_version=unknown
12674
12675 case $host_os in
12676 aix3*)
12677 version_type=linux
12678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12679 shlibpath_var=LIBPATH
12680
12681 # AIX 3 has no versioning support, so we append a major version to the name.
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 ;;
12684
12685 aix4* | aix5*)
12686 version_type=linux
12687 need_lib_prefix=no
12688 need_version=no
12689 hardcode_into_libs=yes
12690 if test "$host_cpu" = ia64; then
12691 # AIX 5 supports IA64
12692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 else
12695 # With GCC up to 2.95.x, collect2 would create an import file
12696 # for dependence libraries. The import file would start with
12697 # the line `#! .'. This would cause the generated library to
12698 # depend on `.', always an invalid library. This was fixed in
12699 # development snapshots of GCC prior to 3.0.
12700 case $host_os in
12701 aix4 | aix4.[01] | aix4.[01].*)
12702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12703 echo ' yes '
12704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12705 :
12706 else
12707 can_build_shared=no
12708 fi
12709 ;;
12710 esac
12711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12712 # soname into executable. Probably we can add versioning support to
12713 # collect2, so additional links can be useful in future.
12714 if test "$aix_use_runtimelinking" = yes; then
12715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12716 # instead of lib<name>.a to let people know that these are not
12717 # typical AIX shared libraries.
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12719 else
12720 # We preserve .a as extension for shared libraries through AIX4.2
12721 # and later when we are not doing run time linking.
12722 library_names_spec='${libname}${release}.a $libname.a'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 fi
12725 shlibpath_var=LIBPATH
12726 fi
12727 ;;
12728
12729 amigaos*)
12730 library_names_spec='$libname.ixlibrary $libname.a'
12731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12732 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'
12733 ;;
12734
12735 beos*)
12736 library_names_spec='${libname}${shared_ext}'
12737 dynamic_linker="$host_os ld.so"
12738 shlibpath_var=LIBRARY_PATH
12739 ;;
12740
12741 bsdi[45]*)
12742 version_type=linux
12743 need_version=no
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12745 soname_spec='${libname}${release}${shared_ext}$major'
12746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12747 shlibpath_var=LD_LIBRARY_PATH
12748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12750 # the default ld.so.conf also contains /usr/contrib/lib and
12751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12752 # libtool to hard-code these into programs
12753 ;;
12754
12755 cygwin* | mingw* | pw32*)
12756 version_type=windows
12757 shrext_cmds=".dll"
12758 need_version=no
12759 need_lib_prefix=no
12760
12761 case $GCC,$host_os in
12762 yes,cygwin* | yes,mingw* | yes,pw32*)
12763 library_names_spec='$libname.dll.a'
12764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12765 postinstall_cmds='base_file=`basename \${file}`~
12766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12767 dldir=$destdir/`dirname \$dlpath`~
12768 test -d \$dldir || mkdir -p \$dldir~
12769 $install_prog $dir/$dlname \$dldir/$dlname~
12770 chmod a+x \$dldir/$dlname'
12771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12772 dlpath=$dir/\$dldll~
12773 $rm \$dlpath'
12774 shlibpath_overrides_runpath=yes
12775
12776 case $host_os in
12777 cygwin*)
12778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12780 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12781 ;;
12782 mingw*)
12783 # MinGW DLLs use traditional 'lib' prefix
12784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12786 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12787 # It is most probably a Windows format PATH printed by
12788 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12789 # path with ; separators, and with drive letters. We can handle the
12790 # drive letters (cygwin fileutils understands them), so leave them,
12791 # especially as we might pass files found there to a mingw objdump,
12792 # which wouldn't understand a cygwinified path. Ahh.
12793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12794 else
12795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12796 fi
12797 ;;
12798 pw32*)
12799 # pw32 DLLs use 'pw' prefix rather than 'lib'
12800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12801 ;;
12802 esac
12803 ;;
12804
12805 *)
12806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12807 ;;
12808 esac
12809 dynamic_linker='Win32 ld.exe'
12810 # FIXME: first we should search . and the directory the executable is in
12811 shlibpath_var=PATH
12812 ;;
12813
12814 darwin* | rhapsody*)
12815 dynamic_linker="$host_os dyld"
12816 version_type=darwin
12817 need_lib_prefix=no
12818 need_version=no
12819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12820 soname_spec='${libname}${release}${major}$shared_ext'
12821 shlibpath_overrides_runpath=yes
12822 shlibpath_var=DYLD_LIBRARY_PATH
12823 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12824
12825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12826 ;;
12827
12828 dgux*)
12829 version_type=linux
12830 need_lib_prefix=no
12831 need_version=no
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12833 soname_spec='${libname}${release}${shared_ext}$major'
12834 shlibpath_var=LD_LIBRARY_PATH
12835 ;;
12836
12837 freebsd1*)
12838 dynamic_linker=no
12839 ;;
12840
12841 freebsd* | dragonfly*)
12842 # DragonFly does not have aout. When/if they implement a new
12843 # versioning mechanism, adjust this.
12844 if test -x /usr/bin/objformat; then
12845 objformat=`/usr/bin/objformat`
12846 else
12847 case $host_os in
12848 freebsd[123]*) objformat=aout ;;
12849 *) objformat=elf ;;
12850 esac
12851 fi
12852 version_type=freebsd-$objformat
12853 case $version_type in
12854 freebsd-elf*)
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12856 need_version=no
12857 need_lib_prefix=no
12858 ;;
12859 freebsd-*)
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12861 need_version=yes
12862 ;;
12863 esac
12864 shlibpath_var=LD_LIBRARY_PATH
12865 case $host_os in
12866 freebsd2*)
12867 shlibpath_overrides_runpath=yes
12868 ;;
12869 freebsd3.[01]* | freebsdelf3.[01]*)
12870 shlibpath_overrides_runpath=yes
12871 hardcode_into_libs=yes
12872 ;;
12873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12875 shlibpath_overrides_runpath=no
12876 hardcode_into_libs=yes
12877 ;;
12878 *) # from 4.6 on, and DragonFly
12879 shlibpath_overrides_runpath=yes
12880 hardcode_into_libs=yes
12881 ;;
12882 esac
12883 ;;
12884
12885 gnu*)
12886 version_type=linux
12887 need_lib_prefix=no
12888 need_version=no
12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12890 soname_spec='${libname}${release}${shared_ext}$major'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 hardcode_into_libs=yes
12893 ;;
12894
12895 hpux9* | hpux10* | hpux11*)
12896 # Give a soname corresponding to the major version so that dld.sl refuses to
12897 # link against other versions.
12898 version_type=sunos
12899 need_lib_prefix=no
12900 need_version=no
12901 case $host_cpu in
12902 ia64*)
12903 shrext_cmds='.so'
12904 hardcode_into_libs=yes
12905 dynamic_linker="$host_os dld.so"
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909 soname_spec='${libname}${release}${shared_ext}$major'
12910 if test "X$HPUX_IA64_MODE" = X32; then
12911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12912 else
12913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12914 fi
12915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12916 ;;
12917 hppa*64*)
12918 shrext_cmds='.sl'
12919 hardcode_into_libs=yes
12920 dynamic_linker="$host_os dld.sl"
12921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12927 ;;
12928 *)
12929 shrext_cmds='.sl'
12930 dynamic_linker="$host_os dld.sl"
12931 shlibpath_var=SHLIB_PATH
12932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 ;;
12936 esac
12937 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12938 postinstall_cmds='chmod 555 $lib'
12939 ;;
12940
12941 interix[3-9]*)
12942 version_type=linux
12943 need_lib_prefix=no
12944 need_version=no
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 shlibpath_overrides_runpath=no
12950 hardcode_into_libs=yes
12951 ;;
12952
12953 irix5* | irix6* | nonstopux*)
12954 case $host_os in
12955 nonstopux*) version_type=nonstopux ;;
12956 *)
12957 if test "$lt_cv_prog_gnu_ld" = yes; then
12958 version_type=linux
12959 else
12960 version_type=irix
12961 fi ;;
12962 esac
12963 need_lib_prefix=no
12964 need_version=no
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12967 case $host_os in
12968 irix5* | nonstopux*)
12969 libsuff= shlibsuff=
12970 ;;
12971 *)
12972 case $LD in # libtool.m4 will add one of these switches to LD
12973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12974 libsuff= shlibsuff= libmagic=32-bit;;
12975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12976 libsuff=32 shlibsuff=N32 libmagic=N32;;
12977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12979 *) libsuff= shlibsuff= libmagic=never-match;;
12980 esac
12981 ;;
12982 esac
12983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12984 shlibpath_overrides_runpath=no
12985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12987 hardcode_into_libs=yes
12988 ;;
12989
12990 # No shared lib support for Linux oldld, aout, or coff.
12991 linux*oldld* | linux*aout* | linux*coff*)
12992 dynamic_linker=no
12993 ;;
12994
12995 # This must be Linux ELF.
12996 linux* | k*bsd*-gnu)
12997 version_type=linux
12998 need_lib_prefix=no
12999 need_version=no
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 shlibpath_overrides_runpath=no
13005 # This implies no fast_install, which is unacceptable.
13006 # Some rework will be needed to allow for fast_install
13007 # before this can be enabled.
13008 hardcode_into_libs=yes
13009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13011
13012 # Append ld.so.conf contents to the search path
13013 if test -f /etc/ld.so.conf; then
13014 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13015 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13016 fi
13017
13018 # We used to test for /lib/ld.so.1 and disable shared libraries on
13019 # powerpc, because MkLinux only supported shared libraries with the
13020 # GNU dynamic linker. Since this was broken with cross compilers,
13021 # most powerpc-linux boxes support dynamic linking these days and
13022 # people can always --disable-shared, the test was removed, and we
13023 # assume the GNU/Linux dynamic linker is in use.
13024 dynamic_linker='GNU/Linux ld.so'
13025 ;;
13026
13027 netbsd*)
13028 version_type=sunos
13029 need_lib_prefix=no
13030 need_version=no
13031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13034 dynamic_linker='NetBSD (a.out) ld.so'
13035 else
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13037 soname_spec='${libname}${release}${shared_ext}$major'
13038 dynamic_linker='NetBSD ld.elf_so'
13039 fi
13040 shlibpath_var=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath=yes
13042 hardcode_into_libs=yes
13043 ;;
13044
13045 newsos6)
13046 version_type=linux
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=yes
13050 ;;
13051
13052 nto-qnx*)
13053 version_type=linux
13054 need_lib_prefix=no
13055 need_version=no
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13057 soname_spec='${libname}${release}${shared_ext}$major'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 shlibpath_overrides_runpath=yes
13060 ;;
13061
13062 openbsd*)
13063 version_type=sunos
13064 sys_lib_dlsearch_path_spec="/usr/lib"
13065 need_lib_prefix=no
13066 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13067 case $host_os in
13068 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13069 *) need_version=no ;;
13070 esac
13071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13075 case $host_os in
13076 openbsd2.[89] | openbsd2.[89].*)
13077 shlibpath_overrides_runpath=no
13078 ;;
13079 *)
13080 shlibpath_overrides_runpath=yes
13081 ;;
13082 esac
13083 else
13084 shlibpath_overrides_runpath=yes
13085 fi
13086 ;;
13087
13088 os2*)
13089 libname_spec='$name'
13090 shrext_cmds=".dll"
13091 need_lib_prefix=no
13092 library_names_spec='$libname${shared_ext} $libname.a'
13093 dynamic_linker='OS/2 ld.exe'
13094 shlibpath_var=LIBPATH
13095 ;;
13096
13097 osf3* | osf4* | osf5*)
13098 version_type=osf
13099 need_lib_prefix=no
13100 need_version=no
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13105 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13106 ;;
13107
13108 rdos*)
13109 dynamic_linker=no
13110 ;;
13111
13112 solaris*)
13113 version_type=linux
13114 need_lib_prefix=no
13115 need_version=no
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 shlibpath_var=LD_LIBRARY_PATH
13119 shlibpath_overrides_runpath=yes
13120 hardcode_into_libs=yes
13121 # ldd complains unless libraries are executable
13122 postinstall_cmds='chmod +x $lib'
13123 ;;
13124
13125 sunos4*)
13126 version_type=sunos
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13128 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 shlibpath_overrides_runpath=yes
13131 if test "$with_gnu_ld" = yes; then
13132 need_lib_prefix=no
13133 fi
13134 need_version=yes
13135 ;;
13136
13137 sysv4 | sysv4.3*)
13138 version_type=linux
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 shlibpath_var=LD_LIBRARY_PATH
13142 case $host_vendor in
13143 sni)
13144 shlibpath_overrides_runpath=no
13145 need_lib_prefix=no
13146 export_dynamic_flag_spec='${wl}-Blargedynsym'
13147 runpath_var=LD_RUN_PATH
13148 ;;
13149 siemens)
13150 need_lib_prefix=no
13151 ;;
13152 motorola)
13153 need_lib_prefix=no
13154 need_version=no
13155 shlibpath_overrides_runpath=no
13156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13157 ;;
13158 esac
13159 ;;
13160
13161 sysv4*MP*)
13162 if test -d /usr/nec ;then
13163 version_type=linux
13164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13165 soname_spec='$libname${shared_ext}.$major'
13166 shlibpath_var=LD_LIBRARY_PATH
13167 fi
13168 ;;
13169
13170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13171 version_type=freebsd-elf
13172 need_lib_prefix=no
13173 need_version=no
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13175 soname_spec='${libname}${release}${shared_ext}$major'
13176 shlibpath_var=LD_LIBRARY_PATH
13177 hardcode_into_libs=yes
13178 if test "$with_gnu_ld" = yes; then
13179 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13180 shlibpath_overrides_runpath=no
13181 else
13182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13183 shlibpath_overrides_runpath=yes
13184 case $host_os in
13185 sco3.2v5*)
13186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13187 ;;
13188 esac
13189 fi
13190 sys_lib_dlsearch_path_spec='/usr/lib'
13191 ;;
13192
13193 uts4*)
13194 version_type=linux
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
13198 ;;
13199
13200 *)
13201 dynamic_linker=no
13202 ;;
13203 esac
13204 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13205 echo "${ECHO_T}$dynamic_linker" >&6; }
13206 test "$dynamic_linker" = no && can_build_shared=no
13207
13208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13209 if test "$GCC" = yes; then
13210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13211 fi
13212
13213 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13214 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13215 hardcode_action_CXX=
13216 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13217 test -n "$runpath_var_CXX" || \
13218 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13219
13220 # We can hardcode non-existant directories.
13221 if test "$hardcode_direct_CXX" != no &&
13222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13223 # have to relink, otherwise we might link with an installed library
13224 # when we should be linking with a yet-to-be-installed one
13225 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13226 test "$hardcode_minus_L_CXX" != no; then
13227 # Linking always hardcodes the temporary library directory.
13228 hardcode_action_CXX=relink
13229 else
13230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13231 hardcode_action_CXX=immediate
13232 fi
13233 else
13234 # We cannot hardcode anything, or else we can only hardcode existing
13235 # directories.
13236 hardcode_action_CXX=unsupported
13237 fi
13238 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13239 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13240
13241 if test "$hardcode_action_CXX" = relink; then
13242 # Fast installation is not supported
13243 enable_fast_install=no
13244 elif test "$shlibpath_overrides_runpath" = yes ||
13245 test "$enable_shared" = no; then
13246 # Fast installation is not necessary
13247 enable_fast_install=needless
13248 fi
13249
13250
13251 # The else clause should only fire when bootstrapping the
13252 # libtool distribution, otherwise you forgot to ship ltmain.sh
13253 # with your package, and you will get complaints that there are
13254 # no rules to generate ltmain.sh.
13255 if test -f "$ltmain"; then
13256 # See if we are running on zsh, and set the options which allow our commands through
13257 # without removal of \ escapes.
13258 if test -n "${ZSH_VERSION+set}" ; then
13259 setopt NO_GLOB_SUBST
13260 fi
13261 # Now quote all the things that may contain metacharacters while being
13262 # careful not to overquote the AC_SUBSTed values. We take copies of the
13263 # variables and quote the copies for generation of the libtool script.
13264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13265 SED SHELL STRIP \
13266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13268 deplibs_check_method reload_flag reload_cmds need_locks \
13269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13270 lt_cv_sys_global_symbol_to_c_name_address \
13271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13272 old_postinstall_cmds old_postuninstall_cmds \
13273 compiler_CXX \
13274 CC_CXX \
13275 LD_CXX \
13276 lt_prog_compiler_wl_CXX \
13277 lt_prog_compiler_pic_CXX \
13278 lt_prog_compiler_static_CXX \
13279 lt_prog_compiler_no_builtin_flag_CXX \
13280 export_dynamic_flag_spec_CXX \
13281 thread_safe_flag_spec_CXX \
13282 whole_archive_flag_spec_CXX \
13283 enable_shared_with_static_runtimes_CXX \
13284 old_archive_cmds_CXX \
13285 old_archive_from_new_cmds_CXX \
13286 predep_objects_CXX \
13287 postdep_objects_CXX \
13288 predeps_CXX \
13289 postdeps_CXX \
13290 compiler_lib_search_path_CXX \
13291 archive_cmds_CXX \
13292 archive_expsym_cmds_CXX \
13293 postinstall_cmds_CXX \
13294 postuninstall_cmds_CXX \
13295 old_archive_from_expsyms_cmds_CXX \
13296 allow_undefined_flag_CXX \
13297 no_undefined_flag_CXX \
13298 export_symbols_cmds_CXX \
13299 hardcode_libdir_flag_spec_CXX \
13300 hardcode_libdir_flag_spec_ld_CXX \
13301 hardcode_libdir_separator_CXX \
13302 hardcode_automatic_CXX \
13303 module_cmds_CXX \
13304 module_expsym_cmds_CXX \
13305 lt_cv_prog_compiler_c_o_CXX \
13306 fix_srcfile_path_CXX \
13307 exclude_expsyms_CXX \
13308 include_expsyms_CXX; do
13309
13310 case $var in
13311 old_archive_cmds_CXX | \
13312 old_archive_from_new_cmds_CXX | \
13313 archive_cmds_CXX | \
13314 archive_expsym_cmds_CXX | \
13315 module_cmds_CXX | \
13316 module_expsym_cmds_CXX | \
13317 old_archive_from_expsyms_cmds_CXX | \
13318 export_symbols_cmds_CXX | \
13319 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13320 postinstall_cmds | postuninstall_cmds | \
13321 old_postinstall_cmds | old_postuninstall_cmds | \
13322 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13323 # Double-quote double-evaled strings.
13324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13325 ;;
13326 *)
13327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13328 ;;
13329 esac
13330 done
13331
13332 case $lt_echo in
13333 *'\$0 --fallback-echo"')
13334 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13335 ;;
13336 esac
13337
13338 cfgfile="$ofile"
13339
13340 cat <<__EOF__ >> "$cfgfile"
13341 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13342
13343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13344
13345 # Shell to use when invoking shell scripts.
13346 SHELL=$lt_SHELL
13347
13348 # Whether or not to build shared libraries.
13349 build_libtool_libs=$enable_shared
13350
13351 # Whether or not to build static libraries.
13352 build_old_libs=$enable_static
13353
13354 # Whether or not to add -lc for building shared libraries.
13355 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13356
13357 # Whether or not to disallow shared libs when runtime libs are static
13358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13359
13360 # Whether or not to optimize for fast installation.
13361 fast_install=$enable_fast_install
13362
13363 # The host system.
13364 host_alias=$host_alias
13365 host=$host
13366 host_os=$host_os
13367
13368 # The build system.
13369 build_alias=$build_alias
13370 build=$build
13371 build_os=$build_os
13372
13373 # An echo program that does not interpret backslashes.
13374 echo=$lt_echo
13375
13376 # The archiver.
13377 AR=$lt_AR
13378 AR_FLAGS=$lt_AR_FLAGS
13379
13380 # A C compiler.
13381 LTCC=$lt_LTCC
13382
13383 # LTCC compiler flags.
13384 LTCFLAGS=$lt_LTCFLAGS
13385
13386 # A language-specific compiler.
13387 CC=$lt_compiler_CXX
13388
13389 # Is the compiler the GNU C compiler?
13390 with_gcc=$GCC_CXX
13391
13392 # An ERE matcher.
13393 EGREP=$lt_EGREP
13394
13395 # The linker used to build libraries.
13396 LD=$lt_LD_CXX
13397
13398 # Whether we need hard or soft links.
13399 LN_S=$lt_LN_S
13400
13401 # A BSD-compatible nm program.
13402 NM=$lt_NM
13403
13404 # A symbol stripping program
13405 STRIP=$lt_STRIP
13406
13407 # Used to examine libraries when file_magic_cmd begins "file"
13408 MAGIC_CMD=$MAGIC_CMD
13409
13410 # Used on cygwin: DLL creation program.
13411 DLLTOOL="$DLLTOOL"
13412
13413 # Used on cygwin: object dumper.
13414 OBJDUMP="$OBJDUMP"
13415
13416 # Used on cygwin: assembler.
13417 AS="$AS"
13418
13419 # The name of the directory that contains temporary libtool files.
13420 objdir=$objdir
13421
13422 # How to create reloadable object files.
13423 reload_flag=$lt_reload_flag
13424 reload_cmds=$lt_reload_cmds
13425
13426 # How to pass a linker flag through the compiler.
13427 wl=$lt_lt_prog_compiler_wl_CXX
13428
13429 # Object file suffix (normally "o").
13430 objext="$ac_objext"
13431
13432 # Old archive suffix (normally "a").
13433 libext="$libext"
13434
13435 # Shared library suffix (normally ".so").
13436 shrext_cmds='$shrext_cmds'
13437
13438 # Executable file suffix (normally "").
13439 exeext="$exeext"
13440
13441 # Additional compiler flags for building library objects.
13442 pic_flag=$lt_lt_prog_compiler_pic_CXX
13443 pic_mode=$pic_mode
13444
13445 # What is the maximum length of a command?
13446 max_cmd_len=$lt_cv_sys_max_cmd_len
13447
13448 # Does compiler simultaneously support -c and -o options?
13449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13450
13451 # Must we lock files when doing compilation?
13452 need_locks=$lt_need_locks
13453
13454 # Do we need the lib prefix for modules?
13455 need_lib_prefix=$need_lib_prefix
13456
13457 # Do we need a version for libraries?
13458 need_version=$need_version
13459
13460 # Whether dlopen is supported.
13461 dlopen_support=$enable_dlopen
13462
13463 # Whether dlopen of programs is supported.
13464 dlopen_self=$enable_dlopen_self
13465
13466 # Whether dlopen of statically linked programs is supported.
13467 dlopen_self_static=$enable_dlopen_self_static
13468
13469 # Compiler flag to prevent dynamic linking.
13470 link_static_flag=$lt_lt_prog_compiler_static_CXX
13471
13472 # Compiler flag to turn off builtin functions.
13473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13474
13475 # Compiler flag to allow reflexive dlopens.
13476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13477
13478 # Compiler flag to generate shared objects directly from archives.
13479 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13480
13481 # Compiler flag to generate thread-safe objects.
13482 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13483
13484 # Library versioning type.
13485 version_type=$version_type
13486
13487 # Format of library name prefix.
13488 libname_spec=$lt_libname_spec
13489
13490 # List of archive names. First name is the real one, the rest are links.
13491 # The last name is the one that the linker finds with -lNAME.
13492 library_names_spec=$lt_library_names_spec
13493
13494 # The coded name of the library, if different from the real name.
13495 soname_spec=$lt_soname_spec
13496
13497 # Commands used to build and install an old-style archive.
13498 RANLIB=$lt_RANLIB
13499 old_archive_cmds=$lt_old_archive_cmds_CXX
13500 old_postinstall_cmds=$lt_old_postinstall_cmds
13501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13502
13503 # Create an old-style archive from a shared archive.
13504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13505
13506 # Create a temporary old-style archive to link instead of a shared archive.
13507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13508
13509 # Commands used to build and install a shared archive.
13510 archive_cmds=$lt_archive_cmds_CXX
13511 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13512 postinstall_cmds=$lt_postinstall_cmds
13513 postuninstall_cmds=$lt_postuninstall_cmds
13514
13515 # Commands used to build a loadable module (assumed same as above if empty)
13516 module_cmds=$lt_module_cmds_CXX
13517 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13518
13519 # Commands to strip libraries.
13520 old_striplib=$lt_old_striplib
13521 striplib=$lt_striplib
13522
13523 # Dependencies to place before the objects being linked to create a
13524 # shared library.
13525 predep_objects=$lt_predep_objects_CXX
13526
13527 # Dependencies to place after the objects being linked to create a
13528 # shared library.
13529 postdep_objects=$lt_postdep_objects_CXX
13530
13531 # Dependencies to place before the objects being linked to create a
13532 # shared library.
13533 predeps=$lt_predeps_CXX
13534
13535 # Dependencies to place after the objects being linked to create a
13536 # shared library.
13537 postdeps=$lt_postdeps_CXX
13538
13539 # The library search path used internally by the compiler when linking
13540 # a shared library.
13541 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13542
13543 # Method to check whether dependent libraries are shared objects.
13544 deplibs_check_method=$lt_deplibs_check_method
13545
13546 # Command to use when deplibs_check_method == file_magic.
13547 file_magic_cmd=$lt_file_magic_cmd
13548
13549 # Flag that allows shared libraries with undefined symbols to be built.
13550 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13551
13552 # Flag that forces no undefined symbols.
13553 no_undefined_flag=$lt_no_undefined_flag_CXX
13554
13555 # Commands used to finish a libtool library installation in a directory.
13556 finish_cmds=$lt_finish_cmds
13557
13558 # Same as above, but a single script fragment to be evaled but not shown.
13559 finish_eval=$lt_finish_eval
13560
13561 # Take the output of nm and produce a listing of raw symbols and C names.
13562 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13563
13564 # Transform the output of nm in a proper C declaration
13565 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13566
13567 # Transform the output of nm in a C name address pair
13568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13569
13570 # This is the shared library runtime path variable.
13571 runpath_var=$runpath_var
13572
13573 # This is the shared library path variable.
13574 shlibpath_var=$shlibpath_var
13575
13576 # Is shlibpath searched before the hard-coded library search path?
13577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13578
13579 # How to hardcode a shared library path into an executable.
13580 hardcode_action=$hardcode_action_CXX
13581
13582 # Whether we should hardcode library paths into libraries.
13583 hardcode_into_libs=$hardcode_into_libs
13584
13585 # Flag to hardcode \$libdir into a binary during linking.
13586 # This must work even if \$libdir does not exist.
13587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13588
13589 # If ld is used when linking, flag to hardcode \$libdir into
13590 # a binary during linking. This must work even if \$libdir does
13591 # not exist.
13592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13593
13594 # Whether we need a single -rpath flag with a separated argument.
13595 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13596
13597 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13598 # resulting binary.
13599 hardcode_direct=$hardcode_direct_CXX
13600
13601 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13602 # resulting binary.
13603 hardcode_minus_L=$hardcode_minus_L_CXX
13604
13605 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13606 # the resulting binary.
13607 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13608
13609 # Set to yes if building a shared library automatically hardcodes DIR into the library
13610 # and all subsequent libraries and executables linked against it.
13611 hardcode_automatic=$hardcode_automatic_CXX
13612
13613 # Variables whose values should be saved in libtool wrapper scripts and
13614 # restored at relink time.
13615 variables_saved_for_relink="$variables_saved_for_relink"
13616
13617 # Whether libtool must link a program against all its dependency libraries.
13618 link_all_deplibs=$link_all_deplibs_CXX
13619
13620 # Compile-time system search path for libraries
13621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13622
13623 # Run-time system search path for libraries
13624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13625
13626 # Fix the shell variable \$srcfile for the compiler.
13627 fix_srcfile_path=$lt_fix_srcfile_path
13628
13629 # Set to yes if exported symbols are required.
13630 always_export_symbols=$always_export_symbols_CXX
13631
13632 # The commands to list exported symbols.
13633 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13634
13635 # The commands to extract the exported symbol list from a shared archive.
13636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13637
13638 # Symbols that should not be listed in the preloaded symbols.
13639 exclude_expsyms=$lt_exclude_expsyms_CXX
13640
13641 # Symbols that must always be exported.
13642 include_expsyms=$lt_include_expsyms_CXX
13643
13644 # ### END LIBTOOL TAG CONFIG: $tagname
13645
13646 __EOF__
13647
13648
13649 else
13650 # If there is no Makefile yet, we rely on a make rule to execute
13651 # `config.status --recheck' to rerun these tests and create the
13652 # libtool script then.
13653 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13654 if test -f "$ltmain_in"; then
13655 test -f Makefile && make "$ltmain"
13656 fi
13657 fi
13658
13659
13660 ac_ext=c
13661 ac_cpp='$CPP $CPPFLAGS'
13662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13665
13666 CC=$lt_save_CC
13667 LDCXX=$LD
13668 LD=$lt_save_LD
13669 GCC=$lt_save_GCC
13670 with_gnu_ldcxx=$with_gnu_ld
13671 with_gnu_ld=$lt_save_with_gnu_ld
13672 lt_cv_path_LDCXX=$lt_cv_path_LD
13673 lt_cv_path_LD=$lt_save_path_LD
13674 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13675 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13676
13677 else
13678 tagname=""
13679 fi
13680 ;;
13681
13682 F77)
13683 if test -n "$F77" && test "X$F77" != "Xno"; then
13684
13685 ac_ext=f
13686 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13687 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13688 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13689
13690
13691 archive_cmds_need_lc_F77=no
13692 allow_undefined_flag_F77=
13693 always_export_symbols_F77=no
13694 archive_expsym_cmds_F77=
13695 export_dynamic_flag_spec_F77=
13696 hardcode_direct_F77=no
13697 hardcode_libdir_flag_spec_F77=
13698 hardcode_libdir_flag_spec_ld_F77=
13699 hardcode_libdir_separator_F77=
13700 hardcode_minus_L_F77=no
13701 hardcode_automatic_F77=no
13702 module_cmds_F77=
13703 module_expsym_cmds_F77=
13704 link_all_deplibs_F77=unknown
13705 old_archive_cmds_F77=$old_archive_cmds
13706 no_undefined_flag_F77=
13707 whole_archive_flag_spec_F77=
13708 enable_shared_with_static_runtimes_F77=no
13709
13710 # Source file extension for f77 test sources.
13711 ac_ext=f
13712
13713 # Object file extension for compiled f77 test sources.
13714 objext=o
13715 objext_F77=$objext
13716
13717 # Code to be used in simple compile tests
13718 lt_simple_compile_test_code="\
13719 subroutine t
13720 return
13721 end
13722 "
13723
13724 # Code to be used in simple link tests
13725 lt_simple_link_test_code="\
13726 program t
13727 end
13728 "
13729
13730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13731
13732 # If no C compiler was specified, use CC.
13733 LTCC=${LTCC-"$CC"}
13734
13735 # If no C compiler flags were specified, use CFLAGS.
13736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13737
13738 # Allow CC to be a program name with arguments.
13739 compiler=$CC
13740
13741
13742 # save warnings/boilerplate of simple test code
13743 ac_outfile=conftest.$ac_objext
13744 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13746 _lt_compiler_boilerplate=`cat conftest.err`
13747 $rm conftest*
13748
13749 ac_outfile=conftest.$ac_objext
13750 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13752 _lt_linker_boilerplate=`cat conftest.err`
13753 $rm conftest*
13754
13755
13756 # Allow CC to be a program name with arguments.
13757 lt_save_CC="$CC"
13758 CC=${F77-"f77"}
13759 compiler=$CC
13760 compiler_F77=$CC
13761 for cc_temp in $compiler""; do
13762 case $cc_temp in
13763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13765 \-*) ;;
13766 *) break;;
13767 esac
13768 done
13769 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13770
13771
13772 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13773 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13774 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13775 echo "${ECHO_T}$can_build_shared" >&6; }
13776
13777 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13778 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13779 test "$can_build_shared" = "no" && enable_shared=no
13780
13781 # On AIX, shared libraries and static libraries use the same namespace, and
13782 # are all built from PIC.
13783 case $host_os in
13784 aix3*)
13785 test "$enable_shared" = yes && enable_static=no
13786 if test -n "$RANLIB"; then
13787 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13788 postinstall_cmds='$RANLIB $lib'
13789 fi
13790 ;;
13791 aix4* | aix5*)
13792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13793 test "$enable_shared" = yes && enable_static=no
13794 fi
13795 ;;
13796 esac
13797 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13798 echo "${ECHO_T}$enable_shared" >&6; }
13799
13800 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13801 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13802 # Make sure either enable_shared or enable_static is yes.
13803 test "$enable_shared" = yes || enable_static=yes
13804 { echo "$as_me:$LINENO: result: $enable_static" >&5
13805 echo "${ECHO_T}$enable_static" >&6; }
13806
13807 GCC_F77="$G77"
13808 LD_F77="$LD"
13809
13810 lt_prog_compiler_wl_F77=
13811 lt_prog_compiler_pic_F77=
13812 lt_prog_compiler_static_F77=
13813
13814 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13815 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13816
13817 if test "$GCC" = yes; then
13818 lt_prog_compiler_wl_F77='-Wl,'
13819 lt_prog_compiler_static_F77='-static'
13820
13821 case $host_os in
13822 aix*)
13823 # All AIX code is PIC.
13824 if test "$host_cpu" = ia64; then
13825 # AIX 5 now supports IA64 processor
13826 lt_prog_compiler_static_F77='-Bstatic'
13827 fi
13828 ;;
13829
13830 amigaos*)
13831 # FIXME: we need at least 68020 code to build shared libraries, but
13832 # adding the `-m68020' flag to GCC prevents building anything better,
13833 # like `-m68040'.
13834 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13835 ;;
13836
13837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13838 # PIC is the default for these OSes.
13839 ;;
13840
13841 mingw* | cygwin* | pw32* | os2*)
13842 # This hack is so that the source file can tell whether it is being
13843 # built for inclusion in a dll (and should export symbols for example).
13844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13845 # (--disable-auto-import) libraries
13846 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13847 ;;
13848
13849 darwin* | rhapsody*)
13850 # PIC is the default on this platform
13851 # Common symbols not allowed in MH_DYLIB files
13852 lt_prog_compiler_pic_F77='-fno-common'
13853 ;;
13854
13855 interix[3-9]*)
13856 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13857 # Instead, we relocate shared libraries at runtime.
13858 ;;
13859
13860 msdosdjgpp*)
13861 # Just because we use GCC doesn't mean we suddenly get shared libraries
13862 # on systems that don't support them.
13863 lt_prog_compiler_can_build_shared_F77=no
13864 enable_shared=no
13865 ;;
13866
13867 sysv4*MP*)
13868 if test -d /usr/nec; then
13869 lt_prog_compiler_pic_F77=-Kconform_pic
13870 fi
13871 ;;
13872
13873 hpux*)
13874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13875 # not for PA HP-UX.
13876 case $host_cpu in
13877 hppa*64*|ia64*)
13878 # +Z the default
13879 ;;
13880 *)
13881 lt_prog_compiler_pic_F77='-fPIC'
13882 ;;
13883 esac
13884 ;;
13885
13886 *)
13887 lt_prog_compiler_pic_F77='-fPIC'
13888 ;;
13889 esac
13890 else
13891 # PORTME Check for flag to pass linker flags through the system compiler.
13892 case $host_os in
13893 aix*)
13894 lt_prog_compiler_wl_F77='-Wl,'
13895 if test "$host_cpu" = ia64; then
13896 # AIX 5 now supports IA64 processor
13897 lt_prog_compiler_static_F77='-Bstatic'
13898 else
13899 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13900 fi
13901 ;;
13902 darwin*)
13903 # PIC is the default on this platform
13904 # Common symbols not allowed in MH_DYLIB files
13905 case $cc_basename in
13906 xlc*)
13907 lt_prog_compiler_pic_F77='-qnocommon'
13908 lt_prog_compiler_wl_F77='-Wl,'
13909 ;;
13910 esac
13911 ;;
13912
13913 mingw* | cygwin* | pw32* | os2*)
13914 # This hack is so that the source file can tell whether it is being
13915 # built for inclusion in a dll (and should export symbols for example).
13916 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13917 ;;
13918
13919 hpux9* | hpux10* | hpux11*)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13922 # not for PA HP-UX.
13923 case $host_cpu in
13924 hppa*64*|ia64*)
13925 # +Z the default
13926 ;;
13927 *)
13928 lt_prog_compiler_pic_F77='+Z'
13929 ;;
13930 esac
13931 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13932 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13933 ;;
13934
13935 irix5* | irix6* | nonstopux*)
13936 lt_prog_compiler_wl_F77='-Wl,'
13937 # PIC (with -KPIC) is the default.
13938 lt_prog_compiler_static_F77='-non_shared'
13939 ;;
13940
13941 newsos6)
13942 lt_prog_compiler_pic_F77='-KPIC'
13943 lt_prog_compiler_static_F77='-Bstatic'
13944 ;;
13945
13946 linux* | k*bsd*-gnu)
13947 case $cc_basename in
13948 icc* | ecc*)
13949 lt_prog_compiler_wl_F77='-Wl,'
13950 lt_prog_compiler_pic_F77='-KPIC'
13951 lt_prog_compiler_static_F77='-static'
13952 ;;
13953 pgcc* | pgf77* | pgf90* | pgf95*)
13954 # Portland Group compilers (*not* the Pentium gcc compiler,
13955 # which looks to be a dead project)
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 lt_prog_compiler_pic_F77='-fpic'
13958 lt_prog_compiler_static_F77='-Bstatic'
13959 ;;
13960 ccc*)
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 # All Alpha code is PIC.
13963 lt_prog_compiler_static_F77='-non_shared'
13964 ;;
13965 *)
13966 case `$CC -V 2>&1 | sed 5q` in
13967 *Sun\ C*)
13968 # Sun C 5.9
13969 lt_prog_compiler_pic_F77='-KPIC'
13970 lt_prog_compiler_static_F77='-Bstatic'
13971 lt_prog_compiler_wl_F77='-Wl,'
13972 ;;
13973 *Sun\ F*)
13974 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13975 lt_prog_compiler_pic_F77='-KPIC'
13976 lt_prog_compiler_static_F77='-Bstatic'
13977 lt_prog_compiler_wl_F77=''
13978 ;;
13979 esac
13980 ;;
13981 esac
13982 ;;
13983
13984 osf3* | osf4* | osf5*)
13985 lt_prog_compiler_wl_F77='-Wl,'
13986 # All OSF/1 code is PIC.
13987 lt_prog_compiler_static_F77='-non_shared'
13988 ;;
13989
13990 rdos*)
13991 lt_prog_compiler_static_F77='-non_shared'
13992 ;;
13993
13994 solaris*)
13995 lt_prog_compiler_pic_F77='-KPIC'
13996 lt_prog_compiler_static_F77='-Bstatic'
13997 case $cc_basename in
13998 f77* | f90* | f95*)
13999 lt_prog_compiler_wl_F77='-Qoption ld ';;
14000 *)
14001 lt_prog_compiler_wl_F77='-Wl,';;
14002 esac
14003 ;;
14004
14005 sunos4*)
14006 lt_prog_compiler_wl_F77='-Qoption ld '
14007 lt_prog_compiler_pic_F77='-PIC'
14008 lt_prog_compiler_static_F77='-Bstatic'
14009 ;;
14010
14011 sysv4 | sysv4.2uw2* | sysv4.3*)
14012 lt_prog_compiler_wl_F77='-Wl,'
14013 lt_prog_compiler_pic_F77='-KPIC'
14014 lt_prog_compiler_static_F77='-Bstatic'
14015 ;;
14016
14017 sysv4*MP*)
14018 if test -d /usr/nec ;then
14019 lt_prog_compiler_pic_F77='-Kconform_pic'
14020 lt_prog_compiler_static_F77='-Bstatic'
14021 fi
14022 ;;
14023
14024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14025 lt_prog_compiler_wl_F77='-Wl,'
14026 lt_prog_compiler_pic_F77='-KPIC'
14027 lt_prog_compiler_static_F77='-Bstatic'
14028 ;;
14029
14030 unicos*)
14031 lt_prog_compiler_wl_F77='-Wl,'
14032 lt_prog_compiler_can_build_shared_F77=no
14033 ;;
14034
14035 uts4*)
14036 lt_prog_compiler_pic_F77='-pic'
14037 lt_prog_compiler_static_F77='-Bstatic'
14038 ;;
14039
14040 *)
14041 lt_prog_compiler_can_build_shared_F77=no
14042 ;;
14043 esac
14044 fi
14045
14046 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14047 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14048
14049 #
14050 # Check to make sure the PIC flag actually works.
14051 #
14052 if test -n "$lt_prog_compiler_pic_F77"; then
14053
14054 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14055 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14056 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059 lt_prog_compiler_pic_works_F77=no
14060 ac_outfile=conftest.$ac_objext
14061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14062 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14063 # Insert the option either (1) after the last *FLAGS variable, or
14064 # (2) before a word containing "conftest.", or (3) at the end.
14065 # Note that $ac_compile itself does not contain backslashes and begins
14066 # with a dollar sign (not a hyphen), so the echo should work correctly.
14067 # The option is referenced via a variable to avoid confusing sed.
14068 lt_compile=`echo "$ac_compile" | $SED \
14069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14071 -e 's:$: $lt_compiler_flag:'`
14072 (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
14073 (eval "$lt_compile" 2>conftest.err)
14074 ac_status=$?
14075 cat conftest.err >&5
14076 echo "$as_me:14076: \$? = $ac_status" >&5
14077 if (exit $ac_status) && test -s "$ac_outfile"; then
14078 # The compiler can only warn and ignore the option if not recognized
14079 # So say no if there are warnings other than the usual output.
14080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14083 lt_prog_compiler_pic_works_F77=yes
14084 fi
14085 fi
14086 $rm conftest*
14087
14088 fi
14089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14090 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14091
14092 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14093 case $lt_prog_compiler_pic_F77 in
14094 "" | " "*) ;;
14095 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14096 esac
14097 else
14098 lt_prog_compiler_pic_F77=
14099 lt_prog_compiler_can_build_shared_F77=no
14100 fi
14101
14102 fi
14103 case $host_os in
14104 # For platforms which do not support PIC, -DPIC is meaningless:
14105 *djgpp*)
14106 lt_prog_compiler_pic_F77=
14107 ;;
14108 *)
14109 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14110 ;;
14111 esac
14112
14113 #
14114 # Check to make sure the static flag actually works.
14115 #
14116 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14117 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14118 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14119 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122 lt_prog_compiler_static_works_F77=no
14123 save_LDFLAGS="$LDFLAGS"
14124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14127 # The linker can only warn and ignore the option if not recognized
14128 # So say no if there are warnings
14129 if test -s conftest.err; then
14130 # Append any errors to the config.log.
14131 cat conftest.err 1>&5
14132 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14134 if diff conftest.exp conftest.er2 >/dev/null; then
14135 lt_prog_compiler_static_works_F77=yes
14136 fi
14137 else
14138 lt_prog_compiler_static_works_F77=yes
14139 fi
14140 fi
14141 $rm conftest*
14142 LDFLAGS="$save_LDFLAGS"
14143
14144 fi
14145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14146 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14147
14148 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14149 :
14150 else
14151 lt_prog_compiler_static_F77=
14152 fi
14153
14154
14155 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14157 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 lt_cv_prog_compiler_c_o_F77=no
14161 $rm -r conftest 2>/dev/null
14162 mkdir conftest
14163 cd conftest
14164 mkdir out
14165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14166
14167 lt_compiler_flag="-o out/conftest2.$ac_objext"
14168 # Insert the option either (1) after the last *FLAGS variable, or
14169 # (2) before a word containing "conftest.", or (3) at the end.
14170 # Note that $ac_compile itself does not contain backslashes and begins
14171 # with a dollar sign (not a hyphen), so the echo should work correctly.
14172 lt_compile=`echo "$ac_compile" | $SED \
14173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14175 -e 's:$: $lt_compiler_flag:'`
14176 (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
14177 (eval "$lt_compile" 2>out/conftest.err)
14178 ac_status=$?
14179 cat out/conftest.err >&5
14180 echo "$as_me:14180: \$? = $ac_status" >&5
14181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14182 then
14183 # The compiler can only warn and ignore the option if not recognized
14184 # So say no if there are warnings
14185 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14188 lt_cv_prog_compiler_c_o_F77=yes
14189 fi
14190 fi
14191 chmod u+w . 2>&5
14192 $rm conftest*
14193 # SGI C++ compiler will create directory out/ii_files/ for
14194 # template instantiation
14195 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14196 $rm out/* && rmdir out
14197 cd ..
14198 rmdir conftest
14199 $rm conftest*
14200
14201 fi
14202 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14204
14205
14206 hard_links="nottested"
14207 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14208 # do not overwrite the value of need_locks provided by the user
14209 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14211 hard_links=yes
14212 $rm conftest*
14213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14214 touch conftest.a
14215 ln conftest.a conftest.b 2>&5 || hard_links=no
14216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14217 { echo "$as_me:$LINENO: result: $hard_links" >&5
14218 echo "${ECHO_T}$hard_links" >&6; }
14219 if test "$hard_links" = no; then
14220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14222 need_locks=warn
14223 fi
14224 else
14225 need_locks=no
14226 fi
14227
14228 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14230
14231 runpath_var=
14232 allow_undefined_flag_F77=
14233 enable_shared_with_static_runtimes_F77=no
14234 archive_cmds_F77=
14235 archive_expsym_cmds_F77=
14236 old_archive_From_new_cmds_F77=
14237 old_archive_from_expsyms_cmds_F77=
14238 export_dynamic_flag_spec_F77=
14239 whole_archive_flag_spec_F77=
14240 thread_safe_flag_spec_F77=
14241 hardcode_libdir_flag_spec_F77=
14242 hardcode_libdir_flag_spec_ld_F77=
14243 hardcode_libdir_separator_F77=
14244 hardcode_direct_F77=no
14245 hardcode_minus_L_F77=no
14246 hardcode_shlibpath_var_F77=unsupported
14247 link_all_deplibs_F77=unknown
14248 hardcode_automatic_F77=no
14249 module_cmds_F77=
14250 module_expsym_cmds_F77=
14251 always_export_symbols_F77=no
14252 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14253 # include_expsyms should be a list of space-separated symbols to be *always*
14254 # included in the symbol list
14255 include_expsyms_F77=
14256 # exclude_expsyms can be an extended regexp of symbols to exclude
14257 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14259 # as well as any symbol that contains `d'.
14260 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14262 # platforms (ab)use it in PIC code, but their linkers get confused if
14263 # the symbol is explicitly referenced. Since portable code cannot
14264 # rely on this symbol name, it's probably fine to never include it in
14265 # preloaded symbol tables.
14266 extract_expsyms_cmds=
14267 # Just being paranoid about ensuring that cc_basename is set.
14268 for cc_temp in $compiler""; do
14269 case $cc_temp in
14270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14272 \-*) ;;
14273 *) break;;
14274 esac
14275 done
14276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14277
14278 case $host_os in
14279 cygwin* | mingw* | pw32*)
14280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14281 # When not using gcc, we currently assume that we are using
14282 # Microsoft Visual C++.
14283 if test "$GCC" != yes; then
14284 with_gnu_ld=no
14285 fi
14286 ;;
14287 interix*)
14288 # we just hope/assume this is gcc and not c89 (= MSVC++)
14289 with_gnu_ld=yes
14290 ;;
14291 openbsd*)
14292 with_gnu_ld=no
14293 ;;
14294 esac
14295
14296 ld_shlibs_F77=yes
14297 if test "$with_gnu_ld" = yes; then
14298 # If archive_cmds runs LD, not CC, wlarc should be empty
14299 wlarc='${wl}'
14300
14301 # Set some defaults for GNU ld with shared library support. These
14302 # are reset later if shared libraries are not supported. Putting them
14303 # here allows them to be overridden if necessary.
14304 runpath_var=LD_RUN_PATH
14305 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14306 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14307 # ancient GNU ld didn't support --whole-archive et. al.
14308 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14309 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14310 else
14311 whole_archive_flag_spec_F77=
14312 fi
14313 supports_anon_versioning=no
14314 case `$LD -v 2>/dev/null` in
14315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14318 *\ 2.11.*) ;; # other 2.11 versions
14319 *) supports_anon_versioning=yes ;;
14320 esac
14321
14322 # See if GNU ld supports shared libraries.
14323 case $host_os in
14324 aix3* | aix4* | aix5*)
14325 # On AIX/PPC, the GNU linker is very broken
14326 if test "$host_cpu" != ia64; then
14327 ld_shlibs_F77=no
14328 cat <<EOF 1>&2
14329
14330 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14331 *** to be unable to reliably create shared libraries on AIX.
14332 *** Therefore, libtool is disabling shared libraries support. If you
14333 *** really care for shared libraries, you may want to modify your PATH
14334 *** so that a non-GNU linker is found, and then restart.
14335
14336 EOF
14337 fi
14338 ;;
14339
14340 amigaos*)
14341 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)'
14342 hardcode_libdir_flag_spec_F77='-L$libdir'
14343 hardcode_minus_L_F77=yes
14344
14345 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14346 # that the semantics of dynamic libraries on AmigaOS, at least up
14347 # to version 4, is to share data among multiple programs linked
14348 # with the same dynamic library. Since this doesn't match the
14349 # behavior of shared libraries on other platforms, we can't use
14350 # them.
14351 ld_shlibs_F77=no
14352 ;;
14353
14354 beos*)
14355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14356 allow_undefined_flag_F77=unsupported
14357 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14358 # support --undefined. This deserves some investigation. FIXME
14359 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14360 else
14361 ld_shlibs_F77=no
14362 fi
14363 ;;
14364
14365 cygwin* | mingw* | pw32*)
14366 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14367 # as there is no search path for DLLs.
14368 hardcode_libdir_flag_spec_F77='-L$libdir'
14369 allow_undefined_flag_F77=unsupported
14370 always_export_symbols_F77=no
14371 enable_shared_with_static_runtimes_F77=yes
14372 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14373
14374 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14375 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14376 # If the export-symbols file already is a .def file (1st line
14377 # is EXPORTS), use it as is; otherwise, prepend...
14378 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14379 cp $export_symbols $output_objdir/$soname.def;
14380 else
14381 echo EXPORTS > $output_objdir/$soname.def;
14382 cat $export_symbols >> $output_objdir/$soname.def;
14383 fi~
14384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14385 else
14386 ld_shlibs_F77=no
14387 fi
14388 ;;
14389
14390 interix[3-9]*)
14391 hardcode_direct_F77=no
14392 hardcode_shlibpath_var_F77=no
14393 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14394 export_dynamic_flag_spec_F77='${wl}-E'
14395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14396 # Instead, shared libraries are loaded at an image base (0x10000000 by
14397 # default) and relocated if they conflict, which is a slow very memory
14398 # consuming and fragmenting process. To avoid this, we pick a random,
14399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14401 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'
14402 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'
14403 ;;
14404
14405 gnu* | linux* | k*bsd*-gnu)
14406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14407 tmp_addflag=
14408 case $cc_basename,$host_cpu in
14409 pgcc*) # Portland Group C compiler
14410 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'
14411 tmp_addflag=' $pic_flag'
14412 ;;
14413 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14414 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'
14415 tmp_addflag=' $pic_flag -Mnomain' ;;
14416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14417 tmp_addflag=' -i_dynamic' ;;
14418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14419 tmp_addflag=' -i_dynamic -nofor_main' ;;
14420 ifc* | ifort*) # Intel Fortran compiler
14421 tmp_addflag=' -nofor_main' ;;
14422 esac
14423 case `$CC -V 2>&1 | sed 5q` in
14424 *Sun\ C*) # Sun C 5.9
14425 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14426 tmp_sharedflag='-G' ;;
14427 *Sun\ F*) # Sun Fortran 8.3
14428 tmp_sharedflag='-G' ;;
14429 *)
14430 tmp_sharedflag='-shared' ;;
14431 esac
14432 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14433
14434 if test $supports_anon_versioning = yes; then
14435 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14436 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14437 $echo "local: *; };" >> $output_objdir/$libname.ver~
14438 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14439 fi
14440 else
14441 ld_shlibs_F77=no
14442 fi
14443 ;;
14444
14445 netbsd*)
14446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14447 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14448 wlarc=
14449 else
14450 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14451 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14452 fi
14453 ;;
14454
14455 solaris*)
14456 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14457 ld_shlibs_F77=no
14458 cat <<EOF 1>&2
14459
14460 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14461 *** create shared libraries on Solaris systems. Therefore, libtool
14462 *** is disabling shared libraries support. We urge you to upgrade GNU
14463 *** binutils to release 2.9.1 or newer. Another option is to modify
14464 *** your PATH or compiler configuration so that the native linker is
14465 *** used, and then restart.
14466
14467 EOF
14468 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14471 else
14472 ld_shlibs_F77=no
14473 fi
14474 ;;
14475
14476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14477 case `$LD -v 2>&1` in
14478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14479 ld_shlibs_F77=no
14480 cat <<_LT_EOF 1>&2
14481
14482 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14483 *** reliably create shared libraries on SCO systems. Therefore, libtool
14484 *** is disabling shared libraries support. We urge you to upgrade GNU
14485 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14486 *** your PATH or compiler configuration so that the native linker is
14487 *** used, and then restart.
14488
14489 _LT_EOF
14490 ;;
14491 *)
14492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14493 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14496 else
14497 ld_shlibs_F77=no
14498 fi
14499 ;;
14500 esac
14501 ;;
14502
14503 sunos4*)
14504 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14505 wlarc=
14506 hardcode_direct_F77=yes
14507 hardcode_shlibpath_var_F77=no
14508 ;;
14509
14510 *)
14511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14513 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14514 else
14515 ld_shlibs_F77=no
14516 fi
14517 ;;
14518 esac
14519
14520 if test "$ld_shlibs_F77" = no; then
14521 runpath_var=
14522 hardcode_libdir_flag_spec_F77=
14523 export_dynamic_flag_spec_F77=
14524 whole_archive_flag_spec_F77=
14525 fi
14526 else
14527 # PORTME fill in a description of your system's linker (not GNU ld)
14528 case $host_os in
14529 aix3*)
14530 allow_undefined_flag_F77=unsupported
14531 always_export_symbols_F77=yes
14532 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'
14533 # Note: this linker hardcodes the directories in LIBPATH if there
14534 # are no directories specified by -L.
14535 hardcode_minus_L_F77=yes
14536 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14537 # Neither direct hardcoding nor static linking is supported with a
14538 # broken collect2.
14539 hardcode_direct_F77=unsupported
14540 fi
14541 ;;
14542
14543 aix4* | aix5*)
14544 if test "$host_cpu" = ia64; then
14545 # On IA64, the linker does run time linking by default, so we don't
14546 # have to do anything special.
14547 aix_use_runtimelinking=no
14548 exp_sym_flag='-Bexport'
14549 no_entry_flag=""
14550 else
14551 # If we're using GNU nm, then we don't want the "-C" option.
14552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14553 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14554 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'
14555 else
14556 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'
14557 fi
14558 aix_use_runtimelinking=no
14559
14560 # Test if we are trying to use run time linking or normal
14561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14562 # need to do runtime linking.
14563 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14564 for ld_flag in $LDFLAGS; do
14565 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14566 aix_use_runtimelinking=yes
14567 break
14568 fi
14569 done
14570 ;;
14571 esac
14572
14573 exp_sym_flag='-bexport'
14574 no_entry_flag='-bnoentry'
14575 fi
14576
14577 # When large executables or shared objects are built, AIX ld can
14578 # have problems creating the table of contents. If linking a library
14579 # or program results in "error TOC overflow" add -mminimal-toc to
14580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14582
14583 archive_cmds_F77=''
14584 hardcode_direct_F77=yes
14585 hardcode_libdir_separator_F77=':'
14586 link_all_deplibs_F77=yes
14587
14588 if test "$GCC" = yes; then
14589 case $host_os in aix4.[012]|aix4.[012].*)
14590 # We only want to do this on AIX 4.2 and lower, the check
14591 # below for broken collect2 doesn't work under 4.3+
14592 collect2name=`${CC} -print-prog-name=collect2`
14593 if test -f "$collect2name" && \
14594 strings "$collect2name" | grep resolve_lib_name >/dev/null
14595 then
14596 # We have reworked collect2
14597 :
14598 else
14599 # We have old collect2
14600 hardcode_direct_F77=unsupported
14601 # It fails to find uninstalled libraries when the uninstalled
14602 # path is not listed in the libpath. Setting hardcode_minus_L
14603 # to unsupported forces relinking
14604 hardcode_minus_L_F77=yes
14605 hardcode_libdir_flag_spec_F77='-L$libdir'
14606 hardcode_libdir_separator_F77=
14607 fi
14608 ;;
14609 esac
14610 shared_flag='-shared'
14611 if test "$aix_use_runtimelinking" = yes; then
14612 shared_flag="$shared_flag "'${wl}-G'
14613 fi
14614 else
14615 # not using gcc
14616 if test "$host_cpu" = ia64; then
14617 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14618 # chokes on -Wl,-G. The following line is correct:
14619 shared_flag='-G'
14620 else
14621 if test "$aix_use_runtimelinking" = yes; then
14622 shared_flag='${wl}-G'
14623 else
14624 shared_flag='${wl}-bM:SRE'
14625 fi
14626 fi
14627 fi
14628
14629 # It seems that -bexpall does not export symbols beginning with
14630 # underscore (_), so it is better to generate a list of symbols to export.
14631 always_export_symbols_F77=yes
14632 if test "$aix_use_runtimelinking" = yes; then
14633 # Warning - without using the other runtime loading flags (-brtl),
14634 # -berok will link without error, but may produce a broken library.
14635 allow_undefined_flag_F77='-berok'
14636 # Determine the default libpath from the value encoded in an empty executable.
14637 cat >conftest.$ac_ext <<_ACEOF
14638 program main
14639
14640 end
14641 _ACEOF
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_f77_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest$ac_exeext &&
14659 $as_test_x conftest$ac_exeext; then
14660
14661 lt_aix_libpath_sed='
14662 /Import File Strings/,/^$/ {
14663 /^0/ {
14664 s/^0 *\(.*\)$/\1/
14665 p
14666 }
14667 }'
14668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14669 # Check for a 64-bit object if we didn't find anything.
14670 if test -z "$aix_libpath"; then
14671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14672 fi
14673 else
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677
14678 fi
14679
14680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14681 conftest$ac_exeext conftest.$ac_ext
14682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14683
14684 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14685 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"
14686 else
14687 if test "$host_cpu" = ia64; then
14688 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14689 allow_undefined_flag_F77="-z nodefs"
14690 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"
14691 else
14692 # Determine the default libpath from the value encoded in an empty executable.
14693 cat >conftest.$ac_ext <<_ACEOF
14694 program main
14695
14696 end
14697 _ACEOF
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (ac_try="$ac_link"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_link") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_f77_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest$ac_exeext &&
14715 $as_test_x conftest$ac_exeext; then
14716
14717 lt_aix_libpath_sed='
14718 /Import File Strings/,/^$/ {
14719 /^0/ {
14720 s/^0 *\(.*\)$/\1/
14721 p
14722 }
14723 }'
14724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14725 # Check for a 64-bit object if we didn't find anything.
14726 if test -z "$aix_libpath"; then
14727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14728 fi
14729 else
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733
14734 fi
14735
14736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14737 conftest$ac_exeext conftest.$ac_ext
14738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14739
14740 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14741 # Warning - without using the other run time loading flags,
14742 # -berok will link without error, but may produce a broken library.
14743 no_undefined_flag_F77=' ${wl}-bernotok'
14744 allow_undefined_flag_F77=' ${wl}-berok'
14745 # Exported symbols can be pulled into shared objects from archives
14746 whole_archive_flag_spec_F77='$convenience'
14747 archive_cmds_need_lc_F77=yes
14748 # This is similar to how AIX traditionally builds its shared libraries.
14749 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'
14750 fi
14751 fi
14752 ;;
14753
14754 amigaos*)
14755 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)'
14756 hardcode_libdir_flag_spec_F77='-L$libdir'
14757 hardcode_minus_L_F77=yes
14758 # see comment about different semantics on the GNU ld section
14759 ld_shlibs_F77=no
14760 ;;
14761
14762 bsdi[45]*)
14763 export_dynamic_flag_spec_F77=-rdynamic
14764 ;;
14765
14766 cygwin* | mingw* | pw32*)
14767 # When not using gcc, we currently assume that we are using
14768 # Microsoft Visual C++.
14769 # hardcode_libdir_flag_spec is actually meaningless, as there is
14770 # no search path for DLLs.
14771 hardcode_libdir_flag_spec_F77=' '
14772 allow_undefined_flag_F77=unsupported
14773 # Tell ltmain to make .lib files, not .a files.
14774 libext=lib
14775 # Tell ltmain to make .dll files, not .so files.
14776 shrext_cmds=".dll"
14777 # FIXME: Setting linknames here is a bad hack.
14778 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14779 # The linker will automatically build a .lib file if we build a DLL.
14780 old_archive_From_new_cmds_F77='true'
14781 # FIXME: Should let the user specify the lib program.
14782 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14783 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14784 enable_shared_with_static_runtimes_F77=yes
14785 ;;
14786
14787 darwin* | rhapsody*)
14788 case $host_os in
14789 rhapsody* | darwin1.[012])
14790 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14791 ;;
14792 *) # Darwin 1.3 on
14793 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14794 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14795 else
14796 case ${MACOSX_DEPLOYMENT_TARGET} in
14797 10.[012])
14798 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14799 ;;
14800 10.*)
14801 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14802 ;;
14803 esac
14804 fi
14805 ;;
14806 esac
14807 archive_cmds_need_lc_F77=no
14808 hardcode_direct_F77=no
14809 hardcode_automatic_F77=yes
14810 hardcode_shlibpath_var_F77=unsupported
14811 whole_archive_flag_spec_F77=''
14812 link_all_deplibs_F77=yes
14813 if test "$GCC" = yes ; then
14814 output_verbose_link_cmd='echo'
14815 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14816 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14817 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14818 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}'
14819 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}'
14820 else
14821 case $cc_basename in
14822 xlc*)
14823 output_verbose_link_cmd='echo'
14824 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14825 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14827 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14828 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}'
14829 ;;
14830 *)
14831 ld_shlibs_F77=no
14832 ;;
14833 esac
14834 fi
14835 ;;
14836
14837 dgux*)
14838 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14839 hardcode_libdir_flag_spec_F77='-L$libdir'
14840 hardcode_shlibpath_var_F77=no
14841 ;;
14842
14843 freebsd1*)
14844 ld_shlibs_F77=no
14845 ;;
14846
14847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14848 # support. Future versions do this automatically, but an explicit c++rt0.o
14849 # does not break anything, and helps significantly (at the cost of a little
14850 # extra space).
14851 freebsd2.2*)
14852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14853 hardcode_libdir_flag_spec_F77='-R$libdir'
14854 hardcode_direct_F77=yes
14855 hardcode_shlibpath_var_F77=no
14856 ;;
14857
14858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14859 freebsd2*)
14860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14861 hardcode_direct_F77=yes
14862 hardcode_minus_L_F77=yes
14863 hardcode_shlibpath_var_F77=no
14864 ;;
14865
14866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14867 freebsd* | dragonfly*)
14868 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14869 hardcode_libdir_flag_spec_F77='-R$libdir'
14870 hardcode_direct_F77=yes
14871 hardcode_shlibpath_var_F77=no
14872 ;;
14873
14874 hpux9*)
14875 if test "$GCC" = yes; then
14876 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'
14877 else
14878 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'
14879 fi
14880 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14882 hardcode_direct_F77=yes
14883
14884 # hardcode_minus_L: Not really in the search PATH,
14885 # but as the default location of the library.
14886 hardcode_minus_L_F77=yes
14887 export_dynamic_flag_spec_F77='${wl}-E'
14888 ;;
14889
14890 hpux10*)
14891 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14892 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14893 else
14894 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14895 fi
14896 if test "$with_gnu_ld" = no; then
14897 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14898 hardcode_libdir_separator_F77=:
14899
14900 hardcode_direct_F77=yes
14901 export_dynamic_flag_spec_F77='${wl}-E'
14902
14903 # hardcode_minus_L: Not really in the search PATH,
14904 # but as the default location of the library.
14905 hardcode_minus_L_F77=yes
14906 fi
14907 ;;
14908
14909 hpux11*)
14910 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14911 case $host_cpu in
14912 hppa*64*)
14913 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 ;;
14915 ia64*)
14916 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14917 ;;
14918 *)
14919 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14920 ;;
14921 esac
14922 else
14923 case $host_cpu in
14924 hppa*64*)
14925 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14926 ;;
14927 ia64*)
14928 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14929 ;;
14930 *)
14931 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14932 ;;
14933 esac
14934 fi
14935 if test "$with_gnu_ld" = no; then
14936 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14937 hardcode_libdir_separator_F77=:
14938
14939 case $host_cpu in
14940 hppa*64*|ia64*)
14941 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14942 hardcode_direct_F77=no
14943 hardcode_shlibpath_var_F77=no
14944 ;;
14945 *)
14946 hardcode_direct_F77=yes
14947 export_dynamic_flag_spec_F77='${wl}-E'
14948
14949 # hardcode_minus_L: Not really in the search PATH,
14950 # but as the default location of the library.
14951 hardcode_minus_L_F77=yes
14952 ;;
14953 esac
14954 fi
14955 ;;
14956
14957 irix5* | irix6* | nonstopux*)
14958 if test "$GCC" = yes; then
14959 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'
14960 else
14961 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'
14962 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14963 fi
14964 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14965 hardcode_libdir_separator_F77=:
14966 link_all_deplibs_F77=yes
14967 ;;
14968
14969 netbsd*)
14970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14971 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14972 else
14973 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14974 fi
14975 hardcode_libdir_flag_spec_F77='-R$libdir'
14976 hardcode_direct_F77=yes
14977 hardcode_shlibpath_var_F77=no
14978 ;;
14979
14980 newsos6)
14981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14982 hardcode_direct_F77=yes
14983 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14984 hardcode_libdir_separator_F77=:
14985 hardcode_shlibpath_var_F77=no
14986 ;;
14987
14988 openbsd*)
14989 if test -f /usr/libexec/ld.so; then
14990 hardcode_direct_F77=yes
14991 hardcode_shlibpath_var_F77=no
14992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14993 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14996 export_dynamic_flag_spec_F77='${wl}-E'
14997 else
14998 case $host_os in
14999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15001 hardcode_libdir_flag_spec_F77='-R$libdir'
15002 ;;
15003 *)
15004 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15005 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15006 ;;
15007 esac
15008 fi
15009 else
15010 ld_shlibs_F77=no
15011 fi
15012 ;;
15013
15014 os2*)
15015 hardcode_libdir_flag_spec_F77='-L$libdir'
15016 hardcode_minus_L_F77=yes
15017 allow_undefined_flag_F77=unsupported
15018 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'
15019 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15020 ;;
15021
15022 osf3*)
15023 if test "$GCC" = yes; then
15024 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15025 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'
15026 else
15027 allow_undefined_flag_F77=' -expect_unresolved \*'
15028 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'
15029 fi
15030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15031 hardcode_libdir_separator_F77=:
15032 ;;
15033
15034 osf4* | osf5*) # as osf3* with the addition of -msym flag
15035 if test "$GCC" = yes; then
15036 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15037 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'
15038 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15039 else
15040 allow_undefined_flag_F77=' -expect_unresolved \*'
15041 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'
15042 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~
15043 $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'
15044
15045 # Both c and cxx compiler support -rpath directly
15046 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15047 fi
15048 hardcode_libdir_separator_F77=:
15049 ;;
15050
15051 solaris*)
15052 no_undefined_flag_F77=' -z text'
15053 if test "$GCC" = yes; then
15054 wlarc='${wl}'
15055 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15058 else
15059 wlarc=''
15060 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15061 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15063 fi
15064 hardcode_libdir_flag_spec_F77='-R$libdir'
15065 hardcode_shlibpath_var_F77=no
15066 case $host_os in
15067 solaris2.[0-5] | solaris2.[0-5].*) ;;
15068 *)
15069 # The compiler driver will combine and reorder linker options,
15070 # but understands `-z linker_flag'. GCC discards it without `$wl',
15071 # but is careful enough not to reorder.
15072 # Supported since Solaris 2.6 (maybe 2.5.1?)
15073 if test "$GCC" = yes; then
15074 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15075 else
15076 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15077 fi
15078 ;;
15079 esac
15080 link_all_deplibs_F77=yes
15081 ;;
15082
15083 sunos4*)
15084 if test "x$host_vendor" = xsequent; then
15085 # Use $CC to link under sequent, because it throws in some extra .o
15086 # files that make .init and .fini sections work.
15087 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15088 else
15089 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15090 fi
15091 hardcode_libdir_flag_spec_F77='-L$libdir'
15092 hardcode_direct_F77=yes
15093 hardcode_minus_L_F77=yes
15094 hardcode_shlibpath_var_F77=no
15095 ;;
15096
15097 sysv4)
15098 case $host_vendor in
15099 sni)
15100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15101 hardcode_direct_F77=yes # is this really true???
15102 ;;
15103 siemens)
15104 ## LD is ld it makes a PLAMLIB
15105 ## CC just makes a GrossModule.
15106 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15107 reload_cmds_F77='$CC -r -o $output$reload_objs'
15108 hardcode_direct_F77=no
15109 ;;
15110 motorola)
15111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15113 ;;
15114 esac
15115 runpath_var='LD_RUN_PATH'
15116 hardcode_shlibpath_var_F77=no
15117 ;;
15118
15119 sysv4.3*)
15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_shlibpath_var_F77=no
15122 export_dynamic_flag_spec_F77='-Bexport'
15123 ;;
15124
15125 sysv4*MP*)
15126 if test -d /usr/nec; then
15127 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15128 hardcode_shlibpath_var_F77=no
15129 runpath_var=LD_RUN_PATH
15130 hardcode_runpath_var=yes
15131 ld_shlibs_F77=yes
15132 fi
15133 ;;
15134
15135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15136 no_undefined_flag_F77='${wl}-z,text'
15137 archive_cmds_need_lc_F77=no
15138 hardcode_shlibpath_var_F77=no
15139 runpath_var='LD_RUN_PATH'
15140
15141 if test "$GCC" = yes; then
15142 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15143 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15144 else
15145 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15146 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15147 fi
15148 ;;
15149
15150 sysv5* | sco3.2v5* | sco5v6*)
15151 # Note: We can NOT use -z defs as we might desire, because we do not
15152 # link with -lc, and that would cause any symbols used from libc to
15153 # always be unresolved, which means just about no library would
15154 # ever link correctly. If we're not using GNU ld we use -z text
15155 # though, which does catch some bad symbols but isn't as heavy-handed
15156 # as -z defs.
15157 no_undefined_flag_F77='${wl}-z,text'
15158 allow_undefined_flag_F77='${wl}-z,nodefs'
15159 archive_cmds_need_lc_F77=no
15160 hardcode_shlibpath_var_F77=no
15161 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15162 hardcode_libdir_separator_F77=':'
15163 link_all_deplibs_F77=yes
15164 export_dynamic_flag_spec_F77='${wl}-Bexport'
15165 runpath_var='LD_RUN_PATH'
15166
15167 if test "$GCC" = yes; then
15168 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 else
15171 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15173 fi
15174 ;;
15175
15176 uts4*)
15177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15178 hardcode_libdir_flag_spec_F77='-L$libdir'
15179 hardcode_shlibpath_var_F77=no
15180 ;;
15181
15182 *)
15183 ld_shlibs_F77=no
15184 ;;
15185 esac
15186 fi
15187
15188 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15189 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15190 test "$ld_shlibs_F77" = no && can_build_shared=no
15191
15192 #
15193 # Do we need to explicitly link libc?
15194 #
15195 case "x$archive_cmds_need_lc_F77" in
15196 x|xyes)
15197 # Assume -lc should be added
15198 archive_cmds_need_lc_F77=yes
15199
15200 if test "$enable_shared" = yes && test "$GCC" = yes; then
15201 case $archive_cmds_F77 in
15202 *'~'*)
15203 # FIXME: we may have to deal with multi-command sequences.
15204 ;;
15205 '$CC '*)
15206 # Test whether the compiler implicitly links with -lc since on some
15207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15208 # to ld, don't add -lc before -lgcc.
15209 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15210 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15211 $rm conftest*
15212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15213
15214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15215 (eval $ac_compile) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } 2>conftest.err; then
15219 soname=conftest
15220 lib=conftest
15221 libobjs=conftest.$ac_objext
15222 deplibs=
15223 wl=$lt_prog_compiler_wl_F77
15224 pic_flag=$lt_prog_compiler_pic_F77
15225 compiler_flags=-v
15226 linker_flags=-v
15227 verstring=
15228 output_objdir=.
15229 libname=conftest
15230 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15231 allow_undefined_flag_F77=
15232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15233 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }
15237 then
15238 archive_cmds_need_lc_F77=no
15239 else
15240 archive_cmds_need_lc_F77=yes
15241 fi
15242 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15243 else
15244 cat conftest.err 1>&5
15245 fi
15246 $rm conftest*
15247 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15248 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15249 ;;
15250 esac
15251 fi
15252 ;;
15253 esac
15254
15255 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15256 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15257 library_names_spec=
15258 libname_spec='lib$name'
15259 soname_spec=
15260 shrext_cmds=".so"
15261 postinstall_cmds=
15262 postuninstall_cmds=
15263 finish_cmds=
15264 finish_eval=
15265 shlibpath_var=
15266 shlibpath_overrides_runpath=unknown
15267 version_type=none
15268 dynamic_linker="$host_os ld.so"
15269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15270
15271 need_lib_prefix=unknown
15272 hardcode_into_libs=no
15273
15274 # when you set need_version to no, make sure it does not cause -set_version
15275 # flags to be left without arguments
15276 need_version=unknown
15277
15278 case $host_os in
15279 aix3*)
15280 version_type=linux
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15282 shlibpath_var=LIBPATH
15283
15284 # AIX 3 has no versioning support, so we append a major version to the name.
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 ;;
15287
15288 aix4* | aix5*)
15289 version_type=linux
15290 need_lib_prefix=no
15291 need_version=no
15292 hardcode_into_libs=yes
15293 if test "$host_cpu" = ia64; then
15294 # AIX 5 supports IA64
15295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 else
15298 # With GCC up to 2.95.x, collect2 would create an import file
15299 # for dependence libraries. The import file would start with
15300 # the line `#! .'. This would cause the generated library to
15301 # depend on `.', always an invalid library. This was fixed in
15302 # development snapshots of GCC prior to 3.0.
15303 case $host_os in
15304 aix4 | aix4.[01] | aix4.[01].*)
15305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15306 echo ' yes '
15307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15308 :
15309 else
15310 can_build_shared=no
15311 fi
15312 ;;
15313 esac
15314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15315 # soname into executable. Probably we can add versioning support to
15316 # collect2, so additional links can be useful in future.
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15319 # instead of lib<name>.a to let people know that these are not
15320 # typical AIX shared libraries.
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322 else
15323 # We preserve .a as extension for shared libraries through AIX4.2
15324 # and later when we are not doing run time linking.
15325 library_names_spec='${libname}${release}.a $libname.a'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 fi
15328 shlibpath_var=LIBPATH
15329 fi
15330 ;;
15331
15332 amigaos*)
15333 library_names_spec='$libname.ixlibrary $libname.a'
15334 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15335 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'
15336 ;;
15337
15338 beos*)
15339 library_names_spec='${libname}${shared_ext}'
15340 dynamic_linker="$host_os ld.so"
15341 shlibpath_var=LIBRARY_PATH
15342 ;;
15343
15344 bsdi[45]*)
15345 version_type=linux
15346 need_version=no
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15353 # the default ld.so.conf also contains /usr/contrib/lib and
15354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15355 # libtool to hard-code these into programs
15356 ;;
15357
15358 cygwin* | mingw* | pw32*)
15359 version_type=windows
15360 shrext_cmds=".dll"
15361 need_version=no
15362 need_lib_prefix=no
15363
15364 case $GCC,$host_os in
15365 yes,cygwin* | yes,mingw* | yes,pw32*)
15366 library_names_spec='$libname.dll.a'
15367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15368 postinstall_cmds='base_file=`basename \${file}`~
15369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15370 dldir=$destdir/`dirname \$dlpath`~
15371 test -d \$dldir || mkdir -p \$dldir~
15372 $install_prog $dir/$dlname \$dldir/$dlname~
15373 chmod a+x \$dldir/$dlname'
15374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15375 dlpath=$dir/\$dldll~
15376 $rm \$dlpath'
15377 shlibpath_overrides_runpath=yes
15378
15379 case $host_os in
15380 cygwin*)
15381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15384 ;;
15385 mingw*)
15386 # MinGW DLLs use traditional 'lib' prefix
15387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15390 # It is most probably a Windows format PATH printed by
15391 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15392 # path with ; separators, and with drive letters. We can handle the
15393 # drive letters (cygwin fileutils understands them), so leave them,
15394 # especially as we might pass files found there to a mingw objdump,
15395 # which wouldn't understand a cygwinified path. Ahh.
15396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15397 else
15398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15399 fi
15400 ;;
15401 pw32*)
15402 # pw32 DLLs use 'pw' prefix rather than 'lib'
15403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15404 ;;
15405 esac
15406 ;;
15407
15408 *)
15409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15410 ;;
15411 esac
15412 dynamic_linker='Win32 ld.exe'
15413 # FIXME: first we should search . and the directory the executable is in
15414 shlibpath_var=PATH
15415 ;;
15416
15417 darwin* | rhapsody*)
15418 dynamic_linker="$host_os dyld"
15419 version_type=darwin
15420 need_lib_prefix=no
15421 need_version=no
15422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15423 soname_spec='${libname}${release}${major}$shared_ext'
15424 shlibpath_overrides_runpath=yes
15425 shlibpath_var=DYLD_LIBRARY_PATH
15426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15427
15428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15429 ;;
15430
15431 dgux*)
15432 version_type=linux
15433 need_lib_prefix=no
15434 need_version=no
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 ;;
15439
15440 freebsd1*)
15441 dynamic_linker=no
15442 ;;
15443
15444 freebsd* | dragonfly*)
15445 # DragonFly does not have aout. When/if they implement a new
15446 # versioning mechanism, adjust this.
15447 if test -x /usr/bin/objformat; then
15448 objformat=`/usr/bin/objformat`
15449 else
15450 case $host_os in
15451 freebsd[123]*) objformat=aout ;;
15452 *) objformat=elf ;;
15453 esac
15454 fi
15455 version_type=freebsd-$objformat
15456 case $version_type in
15457 freebsd-elf*)
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15459 need_version=no
15460 need_lib_prefix=no
15461 ;;
15462 freebsd-*)
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15464 need_version=yes
15465 ;;
15466 esac
15467 shlibpath_var=LD_LIBRARY_PATH
15468 case $host_os in
15469 freebsd2*)
15470 shlibpath_overrides_runpath=yes
15471 ;;
15472 freebsd3.[01]* | freebsdelf3.[01]*)
15473 shlibpath_overrides_runpath=yes
15474 hardcode_into_libs=yes
15475 ;;
15476 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15477 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15480 ;;
15481 *) # from 4.6 on, and DragonFly
15482 shlibpath_overrides_runpath=yes
15483 hardcode_into_libs=yes
15484 ;;
15485 esac
15486 ;;
15487
15488 gnu*)
15489 version_type=linux
15490 need_lib_prefix=no
15491 need_version=no
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 hardcode_into_libs=yes
15496 ;;
15497
15498 hpux9* | hpux10* | hpux11*)
15499 # Give a soname corresponding to the major version so that dld.sl refuses to
15500 # link against other versions.
15501 version_type=sunos
15502 need_lib_prefix=no
15503 need_version=no
15504 case $host_cpu in
15505 ia64*)
15506 shrext_cmds='.so'
15507 hardcode_into_libs=yes
15508 dynamic_linker="$host_os dld.so"
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 if test "X$HPUX_IA64_MODE" = X32; then
15514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15515 else
15516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15517 fi
15518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15519 ;;
15520 hppa*64*)
15521 shrext_cmds='.sl'
15522 hardcode_into_libs=yes
15523 dynamic_linker="$host_os dld.sl"
15524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15530 ;;
15531 *)
15532 shrext_cmds='.sl'
15533 dynamic_linker="$host_os dld.sl"
15534 shlibpath_var=SHLIB_PATH
15535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 ;;
15539 esac
15540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15541 postinstall_cmds='chmod 555 $lib'
15542 ;;
15543
15544 interix[3-9]*)
15545 version_type=linux
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15554 ;;
15555
15556 irix5* | irix6* | nonstopux*)
15557 case $host_os in
15558 nonstopux*) version_type=nonstopux ;;
15559 *)
15560 if test "$lt_cv_prog_gnu_ld" = yes; then
15561 version_type=linux
15562 else
15563 version_type=irix
15564 fi ;;
15565 esac
15566 need_lib_prefix=no
15567 need_version=no
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15570 case $host_os in
15571 irix5* | nonstopux*)
15572 libsuff= shlibsuff=
15573 ;;
15574 *)
15575 case $LD in # libtool.m4 will add one of these switches to LD
15576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15577 libsuff= shlibsuff= libmagic=32-bit;;
15578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15579 libsuff=32 shlibsuff=N32 libmagic=N32;;
15580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15582 *) libsuff= shlibsuff= libmagic=never-match;;
15583 esac
15584 ;;
15585 esac
15586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15587 shlibpath_overrides_runpath=no
15588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15590 hardcode_into_libs=yes
15591 ;;
15592
15593 # No shared lib support for Linux oldld, aout, or coff.
15594 linux*oldld* | linux*aout* | linux*coff*)
15595 dynamic_linker=no
15596 ;;
15597
15598 # This must be Linux ELF.
15599 linux* | k*bsd*-gnu)
15600 version_type=linux
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=no
15608 # This implies no fast_install, which is unacceptable.
15609 # Some rework will be needed to allow for fast_install
15610 # before this can be enabled.
15611 hardcode_into_libs=yes
15612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15614
15615 # Append ld.so.conf contents to the search path
15616 if test -f /etc/ld.so.conf; then
15617 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15618 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15619 fi
15620
15621 # We used to test for /lib/ld.so.1 and disable shared libraries on
15622 # powerpc, because MkLinux only supported shared libraries with the
15623 # GNU dynamic linker. Since this was broken with cross compilers,
15624 # most powerpc-linux boxes support dynamic linking these days and
15625 # people can always --disable-shared, the test was removed, and we
15626 # assume the GNU/Linux dynamic linker is in use.
15627 dynamic_linker='GNU/Linux ld.so'
15628 ;;
15629
15630 netbsd*)
15631 version_type=sunos
15632 need_lib_prefix=no
15633 need_version=no
15634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15637 dynamic_linker='NetBSD (a.out) ld.so'
15638 else
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 dynamic_linker='NetBSD ld.elf_so'
15642 fi
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=yes
15645 hardcode_into_libs=yes
15646 ;;
15647
15648 newsos6)
15649 version_type=linux
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 shlibpath_overrides_runpath=yes
15653 ;;
15654
15655 nto-qnx*)
15656 version_type=linux
15657 need_lib_prefix=no
15658 need_version=no
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 soname_spec='${libname}${release}${shared_ext}$major'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 shlibpath_overrides_runpath=yes
15663 ;;
15664
15665 openbsd*)
15666 version_type=sunos
15667 sys_lib_dlsearch_path_spec="/usr/lib"
15668 need_lib_prefix=no
15669 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15670 case $host_os in
15671 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15672 *) need_version=no ;;
15673 esac
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15678 case $host_os in
15679 openbsd2.[89] | openbsd2.[89].*)
15680 shlibpath_overrides_runpath=no
15681 ;;
15682 *)
15683 shlibpath_overrides_runpath=yes
15684 ;;
15685 esac
15686 else
15687 shlibpath_overrides_runpath=yes
15688 fi
15689 ;;
15690
15691 os2*)
15692 libname_spec='$name'
15693 shrext_cmds=".dll"
15694 need_lib_prefix=no
15695 library_names_spec='$libname${shared_ext} $libname.a'
15696 dynamic_linker='OS/2 ld.exe'
15697 shlibpath_var=LIBPATH
15698 ;;
15699
15700 osf3* | osf4* | osf5*)
15701 version_type=osf
15702 need_lib_prefix=no
15703 need_version=no
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15709 ;;
15710
15711 rdos*)
15712 dynamic_linker=no
15713 ;;
15714
15715 solaris*)
15716 version_type=linux
15717 need_lib_prefix=no
15718 need_version=no
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=yes
15723 hardcode_into_libs=yes
15724 # ldd complains unless libraries are executable
15725 postinstall_cmds='chmod +x $lib'
15726 ;;
15727
15728 sunos4*)
15729 version_type=sunos
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 shlibpath_overrides_runpath=yes
15734 if test "$with_gnu_ld" = yes; then
15735 need_lib_prefix=no
15736 fi
15737 need_version=yes
15738 ;;
15739
15740 sysv4 | sysv4.3*)
15741 version_type=linux
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 case $host_vendor in
15746 sni)
15747 shlibpath_overrides_runpath=no
15748 need_lib_prefix=no
15749 export_dynamic_flag_spec='${wl}-Blargedynsym'
15750 runpath_var=LD_RUN_PATH
15751 ;;
15752 siemens)
15753 need_lib_prefix=no
15754 ;;
15755 motorola)
15756 need_lib_prefix=no
15757 need_version=no
15758 shlibpath_overrides_runpath=no
15759 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15760 ;;
15761 esac
15762 ;;
15763
15764 sysv4*MP*)
15765 if test -d /usr/nec ;then
15766 version_type=linux
15767 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15768 soname_spec='$libname${shared_ext}.$major'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 fi
15771 ;;
15772
15773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15774 version_type=freebsd-elf
15775 need_lib_prefix=no
15776 need_version=no
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 hardcode_into_libs=yes
15781 if test "$with_gnu_ld" = yes; then
15782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15783 shlibpath_overrides_runpath=no
15784 else
15785 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15786 shlibpath_overrides_runpath=yes
15787 case $host_os in
15788 sco3.2v5*)
15789 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15790 ;;
15791 esac
15792 fi
15793 sys_lib_dlsearch_path_spec='/usr/lib'
15794 ;;
15795
15796 uts4*)
15797 version_type=linux
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 ;;
15802
15803 *)
15804 dynamic_linker=no
15805 ;;
15806 esac
15807 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15808 echo "${ECHO_T}$dynamic_linker" >&6; }
15809 test "$dynamic_linker" = no && can_build_shared=no
15810
15811 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15812 if test "$GCC" = yes; then
15813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15814 fi
15815
15816 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15818 hardcode_action_F77=
15819 if test -n "$hardcode_libdir_flag_spec_F77" || \
15820 test -n "$runpath_var_F77" || \
15821 test "X$hardcode_automatic_F77" = "Xyes" ; then
15822
15823 # We can hardcode non-existant directories.
15824 if test "$hardcode_direct_F77" != no &&
15825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15826 # have to relink, otherwise we might link with an installed library
15827 # when we should be linking with a yet-to-be-installed one
15828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15829 test "$hardcode_minus_L_F77" != no; then
15830 # Linking always hardcodes the temporary library directory.
15831 hardcode_action_F77=relink
15832 else
15833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15834 hardcode_action_F77=immediate
15835 fi
15836 else
15837 # We cannot hardcode anything, or else we can only hardcode existing
15838 # directories.
15839 hardcode_action_F77=unsupported
15840 fi
15841 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15842 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15843
15844 if test "$hardcode_action_F77" = relink; then
15845 # Fast installation is not supported
15846 enable_fast_install=no
15847 elif test "$shlibpath_overrides_runpath" = yes ||
15848 test "$enable_shared" = no; then
15849 # Fast installation is not necessary
15850 enable_fast_install=needless
15851 fi
15852
15853
15854 # The else clause should only fire when bootstrapping the
15855 # libtool distribution, otherwise you forgot to ship ltmain.sh
15856 # with your package, and you will get complaints that there are
15857 # no rules to generate ltmain.sh.
15858 if test -f "$ltmain"; then
15859 # See if we are running on zsh, and set the options which allow our commands through
15860 # without removal of \ escapes.
15861 if test -n "${ZSH_VERSION+set}" ; then
15862 setopt NO_GLOB_SUBST
15863 fi
15864 # Now quote all the things that may contain metacharacters while being
15865 # careful not to overquote the AC_SUBSTed values. We take copies of the
15866 # variables and quote the copies for generation of the libtool script.
15867 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15868 SED SHELL STRIP \
15869 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15870 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15871 deplibs_check_method reload_flag reload_cmds need_locks \
15872 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15873 lt_cv_sys_global_symbol_to_c_name_address \
15874 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15875 old_postinstall_cmds old_postuninstall_cmds \
15876 compiler_F77 \
15877 CC_F77 \
15878 LD_F77 \
15879 lt_prog_compiler_wl_F77 \
15880 lt_prog_compiler_pic_F77 \
15881 lt_prog_compiler_static_F77 \
15882 lt_prog_compiler_no_builtin_flag_F77 \
15883 export_dynamic_flag_spec_F77 \
15884 thread_safe_flag_spec_F77 \
15885 whole_archive_flag_spec_F77 \
15886 enable_shared_with_static_runtimes_F77 \
15887 old_archive_cmds_F77 \
15888 old_archive_from_new_cmds_F77 \
15889 predep_objects_F77 \
15890 postdep_objects_F77 \
15891 predeps_F77 \
15892 postdeps_F77 \
15893 compiler_lib_search_path_F77 \
15894 archive_cmds_F77 \
15895 archive_expsym_cmds_F77 \
15896 postinstall_cmds_F77 \
15897 postuninstall_cmds_F77 \
15898 old_archive_from_expsyms_cmds_F77 \
15899 allow_undefined_flag_F77 \
15900 no_undefined_flag_F77 \
15901 export_symbols_cmds_F77 \
15902 hardcode_libdir_flag_spec_F77 \
15903 hardcode_libdir_flag_spec_ld_F77 \
15904 hardcode_libdir_separator_F77 \
15905 hardcode_automatic_F77 \
15906 module_cmds_F77 \
15907 module_expsym_cmds_F77 \
15908 lt_cv_prog_compiler_c_o_F77 \
15909 fix_srcfile_path_F77 \
15910 exclude_expsyms_F77 \
15911 include_expsyms_F77; do
15912
15913 case $var in
15914 old_archive_cmds_F77 | \
15915 old_archive_from_new_cmds_F77 | \
15916 archive_cmds_F77 | \
15917 archive_expsym_cmds_F77 | \
15918 module_cmds_F77 | \
15919 module_expsym_cmds_F77 | \
15920 old_archive_from_expsyms_cmds_F77 | \
15921 export_symbols_cmds_F77 | \
15922 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15923 postinstall_cmds | postuninstall_cmds | \
15924 old_postinstall_cmds | old_postuninstall_cmds | \
15925 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15926 # Double-quote double-evaled strings.
15927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15928 ;;
15929 *)
15930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15931 ;;
15932 esac
15933 done
15934
15935 case $lt_echo in
15936 *'\$0 --fallback-echo"')
15937 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15938 ;;
15939 esac
15940
15941 cfgfile="$ofile"
15942
15943 cat <<__EOF__ >> "$cfgfile"
15944 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15945
15946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15947
15948 # Shell to use when invoking shell scripts.
15949 SHELL=$lt_SHELL
15950
15951 # Whether or not to build shared libraries.
15952 build_libtool_libs=$enable_shared
15953
15954 # Whether or not to build static libraries.
15955 build_old_libs=$enable_static
15956
15957 # Whether or not to add -lc for building shared libraries.
15958 build_libtool_need_lc=$archive_cmds_need_lc_F77
15959
15960 # Whether or not to disallow shared libs when runtime libs are static
15961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15962
15963 # Whether or not to optimize for fast installation.
15964 fast_install=$enable_fast_install
15965
15966 # The host system.
15967 host_alias=$host_alias
15968 host=$host
15969 host_os=$host_os
15970
15971 # The build system.
15972 build_alias=$build_alias
15973 build=$build
15974 build_os=$build_os
15975
15976 # An echo program that does not interpret backslashes.
15977 echo=$lt_echo
15978
15979 # The archiver.
15980 AR=$lt_AR
15981 AR_FLAGS=$lt_AR_FLAGS
15982
15983 # A C compiler.
15984 LTCC=$lt_LTCC
15985
15986 # LTCC compiler flags.
15987 LTCFLAGS=$lt_LTCFLAGS
15988
15989 # A language-specific compiler.
15990 CC=$lt_compiler_F77
15991
15992 # Is the compiler the GNU C compiler?
15993 with_gcc=$GCC_F77
15994
15995 # An ERE matcher.
15996 EGREP=$lt_EGREP
15997
15998 # The linker used to build libraries.
15999 LD=$lt_LD_F77
16000
16001 # Whether we need hard or soft links.
16002 LN_S=$lt_LN_S
16003
16004 # A BSD-compatible nm program.
16005 NM=$lt_NM
16006
16007 # A symbol stripping program
16008 STRIP=$lt_STRIP
16009
16010 # Used to examine libraries when file_magic_cmd begins "file"
16011 MAGIC_CMD=$MAGIC_CMD
16012
16013 # Used on cygwin: DLL creation program.
16014 DLLTOOL="$DLLTOOL"
16015
16016 # Used on cygwin: object dumper.
16017 OBJDUMP="$OBJDUMP"
16018
16019 # Used on cygwin: assembler.
16020 AS="$AS"
16021
16022 # The name of the directory that contains temporary libtool files.
16023 objdir=$objdir
16024
16025 # How to create reloadable object files.
16026 reload_flag=$lt_reload_flag
16027 reload_cmds=$lt_reload_cmds
16028
16029 # How to pass a linker flag through the compiler.
16030 wl=$lt_lt_prog_compiler_wl_F77
16031
16032 # Object file suffix (normally "o").
16033 objext="$ac_objext"
16034
16035 # Old archive suffix (normally "a").
16036 libext="$libext"
16037
16038 # Shared library suffix (normally ".so").
16039 shrext_cmds='$shrext_cmds'
16040
16041 # Executable file suffix (normally "").
16042 exeext="$exeext"
16043
16044 # Additional compiler flags for building library objects.
16045 pic_flag=$lt_lt_prog_compiler_pic_F77
16046 pic_mode=$pic_mode
16047
16048 # What is the maximum length of a command?
16049 max_cmd_len=$lt_cv_sys_max_cmd_len
16050
16051 # Does compiler simultaneously support -c and -o options?
16052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16053
16054 # Must we lock files when doing compilation?
16055 need_locks=$lt_need_locks
16056
16057 # Do we need the lib prefix for modules?
16058 need_lib_prefix=$need_lib_prefix
16059
16060 # Do we need a version for libraries?
16061 need_version=$need_version
16062
16063 # Whether dlopen is supported.
16064 dlopen_support=$enable_dlopen
16065
16066 # Whether dlopen of programs is supported.
16067 dlopen_self=$enable_dlopen_self
16068
16069 # Whether dlopen of statically linked programs is supported.
16070 dlopen_self_static=$enable_dlopen_self_static
16071
16072 # Compiler flag to prevent dynamic linking.
16073 link_static_flag=$lt_lt_prog_compiler_static_F77
16074
16075 # Compiler flag to turn off builtin functions.
16076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16077
16078 # Compiler flag to allow reflexive dlopens.
16079 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16080
16081 # Compiler flag to generate shared objects directly from archives.
16082 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16083
16084 # Compiler flag to generate thread-safe objects.
16085 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16086
16087 # Library versioning type.
16088 version_type=$version_type
16089
16090 # Format of library name prefix.
16091 libname_spec=$lt_libname_spec
16092
16093 # List of archive names. First name is the real one, the rest are links.
16094 # The last name is the one that the linker finds with -lNAME.
16095 library_names_spec=$lt_library_names_spec
16096
16097 # The coded name of the library, if different from the real name.
16098 soname_spec=$lt_soname_spec
16099
16100 # Commands used to build and install an old-style archive.
16101 RANLIB=$lt_RANLIB
16102 old_archive_cmds=$lt_old_archive_cmds_F77
16103 old_postinstall_cmds=$lt_old_postinstall_cmds
16104 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16105
16106 # Create an old-style archive from a shared archive.
16107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16108
16109 # Create a temporary old-style archive to link instead of a shared archive.
16110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16111
16112 # Commands used to build and install a shared archive.
16113 archive_cmds=$lt_archive_cmds_F77
16114 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16115 postinstall_cmds=$lt_postinstall_cmds
16116 postuninstall_cmds=$lt_postuninstall_cmds
16117
16118 # Commands used to build a loadable module (assumed same as above if empty)
16119 module_cmds=$lt_module_cmds_F77
16120 module_expsym_cmds=$lt_module_expsym_cmds_F77
16121
16122 # Commands to strip libraries.
16123 old_striplib=$lt_old_striplib
16124 striplib=$lt_striplib
16125
16126 # Dependencies to place before the objects being linked to create a
16127 # shared library.
16128 predep_objects=$lt_predep_objects_F77
16129
16130 # Dependencies to place after the objects being linked to create a
16131 # shared library.
16132 postdep_objects=$lt_postdep_objects_F77
16133
16134 # Dependencies to place before the objects being linked to create a
16135 # shared library.
16136 predeps=$lt_predeps_F77
16137
16138 # Dependencies to place after the objects being linked to create a
16139 # shared library.
16140 postdeps=$lt_postdeps_F77
16141
16142 # The library search path used internally by the compiler when linking
16143 # a shared library.
16144 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16145
16146 # Method to check whether dependent libraries are shared objects.
16147 deplibs_check_method=$lt_deplibs_check_method
16148
16149 # Command to use when deplibs_check_method == file_magic.
16150 file_magic_cmd=$lt_file_magic_cmd
16151
16152 # Flag that allows shared libraries with undefined symbols to be built.
16153 allow_undefined_flag=$lt_allow_undefined_flag_F77
16154
16155 # Flag that forces no undefined symbols.
16156 no_undefined_flag=$lt_no_undefined_flag_F77
16157
16158 # Commands used to finish a libtool library installation in a directory.
16159 finish_cmds=$lt_finish_cmds
16160
16161 # Same as above, but a single script fragment to be evaled but not shown.
16162 finish_eval=$lt_finish_eval
16163
16164 # Take the output of nm and produce a listing of raw symbols and C names.
16165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16166
16167 # Transform the output of nm in a proper C declaration
16168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16169
16170 # Transform the output of nm in a C name address pair
16171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16172
16173 # This is the shared library runtime path variable.
16174 runpath_var=$runpath_var
16175
16176 # This is the shared library path variable.
16177 shlibpath_var=$shlibpath_var
16178
16179 # Is shlibpath searched before the hard-coded library search path?
16180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16181
16182 # How to hardcode a shared library path into an executable.
16183 hardcode_action=$hardcode_action_F77
16184
16185 # Whether we should hardcode library paths into libraries.
16186 hardcode_into_libs=$hardcode_into_libs
16187
16188 # Flag to hardcode \$libdir into a binary during linking.
16189 # This must work even if \$libdir does not exist.
16190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16191
16192 # If ld is used when linking, flag to hardcode \$libdir into
16193 # a binary during linking. This must work even if \$libdir does
16194 # not exist.
16195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16196
16197 # Whether we need a single -rpath flag with a separated argument.
16198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16199
16200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16201 # resulting binary.
16202 hardcode_direct=$hardcode_direct_F77
16203
16204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16205 # resulting binary.
16206 hardcode_minus_L=$hardcode_minus_L_F77
16207
16208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16209 # the resulting binary.
16210 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16211
16212 # Set to yes if building a shared library automatically hardcodes DIR into the library
16213 # and all subsequent libraries and executables linked against it.
16214 hardcode_automatic=$hardcode_automatic_F77
16215
16216 # Variables whose values should be saved in libtool wrapper scripts and
16217 # restored at relink time.
16218 variables_saved_for_relink="$variables_saved_for_relink"
16219
16220 # Whether libtool must link a program against all its dependency libraries.
16221 link_all_deplibs=$link_all_deplibs_F77
16222
16223 # Compile-time system search path for libraries
16224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16225
16226 # Run-time system search path for libraries
16227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16228
16229 # Fix the shell variable \$srcfile for the compiler.
16230 fix_srcfile_path=$lt_fix_srcfile_path
16231
16232 # Set to yes if exported symbols are required.
16233 always_export_symbols=$always_export_symbols_F77
16234
16235 # The commands to list exported symbols.
16236 export_symbols_cmds=$lt_export_symbols_cmds_F77
16237
16238 # The commands to extract the exported symbol list from a shared archive.
16239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16240
16241 # Symbols that should not be listed in the preloaded symbols.
16242 exclude_expsyms=$lt_exclude_expsyms_F77
16243
16244 # Symbols that must always be exported.
16245 include_expsyms=$lt_include_expsyms_F77
16246
16247 # ### END LIBTOOL TAG CONFIG: $tagname
16248
16249 __EOF__
16250
16251
16252 else
16253 # If there is no Makefile yet, we rely on a make rule to execute
16254 # `config.status --recheck' to rerun these tests and create the
16255 # libtool script then.
16256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16257 if test -f "$ltmain_in"; then
16258 test -f Makefile && make "$ltmain"
16259 fi
16260 fi
16261
16262
16263 ac_ext=c
16264 ac_cpp='$CPP $CPPFLAGS'
16265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16268
16269 CC="$lt_save_CC"
16270
16271 else
16272 tagname=""
16273 fi
16274 ;;
16275
16276 GCJ)
16277 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16278
16279
16280 # Source file extension for Java test sources.
16281 ac_ext=java
16282
16283 # Object file extension for compiled Java test sources.
16284 objext=o
16285 objext_GCJ=$objext
16286
16287 # Code to be used in simple compile tests
16288 lt_simple_compile_test_code="class foo {}"
16289
16290 # Code to be used in simple link tests
16291 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16292
16293 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16294
16295 # If no C compiler was specified, use CC.
16296 LTCC=${LTCC-"$CC"}
16297
16298 # If no C compiler flags were specified, use CFLAGS.
16299 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16300
16301 # Allow CC to be a program name with arguments.
16302 compiler=$CC
16303
16304
16305 # save warnings/boilerplate of simple test code
16306 ac_outfile=conftest.$ac_objext
16307 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16308 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16309 _lt_compiler_boilerplate=`cat conftest.err`
16310 $rm conftest*
16311
16312 ac_outfile=conftest.$ac_objext
16313 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16314 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16315 _lt_linker_boilerplate=`cat conftest.err`
16316 $rm conftest*
16317
16318
16319 # Allow CC to be a program name with arguments.
16320 lt_save_CC="$CC"
16321 CC=${GCJ-"gcj"}
16322 compiler=$CC
16323 compiler_GCJ=$CC
16324 for cc_temp in $compiler""; do
16325 case $cc_temp in
16326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16328 \-*) ;;
16329 *) break;;
16330 esac
16331 done
16332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16333
16334
16335 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16336 archive_cmds_need_lc_GCJ=no
16337
16338 old_archive_cmds_GCJ=$old_archive_cmds
16339
16340
16341 lt_prog_compiler_no_builtin_flag_GCJ=
16342
16343 if test "$GCC" = yes; then
16344 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16345
16346
16347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 else
16352 lt_cv_prog_compiler_rtti_exceptions=no
16353 ac_outfile=conftest.$ac_objext
16354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16355 lt_compiler_flag="-fno-rtti -fno-exceptions"
16356 # Insert the option either (1) after the last *FLAGS variable, or
16357 # (2) before a word containing "conftest.", or (3) at the end.
16358 # Note that $ac_compile itself does not contain backslashes and begins
16359 # with a dollar sign (not a hyphen), so the echo should work correctly.
16360 # The option is referenced via a variable to avoid confusing sed.
16361 lt_compile=`echo "$ac_compile" | $SED \
16362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16364 -e 's:$: $lt_compiler_flag:'`
16365 (eval echo "\"\$as_me:16365: $lt_compile\"" >&5)
16366 (eval "$lt_compile" 2>conftest.err)
16367 ac_status=$?
16368 cat conftest.err >&5
16369 echo "$as_me:16369: \$? = $ac_status" >&5
16370 if (exit $ac_status) && test -s "$ac_outfile"; then
16371 # The compiler can only warn and ignore the option if not recognized
16372 # So say no if there are warnings other than the usual output.
16373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16376 lt_cv_prog_compiler_rtti_exceptions=yes
16377 fi
16378 fi
16379 $rm conftest*
16380
16381 fi
16382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16383 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16384
16385 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16386 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16387 else
16388 :
16389 fi
16390
16391 fi
16392
16393 lt_prog_compiler_wl_GCJ=
16394 lt_prog_compiler_pic_GCJ=
16395 lt_prog_compiler_static_GCJ=
16396
16397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16399
16400 if test "$GCC" = yes; then
16401 lt_prog_compiler_wl_GCJ='-Wl,'
16402 lt_prog_compiler_static_GCJ='-static'
16403
16404 case $host_os in
16405 aix*)
16406 # All AIX code is PIC.
16407 if test "$host_cpu" = ia64; then
16408 # AIX 5 now supports IA64 processor
16409 lt_prog_compiler_static_GCJ='-Bstatic'
16410 fi
16411 ;;
16412
16413 amigaos*)
16414 # FIXME: we need at least 68020 code to build shared libraries, but
16415 # adding the `-m68020' flag to GCC prevents building anything better,
16416 # like `-m68040'.
16417 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16418 ;;
16419
16420 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16421 # PIC is the default for these OSes.
16422 ;;
16423
16424 mingw* | cygwin* | pw32* | os2*)
16425 # This hack is so that the source file can tell whether it is being
16426 # built for inclusion in a dll (and should export symbols for example).
16427 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16428 # (--disable-auto-import) libraries
16429 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16430 ;;
16431
16432 darwin* | rhapsody*)
16433 # PIC is the default on this platform
16434 # Common symbols not allowed in MH_DYLIB files
16435 lt_prog_compiler_pic_GCJ='-fno-common'
16436 ;;
16437
16438 interix[3-9]*)
16439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16440 # Instead, we relocate shared libraries at runtime.
16441 ;;
16442
16443 msdosdjgpp*)
16444 # Just because we use GCC doesn't mean we suddenly get shared libraries
16445 # on systems that don't support them.
16446 lt_prog_compiler_can_build_shared_GCJ=no
16447 enable_shared=no
16448 ;;
16449
16450 sysv4*MP*)
16451 if test -d /usr/nec; then
16452 lt_prog_compiler_pic_GCJ=-Kconform_pic
16453 fi
16454 ;;
16455
16456 hpux*)
16457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16458 # not for PA HP-UX.
16459 case $host_cpu in
16460 hppa*64*|ia64*)
16461 # +Z the default
16462 ;;
16463 *)
16464 lt_prog_compiler_pic_GCJ='-fPIC'
16465 ;;
16466 esac
16467 ;;
16468
16469 *)
16470 lt_prog_compiler_pic_GCJ='-fPIC'
16471 ;;
16472 esac
16473 else
16474 # PORTME Check for flag to pass linker flags through the system compiler.
16475 case $host_os in
16476 aix*)
16477 lt_prog_compiler_wl_GCJ='-Wl,'
16478 if test "$host_cpu" = ia64; then
16479 # AIX 5 now supports IA64 processor
16480 lt_prog_compiler_static_GCJ='-Bstatic'
16481 else
16482 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16483 fi
16484 ;;
16485 darwin*)
16486 # PIC is the default on this platform
16487 # Common symbols not allowed in MH_DYLIB files
16488 case $cc_basename in
16489 xlc*)
16490 lt_prog_compiler_pic_GCJ='-qnocommon'
16491 lt_prog_compiler_wl_GCJ='-Wl,'
16492 ;;
16493 esac
16494 ;;
16495
16496 mingw* | cygwin* | pw32* | os2*)
16497 # This hack is so that the source file can tell whether it is being
16498 # built for inclusion in a dll (and should export symbols for example).
16499 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16500 ;;
16501
16502 hpux9* | hpux10* | hpux11*)
16503 lt_prog_compiler_wl_GCJ='-Wl,'
16504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16505 # not for PA HP-UX.
16506 case $host_cpu in
16507 hppa*64*|ia64*)
16508 # +Z the default
16509 ;;
16510 *)
16511 lt_prog_compiler_pic_GCJ='+Z'
16512 ;;
16513 esac
16514 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16515 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16516 ;;
16517
16518 irix5* | irix6* | nonstopux*)
16519 lt_prog_compiler_wl_GCJ='-Wl,'
16520 # PIC (with -KPIC) is the default.
16521 lt_prog_compiler_static_GCJ='-non_shared'
16522 ;;
16523
16524 newsos6)
16525 lt_prog_compiler_pic_GCJ='-KPIC'
16526 lt_prog_compiler_static_GCJ='-Bstatic'
16527 ;;
16528
16529 linux* | k*bsd*-gnu)
16530 case $cc_basename in
16531 icc* | ecc*)
16532 lt_prog_compiler_wl_GCJ='-Wl,'
16533 lt_prog_compiler_pic_GCJ='-KPIC'
16534 lt_prog_compiler_static_GCJ='-static'
16535 ;;
16536 pgcc* | pgf77* | pgf90* | pgf95*)
16537 # Portland Group compilers (*not* the Pentium gcc compiler,
16538 # which looks to be a dead project)
16539 lt_prog_compiler_wl_GCJ='-Wl,'
16540 lt_prog_compiler_pic_GCJ='-fpic'
16541 lt_prog_compiler_static_GCJ='-Bstatic'
16542 ;;
16543 ccc*)
16544 lt_prog_compiler_wl_GCJ='-Wl,'
16545 # All Alpha code is PIC.
16546 lt_prog_compiler_static_GCJ='-non_shared'
16547 ;;
16548 *)
16549 case `$CC -V 2>&1 | sed 5q` in
16550 *Sun\ C*)
16551 # Sun C 5.9
16552 lt_prog_compiler_pic_GCJ='-KPIC'
16553 lt_prog_compiler_static_GCJ='-Bstatic'
16554 lt_prog_compiler_wl_GCJ='-Wl,'
16555 ;;
16556 *Sun\ F*)
16557 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16558 lt_prog_compiler_pic_GCJ='-KPIC'
16559 lt_prog_compiler_static_GCJ='-Bstatic'
16560 lt_prog_compiler_wl_GCJ=''
16561 ;;
16562 esac
16563 ;;
16564 esac
16565 ;;
16566
16567 osf3* | osf4* | osf5*)
16568 lt_prog_compiler_wl_GCJ='-Wl,'
16569 # All OSF/1 code is PIC.
16570 lt_prog_compiler_static_GCJ='-non_shared'
16571 ;;
16572
16573 rdos*)
16574 lt_prog_compiler_static_GCJ='-non_shared'
16575 ;;
16576
16577 solaris*)
16578 lt_prog_compiler_pic_GCJ='-KPIC'
16579 lt_prog_compiler_static_GCJ='-Bstatic'
16580 case $cc_basename in
16581 f77* | f90* | f95*)
16582 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16583 *)
16584 lt_prog_compiler_wl_GCJ='-Wl,';;
16585 esac
16586 ;;
16587
16588 sunos4*)
16589 lt_prog_compiler_wl_GCJ='-Qoption ld '
16590 lt_prog_compiler_pic_GCJ='-PIC'
16591 lt_prog_compiler_static_GCJ='-Bstatic'
16592 ;;
16593
16594 sysv4 | sysv4.2uw2* | sysv4.3*)
16595 lt_prog_compiler_wl_GCJ='-Wl,'
16596 lt_prog_compiler_pic_GCJ='-KPIC'
16597 lt_prog_compiler_static_GCJ='-Bstatic'
16598 ;;
16599
16600 sysv4*MP*)
16601 if test -d /usr/nec ;then
16602 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16603 lt_prog_compiler_static_GCJ='-Bstatic'
16604 fi
16605 ;;
16606
16607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16608 lt_prog_compiler_wl_GCJ='-Wl,'
16609 lt_prog_compiler_pic_GCJ='-KPIC'
16610 lt_prog_compiler_static_GCJ='-Bstatic'
16611 ;;
16612
16613 unicos*)
16614 lt_prog_compiler_wl_GCJ='-Wl,'
16615 lt_prog_compiler_can_build_shared_GCJ=no
16616 ;;
16617
16618 uts4*)
16619 lt_prog_compiler_pic_GCJ='-pic'
16620 lt_prog_compiler_static_GCJ='-Bstatic'
16621 ;;
16622
16623 *)
16624 lt_prog_compiler_can_build_shared_GCJ=no
16625 ;;
16626 esac
16627 fi
16628
16629 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16630 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16631
16632 #
16633 # Check to make sure the PIC flag actually works.
16634 #
16635 if test -n "$lt_prog_compiler_pic_GCJ"; then
16636
16637 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16638 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16639 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642 lt_prog_compiler_pic_works_GCJ=no
16643 ac_outfile=conftest.$ac_objext
16644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16645 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16646 # Insert the option either (1) after the last *FLAGS variable, or
16647 # (2) before a word containing "conftest.", or (3) at the end.
16648 # Note that $ac_compile itself does not contain backslashes and begins
16649 # with a dollar sign (not a hyphen), so the echo should work correctly.
16650 # The option is referenced via a variable to avoid confusing sed.
16651 lt_compile=`echo "$ac_compile" | $SED \
16652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16654 -e 's:$: $lt_compiler_flag:'`
16655 (eval echo "\"\$as_me:16655: $lt_compile\"" >&5)
16656 (eval "$lt_compile" 2>conftest.err)
16657 ac_status=$?
16658 cat conftest.err >&5
16659 echo "$as_me:16659: \$? = $ac_status" >&5
16660 if (exit $ac_status) && test -s "$ac_outfile"; then
16661 # The compiler can only warn and ignore the option if not recognized
16662 # So say no if there are warnings other than the usual output.
16663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16666 lt_prog_compiler_pic_works_GCJ=yes
16667 fi
16668 fi
16669 $rm conftest*
16670
16671 fi
16672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16673 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16674
16675 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16676 case $lt_prog_compiler_pic_GCJ in
16677 "" | " "*) ;;
16678 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16679 esac
16680 else
16681 lt_prog_compiler_pic_GCJ=
16682 lt_prog_compiler_can_build_shared_GCJ=no
16683 fi
16684
16685 fi
16686 case $host_os in
16687 # For platforms which do not support PIC, -DPIC is meaningless:
16688 *djgpp*)
16689 lt_prog_compiler_pic_GCJ=
16690 ;;
16691 *)
16692 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16693 ;;
16694 esac
16695
16696 #
16697 # Check to make sure the static flag actually works.
16698 #
16699 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16700 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16701 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16702 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705 lt_prog_compiler_static_works_GCJ=no
16706 save_LDFLAGS="$LDFLAGS"
16707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16710 # The linker can only warn and ignore the option if not recognized
16711 # So say no if there are warnings
16712 if test -s conftest.err; then
16713 # Append any errors to the config.log.
16714 cat conftest.err 1>&5
16715 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16717 if diff conftest.exp conftest.er2 >/dev/null; then
16718 lt_prog_compiler_static_works_GCJ=yes
16719 fi
16720 else
16721 lt_prog_compiler_static_works_GCJ=yes
16722 fi
16723 fi
16724 $rm conftest*
16725 LDFLAGS="$save_LDFLAGS"
16726
16727 fi
16728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16729 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16730
16731 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16732 :
16733 else
16734 lt_prog_compiler_static_GCJ=
16735 fi
16736
16737
16738 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16739 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16740 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743 lt_cv_prog_compiler_c_o_GCJ=no
16744 $rm -r conftest 2>/dev/null
16745 mkdir conftest
16746 cd conftest
16747 mkdir out
16748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16749
16750 lt_compiler_flag="-o out/conftest2.$ac_objext"
16751 # Insert the option either (1) after the last *FLAGS variable, or
16752 # (2) before a word containing "conftest.", or (3) at the end.
16753 # Note that $ac_compile itself does not contain backslashes and begins
16754 # with a dollar sign (not a hyphen), so the echo should work correctly.
16755 lt_compile=`echo "$ac_compile" | $SED \
16756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16758 -e 's:$: $lt_compiler_flag:'`
16759 (eval echo "\"\$as_me:16759: $lt_compile\"" >&5)
16760 (eval "$lt_compile" 2>out/conftest.err)
16761 ac_status=$?
16762 cat out/conftest.err >&5
16763 echo "$as_me:16763: \$? = $ac_status" >&5
16764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16765 then
16766 # The compiler can only warn and ignore the option if not recognized
16767 # So say no if there are warnings
16768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16771 lt_cv_prog_compiler_c_o_GCJ=yes
16772 fi
16773 fi
16774 chmod u+w . 2>&5
16775 $rm conftest*
16776 # SGI C++ compiler will create directory out/ii_files/ for
16777 # template instantiation
16778 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16779 $rm out/* && rmdir out
16780 cd ..
16781 rmdir conftest
16782 $rm conftest*
16783
16784 fi
16785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16786 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16787
16788
16789 hard_links="nottested"
16790 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16791 # do not overwrite the value of need_locks provided by the user
16792 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16793 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16794 hard_links=yes
16795 $rm conftest*
16796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16797 touch conftest.a
16798 ln conftest.a conftest.b 2>&5 || hard_links=no
16799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16800 { echo "$as_me:$LINENO: result: $hard_links" >&5
16801 echo "${ECHO_T}$hard_links" >&6; }
16802 if test "$hard_links" = no; then
16803 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16804 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16805 need_locks=warn
16806 fi
16807 else
16808 need_locks=no
16809 fi
16810
16811 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16812 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16813
16814 runpath_var=
16815 allow_undefined_flag_GCJ=
16816 enable_shared_with_static_runtimes_GCJ=no
16817 archive_cmds_GCJ=
16818 archive_expsym_cmds_GCJ=
16819 old_archive_From_new_cmds_GCJ=
16820 old_archive_from_expsyms_cmds_GCJ=
16821 export_dynamic_flag_spec_GCJ=
16822 whole_archive_flag_spec_GCJ=
16823 thread_safe_flag_spec_GCJ=
16824 hardcode_libdir_flag_spec_GCJ=
16825 hardcode_libdir_flag_spec_ld_GCJ=
16826 hardcode_libdir_separator_GCJ=
16827 hardcode_direct_GCJ=no
16828 hardcode_minus_L_GCJ=no
16829 hardcode_shlibpath_var_GCJ=unsupported
16830 link_all_deplibs_GCJ=unknown
16831 hardcode_automatic_GCJ=no
16832 module_cmds_GCJ=
16833 module_expsym_cmds_GCJ=
16834 always_export_symbols_GCJ=no
16835 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16836 # include_expsyms should be a list of space-separated symbols to be *always*
16837 # included in the symbol list
16838 include_expsyms_GCJ=
16839 # exclude_expsyms can be an extended regexp of symbols to exclude
16840 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16841 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16842 # as well as any symbol that contains `d'.
16843 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16845 # platforms (ab)use it in PIC code, but their linkers get confused if
16846 # the symbol is explicitly referenced. Since portable code cannot
16847 # rely on this symbol name, it's probably fine to never include it in
16848 # preloaded symbol tables.
16849 extract_expsyms_cmds=
16850 # Just being paranoid about ensuring that cc_basename is set.
16851 for cc_temp in $compiler""; do
16852 case $cc_temp in
16853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16855 \-*) ;;
16856 *) break;;
16857 esac
16858 done
16859 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16860
16861 case $host_os in
16862 cygwin* | mingw* | pw32*)
16863 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16864 # When not using gcc, we currently assume that we are using
16865 # Microsoft Visual C++.
16866 if test "$GCC" != yes; then
16867 with_gnu_ld=no
16868 fi
16869 ;;
16870 interix*)
16871 # we just hope/assume this is gcc and not c89 (= MSVC++)
16872 with_gnu_ld=yes
16873 ;;
16874 openbsd*)
16875 with_gnu_ld=no
16876 ;;
16877 esac
16878
16879 ld_shlibs_GCJ=yes
16880 if test "$with_gnu_ld" = yes; then
16881 # If archive_cmds runs LD, not CC, wlarc should be empty
16882 wlarc='${wl}'
16883
16884 # Set some defaults for GNU ld with shared library support. These
16885 # are reset later if shared libraries are not supported. Putting them
16886 # here allows them to be overridden if necessary.
16887 runpath_var=LD_RUN_PATH
16888 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16889 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16890 # ancient GNU ld didn't support --whole-archive et. al.
16891 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16892 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16893 else
16894 whole_archive_flag_spec_GCJ=
16895 fi
16896 supports_anon_versioning=no
16897 case `$LD -v 2>/dev/null` in
16898 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16899 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16900 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16901 *\ 2.11.*) ;; # other 2.11 versions
16902 *) supports_anon_versioning=yes ;;
16903 esac
16904
16905 # See if GNU ld supports shared libraries.
16906 case $host_os in
16907 aix3* | aix4* | aix5*)
16908 # On AIX/PPC, the GNU linker is very broken
16909 if test "$host_cpu" != ia64; then
16910 ld_shlibs_GCJ=no
16911 cat <<EOF 1>&2
16912
16913 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16914 *** to be unable to reliably create shared libraries on AIX.
16915 *** Therefore, libtool is disabling shared libraries support. If you
16916 *** really care for shared libraries, you may want to modify your PATH
16917 *** so that a non-GNU linker is found, and then restart.
16918
16919 EOF
16920 fi
16921 ;;
16922
16923 amigaos*)
16924 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)'
16925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16926 hardcode_minus_L_GCJ=yes
16927
16928 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16929 # that the semantics of dynamic libraries on AmigaOS, at least up
16930 # to version 4, is to share data among multiple programs linked
16931 # with the same dynamic library. Since this doesn't match the
16932 # behavior of shared libraries on other platforms, we can't use
16933 # them.
16934 ld_shlibs_GCJ=no
16935 ;;
16936
16937 beos*)
16938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16939 allow_undefined_flag_GCJ=unsupported
16940 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16941 # support --undefined. This deserves some investigation. FIXME
16942 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16943 else
16944 ld_shlibs_GCJ=no
16945 fi
16946 ;;
16947
16948 cygwin* | mingw* | pw32*)
16949 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16950 # as there is no search path for DLLs.
16951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952 allow_undefined_flag_GCJ=unsupported
16953 always_export_symbols_GCJ=no
16954 enable_shared_with_static_runtimes_GCJ=yes
16955 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16956
16957 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16958 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16959 # If the export-symbols file already is a .def file (1st line
16960 # is EXPORTS), use it as is; otherwise, prepend...
16961 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16962 cp $export_symbols $output_objdir/$soname.def;
16963 else
16964 echo EXPORTS > $output_objdir/$soname.def;
16965 cat $export_symbols >> $output_objdir/$soname.def;
16966 fi~
16967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16968 else
16969 ld_shlibs_GCJ=no
16970 fi
16971 ;;
16972
16973 interix[3-9]*)
16974 hardcode_direct_GCJ=no
16975 hardcode_shlibpath_var_GCJ=no
16976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16977 export_dynamic_flag_spec_GCJ='${wl}-E'
16978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16979 # Instead, shared libraries are loaded at an image base (0x10000000 by
16980 # default) and relocated if they conflict, which is a slow very memory
16981 # consuming and fragmenting process. To avoid this, we pick a random,
16982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16983 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16984 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'
16985 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'
16986 ;;
16987
16988 gnu* | linux* | k*bsd*-gnu)
16989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16990 tmp_addflag=
16991 case $cc_basename,$host_cpu in
16992 pgcc*) # Portland Group C compiler
16993 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'
16994 tmp_addflag=' $pic_flag'
16995 ;;
16996 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16997 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'
16998 tmp_addflag=' $pic_flag -Mnomain' ;;
16999 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17000 tmp_addflag=' -i_dynamic' ;;
17001 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17002 tmp_addflag=' -i_dynamic -nofor_main' ;;
17003 ifc* | ifort*) # Intel Fortran compiler
17004 tmp_addflag=' -nofor_main' ;;
17005 esac
17006 case `$CC -V 2>&1 | sed 5q` in
17007 *Sun\ C*) # Sun C 5.9
17008 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17009 tmp_sharedflag='-G' ;;
17010 *Sun\ F*) # Sun Fortran 8.3
17011 tmp_sharedflag='-G' ;;
17012 *)
17013 tmp_sharedflag='-shared' ;;
17014 esac
17015 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016
17017 if test $supports_anon_versioning = yes; then
17018 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17020 $echo "local: *; };" >> $output_objdir/$libname.ver~
17021 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17022 fi
17023 else
17024 ld_shlibs_GCJ=no
17025 fi
17026 ;;
17027
17028 netbsd*)
17029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17030 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17031 wlarc=
17032 else
17033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17034 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17035 fi
17036 ;;
17037
17038 solaris*)
17039 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17040 ld_shlibs_GCJ=no
17041 cat <<EOF 1>&2
17042
17043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17044 *** create shared libraries on Solaris systems. Therefore, libtool
17045 *** is disabling shared libraries support. We urge you to upgrade GNU
17046 *** binutils to release 2.9.1 or newer. Another option is to modify
17047 *** your PATH or compiler configuration so that the native linker is
17048 *** used, and then restart.
17049
17050 EOF
17051 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17053 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17054 else
17055 ld_shlibs_GCJ=no
17056 fi
17057 ;;
17058
17059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17060 case `$LD -v 2>&1` in
17061 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17062 ld_shlibs_GCJ=no
17063 cat <<_LT_EOF 1>&2
17064
17065 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17066 *** reliably create shared libraries on SCO systems. Therefore, libtool
17067 *** is disabling shared libraries support. We urge you to upgrade GNU
17068 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17069 *** your PATH or compiler configuration so that the native linker is
17070 *** used, and then restart.
17071
17072 _LT_EOF
17073 ;;
17074 *)
17075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17076 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17078 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17079 else
17080 ld_shlibs_GCJ=no
17081 fi
17082 ;;
17083 esac
17084 ;;
17085
17086 sunos4*)
17087 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17088 wlarc=
17089 hardcode_direct_GCJ=yes
17090 hardcode_shlibpath_var_GCJ=no
17091 ;;
17092
17093 *)
17094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17095 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17096 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17097 else
17098 ld_shlibs_GCJ=no
17099 fi
17100 ;;
17101 esac
17102
17103 if test "$ld_shlibs_GCJ" = no; then
17104 runpath_var=
17105 hardcode_libdir_flag_spec_GCJ=
17106 export_dynamic_flag_spec_GCJ=
17107 whole_archive_flag_spec_GCJ=
17108 fi
17109 else
17110 # PORTME fill in a description of your system's linker (not GNU ld)
17111 case $host_os in
17112 aix3*)
17113 allow_undefined_flag_GCJ=unsupported
17114 always_export_symbols_GCJ=yes
17115 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'
17116 # Note: this linker hardcodes the directories in LIBPATH if there
17117 # are no directories specified by -L.
17118 hardcode_minus_L_GCJ=yes
17119 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17120 # Neither direct hardcoding nor static linking is supported with a
17121 # broken collect2.
17122 hardcode_direct_GCJ=unsupported
17123 fi
17124 ;;
17125
17126 aix4* | aix5*)
17127 if test "$host_cpu" = ia64; then
17128 # On IA64, the linker does run time linking by default, so we don't
17129 # have to do anything special.
17130 aix_use_runtimelinking=no
17131 exp_sym_flag='-Bexport'
17132 no_entry_flag=""
17133 else
17134 # If we're using GNU nm, then we don't want the "-C" option.
17135 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17136 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17137 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'
17138 else
17139 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'
17140 fi
17141 aix_use_runtimelinking=no
17142
17143 # Test if we are trying to use run time linking or normal
17144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17145 # need to do runtime linking.
17146 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17147 for ld_flag in $LDFLAGS; do
17148 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17149 aix_use_runtimelinking=yes
17150 break
17151 fi
17152 done
17153 ;;
17154 esac
17155
17156 exp_sym_flag='-bexport'
17157 no_entry_flag='-bnoentry'
17158 fi
17159
17160 # When large executables or shared objects are built, AIX ld can
17161 # have problems creating the table of contents. If linking a library
17162 # or program results in "error TOC overflow" add -mminimal-toc to
17163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17165
17166 archive_cmds_GCJ=''
17167 hardcode_direct_GCJ=yes
17168 hardcode_libdir_separator_GCJ=':'
17169 link_all_deplibs_GCJ=yes
17170
17171 if test "$GCC" = yes; then
17172 case $host_os in aix4.[012]|aix4.[012].*)
17173 # We only want to do this on AIX 4.2 and lower, the check
17174 # below for broken collect2 doesn't work under 4.3+
17175 collect2name=`${CC} -print-prog-name=collect2`
17176 if test -f "$collect2name" && \
17177 strings "$collect2name" | grep resolve_lib_name >/dev/null
17178 then
17179 # We have reworked collect2
17180 :
17181 else
17182 # We have old collect2
17183 hardcode_direct_GCJ=unsupported
17184 # It fails to find uninstalled libraries when the uninstalled
17185 # path is not listed in the libpath. Setting hardcode_minus_L
17186 # to unsupported forces relinking
17187 hardcode_minus_L_GCJ=yes
17188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17189 hardcode_libdir_separator_GCJ=
17190 fi
17191 ;;
17192 esac
17193 shared_flag='-shared'
17194 if test "$aix_use_runtimelinking" = yes; then
17195 shared_flag="$shared_flag "'${wl}-G'
17196 fi
17197 else
17198 # not using gcc
17199 if test "$host_cpu" = ia64; then
17200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17201 # chokes on -Wl,-G. The following line is correct:
17202 shared_flag='-G'
17203 else
17204 if test "$aix_use_runtimelinking" = yes; then
17205 shared_flag='${wl}-G'
17206 else
17207 shared_flag='${wl}-bM:SRE'
17208 fi
17209 fi
17210 fi
17211
17212 # It seems that -bexpall does not export symbols beginning with
17213 # underscore (_), so it is better to generate a list of symbols to export.
17214 always_export_symbols_GCJ=yes
17215 if test "$aix_use_runtimelinking" = yes; then
17216 # Warning - without using the other runtime loading flags (-brtl),
17217 # -berok will link without error, but may produce a broken library.
17218 allow_undefined_flag_GCJ='-berok'
17219 # Determine the default libpath from the value encoded in an empty executable.
17220 cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h. */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226
17227 int
17228 main ()
17229 {
17230
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 rm -f conftest.$ac_objext conftest$ac_exeext
17236 if { (ac_try="$ac_link"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } && {
17249 test -z "$ac_c_werror_flag" ||
17250 test ! -s conftest.err
17251 } && test -s conftest$ac_exeext &&
17252 $as_test_x conftest$ac_exeext; then
17253
17254 lt_aix_libpath_sed='
17255 /Import File Strings/,/^$/ {
17256 /^0/ {
17257 s/^0 *\(.*\)$/\1/
17258 p
17259 }
17260 }'
17261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17262 # Check for a 64-bit object if we didn't find anything.
17263 if test -z "$aix_libpath"; then
17264 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17265 fi
17266 else
17267 echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270
17271 fi
17272
17273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17274 conftest$ac_exeext conftest.$ac_ext
17275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17276
17277 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17278 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"
17279 else
17280 if test "$host_cpu" = ia64; then
17281 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17282 allow_undefined_flag_GCJ="-z nodefs"
17283 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"
17284 else
17285 # Determine the default libpath from the value encoded in an empty executable.
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292
17293 int
17294 main ()
17295 {
17296
17297 ;
17298 return 0;
17299 }
17300 _ACEOF
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_link") 2>conftest.er1
17309 ac_status=$?
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } && {
17315 test -z "$ac_c_werror_flag" ||
17316 test ! -s conftest.err
17317 } && test -s conftest$ac_exeext &&
17318 $as_test_x conftest$ac_exeext; then
17319
17320 lt_aix_libpath_sed='
17321 /Import File Strings/,/^$/ {
17322 /^0/ {
17323 s/^0 *\(.*\)$/\1/
17324 p
17325 }
17326 }'
17327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17328 # Check for a 64-bit object if we didn't find anything.
17329 if test -z "$aix_libpath"; then
17330 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17331 fi
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17335
17336
17337 fi
17338
17339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17340 conftest$ac_exeext conftest.$ac_ext
17341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17342
17343 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17344 # Warning - without using the other run time loading flags,
17345 # -berok will link without error, but may produce a broken library.
17346 no_undefined_flag_GCJ=' ${wl}-bernotok'
17347 allow_undefined_flag_GCJ=' ${wl}-berok'
17348 # Exported symbols can be pulled into shared objects from archives
17349 whole_archive_flag_spec_GCJ='$convenience'
17350 archive_cmds_need_lc_GCJ=yes
17351 # This is similar to how AIX traditionally builds its shared libraries.
17352 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'
17353 fi
17354 fi
17355 ;;
17356
17357 amigaos*)
17358 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)'
17359 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17360 hardcode_minus_L_GCJ=yes
17361 # see comment about different semantics on the GNU ld section
17362 ld_shlibs_GCJ=no
17363 ;;
17364
17365 bsdi[45]*)
17366 export_dynamic_flag_spec_GCJ=-rdynamic
17367 ;;
17368
17369 cygwin* | mingw* | pw32*)
17370 # When not using gcc, we currently assume that we are using
17371 # Microsoft Visual C++.
17372 # hardcode_libdir_flag_spec is actually meaningless, as there is
17373 # no search path for DLLs.
17374 hardcode_libdir_flag_spec_GCJ=' '
17375 allow_undefined_flag_GCJ=unsupported
17376 # Tell ltmain to make .lib files, not .a files.
17377 libext=lib
17378 # Tell ltmain to make .dll files, not .so files.
17379 shrext_cmds=".dll"
17380 # FIXME: Setting linknames here is a bad hack.
17381 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17382 # The linker will automatically build a .lib file if we build a DLL.
17383 old_archive_From_new_cmds_GCJ='true'
17384 # FIXME: Should let the user specify the lib program.
17385 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17386 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17387 enable_shared_with_static_runtimes_GCJ=yes
17388 ;;
17389
17390 darwin* | rhapsody*)
17391 case $host_os in
17392 rhapsody* | darwin1.[012])
17393 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17394 ;;
17395 *) # Darwin 1.3 on
17396 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17397 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17398 else
17399 case ${MACOSX_DEPLOYMENT_TARGET} in
17400 10.[012])
17401 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17402 ;;
17403 10.*)
17404 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17405 ;;
17406 esac
17407 fi
17408 ;;
17409 esac
17410 archive_cmds_need_lc_GCJ=no
17411 hardcode_direct_GCJ=no
17412 hardcode_automatic_GCJ=yes
17413 hardcode_shlibpath_var_GCJ=unsupported
17414 whole_archive_flag_spec_GCJ=''
17415 link_all_deplibs_GCJ=yes
17416 if test "$GCC" = yes ; then
17417 output_verbose_link_cmd='echo'
17418 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17419 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17421 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}'
17422 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}'
17423 else
17424 case $cc_basename in
17425 xlc*)
17426 output_verbose_link_cmd='echo'
17427 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17428 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17430 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17431 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}'
17432 ;;
17433 *)
17434 ld_shlibs_GCJ=no
17435 ;;
17436 esac
17437 fi
17438 ;;
17439
17440 dgux*)
17441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17442 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17443 hardcode_shlibpath_var_GCJ=no
17444 ;;
17445
17446 freebsd1*)
17447 ld_shlibs_GCJ=no
17448 ;;
17449
17450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17451 # support. Future versions do this automatically, but an explicit c++rt0.o
17452 # does not break anything, and helps significantly (at the cost of a little
17453 # extra space).
17454 freebsd2.2*)
17455 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17456 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17457 hardcode_direct_GCJ=yes
17458 hardcode_shlibpath_var_GCJ=no
17459 ;;
17460
17461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17462 freebsd2*)
17463 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17464 hardcode_direct_GCJ=yes
17465 hardcode_minus_L_GCJ=yes
17466 hardcode_shlibpath_var_GCJ=no
17467 ;;
17468
17469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17470 freebsd* | dragonfly*)
17471 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17472 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17473 hardcode_direct_GCJ=yes
17474 hardcode_shlibpath_var_GCJ=no
17475 ;;
17476
17477 hpux9*)
17478 if test "$GCC" = yes; then
17479 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'
17480 else
17481 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'
17482 fi
17483 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17484 hardcode_libdir_separator_GCJ=:
17485 hardcode_direct_GCJ=yes
17486
17487 # hardcode_minus_L: Not really in the search PATH,
17488 # but as the default location of the library.
17489 hardcode_minus_L_GCJ=yes
17490 export_dynamic_flag_spec_GCJ='${wl}-E'
17491 ;;
17492
17493 hpux10*)
17494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17495 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17496 else
17497 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17498 fi
17499 if test "$with_gnu_ld" = no; then
17500 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17501 hardcode_libdir_separator_GCJ=:
17502
17503 hardcode_direct_GCJ=yes
17504 export_dynamic_flag_spec_GCJ='${wl}-E'
17505
17506 # hardcode_minus_L: Not really in the search PATH,
17507 # but as the default location of the library.
17508 hardcode_minus_L_GCJ=yes
17509 fi
17510 ;;
17511
17512 hpux11*)
17513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17514 case $host_cpu in
17515 hppa*64*)
17516 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17517 ;;
17518 ia64*)
17519 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17520 ;;
17521 *)
17522 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17523 ;;
17524 esac
17525 else
17526 case $host_cpu in
17527 hppa*64*)
17528 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17529 ;;
17530 ia64*)
17531 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17532 ;;
17533 *)
17534 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17535 ;;
17536 esac
17537 fi
17538 if test "$with_gnu_ld" = no; then
17539 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17540 hardcode_libdir_separator_GCJ=:
17541
17542 case $host_cpu in
17543 hppa*64*|ia64*)
17544 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17545 hardcode_direct_GCJ=no
17546 hardcode_shlibpath_var_GCJ=no
17547 ;;
17548 *)
17549 hardcode_direct_GCJ=yes
17550 export_dynamic_flag_spec_GCJ='${wl}-E'
17551
17552 # hardcode_minus_L: Not really in the search PATH,
17553 # but as the default location of the library.
17554 hardcode_minus_L_GCJ=yes
17555 ;;
17556 esac
17557 fi
17558 ;;
17559
17560 irix5* | irix6* | nonstopux*)
17561 if test "$GCC" = yes; then
17562 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'
17563 else
17564 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'
17565 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17566 fi
17567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17568 hardcode_libdir_separator_GCJ=:
17569 link_all_deplibs_GCJ=yes
17570 ;;
17571
17572 netbsd*)
17573 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17574 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17575 else
17576 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17577 fi
17578 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17579 hardcode_direct_GCJ=yes
17580 hardcode_shlibpath_var_GCJ=no
17581 ;;
17582
17583 newsos6)
17584 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17585 hardcode_direct_GCJ=yes
17586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17587 hardcode_libdir_separator_GCJ=:
17588 hardcode_shlibpath_var_GCJ=no
17589 ;;
17590
17591 openbsd*)
17592 if test -f /usr/libexec/ld.so; then
17593 hardcode_direct_GCJ=yes
17594 hardcode_shlibpath_var_GCJ=no
17595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17596 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17597 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17598 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17599 export_dynamic_flag_spec_GCJ='${wl}-E'
17600 else
17601 case $host_os in
17602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17603 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17605 ;;
17606 *)
17607 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17609 ;;
17610 esac
17611 fi
17612 else
17613 ld_shlibs_GCJ=no
17614 fi
17615 ;;
17616
17617 os2*)
17618 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619 hardcode_minus_L_GCJ=yes
17620 allow_undefined_flag_GCJ=unsupported
17621 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'
17622 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17623 ;;
17624
17625 osf3*)
17626 if test "$GCC" = yes; then
17627 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17628 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'
17629 else
17630 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17631 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'
17632 fi
17633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634 hardcode_libdir_separator_GCJ=:
17635 ;;
17636
17637 osf4* | osf5*) # as osf3* with the addition of -msym flag
17638 if test "$GCC" = yes; then
17639 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17640 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'
17641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17642 else
17643 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17644 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'
17645 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~
17646 $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'
17647
17648 # Both c and cxx compiler support -rpath directly
17649 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17650 fi
17651 hardcode_libdir_separator_GCJ=:
17652 ;;
17653
17654 solaris*)
17655 no_undefined_flag_GCJ=' -z text'
17656 if test "$GCC" = yes; then
17657 wlarc='${wl}'
17658 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17659 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17660 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17661 else
17662 wlarc=''
17663 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17666 fi
17667 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17668 hardcode_shlibpath_var_GCJ=no
17669 case $host_os in
17670 solaris2.[0-5] | solaris2.[0-5].*) ;;
17671 *)
17672 # The compiler driver will combine and reorder linker options,
17673 # but understands `-z linker_flag'. GCC discards it without `$wl',
17674 # but is careful enough not to reorder.
17675 # Supported since Solaris 2.6 (maybe 2.5.1?)
17676 if test "$GCC" = yes; then
17677 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17678 else
17679 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17680 fi
17681 ;;
17682 esac
17683 link_all_deplibs_GCJ=yes
17684 ;;
17685
17686 sunos4*)
17687 if test "x$host_vendor" = xsequent; then
17688 # Use $CC to link under sequent, because it throws in some extra .o
17689 # files that make .init and .fini sections work.
17690 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17691 else
17692 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17693 fi
17694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695 hardcode_direct_GCJ=yes
17696 hardcode_minus_L_GCJ=yes
17697 hardcode_shlibpath_var_GCJ=no
17698 ;;
17699
17700 sysv4)
17701 case $host_vendor in
17702 sni)
17703 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17704 hardcode_direct_GCJ=yes # is this really true???
17705 ;;
17706 siemens)
17707 ## LD is ld it makes a PLAMLIB
17708 ## CC just makes a GrossModule.
17709 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17710 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17711 hardcode_direct_GCJ=no
17712 ;;
17713 motorola)
17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17716 ;;
17717 esac
17718 runpath_var='LD_RUN_PATH'
17719 hardcode_shlibpath_var_GCJ=no
17720 ;;
17721
17722 sysv4.3*)
17723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724 hardcode_shlibpath_var_GCJ=no
17725 export_dynamic_flag_spec_GCJ='-Bexport'
17726 ;;
17727
17728 sysv4*MP*)
17729 if test -d /usr/nec; then
17730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731 hardcode_shlibpath_var_GCJ=no
17732 runpath_var=LD_RUN_PATH
17733 hardcode_runpath_var=yes
17734 ld_shlibs_GCJ=yes
17735 fi
17736 ;;
17737
17738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17739 no_undefined_flag_GCJ='${wl}-z,text'
17740 archive_cmds_need_lc_GCJ=no
17741 hardcode_shlibpath_var_GCJ=no
17742 runpath_var='LD_RUN_PATH'
17743
17744 if test "$GCC" = yes; then
17745 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17746 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17747 else
17748 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17749 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17750 fi
17751 ;;
17752
17753 sysv5* | sco3.2v5* | sco5v6*)
17754 # Note: We can NOT use -z defs as we might desire, because we do not
17755 # link with -lc, and that would cause any symbols used from libc to
17756 # always be unresolved, which means just about no library would
17757 # ever link correctly. If we're not using GNU ld we use -z text
17758 # though, which does catch some bad symbols but isn't as heavy-handed
17759 # as -z defs.
17760 no_undefined_flag_GCJ='${wl}-z,text'
17761 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17762 archive_cmds_need_lc_GCJ=no
17763 hardcode_shlibpath_var_GCJ=no
17764 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17765 hardcode_libdir_separator_GCJ=':'
17766 link_all_deplibs_GCJ=yes
17767 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17768 runpath_var='LD_RUN_PATH'
17769
17770 if test "$GCC" = yes; then
17771 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17772 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773 else
17774 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17775 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17776 fi
17777 ;;
17778
17779 uts4*)
17780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17782 hardcode_shlibpath_var_GCJ=no
17783 ;;
17784
17785 *)
17786 ld_shlibs_GCJ=no
17787 ;;
17788 esac
17789 fi
17790
17791 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17792 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17793 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17794
17795 #
17796 # Do we need to explicitly link libc?
17797 #
17798 case "x$archive_cmds_need_lc_GCJ" in
17799 x|xyes)
17800 # Assume -lc should be added
17801 archive_cmds_need_lc_GCJ=yes
17802
17803 if test "$enable_shared" = yes && test "$GCC" = yes; then
17804 case $archive_cmds_GCJ in
17805 *'~'*)
17806 # FIXME: we may have to deal with multi-command sequences.
17807 ;;
17808 '$CC '*)
17809 # Test whether the compiler implicitly links with -lc since on some
17810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17811 # to ld, don't add -lc before -lgcc.
17812 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17814 $rm conftest*
17815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17816
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } 2>conftest.err; then
17822 soname=conftest
17823 lib=conftest
17824 libobjs=conftest.$ac_objext
17825 deplibs=
17826 wl=$lt_prog_compiler_wl_GCJ
17827 pic_flag=$lt_prog_compiler_pic_GCJ
17828 compiler_flags=-v
17829 linker_flags=-v
17830 verstring=
17831 output_objdir=.
17832 libname=conftest
17833 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17834 allow_undefined_flag_GCJ=
17835 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17836 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }
17840 then
17841 archive_cmds_need_lc_GCJ=no
17842 else
17843 archive_cmds_need_lc_GCJ=yes
17844 fi
17845 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17846 else
17847 cat conftest.err 1>&5
17848 fi
17849 $rm conftest*
17850 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17851 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17852 ;;
17853 esac
17854 fi
17855 ;;
17856 esac
17857
17858 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17859 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17860 library_names_spec=
17861 libname_spec='lib$name'
17862 soname_spec=
17863 shrext_cmds=".so"
17864 postinstall_cmds=
17865 postuninstall_cmds=
17866 finish_cmds=
17867 finish_eval=
17868 shlibpath_var=
17869 shlibpath_overrides_runpath=unknown
17870 version_type=none
17871 dynamic_linker="$host_os ld.so"
17872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17873
17874 need_lib_prefix=unknown
17875 hardcode_into_libs=no
17876
17877 # when you set need_version to no, make sure it does not cause -set_version
17878 # flags to be left without arguments
17879 need_version=unknown
17880
17881 case $host_os in
17882 aix3*)
17883 version_type=linux
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17885 shlibpath_var=LIBPATH
17886
17887 # AIX 3 has no versioning support, so we append a major version to the name.
17888 soname_spec='${libname}${release}${shared_ext}$major'
17889 ;;
17890
17891 aix4* | aix5*)
17892 version_type=linux
17893 need_lib_prefix=no
17894 need_version=no
17895 hardcode_into_libs=yes
17896 if test "$host_cpu" = ia64; then
17897 # AIX 5 supports IA64
17898 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17899 shlibpath_var=LD_LIBRARY_PATH
17900 else
17901 # With GCC up to 2.95.x, collect2 would create an import file
17902 # for dependence libraries. The import file would start with
17903 # the line `#! .'. This would cause the generated library to
17904 # depend on `.', always an invalid library. This was fixed in
17905 # development snapshots of GCC prior to 3.0.
17906 case $host_os in
17907 aix4 | aix4.[01] | aix4.[01].*)
17908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17909 echo ' yes '
17910 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17911 :
17912 else
17913 can_build_shared=no
17914 fi
17915 ;;
17916 esac
17917 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17918 # soname into executable. Probably we can add versioning support to
17919 # collect2, so additional links can be useful in future.
17920 if test "$aix_use_runtimelinking" = yes; then
17921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17922 # instead of lib<name>.a to let people know that these are not
17923 # typical AIX shared libraries.
17924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925 else
17926 # We preserve .a as extension for shared libraries through AIX4.2
17927 # and later when we are not doing run time linking.
17928 library_names_spec='${libname}${release}.a $libname.a'
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 fi
17931 shlibpath_var=LIBPATH
17932 fi
17933 ;;
17934
17935 amigaos*)
17936 library_names_spec='$libname.ixlibrary $libname.a'
17937 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17938 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'
17939 ;;
17940
17941 beos*)
17942 library_names_spec='${libname}${shared_ext}'
17943 dynamic_linker="$host_os ld.so"
17944 shlibpath_var=LIBRARY_PATH
17945 ;;
17946
17947 bsdi[45]*)
17948 version_type=linux
17949 need_version=no
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 soname_spec='${libname}${release}${shared_ext}$major'
17952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17953 shlibpath_var=LD_LIBRARY_PATH
17954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17956 # the default ld.so.conf also contains /usr/contrib/lib and
17957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17958 # libtool to hard-code these into programs
17959 ;;
17960
17961 cygwin* | mingw* | pw32*)
17962 version_type=windows
17963 shrext_cmds=".dll"
17964 need_version=no
17965 need_lib_prefix=no
17966
17967 case $GCC,$host_os in
17968 yes,cygwin* | yes,mingw* | yes,pw32*)
17969 library_names_spec='$libname.dll.a'
17970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17971 postinstall_cmds='base_file=`basename \${file}`~
17972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17973 dldir=$destdir/`dirname \$dlpath`~
17974 test -d \$dldir || mkdir -p \$dldir~
17975 $install_prog $dir/$dlname \$dldir/$dlname~
17976 chmod a+x \$dldir/$dlname'
17977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17978 dlpath=$dir/\$dldll~
17979 $rm \$dlpath'
17980 shlibpath_overrides_runpath=yes
17981
17982 case $host_os in
17983 cygwin*)
17984 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17986 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17987 ;;
17988 mingw*)
17989 # MinGW DLLs use traditional 'lib' prefix
17990 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17992 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17993 # It is most probably a Windows format PATH printed by
17994 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17995 # path with ; separators, and with drive letters. We can handle the
17996 # drive letters (cygwin fileutils understands them), so leave them,
17997 # especially as we might pass files found there to a mingw objdump,
17998 # which wouldn't understand a cygwinified path. Ahh.
17999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18000 else
18001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18002 fi
18003 ;;
18004 pw32*)
18005 # pw32 DLLs use 'pw' prefix rather than 'lib'
18006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18007 ;;
18008 esac
18009 ;;
18010
18011 *)
18012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18013 ;;
18014 esac
18015 dynamic_linker='Win32 ld.exe'
18016 # FIXME: first we should search . and the directory the executable is in
18017 shlibpath_var=PATH
18018 ;;
18019
18020 darwin* | rhapsody*)
18021 dynamic_linker="$host_os dyld"
18022 version_type=darwin
18023 need_lib_prefix=no
18024 need_version=no
18025 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18026 soname_spec='${libname}${release}${major}$shared_ext'
18027 shlibpath_overrides_runpath=yes
18028 shlibpath_var=DYLD_LIBRARY_PATH
18029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18030
18031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18032 ;;
18033
18034 dgux*)
18035 version_type=linux
18036 need_lib_prefix=no
18037 need_version=no
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18040 shlibpath_var=LD_LIBRARY_PATH
18041 ;;
18042
18043 freebsd1*)
18044 dynamic_linker=no
18045 ;;
18046
18047 freebsd* | dragonfly*)
18048 # DragonFly does not have aout. When/if they implement a new
18049 # versioning mechanism, adjust this.
18050 if test -x /usr/bin/objformat; then
18051 objformat=`/usr/bin/objformat`
18052 else
18053 case $host_os in
18054 freebsd[123]*) objformat=aout ;;
18055 *) objformat=elf ;;
18056 esac
18057 fi
18058 version_type=freebsd-$objformat
18059 case $version_type in
18060 freebsd-elf*)
18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18062 need_version=no
18063 need_lib_prefix=no
18064 ;;
18065 freebsd-*)
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18067 need_version=yes
18068 ;;
18069 esac
18070 shlibpath_var=LD_LIBRARY_PATH
18071 case $host_os in
18072 freebsd2*)
18073 shlibpath_overrides_runpath=yes
18074 ;;
18075 freebsd3.[01]* | freebsdelf3.[01]*)
18076 shlibpath_overrides_runpath=yes
18077 hardcode_into_libs=yes
18078 ;;
18079 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18080 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18081 shlibpath_overrides_runpath=no
18082 hardcode_into_libs=yes
18083 ;;
18084 *) # from 4.6 on, and DragonFly
18085 shlibpath_overrides_runpath=yes
18086 hardcode_into_libs=yes
18087 ;;
18088 esac
18089 ;;
18090
18091 gnu*)
18092 version_type=linux
18093 need_lib_prefix=no
18094 need_version=no
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18096 soname_spec='${libname}${release}${shared_ext}$major'
18097 shlibpath_var=LD_LIBRARY_PATH
18098 hardcode_into_libs=yes
18099 ;;
18100
18101 hpux9* | hpux10* | hpux11*)
18102 # Give a soname corresponding to the major version so that dld.sl refuses to
18103 # link against other versions.
18104 version_type=sunos
18105 need_lib_prefix=no
18106 need_version=no
18107 case $host_cpu in
18108 ia64*)
18109 shrext_cmds='.so'
18110 hardcode_into_libs=yes
18111 dynamic_linker="$host_os dld.so"
18112 shlibpath_var=LD_LIBRARY_PATH
18113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 if test "X$HPUX_IA64_MODE" = X32; then
18117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18118 else
18119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18120 fi
18121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18122 ;;
18123 hppa*64*)
18124 shrext_cmds='.sl'
18125 hardcode_into_libs=yes
18126 dynamic_linker="$host_os dld.sl"
18127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18130 soname_spec='${libname}${release}${shared_ext}$major'
18131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18133 ;;
18134 *)
18135 shrext_cmds='.sl'
18136 dynamic_linker="$host_os dld.sl"
18137 shlibpath_var=SHLIB_PATH
18138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 ;;
18142 esac
18143 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18144 postinstall_cmds='chmod 555 $lib'
18145 ;;
18146
18147 interix[3-9]*)
18148 version_type=linux
18149 need_lib_prefix=no
18150 need_version=no
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18152 soname_spec='${libname}${release}${shared_ext}$major'
18153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18154 shlibpath_var=LD_LIBRARY_PATH
18155 shlibpath_overrides_runpath=no
18156 hardcode_into_libs=yes
18157 ;;
18158
18159 irix5* | irix6* | nonstopux*)
18160 case $host_os in
18161 nonstopux*) version_type=nonstopux ;;
18162 *)
18163 if test "$lt_cv_prog_gnu_ld" = yes; then
18164 version_type=linux
18165 else
18166 version_type=irix
18167 fi ;;
18168 esac
18169 need_lib_prefix=no
18170 need_version=no
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18173 case $host_os in
18174 irix5* | nonstopux*)
18175 libsuff= shlibsuff=
18176 ;;
18177 *)
18178 case $LD in # libtool.m4 will add one of these switches to LD
18179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18180 libsuff= shlibsuff= libmagic=32-bit;;
18181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18182 libsuff=32 shlibsuff=N32 libmagic=N32;;
18183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18184 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18185 *) libsuff= shlibsuff= libmagic=never-match;;
18186 esac
18187 ;;
18188 esac
18189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18190 shlibpath_overrides_runpath=no
18191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18193 hardcode_into_libs=yes
18194 ;;
18195
18196 # No shared lib support for Linux oldld, aout, or coff.
18197 linux*oldld* | linux*aout* | linux*coff*)
18198 dynamic_linker=no
18199 ;;
18200
18201 # This must be Linux ELF.
18202 linux* | k*bsd*-gnu)
18203 version_type=linux
18204 need_lib_prefix=no
18205 need_version=no
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207 soname_spec='${libname}${release}${shared_ext}$major'
18208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18209 shlibpath_var=LD_LIBRARY_PATH
18210 shlibpath_overrides_runpath=no
18211 # This implies no fast_install, which is unacceptable.
18212 # Some rework will be needed to allow for fast_install
18213 # before this can be enabled.
18214 hardcode_into_libs=yes
18215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18217
18218 # Append ld.so.conf contents to the search path
18219 if test -f /etc/ld.so.conf; then
18220 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18221 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18222 fi
18223
18224 # We used to test for /lib/ld.so.1 and disable shared libraries on
18225 # powerpc, because MkLinux only supported shared libraries with the
18226 # GNU dynamic linker. Since this was broken with cross compilers,
18227 # most powerpc-linux boxes support dynamic linking these days and
18228 # people can always --disable-shared, the test was removed, and we
18229 # assume the GNU/Linux dynamic linker is in use.
18230 dynamic_linker='GNU/Linux ld.so'
18231 ;;
18232
18233 netbsd*)
18234 version_type=sunos
18235 need_lib_prefix=no
18236 need_version=no
18237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18240 dynamic_linker='NetBSD (a.out) ld.so'
18241 else
18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18243 soname_spec='${libname}${release}${shared_ext}$major'
18244 dynamic_linker='NetBSD ld.elf_so'
18245 fi
18246 shlibpath_var=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath=yes
18248 hardcode_into_libs=yes
18249 ;;
18250
18251 newsos6)
18252 version_type=linux
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes
18256 ;;
18257
18258 nto-qnx*)
18259 version_type=linux
18260 need_lib_prefix=no
18261 need_version=no
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 soname_spec='${libname}${release}${shared_ext}$major'
18264 shlibpath_var=LD_LIBRARY_PATH
18265 shlibpath_overrides_runpath=yes
18266 ;;
18267
18268 openbsd*)
18269 version_type=sunos
18270 sys_lib_dlsearch_path_spec="/usr/lib"
18271 need_lib_prefix=no
18272 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18273 case $host_os in
18274 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18275 *) need_version=no ;;
18276 esac
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18281 case $host_os in
18282 openbsd2.[89] | openbsd2.[89].*)
18283 shlibpath_overrides_runpath=no
18284 ;;
18285 *)
18286 shlibpath_overrides_runpath=yes
18287 ;;
18288 esac
18289 else
18290 shlibpath_overrides_runpath=yes
18291 fi
18292 ;;
18293
18294 os2*)
18295 libname_spec='$name'
18296 shrext_cmds=".dll"
18297 need_lib_prefix=no
18298 library_names_spec='$libname${shared_ext} $libname.a'
18299 dynamic_linker='OS/2 ld.exe'
18300 shlibpath_var=LIBPATH
18301 ;;
18302
18303 osf3* | osf4* | osf5*)
18304 version_type=osf
18305 need_lib_prefix=no
18306 need_version=no
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18311 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18312 ;;
18313
18314 rdos*)
18315 dynamic_linker=no
18316 ;;
18317
18318 solaris*)
18319 version_type=linux
18320 need_lib_prefix=no
18321 need_version=no
18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323 soname_spec='${libname}${release}${shared_ext}$major'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 shlibpath_overrides_runpath=yes
18326 hardcode_into_libs=yes
18327 # ldd complains unless libraries are executable
18328 postinstall_cmds='chmod +x $lib'
18329 ;;
18330
18331 sunos4*)
18332 version_type=sunos
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18335 shlibpath_var=LD_LIBRARY_PATH
18336 shlibpath_overrides_runpath=yes
18337 if test "$with_gnu_ld" = yes; then
18338 need_lib_prefix=no
18339 fi
18340 need_version=yes
18341 ;;
18342
18343 sysv4 | sysv4.3*)
18344 version_type=linux
18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18346 soname_spec='${libname}${release}${shared_ext}$major'
18347 shlibpath_var=LD_LIBRARY_PATH
18348 case $host_vendor in
18349 sni)
18350 shlibpath_overrides_runpath=no
18351 need_lib_prefix=no
18352 export_dynamic_flag_spec='${wl}-Blargedynsym'
18353 runpath_var=LD_RUN_PATH
18354 ;;
18355 siemens)
18356 need_lib_prefix=no
18357 ;;
18358 motorola)
18359 need_lib_prefix=no
18360 need_version=no
18361 shlibpath_overrides_runpath=no
18362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18363 ;;
18364 esac
18365 ;;
18366
18367 sysv4*MP*)
18368 if test -d /usr/nec ;then
18369 version_type=linux
18370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18371 soname_spec='$libname${shared_ext}.$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 fi
18374 ;;
18375
18376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18377 version_type=freebsd-elf
18378 need_lib_prefix=no
18379 need_version=no
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18381 soname_spec='${libname}${release}${shared_ext}$major'
18382 shlibpath_var=LD_LIBRARY_PATH
18383 hardcode_into_libs=yes
18384 if test "$with_gnu_ld" = yes; then
18385 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18386 shlibpath_overrides_runpath=no
18387 else
18388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18389 shlibpath_overrides_runpath=yes
18390 case $host_os in
18391 sco3.2v5*)
18392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18393 ;;
18394 esac
18395 fi
18396 sys_lib_dlsearch_path_spec='/usr/lib'
18397 ;;
18398
18399 uts4*)
18400 version_type=linux
18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18402 soname_spec='${libname}${release}${shared_ext}$major'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 ;;
18405
18406 *)
18407 dynamic_linker=no
18408 ;;
18409 esac
18410 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18411 echo "${ECHO_T}$dynamic_linker" >&6; }
18412 test "$dynamic_linker" = no && can_build_shared=no
18413
18414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18415 if test "$GCC" = yes; then
18416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18417 fi
18418
18419 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18420 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18421 hardcode_action_GCJ=
18422 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18423 test -n "$runpath_var_GCJ" || \
18424 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18425
18426 # We can hardcode non-existant directories.
18427 if test "$hardcode_direct_GCJ" != no &&
18428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18429 # have to relink, otherwise we might link with an installed library
18430 # when we should be linking with a yet-to-be-installed one
18431 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18432 test "$hardcode_minus_L_GCJ" != no; then
18433 # Linking always hardcodes the temporary library directory.
18434 hardcode_action_GCJ=relink
18435 else
18436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18437 hardcode_action_GCJ=immediate
18438 fi
18439 else
18440 # We cannot hardcode anything, or else we can only hardcode existing
18441 # directories.
18442 hardcode_action_GCJ=unsupported
18443 fi
18444 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18445 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18446
18447 if test "$hardcode_action_GCJ" = relink; then
18448 # Fast installation is not supported
18449 enable_fast_install=no
18450 elif test "$shlibpath_overrides_runpath" = yes ||
18451 test "$enable_shared" = no; then
18452 # Fast installation is not necessary
18453 enable_fast_install=needless
18454 fi
18455
18456
18457 # The else clause should only fire when bootstrapping the
18458 # libtool distribution, otherwise you forgot to ship ltmain.sh
18459 # with your package, and you will get complaints that there are
18460 # no rules to generate ltmain.sh.
18461 if test -f "$ltmain"; then
18462 # See if we are running on zsh, and set the options which allow our commands through
18463 # without removal of \ escapes.
18464 if test -n "${ZSH_VERSION+set}" ; then
18465 setopt NO_GLOB_SUBST
18466 fi
18467 # Now quote all the things that may contain metacharacters while being
18468 # careful not to overquote the AC_SUBSTed values. We take copies of the
18469 # variables and quote the copies for generation of the libtool script.
18470 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18471 SED SHELL STRIP \
18472 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18473 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18474 deplibs_check_method reload_flag reload_cmds need_locks \
18475 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18476 lt_cv_sys_global_symbol_to_c_name_address \
18477 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18478 old_postinstall_cmds old_postuninstall_cmds \
18479 compiler_GCJ \
18480 CC_GCJ \
18481 LD_GCJ \
18482 lt_prog_compiler_wl_GCJ \
18483 lt_prog_compiler_pic_GCJ \
18484 lt_prog_compiler_static_GCJ \
18485 lt_prog_compiler_no_builtin_flag_GCJ \
18486 export_dynamic_flag_spec_GCJ \
18487 thread_safe_flag_spec_GCJ \
18488 whole_archive_flag_spec_GCJ \
18489 enable_shared_with_static_runtimes_GCJ \
18490 old_archive_cmds_GCJ \
18491 old_archive_from_new_cmds_GCJ \
18492 predep_objects_GCJ \
18493 postdep_objects_GCJ \
18494 predeps_GCJ \
18495 postdeps_GCJ \
18496 compiler_lib_search_path_GCJ \
18497 archive_cmds_GCJ \
18498 archive_expsym_cmds_GCJ \
18499 postinstall_cmds_GCJ \
18500 postuninstall_cmds_GCJ \
18501 old_archive_from_expsyms_cmds_GCJ \
18502 allow_undefined_flag_GCJ \
18503 no_undefined_flag_GCJ \
18504 export_symbols_cmds_GCJ \
18505 hardcode_libdir_flag_spec_GCJ \
18506 hardcode_libdir_flag_spec_ld_GCJ \
18507 hardcode_libdir_separator_GCJ \
18508 hardcode_automatic_GCJ \
18509 module_cmds_GCJ \
18510 module_expsym_cmds_GCJ \
18511 lt_cv_prog_compiler_c_o_GCJ \
18512 fix_srcfile_path_GCJ \
18513 exclude_expsyms_GCJ \
18514 include_expsyms_GCJ; do
18515
18516 case $var in
18517 old_archive_cmds_GCJ | \
18518 old_archive_from_new_cmds_GCJ | \
18519 archive_cmds_GCJ | \
18520 archive_expsym_cmds_GCJ | \
18521 module_cmds_GCJ | \
18522 module_expsym_cmds_GCJ | \
18523 old_archive_from_expsyms_cmds_GCJ | \
18524 export_symbols_cmds_GCJ | \
18525 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18526 postinstall_cmds | postuninstall_cmds | \
18527 old_postinstall_cmds | old_postuninstall_cmds | \
18528 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18529 # Double-quote double-evaled strings.
18530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18531 ;;
18532 *)
18533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18534 ;;
18535 esac
18536 done
18537
18538 case $lt_echo in
18539 *'\$0 --fallback-echo"')
18540 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18541 ;;
18542 esac
18543
18544 cfgfile="$ofile"
18545
18546 cat <<__EOF__ >> "$cfgfile"
18547 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18548
18549 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18550
18551 # Shell to use when invoking shell scripts.
18552 SHELL=$lt_SHELL
18553
18554 # Whether or not to build shared libraries.
18555 build_libtool_libs=$enable_shared
18556
18557 # Whether or not to build static libraries.
18558 build_old_libs=$enable_static
18559
18560 # Whether or not to add -lc for building shared libraries.
18561 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18562
18563 # Whether or not to disallow shared libs when runtime libs are static
18564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18565
18566 # Whether or not to optimize for fast installation.
18567 fast_install=$enable_fast_install
18568
18569 # The host system.
18570 host_alias=$host_alias
18571 host=$host
18572 host_os=$host_os
18573
18574 # The build system.
18575 build_alias=$build_alias
18576 build=$build
18577 build_os=$build_os
18578
18579 # An echo program that does not interpret backslashes.
18580 echo=$lt_echo
18581
18582 # The archiver.
18583 AR=$lt_AR
18584 AR_FLAGS=$lt_AR_FLAGS
18585
18586 # A C compiler.
18587 LTCC=$lt_LTCC
18588
18589 # LTCC compiler flags.
18590 LTCFLAGS=$lt_LTCFLAGS
18591
18592 # A language-specific compiler.
18593 CC=$lt_compiler_GCJ
18594
18595 # Is the compiler the GNU C compiler?
18596 with_gcc=$GCC_GCJ
18597
18598 # An ERE matcher.
18599 EGREP=$lt_EGREP
18600
18601 # The linker used to build libraries.
18602 LD=$lt_LD_GCJ
18603
18604 # Whether we need hard or soft links.
18605 LN_S=$lt_LN_S
18606
18607 # A BSD-compatible nm program.
18608 NM=$lt_NM
18609
18610 # A symbol stripping program
18611 STRIP=$lt_STRIP
18612
18613 # Used to examine libraries when file_magic_cmd begins "file"
18614 MAGIC_CMD=$MAGIC_CMD
18615
18616 # Used on cygwin: DLL creation program.
18617 DLLTOOL="$DLLTOOL"
18618
18619 # Used on cygwin: object dumper.
18620 OBJDUMP="$OBJDUMP"
18621
18622 # Used on cygwin: assembler.
18623 AS="$AS"
18624
18625 # The name of the directory that contains temporary libtool files.
18626 objdir=$objdir
18627
18628 # How to create reloadable object files.
18629 reload_flag=$lt_reload_flag
18630 reload_cmds=$lt_reload_cmds
18631
18632 # How to pass a linker flag through the compiler.
18633 wl=$lt_lt_prog_compiler_wl_GCJ
18634
18635 # Object file suffix (normally "o").
18636 objext="$ac_objext"
18637
18638 # Old archive suffix (normally "a").
18639 libext="$libext"
18640
18641 # Shared library suffix (normally ".so").
18642 shrext_cmds='$shrext_cmds'
18643
18644 # Executable file suffix (normally "").
18645 exeext="$exeext"
18646
18647 # Additional compiler flags for building library objects.
18648 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18649 pic_mode=$pic_mode
18650
18651 # What is the maximum length of a command?
18652 max_cmd_len=$lt_cv_sys_max_cmd_len
18653
18654 # Does compiler simultaneously support -c and -o options?
18655 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18656
18657 # Must we lock files when doing compilation?
18658 need_locks=$lt_need_locks
18659
18660 # Do we need the lib prefix for modules?
18661 need_lib_prefix=$need_lib_prefix
18662
18663 # Do we need a version for libraries?
18664 need_version=$need_version
18665
18666 # Whether dlopen is supported.
18667 dlopen_support=$enable_dlopen
18668
18669 # Whether dlopen of programs is supported.
18670 dlopen_self=$enable_dlopen_self
18671
18672 # Whether dlopen of statically linked programs is supported.
18673 dlopen_self_static=$enable_dlopen_self_static
18674
18675 # Compiler flag to prevent dynamic linking.
18676 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18677
18678 # Compiler flag to turn off builtin functions.
18679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18680
18681 # Compiler flag to allow reflexive dlopens.
18682 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18683
18684 # Compiler flag to generate shared objects directly from archives.
18685 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18686
18687 # Compiler flag to generate thread-safe objects.
18688 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18689
18690 # Library versioning type.
18691 version_type=$version_type
18692
18693 # Format of library name prefix.
18694 libname_spec=$lt_libname_spec
18695
18696 # List of archive names. First name is the real one, the rest are links.
18697 # The last name is the one that the linker finds with -lNAME.
18698 library_names_spec=$lt_library_names_spec
18699
18700 # The coded name of the library, if different from the real name.
18701 soname_spec=$lt_soname_spec
18702
18703 # Commands used to build and install an old-style archive.
18704 RANLIB=$lt_RANLIB
18705 old_archive_cmds=$lt_old_archive_cmds_GCJ
18706 old_postinstall_cmds=$lt_old_postinstall_cmds
18707 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18708
18709 # Create an old-style archive from a shared archive.
18710 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18711
18712 # Create a temporary old-style archive to link instead of a shared archive.
18713 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18714
18715 # Commands used to build and install a shared archive.
18716 archive_cmds=$lt_archive_cmds_GCJ
18717 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18718 postinstall_cmds=$lt_postinstall_cmds
18719 postuninstall_cmds=$lt_postuninstall_cmds
18720
18721 # Commands used to build a loadable module (assumed same as above if empty)
18722 module_cmds=$lt_module_cmds_GCJ
18723 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18724
18725 # Commands to strip libraries.
18726 old_striplib=$lt_old_striplib
18727 striplib=$lt_striplib
18728
18729 # Dependencies to place before the objects being linked to create a
18730 # shared library.
18731 predep_objects=$lt_predep_objects_GCJ
18732
18733 # Dependencies to place after the objects being linked to create a
18734 # shared library.
18735 postdep_objects=$lt_postdep_objects_GCJ
18736
18737 # Dependencies to place before the objects being linked to create a
18738 # shared library.
18739 predeps=$lt_predeps_GCJ
18740
18741 # Dependencies to place after the objects being linked to create a
18742 # shared library.
18743 postdeps=$lt_postdeps_GCJ
18744
18745 # The library search path used internally by the compiler when linking
18746 # a shared library.
18747 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18748
18749 # Method to check whether dependent libraries are shared objects.
18750 deplibs_check_method=$lt_deplibs_check_method
18751
18752 # Command to use when deplibs_check_method == file_magic.
18753 file_magic_cmd=$lt_file_magic_cmd
18754
18755 # Flag that allows shared libraries with undefined symbols to be built.
18756 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18757
18758 # Flag that forces no undefined symbols.
18759 no_undefined_flag=$lt_no_undefined_flag_GCJ
18760
18761 # Commands used to finish a libtool library installation in a directory.
18762 finish_cmds=$lt_finish_cmds
18763
18764 # Same as above, but a single script fragment to be evaled but not shown.
18765 finish_eval=$lt_finish_eval
18766
18767 # Take the output of nm and produce a listing of raw symbols and C names.
18768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18769
18770 # Transform the output of nm in a proper C declaration
18771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18772
18773 # Transform the output of nm in a C name address pair
18774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18775
18776 # This is the shared library runtime path variable.
18777 runpath_var=$runpath_var
18778
18779 # This is the shared library path variable.
18780 shlibpath_var=$shlibpath_var
18781
18782 # Is shlibpath searched before the hard-coded library search path?
18783 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18784
18785 # How to hardcode a shared library path into an executable.
18786 hardcode_action=$hardcode_action_GCJ
18787
18788 # Whether we should hardcode library paths into libraries.
18789 hardcode_into_libs=$hardcode_into_libs
18790
18791 # Flag to hardcode \$libdir into a binary during linking.
18792 # This must work even if \$libdir does not exist.
18793 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18794
18795 # If ld is used when linking, flag to hardcode \$libdir into
18796 # a binary during linking. This must work even if \$libdir does
18797 # not exist.
18798 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18799
18800 # Whether we need a single -rpath flag with a separated argument.
18801 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18802
18803 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18804 # resulting binary.
18805 hardcode_direct=$hardcode_direct_GCJ
18806
18807 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18808 # resulting binary.
18809 hardcode_minus_L=$hardcode_minus_L_GCJ
18810
18811 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18812 # the resulting binary.
18813 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18814
18815 # Set to yes if building a shared library automatically hardcodes DIR into the library
18816 # and all subsequent libraries and executables linked against it.
18817 hardcode_automatic=$hardcode_automatic_GCJ
18818
18819 # Variables whose values should be saved in libtool wrapper scripts and
18820 # restored at relink time.
18821 variables_saved_for_relink="$variables_saved_for_relink"
18822
18823 # Whether libtool must link a program against all its dependency libraries.
18824 link_all_deplibs=$link_all_deplibs_GCJ
18825
18826 # Compile-time system search path for libraries
18827 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18828
18829 # Run-time system search path for libraries
18830 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18831
18832 # Fix the shell variable \$srcfile for the compiler.
18833 fix_srcfile_path=$lt_fix_srcfile_path
18834
18835 # Set to yes if exported symbols are required.
18836 always_export_symbols=$always_export_symbols_GCJ
18837
18838 # The commands to list exported symbols.
18839 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18840
18841 # The commands to extract the exported symbol list from a shared archive.
18842 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18843
18844 # Symbols that should not be listed in the preloaded symbols.
18845 exclude_expsyms=$lt_exclude_expsyms_GCJ
18846
18847 # Symbols that must always be exported.
18848 include_expsyms=$lt_include_expsyms_GCJ
18849
18850 # ### END LIBTOOL TAG CONFIG: $tagname
18851
18852 __EOF__
18853
18854
18855 else
18856 # If there is no Makefile yet, we rely on a make rule to execute
18857 # `config.status --recheck' to rerun these tests and create the
18858 # libtool script then.
18859 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18860 if test -f "$ltmain_in"; then
18861 test -f Makefile && make "$ltmain"
18862 fi
18863 fi
18864
18865
18866 ac_ext=c
18867 ac_cpp='$CPP $CPPFLAGS'
18868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18871
18872 CC="$lt_save_CC"
18873
18874 else
18875 tagname=""
18876 fi
18877 ;;
18878
18879 RC)
18880
18881
18882 # Source file extension for RC test sources.
18883 ac_ext=rc
18884
18885 # Object file extension for compiled RC test sources.
18886 objext=o
18887 objext_RC=$objext
18888
18889 # Code to be used in simple compile tests
18890 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18891
18892 # Code to be used in simple link tests
18893 lt_simple_link_test_code="$lt_simple_compile_test_code"
18894
18895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18896
18897 # If no C compiler was specified, use CC.
18898 LTCC=${LTCC-"$CC"}
18899
18900 # If no C compiler flags were specified, use CFLAGS.
18901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18902
18903 # Allow CC to be a program name with arguments.
18904 compiler=$CC
18905
18906
18907 # save warnings/boilerplate of simple test code
18908 ac_outfile=conftest.$ac_objext
18909 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18911 _lt_compiler_boilerplate=`cat conftest.err`
18912 $rm conftest*
18913
18914 ac_outfile=conftest.$ac_objext
18915 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18917 _lt_linker_boilerplate=`cat conftest.err`
18918 $rm conftest*
18919
18920
18921 # Allow CC to be a program name with arguments.
18922 lt_save_CC="$CC"
18923 CC=${RC-"windres"}
18924 compiler=$CC
18925 compiler_RC=$CC
18926 for cc_temp in $compiler""; do
18927 case $cc_temp in
18928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18930 \-*) ;;
18931 *) break;;
18932 esac
18933 done
18934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18935
18936 lt_cv_prog_compiler_c_o_RC=yes
18937
18938 # The else clause should only fire when bootstrapping the
18939 # libtool distribution, otherwise you forgot to ship ltmain.sh
18940 # with your package, and you will get complaints that there are
18941 # no rules to generate ltmain.sh.
18942 if test -f "$ltmain"; then
18943 # See if we are running on zsh, and set the options which allow our commands through
18944 # without removal of \ escapes.
18945 if test -n "${ZSH_VERSION+set}" ; then
18946 setopt NO_GLOB_SUBST
18947 fi
18948 # Now quote all the things that may contain metacharacters while being
18949 # careful not to overquote the AC_SUBSTed values. We take copies of the
18950 # variables and quote the copies for generation of the libtool script.
18951 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18952 SED SHELL STRIP \
18953 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18954 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18955 deplibs_check_method reload_flag reload_cmds need_locks \
18956 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18957 lt_cv_sys_global_symbol_to_c_name_address \
18958 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18959 old_postinstall_cmds old_postuninstall_cmds \
18960 compiler_RC \
18961 CC_RC \
18962 LD_RC \
18963 lt_prog_compiler_wl_RC \
18964 lt_prog_compiler_pic_RC \
18965 lt_prog_compiler_static_RC \
18966 lt_prog_compiler_no_builtin_flag_RC \
18967 export_dynamic_flag_spec_RC \
18968 thread_safe_flag_spec_RC \
18969 whole_archive_flag_spec_RC \
18970 enable_shared_with_static_runtimes_RC \
18971 old_archive_cmds_RC \
18972 old_archive_from_new_cmds_RC \
18973 predep_objects_RC \
18974 postdep_objects_RC \
18975 predeps_RC \
18976 postdeps_RC \
18977 compiler_lib_search_path_RC \
18978 archive_cmds_RC \
18979 archive_expsym_cmds_RC \
18980 postinstall_cmds_RC \
18981 postuninstall_cmds_RC \
18982 old_archive_from_expsyms_cmds_RC \
18983 allow_undefined_flag_RC \
18984 no_undefined_flag_RC \
18985 export_symbols_cmds_RC \
18986 hardcode_libdir_flag_spec_RC \
18987 hardcode_libdir_flag_spec_ld_RC \
18988 hardcode_libdir_separator_RC \
18989 hardcode_automatic_RC \
18990 module_cmds_RC \
18991 module_expsym_cmds_RC \
18992 lt_cv_prog_compiler_c_o_RC \
18993 fix_srcfile_path_RC \
18994 exclude_expsyms_RC \
18995 include_expsyms_RC; do
18996
18997 case $var in
18998 old_archive_cmds_RC | \
18999 old_archive_from_new_cmds_RC | \
19000 archive_cmds_RC | \
19001 archive_expsym_cmds_RC | \
19002 module_cmds_RC | \
19003 module_expsym_cmds_RC | \
19004 old_archive_from_expsyms_cmds_RC | \
19005 export_symbols_cmds_RC | \
19006 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19007 postinstall_cmds | postuninstall_cmds | \
19008 old_postinstall_cmds | old_postuninstall_cmds | \
19009 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19010 # Double-quote double-evaled strings.
19011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19012 ;;
19013 *)
19014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19015 ;;
19016 esac
19017 done
19018
19019 case $lt_echo in
19020 *'\$0 --fallback-echo"')
19021 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19022 ;;
19023 esac
19024
19025 cfgfile="$ofile"
19026
19027 cat <<__EOF__ >> "$cfgfile"
19028 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19029
19030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19031
19032 # Shell to use when invoking shell scripts.
19033 SHELL=$lt_SHELL
19034
19035 # Whether or not to build shared libraries.
19036 build_libtool_libs=$enable_shared
19037
19038 # Whether or not to build static libraries.
19039 build_old_libs=$enable_static
19040
19041 # Whether or not to add -lc for building shared libraries.
19042 build_libtool_need_lc=$archive_cmds_need_lc_RC
19043
19044 # Whether or not to disallow shared libs when runtime libs are static
19045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19046
19047 # Whether or not to optimize for fast installation.
19048 fast_install=$enable_fast_install
19049
19050 # The host system.
19051 host_alias=$host_alias
19052 host=$host
19053 host_os=$host_os
19054
19055 # The build system.
19056 build_alias=$build_alias
19057 build=$build
19058 build_os=$build_os
19059
19060 # An echo program that does not interpret backslashes.
19061 echo=$lt_echo
19062
19063 # The archiver.
19064 AR=$lt_AR
19065 AR_FLAGS=$lt_AR_FLAGS
19066
19067 # A C compiler.
19068 LTCC=$lt_LTCC
19069
19070 # LTCC compiler flags.
19071 LTCFLAGS=$lt_LTCFLAGS
19072
19073 # A language-specific compiler.
19074 CC=$lt_compiler_RC
19075
19076 # Is the compiler the GNU C compiler?
19077 with_gcc=$GCC_RC
19078
19079 # An ERE matcher.
19080 EGREP=$lt_EGREP
19081
19082 # The linker used to build libraries.
19083 LD=$lt_LD_RC
19084
19085 # Whether we need hard or soft links.
19086 LN_S=$lt_LN_S
19087
19088 # A BSD-compatible nm program.
19089 NM=$lt_NM
19090
19091 # A symbol stripping program
19092 STRIP=$lt_STRIP
19093
19094 # Used to examine libraries when file_magic_cmd begins "file"
19095 MAGIC_CMD=$MAGIC_CMD
19096
19097 # Used on cygwin: DLL creation program.
19098 DLLTOOL="$DLLTOOL"
19099
19100 # Used on cygwin: object dumper.
19101 OBJDUMP="$OBJDUMP"
19102
19103 # Used on cygwin: assembler.
19104 AS="$AS"
19105
19106 # The name of the directory that contains temporary libtool files.
19107 objdir=$objdir
19108
19109 # How to create reloadable object files.
19110 reload_flag=$lt_reload_flag
19111 reload_cmds=$lt_reload_cmds
19112
19113 # How to pass a linker flag through the compiler.
19114 wl=$lt_lt_prog_compiler_wl_RC
19115
19116 # Object file suffix (normally "o").
19117 objext="$ac_objext"
19118
19119 # Old archive suffix (normally "a").
19120 libext="$libext"
19121
19122 # Shared library suffix (normally ".so").
19123 shrext_cmds='$shrext_cmds'
19124
19125 # Executable file suffix (normally "").
19126 exeext="$exeext"
19127
19128 # Additional compiler flags for building library objects.
19129 pic_flag=$lt_lt_prog_compiler_pic_RC
19130 pic_mode=$pic_mode
19131
19132 # What is the maximum length of a command?
19133 max_cmd_len=$lt_cv_sys_max_cmd_len
19134
19135 # Does compiler simultaneously support -c and -o options?
19136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19137
19138 # Must we lock files when doing compilation?
19139 need_locks=$lt_need_locks
19140
19141 # Do we need the lib prefix for modules?
19142 need_lib_prefix=$need_lib_prefix
19143
19144 # Do we need a version for libraries?
19145 need_version=$need_version
19146
19147 # Whether dlopen is supported.
19148 dlopen_support=$enable_dlopen
19149
19150 # Whether dlopen of programs is supported.
19151 dlopen_self=$enable_dlopen_self
19152
19153 # Whether dlopen of statically linked programs is supported.
19154 dlopen_self_static=$enable_dlopen_self_static
19155
19156 # Compiler flag to prevent dynamic linking.
19157 link_static_flag=$lt_lt_prog_compiler_static_RC
19158
19159 # Compiler flag to turn off builtin functions.
19160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19161
19162 # Compiler flag to allow reflexive dlopens.
19163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19164
19165 # Compiler flag to generate shared objects directly from archives.
19166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19167
19168 # Compiler flag to generate thread-safe objects.
19169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19170
19171 # Library versioning type.
19172 version_type=$version_type
19173
19174 # Format of library name prefix.
19175 libname_spec=$lt_libname_spec
19176
19177 # List of archive names. First name is the real one, the rest are links.
19178 # The last name is the one that the linker finds with -lNAME.
19179 library_names_spec=$lt_library_names_spec
19180
19181 # The coded name of the library, if different from the real name.
19182 soname_spec=$lt_soname_spec
19183
19184 # Commands used to build and install an old-style archive.
19185 RANLIB=$lt_RANLIB
19186 old_archive_cmds=$lt_old_archive_cmds_RC
19187 old_postinstall_cmds=$lt_old_postinstall_cmds
19188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19189
19190 # Create an old-style archive from a shared archive.
19191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19192
19193 # Create a temporary old-style archive to link instead of a shared archive.
19194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19195
19196 # Commands used to build and install a shared archive.
19197 archive_cmds=$lt_archive_cmds_RC
19198 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19199 postinstall_cmds=$lt_postinstall_cmds
19200 postuninstall_cmds=$lt_postuninstall_cmds
19201
19202 # Commands used to build a loadable module (assumed same as above if empty)
19203 module_cmds=$lt_module_cmds_RC
19204 module_expsym_cmds=$lt_module_expsym_cmds_RC
19205
19206 # Commands to strip libraries.
19207 old_striplib=$lt_old_striplib
19208 striplib=$lt_striplib
19209
19210 # Dependencies to place before the objects being linked to create a
19211 # shared library.
19212 predep_objects=$lt_predep_objects_RC
19213
19214 # Dependencies to place after the objects being linked to create a
19215 # shared library.
19216 postdep_objects=$lt_postdep_objects_RC
19217
19218 # Dependencies to place before the objects being linked to create a
19219 # shared library.
19220 predeps=$lt_predeps_RC
19221
19222 # Dependencies to place after the objects being linked to create a
19223 # shared library.
19224 postdeps=$lt_postdeps_RC
19225
19226 # The library search path used internally by the compiler when linking
19227 # a shared library.
19228 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19229
19230 # Method to check whether dependent libraries are shared objects.
19231 deplibs_check_method=$lt_deplibs_check_method
19232
19233 # Command to use when deplibs_check_method == file_magic.
19234 file_magic_cmd=$lt_file_magic_cmd
19235
19236 # Flag that allows shared libraries with undefined symbols to be built.
19237 allow_undefined_flag=$lt_allow_undefined_flag_RC
19238
19239 # Flag that forces no undefined symbols.
19240 no_undefined_flag=$lt_no_undefined_flag_RC
19241
19242 # Commands used to finish a libtool library installation in a directory.
19243 finish_cmds=$lt_finish_cmds
19244
19245 # Same as above, but a single script fragment to be evaled but not shown.
19246 finish_eval=$lt_finish_eval
19247
19248 # Take the output of nm and produce a listing of raw symbols and C names.
19249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19250
19251 # Transform the output of nm in a proper C declaration
19252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19253
19254 # Transform the output of nm in a C name address pair
19255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19256
19257 # This is the shared library runtime path variable.
19258 runpath_var=$runpath_var
19259
19260 # This is the shared library path variable.
19261 shlibpath_var=$shlibpath_var
19262
19263 # Is shlibpath searched before the hard-coded library search path?
19264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19265
19266 # How to hardcode a shared library path into an executable.
19267 hardcode_action=$hardcode_action_RC
19268
19269 # Whether we should hardcode library paths into libraries.
19270 hardcode_into_libs=$hardcode_into_libs
19271
19272 # Flag to hardcode \$libdir into a binary during linking.
19273 # This must work even if \$libdir does not exist.
19274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19275
19276 # If ld is used when linking, flag to hardcode \$libdir into
19277 # a binary during linking. This must work even if \$libdir does
19278 # not exist.
19279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19280
19281 # Whether we need a single -rpath flag with a separated argument.
19282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19283
19284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19285 # resulting binary.
19286 hardcode_direct=$hardcode_direct_RC
19287
19288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19289 # resulting binary.
19290 hardcode_minus_L=$hardcode_minus_L_RC
19291
19292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19293 # the resulting binary.
19294 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19295
19296 # Set to yes if building a shared library automatically hardcodes DIR into the library
19297 # and all subsequent libraries and executables linked against it.
19298 hardcode_automatic=$hardcode_automatic_RC
19299
19300 # Variables whose values should be saved in libtool wrapper scripts and
19301 # restored at relink time.
19302 variables_saved_for_relink="$variables_saved_for_relink"
19303
19304 # Whether libtool must link a program against all its dependency libraries.
19305 link_all_deplibs=$link_all_deplibs_RC
19306
19307 # Compile-time system search path for libraries
19308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19309
19310 # Run-time system search path for libraries
19311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19312
19313 # Fix the shell variable \$srcfile for the compiler.
19314 fix_srcfile_path=$lt_fix_srcfile_path
19315
19316 # Set to yes if exported symbols are required.
19317 always_export_symbols=$always_export_symbols_RC
19318
19319 # The commands to list exported symbols.
19320 export_symbols_cmds=$lt_export_symbols_cmds_RC
19321
19322 # The commands to extract the exported symbol list from a shared archive.
19323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19324
19325 # Symbols that should not be listed in the preloaded symbols.
19326 exclude_expsyms=$lt_exclude_expsyms_RC
19327
19328 # Symbols that must always be exported.
19329 include_expsyms=$lt_include_expsyms_RC
19330
19331 # ### END LIBTOOL TAG CONFIG: $tagname
19332
19333 __EOF__
19334
19335
19336 else
19337 # If there is no Makefile yet, we rely on a make rule to execute
19338 # `config.status --recheck' to rerun these tests and create the
19339 # libtool script then.
19340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19341 if test -f "$ltmain_in"; then
19342 test -f Makefile && make "$ltmain"
19343 fi
19344 fi
19345
19346
19347 ac_ext=c
19348 ac_cpp='$CPP $CPPFLAGS'
19349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19352
19353 CC="$lt_save_CC"
19354
19355 ;;
19356
19357 *)
19358 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19359 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19360 { (exit 1); exit 1; }; }
19361 ;;
19362 esac
19363
19364 # Append the new tag name to the list of available tags.
19365 if test -n "$tagname" ; then
19366 available_tags="$available_tags $tagname"
19367 fi
19368 fi
19369 done
19370 IFS="$lt_save_ifs"
19371
19372 # Now substitute the updated list of available tags.
19373 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19374 mv "${ofile}T" "$ofile"
19375 chmod +x "$ofile"
19376 else
19377 rm -f "${ofile}T"
19378 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19379 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19380 { (exit 1); exit 1; }; }
19381 fi
19382 fi
19383
19384
19385
19386 # This can be used to rebuild libtool when needed
19387 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19388
19389 # Always use our own libtool.
19390 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19391
19392 # Prevent multiple expansion
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413 ac_ext=c
19414 ac_cpp='$CPP $CPPFLAGS'
19415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19418 if test -n "$ac_tool_prefix"; then
19419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19423 if test "${ac_cv_prog_CC+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426 if test -n "$CC"; then
19427 ac_cv_prog_CC="$CC" # Let the user override the test.
19428 else
19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in $PATH
19431 do
19432 IFS=$as_save_IFS
19433 test -z "$as_dir" && as_dir=.
19434 for ac_exec_ext in '' $ac_executable_extensions; do
19435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19438 break 2
19439 fi
19440 done
19441 done
19442 IFS=$as_save_IFS
19443
19444 fi
19445 fi
19446 CC=$ac_cv_prog_CC
19447 if test -n "$CC"; then
19448 { echo "$as_me:$LINENO: result: $CC" >&5
19449 echo "${ECHO_T}$CC" >&6; }
19450 else
19451 { echo "$as_me:$LINENO: result: no" >&5
19452 echo "${ECHO_T}no" >&6; }
19453 fi
19454
19455
19456 fi
19457 if test -z "$ac_cv_prog_CC"; then
19458 ac_ct_CC=$CC
19459 # Extract the first word of "gcc", so it can be a program name with args.
19460 set dummy gcc; ac_word=$2
19461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466 if test -n "$ac_ct_CC"; then
19467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19468 else
19469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470 for as_dir in $PATH
19471 do
19472 IFS=$as_save_IFS
19473 test -z "$as_dir" && as_dir=.
19474 for ac_exec_ext in '' $ac_executable_extensions; do
19475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19476 ac_cv_prog_ac_ct_CC="gcc"
19477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19478 break 2
19479 fi
19480 done
19481 done
19482 IFS=$as_save_IFS
19483
19484 fi
19485 fi
19486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19487 if test -n "$ac_ct_CC"; then
19488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19489 echo "${ECHO_T}$ac_ct_CC" >&6; }
19490 else
19491 { echo "$as_me:$LINENO: result: no" >&5
19492 echo "${ECHO_T}no" >&6; }
19493 fi
19494
19495 if test "x$ac_ct_CC" = x; then
19496 CC=""
19497 else
19498 case $cross_compiling:$ac_tool_warned in
19499 yes:)
19500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19501 whose name does not start with the host triplet. If you think this
19502 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19504 whose name does not start with the host triplet. If you think this
19505 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19506 ac_tool_warned=yes ;;
19507 esac
19508 CC=$ac_ct_CC
19509 fi
19510 else
19511 CC="$ac_cv_prog_CC"
19512 fi
19513
19514 if test -z "$CC"; then
19515 if test -n "$ac_tool_prefix"; then
19516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19517 set dummy ${ac_tool_prefix}cc; ac_word=$2
19518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19520 if test "${ac_cv_prog_CC+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523 if test -n "$CC"; then
19524 ac_cv_prog_CC="$CC" # Let the user override the test.
19525 else
19526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19527 for as_dir in $PATH
19528 do
19529 IFS=$as_save_IFS
19530 test -z "$as_dir" && as_dir=.
19531 for ac_exec_ext in '' $ac_executable_extensions; do
19532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19533 ac_cv_prog_CC="${ac_tool_prefix}cc"
19534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19535 break 2
19536 fi
19537 done
19538 done
19539 IFS=$as_save_IFS
19540
19541 fi
19542 fi
19543 CC=$ac_cv_prog_CC
19544 if test -n "$CC"; then
19545 { echo "$as_me:$LINENO: result: $CC" >&5
19546 echo "${ECHO_T}$CC" >&6; }
19547 else
19548 { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19550 fi
19551
19552
19553 fi
19554 fi
19555 if test -z "$CC"; then
19556 # Extract the first word of "cc", so it can be a program name with args.
19557 set dummy cc; ac_word=$2
19558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19560 if test "${ac_cv_prog_CC+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563 if test -n "$CC"; then
19564 ac_cv_prog_CC="$CC" # Let the user override the test.
19565 else
19566 ac_prog_rejected=no
19567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19568 for as_dir in $PATH
19569 do
19570 IFS=$as_save_IFS
19571 test -z "$as_dir" && as_dir=.
19572 for ac_exec_ext in '' $ac_executable_extensions; do
19573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19575 ac_prog_rejected=yes
19576 continue
19577 fi
19578 ac_cv_prog_CC="cc"
19579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19580 break 2
19581 fi
19582 done
19583 done
19584 IFS=$as_save_IFS
19585
19586 if test $ac_prog_rejected = yes; then
19587 # We found a bogon in the path, so make sure we never use it.
19588 set dummy $ac_cv_prog_CC
19589 shift
19590 if test $# != 0; then
19591 # We chose a different compiler from the bogus one.
19592 # However, it has the same basename, so the bogon will be chosen
19593 # first if we set CC to just the basename; use the full file name.
19594 shift
19595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19596 fi
19597 fi
19598 fi
19599 fi
19600 CC=$ac_cv_prog_CC
19601 if test -n "$CC"; then
19602 { echo "$as_me:$LINENO: result: $CC" >&5
19603 echo "${ECHO_T}$CC" >&6; }
19604 else
19605 { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19607 fi
19608
19609
19610 fi
19611 if test -z "$CC"; then
19612 if test -n "$ac_tool_prefix"; then
19613 for ac_prog in cl.exe
19614 do
19615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19619 if test "${ac_cv_prog_CC+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622 if test -n "$CC"; then
19623 ac_cv_prog_CC="$CC" # Let the user override the test.
19624 else
19625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626 for as_dir in $PATH
19627 do
19628 IFS=$as_save_IFS
19629 test -z "$as_dir" && as_dir=.
19630 for ac_exec_ext in '' $ac_executable_extensions; do
19631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19634 break 2
19635 fi
19636 done
19637 done
19638 IFS=$as_save_IFS
19639
19640 fi
19641 fi
19642 CC=$ac_cv_prog_CC
19643 if test -n "$CC"; then
19644 { echo "$as_me:$LINENO: result: $CC" >&5
19645 echo "${ECHO_T}$CC" >&6; }
19646 else
19647 { echo "$as_me:$LINENO: result: no" >&5
19648 echo "${ECHO_T}no" >&6; }
19649 fi
19650
19651
19652 test -n "$CC" && break
19653 done
19654 fi
19655 if test -z "$CC"; then
19656 ac_ct_CC=$CC
19657 for ac_prog in cl.exe
19658 do
19659 # Extract the first word of "$ac_prog", so it can be a program name with args.
19660 set dummy $ac_prog; ac_word=$2
19661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666 if test -n "$ac_ct_CC"; then
19667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19668 else
19669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19670 for as_dir in $PATH
19671 do
19672 IFS=$as_save_IFS
19673 test -z "$as_dir" && as_dir=.
19674 for ac_exec_ext in '' $ac_executable_extensions; do
19675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19676 ac_cv_prog_ac_ct_CC="$ac_prog"
19677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19678 break 2
19679 fi
19680 done
19681 done
19682 IFS=$as_save_IFS
19683
19684 fi
19685 fi
19686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19687 if test -n "$ac_ct_CC"; then
19688 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19689 echo "${ECHO_T}$ac_ct_CC" >&6; }
19690 else
19691 { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19693 fi
19694
19695
19696 test -n "$ac_ct_CC" && break
19697 done
19698
19699 if test "x$ac_ct_CC" = x; then
19700 CC=""
19701 else
19702 case $cross_compiling:$ac_tool_warned in
19703 yes:)
19704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19705 whose name does not start with the host triplet. If you think this
19706 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19708 whose name does not start with the host triplet. If you think this
19709 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19710 ac_tool_warned=yes ;;
19711 esac
19712 CC=$ac_ct_CC
19713 fi
19714 fi
19715
19716 fi
19717
19718
19719 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19720 See \`config.log' for more details." >&5
19721 echo "$as_me: error: no acceptable C compiler found in \$PATH
19722 See \`config.log' for more details." >&2;}
19723 { (exit 1); exit 1; }; }
19724
19725 # Provide some information about the compiler.
19726 echo "$as_me:$LINENO: checking for C compiler version" >&5
19727 ac_compiler=`set X $ac_compile; echo $2`
19728 { (ac_try="$ac_compiler --version >&5"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compiler --version >&5") 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }
19738 { (ac_try="$ac_compiler -v >&5"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_compiler -v >&5") 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }
19748 { (ac_try="$ac_compiler -V >&5"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_compiler -V >&5") 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }
19758
19759 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770
19771 int
19772 main ()
19773 {
19774 #ifndef __GNUC__
19775 choke me
19776 #endif
19777
19778 ;
19779 return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest.$ac_objext; then
19799 ac_compiler_gnu=yes
19800 else
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_compiler_gnu=no
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19809
19810 fi
19811 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19812 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19813 GCC=`test $ac_compiler_gnu = yes && echo yes`
19814 ac_test_CFLAGS=${CFLAGS+set}
19815 ac_save_CFLAGS=$CFLAGS
19816 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19817 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19818 if test "${ac_cv_prog_cc_g+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821 ac_save_c_werror_flag=$ac_c_werror_flag
19822 ac_c_werror_flag=yes
19823 ac_cv_prog_cc_g=no
19824 CFLAGS="-g"
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h. */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831
19832 int
19833 main ()
19834 {
19835
19836 ;
19837 return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest.$ac_objext; then
19857 ac_cv_prog_cc_g=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862 CFLAGS=""
19863 cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h. */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19869
19870 int
19871 main ()
19872 {
19873
19874 ;
19875 return 0;
19876 }
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (ac_try="$ac_compile"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19895 :
19896 else
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 ac_c_werror_flag=$ac_save_c_werror_flag
19901 CFLAGS="-g"
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h. */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19908
19909 int
19910 main ()
19911 {
19912
19913 ;
19914 return 0;
19915 }
19916 _ACEOF
19917 rm -f conftest.$ac_objext
19918 if { (ac_try="$ac_compile"
19919 case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19922 esac
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924 (eval "$ac_compile") 2>conftest.er1
19925 ac_status=$?
19926 grep -v '^ *+' conftest.er1 >conftest.err
19927 rm -f conftest.er1
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } && {
19931 test -z "$ac_c_werror_flag" ||
19932 test ! -s conftest.err
19933 } && test -s conftest.$ac_objext; then
19934 ac_cv_prog_cc_g=yes
19935 else
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939
19940 fi
19941
19942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 fi
19947
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 ac_c_werror_flag=$ac_save_c_werror_flag
19950 fi
19951 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19952 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19953 if test "$ac_test_CFLAGS" = set; then
19954 CFLAGS=$ac_save_CFLAGS
19955 elif test $ac_cv_prog_cc_g = yes; then
19956 if test "$GCC" = yes; then
19957 CFLAGS="-g -O2"
19958 else
19959 CFLAGS="-g"
19960 fi
19961 else
19962 if test "$GCC" = yes; then
19963 CFLAGS="-O2"
19964 else
19965 CFLAGS=
19966 fi
19967 fi
19968 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19969 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19970 if test "${ac_cv_prog_cc_c89+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973 ac_cv_prog_cc_c89=no
19974 ac_save_CC=$CC
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h. */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #include <stdarg.h>
19982 #include <stdio.h>
19983 #include <sys/types.h>
19984 #include <sys/stat.h>
19985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19986 struct buf { int x; };
19987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19988 static char *e (p, i)
19989 char **p;
19990 int i;
19991 {
19992 return p[i];
19993 }
19994 static char *f (char * (*g) (char **, int), char **p, ...)
19995 {
19996 char *s;
19997 va_list v;
19998 va_start (v,p);
19999 s = g (p, va_arg (v,int));
20000 va_end (v);
20001 return s;
20002 }
20003
20004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20005 function prototypes and stuff, but not '\xHH' hex character constants.
20006 These don't provoke an error unfortunately, instead are silently treated
20007 as 'x'. The following induces an error, until -std is added to get
20008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20009 array size at least. It's necessary to write '\x00'==0 to get something
20010 that's true only with -std. */
20011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20012
20013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20014 inside strings and character constants. */
20015 #define FOO(x) 'x'
20016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20017
20018 int test (int i, double x);
20019 struct s1 {int (*f) (int a);};
20020 struct s2 {int (*f) (double a);};
20021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20022 int argc;
20023 char **argv;
20024 int
20025 main ()
20026 {
20027 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20028 ;
20029 return 0;
20030 }
20031 _ACEOF
20032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20034 do
20035 CC="$ac_save_CC $ac_arg"
20036 rm -f conftest.$ac_objext
20037 if { (ac_try="$ac_compile"
20038 case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_compile") 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } && {
20050 test -z "$ac_c_werror_flag" ||
20051 test ! -s conftest.err
20052 } && test -s conftest.$ac_objext; then
20053 ac_cv_prog_cc_c89=$ac_arg
20054 else
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058
20059 fi
20060
20061 rm -f core conftest.err conftest.$ac_objext
20062 test "x$ac_cv_prog_cc_c89" != "xno" && break
20063 done
20064 rm -f conftest.$ac_ext
20065 CC=$ac_save_CC
20066
20067 fi
20068 # AC_CACHE_VAL
20069 case "x$ac_cv_prog_cc_c89" in
20070 x)
20071 { echo "$as_me:$LINENO: result: none needed" >&5
20072 echo "${ECHO_T}none needed" >&6; } ;;
20073 xno)
20074 { echo "$as_me:$LINENO: result: unsupported" >&5
20075 echo "${ECHO_T}unsupported" >&6; } ;;
20076 *)
20077 CC="$CC $ac_cv_prog_cc_c89"
20078 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20079 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20080 esac
20081
20082
20083 ac_ext=c
20084 ac_cpp='$CPP $CPPFLAGS'
20085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20088
20089 depcc="$CC" am_compiler_list=
20090
20091 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20092 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20093 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20097 # We make a subdir and do the tests there. Otherwise we can end up
20098 # making bogus files that we don't know about and never remove. For
20099 # instance it was reported that on HP-UX the gcc test will end up
20100 # making a dummy file named `D' -- because `-MD' means `put the output
20101 # in D'.
20102 mkdir conftest.dir
20103 # Copy depcomp to subdir because otherwise we won't find it if we're
20104 # using a relative directory.
20105 cp "$am_depcomp" conftest.dir
20106 cd conftest.dir
20107 # We will build objects and dependencies in a subdirectory because
20108 # it helps to detect inapplicable dependency modes. For instance
20109 # both Tru64's cc and ICC support -MD to output dependencies as a
20110 # side effect of compilation, but ICC will put the dependencies in
20111 # the current directory while Tru64 will put them in the object
20112 # directory.
20113 mkdir sub
20114
20115 am_cv_CC_dependencies_compiler_type=none
20116 if test "$am_compiler_list" = ""; then
20117 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20118 fi
20119 for depmode in $am_compiler_list; do
20120 # Setup a source with many dependencies, because some compilers
20121 # like to wrap large dependency lists on column 80 (with \), and
20122 # we should not choose a depcomp mode which is confused by this.
20123 #
20124 # We need to recreate these files for each test, as the compiler may
20125 # overwrite some of them when testing with obscure command lines.
20126 # This happens at least with the AIX C compiler.
20127 : > sub/conftest.c
20128 for i in 1 2 3 4 5 6; do
20129 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20130 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20131 # Solaris 8's {/usr,}/bin/sh.
20132 touch sub/conftst$i.h
20133 done
20134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20135
20136 case $depmode in
20137 nosideeffect)
20138 # after this tag, mechanisms are not by side-effect, so they'll
20139 # only be used when explicitly requested
20140 if test "x$enable_dependency_tracking" = xyes; then
20141 continue
20142 else
20143 break
20144 fi
20145 ;;
20146 none) break ;;
20147 esac
20148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20149 # mode. It turns out that the SunPro C++ compiler does not properly
20150 # handle `-M -o', and we need to detect this.
20151 if depmode=$depmode \
20152 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20154 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20155 >/dev/null 2>conftest.err &&
20156 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20160 # icc doesn't choke on unknown options, it will just issue warnings
20161 # or remarks (even with -Werror). So we grep stderr for any message
20162 # that says an option was ignored or not supported.
20163 # When given -MP, icc 7.0 and 7.1 complain thusly:
20164 # icc: Command line warning: ignoring option '-M'; no argument required
20165 # The diagnosis changed in icc 8.0:
20166 # icc: Command line remark: option '-MP' not supported
20167 if (grep 'ignoring option' conftest.err ||
20168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20169 am_cv_CC_dependencies_compiler_type=$depmode
20170 break
20171 fi
20172 fi
20173 done
20174
20175 cd ..
20176 rm -rf conftest.dir
20177 else
20178 am_cv_CC_dependencies_compiler_type=none
20179 fi
20180
20181 fi
20182 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20185
20186 if
20187 test "x$enable_dependency_tracking" != xno \
20188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20189 am__fastdepCC_TRUE=
20190 am__fastdepCC_FALSE='#'
20191 else
20192 am__fastdepCC_TRUE='#'
20193 am__fastdepCC_FALSE=
20194 fi
20195
20196
20197
20198
20199
20200
20201
20202 # Check whether --with-xorg-module-dir was given.
20203 if test "${with_xorg_module_dir+set}" = set; then
20204 withval=$with_xorg_module_dir; moduledir="$withval"
20205 else
20206 moduledir="$libdir/xorg/modules"
20207 fi
20208
20209
20210 # Check whether --enable-dri was given.
20211 if test "${enable_dri+set}" = set; then
20212 enableval=$enable_dri; DRI="$enableval"
20213 else
20214 DRI=auto
20215 fi
20216
20217
20218 # Checks for extensions
20219
20220 SAVE_CFLAGS="$CFLAGS"
20221 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20222 cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h. */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228
20229 #include "xorg-server.h"
20230 #if !defined RANDR
20231 #error RANDR not defined
20232 #endif
20233
20234 int
20235 main ()
20236 {
20237
20238 ;
20239 return 0;
20240 }
20241 _ACEOF
20242 rm -f conftest.$ac_objext
20243 if { (ac_try="$ac_compile"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_compile") 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest.$ac_objext; then
20259 _EXT_CHECK=yes
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20263
20264 _EXT_CHECK=no
20265 fi
20266
20267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20268 CFLAGS="$SAVE_CFLAGS"
20269 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20270 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20271 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20272 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20273 if test "$_EXT_CHECK" != no; then
20274 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20275 fi
20276
20277
20278 SAVE_CFLAGS="$CFLAGS"
20279 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286
20287 #include "xorg-server.h"
20288 #if !defined RENDER
20289 #error RENDER not defined
20290 #endif
20291
20292 int
20293 main ()
20294 {
20295
20296 ;
20297 return 0;
20298 }
20299 _ACEOF
20300 rm -f conftest.$ac_objext
20301 if { (ac_try="$ac_compile"
20302 case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_compile") 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest.$ac_objext; then
20317 _EXT_CHECK=yes
20318 else
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 _EXT_CHECK=no
20323 fi
20324
20325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20326 CFLAGS="$SAVE_CFLAGS"
20327 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20328 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20329 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20330 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20331 if test "$_EXT_CHECK" != no; then
20332 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20333 fi
20334
20335
20336 SAVE_CFLAGS="$CFLAGS"
20337 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20338 cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h. */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20344
20345 #include "xorg-server.h"
20346 #if !defined XV
20347 #error XV not defined
20348 #endif
20349
20350 int
20351 main ()
20352 {
20353
20354 ;
20355 return 0;
20356 }
20357 _ACEOF
20358 rm -f conftest.$ac_objext
20359 if { (ac_try="$ac_compile"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_compile") 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && {
20372 test -z "$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20374 } && test -s conftest.$ac_objext; then
20375 _EXT_CHECK=yes
20376 else
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20379
20380 _EXT_CHECK=no
20381 fi
20382
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20384 CFLAGS="$SAVE_CFLAGS"
20385 { echo "$as_me:$LINENO: checking if XV is defined" >&5
20386 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20387 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20388 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20389 if test "$_EXT_CHECK" != no; then
20390 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20391 fi
20392
20393
20394 SAVE_CFLAGS="$CFLAGS"
20395 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20396 cat >conftest.$ac_ext <<_ACEOF
20397 /* confdefs.h. */
20398 _ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402
20403 #include "xorg-server.h"
20404 #if !defined DPMSExtension
20405 #error DPMSExtension not defined
20406 #endif
20407
20408 int
20409 main ()
20410 {
20411
20412 ;
20413 return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_compile") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest.$ac_objext; then
20433 _EXT_CHECK=yes
20434 else
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 _EXT_CHECK=no
20439 fi
20440
20441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 CFLAGS="$SAVE_CFLAGS"
20443 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20444 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20445 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20446 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20447 if test "$_EXT_CHECK" != no; then
20448 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20449 fi
20450
20451
20452 # Checks for pkg-config packages
20453
20454
20455 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20456 if test -n "$ac_tool_prefix"; then
20457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20461 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464 case $PKG_CONFIG in
20465 [\\/]* | ?:[\\/]*)
20466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20467 ;;
20468 *)
20469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20470 for as_dir in $PATH
20471 do
20472 IFS=$as_save_IFS
20473 test -z "$as_dir" && as_dir=.
20474 for ac_exec_ext in '' $ac_executable_extensions; do
20475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20476 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20478 break 2
20479 fi
20480 done
20481 done
20482 IFS=$as_save_IFS
20483
20484 ;;
20485 esac
20486 fi
20487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20488 if test -n "$PKG_CONFIG"; then
20489 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20490 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20491 else
20492 { echo "$as_me:$LINENO: result: no" >&5
20493 echo "${ECHO_T}no" >&6; }
20494 fi
20495
20496
20497 fi
20498 if test -z "$ac_cv_path_PKG_CONFIG"; then
20499 ac_pt_PKG_CONFIG=$PKG_CONFIG
20500 # Extract the first word of "pkg-config", so it can be a program name with args.
20501 set dummy pkg-config; ac_word=$2
20502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20504 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507 case $ac_pt_PKG_CONFIG in
20508 [\\/]* | ?:[\\/]*)
20509 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20510 ;;
20511 *)
20512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20513 for as_dir in $PATH
20514 do
20515 IFS=$as_save_IFS
20516 test -z "$as_dir" && as_dir=.
20517 for ac_exec_ext in '' $ac_executable_extensions; do
20518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20519 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20521 break 2
20522 fi
20523 done
20524 done
20525 IFS=$as_save_IFS
20526
20527 ;;
20528 esac
20529 fi
20530 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20531 if test -n "$ac_pt_PKG_CONFIG"; then
20532 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20533 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20534 else
20535 { echo "$as_me:$LINENO: result: no" >&5
20536 echo "${ECHO_T}no" >&6; }
20537 fi
20538
20539 if test "x$ac_pt_PKG_CONFIG" = x; then
20540 PKG_CONFIG=""
20541 else
20542 case $cross_compiling:$ac_tool_warned in
20543 yes:)
20544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20545 whose name does not start with the host triplet. If you think this
20546 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20548 whose name does not start with the host triplet. If you think this
20549 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20550 ac_tool_warned=yes ;;
20551 esac
20552 PKG_CONFIG=$ac_pt_PKG_CONFIG
20553 fi
20554 else
20555 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20556 fi
20557
20558 fi
20559 if test -n "$PKG_CONFIG"; then
20560 _pkg_min_version=0.9.0
20561 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20562 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20563 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20564 { echo "$as_me:$LINENO: result: yes" >&5
20565 echo "${ECHO_T}yes" >&6; }
20566 else
20567 { echo "$as_me:$LINENO: result: no" >&5
20568 echo "${ECHO_T}no" >&6; }
20569 PKG_CONFIG=""
20570 fi
20571
20572 fi
20573
20574 pkg_failed=no
20575 { echo "$as_me:$LINENO: checking for XORG" >&5
20576 echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20577
20578 if test -n "$XORG_CFLAGS"; then
20579 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20580 elif test -n "$PKG_CONFIG"; then
20581 if test -n "$PKG_CONFIG" && \
20582 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20583 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; then
20587 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20588 else
20589 pkg_failed=yes
20590 fi
20591 else
20592 pkg_failed=untried
20593 fi
20594 if test -n "$XORG_LIBS"; then
20595 pkg_cv_XORG_LIBS="$XORG_LIBS"
20596 elif test -n "$PKG_CONFIG"; then
20597 if test -n "$PKG_CONFIG" && \
20598 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20599 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; then
20603 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20604 else
20605 pkg_failed=yes
20606 fi
20607 else
20608 pkg_failed=untried
20609 fi
20610
20611
20612
20613 if test $pkg_failed = yes; then
20614
20615 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20616 _pkg_short_errors_supported=yes
20617 else
20618 _pkg_short_errors_supported=no
20619 fi
20620 if test $_pkg_short_errors_supported = yes; then
20621 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20622 else
20623 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20624 fi
20625 # Put the nasty error message in config.log where it belongs
20626 echo "$XORG_PKG_ERRORS" >&5
20627
20628 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
20629
20630 $XORG_PKG_ERRORS
20631
20632 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20633 installed software in a non-standard prefix.
20634
20635 Alternatively, you may set the environment variables XORG_CFLAGS
20636 and XORG_LIBS to avoid the need to call pkg-config.
20637 See the pkg-config man page for more details.
20638 " >&5
20639 echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
20640
20641 $XORG_PKG_ERRORS
20642
20643 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20644 installed software in a non-standard prefix.
20645
20646 Alternatively, you may set the environment variables XORG_CFLAGS
20647 and XORG_LIBS to avoid the need to call pkg-config.
20648 See the pkg-config man page for more details.
20649 " >&2;}
20650 { (exit 1); exit 1; }; }
20651 elif test $pkg_failed = untried; then
20652 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20653 is in your PATH or set the PKG_CONFIG environment variable to the full
20654 path to pkg-config.
20655
20656 Alternatively, you may set the environment variables XORG_CFLAGS
20657 and XORG_LIBS to avoid the need to call pkg-config.
20658 See the pkg-config man page for more details.
20659
20660 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20661 See \`config.log' for more details." >&5
20662 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20663 is in your PATH or set the PKG_CONFIG environment variable to the full
20664 path to pkg-config.
20665
20666 Alternatively, you may set the environment variables XORG_CFLAGS
20667 and XORG_LIBS to avoid the need to call pkg-config.
20668 See the pkg-config man page for more details.
20669
20670 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20671 See \`config.log' for more details." >&2;}
20672 { (exit 1); exit 1; }; }
20673 else
20674 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20675 XORG_LIBS=$pkg_cv_XORG_LIBS
20676 { echo "$as_me:$LINENO: result: yes" >&5
20677 echo "${ECHO_T}yes" >&6; }
20678 :
20679 fi
20680 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20681
20682 # Checks for libraries.
20683
20684 # Checks for header files.
20685 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20687 if test "${ac_cv_header_stdc+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690 cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h. */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20696 #include <stdlib.h>
20697 #include <stdarg.h>
20698 #include <string.h>
20699 #include <float.h>
20700
20701 int
20702 main ()
20703 {
20704
20705 ;
20706 return 0;
20707 }
20708 _ACEOF
20709 rm -f conftest.$ac_objext
20710 if { (ac_try="$ac_compile"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_compile") 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && {
20723 test -z "$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20725 } && test -s conftest.$ac_objext; then
20726 ac_cv_header_stdc=yes
20727 else
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731 ac_cv_header_stdc=no
20732 fi
20733
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735
20736 if test $ac_cv_header_stdc = yes; then
20737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 #include <string.h>
20745
20746 _ACEOF
20747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20748 $EGREP "memchr" >/dev/null 2>&1; then
20749 :
20750 else
20751 ac_cv_header_stdc=no
20752 fi
20753 rm -f conftest*
20754
20755 fi
20756
20757 if test $ac_cv_header_stdc = yes; then
20758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h. */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 #include <stdlib.h>
20766
20767 _ACEOF
20768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20769 $EGREP "free" >/dev/null 2>&1; then
20770 :
20771 else
20772 ac_cv_header_stdc=no
20773 fi
20774 rm -f conftest*
20775
20776 fi
20777
20778 if test $ac_cv_header_stdc = yes; then
20779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20780 if test "$cross_compiling" = yes; then
20781 :
20782 else
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 #include <ctype.h>
20790 #include <stdlib.h>
20791 #if ((' ' & 0x0FF) == 0x020)
20792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20794 #else
20795 # define ISLOWER(c) \
20796 (('a' <= (c) && (c) <= 'i') \
20797 || ('j' <= (c) && (c) <= 'r') \
20798 || ('s' <= (c) && (c) <= 'z'))
20799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20800 #endif
20801
20802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20803 int
20804 main ()
20805 {
20806 int i;
20807 for (i = 0; i < 256; i++)
20808 if (XOR (islower (i), ISLOWER (i))
20809 || toupper (i) != TOUPPER (i))
20810 return 2;
20811 return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest$ac_exeext
20815 if { (ac_try="$ac_link"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_link") 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20825 { (case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_try") 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 :
20835 else
20836 echo "$as_me: program exited with status $ac_status" >&5
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840 ( exit $ac_status )
20841 ac_cv_header_stdc=no
20842 fi
20843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20844 fi
20845
20846
20847 fi
20848 fi
20849 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20850 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20851 if test $ac_cv_header_stdc = yes; then
20852
20853 cat >>confdefs.h <<\_ACEOF
20854 #define STDC_HEADERS 1
20855 _ACEOF
20856
20857 fi
20858
20859
20860 if test "$DRI" != no; then
20861 as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
20862 { echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
20863 echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6; }
20864 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867 test "$cross_compiling" = yes &&
20868 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20869 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20870 { (exit 1); exit 1; }; }
20871 if test -r "${sdkdir}/dri.h"; then
20872 eval "$as_ac_File=yes"
20873 else
20874 eval "$as_ac_File=no"
20875 fi
20876 fi
20877 ac_res=`eval echo '${'$as_ac_File'}'`
20878 { echo "$as_me:$LINENO: result: $ac_res" >&5
20879 echo "${ECHO_T}$ac_res" >&6; }
20880 if test `eval echo '${'$as_ac_File'}'` = yes; then
20881 have_dri_h="yes"
20882 else
20883 have_dri_h="no"
20884 fi
20885
20886 as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
20887 { echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
20888 echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6; }
20889 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892 test "$cross_compiling" = yes &&
20893 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20894 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20895 { (exit 1); exit 1; }; }
20896 if test -r "${sdkdir}/sarea.h"; then
20897 eval "$as_ac_File=yes"
20898 else
20899 eval "$as_ac_File=no"
20900 fi
20901 fi
20902 ac_res=`eval echo '${'$as_ac_File'}'`
20903 { echo "$as_me:$LINENO: result: $ac_res" >&5
20904 echo "${ECHO_T}$ac_res" >&6; }
20905 if test `eval echo '${'$as_ac_File'}'` = yes; then
20906 have_sarea_h="yes"
20907 else
20908 have_sarea_h="no"
20909 fi
20910
20911 as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
20912 { echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
20913 echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6; }
20914 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 else
20917 test "$cross_compiling" = yes &&
20918 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20919 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20920 { (exit 1); exit 1; }; }
20921 if test -r "${sdkdir}/dristruct.h"; then
20922 eval "$as_ac_File=yes"
20923 else
20924 eval "$as_ac_File=no"
20925 fi
20926 fi
20927 ac_res=`eval echo '${'$as_ac_File'}'`
20928 { echo "$as_me:$LINENO: result: $ac_res" >&5
20929 echo "${ECHO_T}$ac_res" >&6; }
20930 if test `eval echo '${'$as_ac_File'}'` = yes; then
20931 have_dristruct_h="yes"
20932 else
20933 have_dristruct_h="no"
20934 fi
20935
20936 fi
20937
20938 { echo "$as_me:$LINENO: checking whether to include DRI support" >&5
20939 echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; }
20940 if test x$DRI = xauto; then
20941 if test "$have_dri_h" = yes -a \
20942 "$have_sarea_h" = yes -a \
20943 "$have_dristruct_h" = yes; then
20944 DRI="yes"
20945 else
20946 DRI="no"
20947 fi
20948 fi
20949 { echo "$as_me:$LINENO: result: $DRI" >&5
20950 echo "${ECHO_T}$DRI" >&6; }
20951
20952 if test x$DRI = xyes; then
20953 DRI_TRUE=
20954 DRI_FALSE='#'
20955 else
20956 DRI_TRUE='#'
20957 DRI_FALSE=
20958 fi
20959
20960 if test "$DRI" = yes; then
20961
20962 pkg_failed=no
20963 { echo "$as_me:$LINENO: checking for DRI" >&5
20964 echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
20965
20966 if test -n "$DRI_CFLAGS"; then
20967 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
20968 elif test -n "$PKG_CONFIG"; then
20969 if test -n "$PKG_CONFIG" && \
20970 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
20971 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; then
20975 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
20976 else
20977 pkg_failed=yes
20978 fi
20979 else
20980 pkg_failed=untried
20981 fi
20982 if test -n "$DRI_LIBS"; then
20983 pkg_cv_DRI_LIBS="$DRI_LIBS"
20984 elif test -n "$PKG_CONFIG"; then
20985 if test -n "$PKG_CONFIG" && \
20986 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
20987 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; then
20991 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
20992 else
20993 pkg_failed=yes
20994 fi
20995 else
20996 pkg_failed=untried
20997 fi
20998
20999
21000
21001 if test $pkg_failed = yes; then
21002
21003 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21004 _pkg_short_errors_supported=yes
21005 else
21006 _pkg_short_errors_supported=no
21007 fi
21008 if test $_pkg_short_errors_supported = yes; then
21009 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21010 else
21011 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21012 fi
21013 # Put the nasty error message in config.log where it belongs
21014 echo "$DRI_PKG_ERRORS" >&5
21015
21016 { { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21017
21018 $DRI_PKG_ERRORS
21019
21020 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21021 installed software in a non-standard prefix.
21022
21023 Alternatively, you may set the environment variables DRI_CFLAGS
21024 and DRI_LIBS to avoid the need to call pkg-config.
21025 See the pkg-config man page for more details.
21026 " >&5
21027 echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21028
21029 $DRI_PKG_ERRORS
21030
21031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21032 installed software in a non-standard prefix.
21033
21034 Alternatively, you may set the environment variables DRI_CFLAGS
21035 and DRI_LIBS to avoid the need to call pkg-config.
21036 See the pkg-config man page for more details.
21037 " >&2;}
21038 { (exit 1); exit 1; }; }
21039 elif test $pkg_failed = untried; then
21040 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21041 is in your PATH or set the PKG_CONFIG environment variable to the full
21042 path to pkg-config.
21043
21044 Alternatively, you may set the environment variables DRI_CFLAGS
21045 and DRI_LIBS to avoid the need to call pkg-config.
21046 See the pkg-config man page for more details.
21047
21048 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21049 See \`config.log' for more details." >&5
21050 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21051 is in your PATH or set the PKG_CONFIG environment variable to the full
21052 path to pkg-config.
21053
21054 Alternatively, you may set the environment variables DRI_CFLAGS
21055 and DRI_LIBS to avoid the need to call pkg-config.
21056 See the pkg-config man page for more details.
21057
21058 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21059 See \`config.log' for more details." >&2;}
21060 { (exit 1); exit 1; }; }
21061 else
21062 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21063 DRI_LIBS=$pkg_cv_DRI_LIBS
21064 { echo "$as_me:$LINENO: result: yes" >&5
21065 echo "${ECHO_T}yes" >&6; }
21066 :
21067 fi
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define XF86DRI 1
21071 _ACEOF
21072
21073
21074 cat >>confdefs.h <<\_ACEOF
21075 #define XF86DRI_DEVEL 1
21076 _ACEOF
21077
21078 fi
21079
21080 save_CFLAGS="$CFLAGS"
21081 CFLAGS="$XORG_CFLAGS"
21082 { echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21083 echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; }
21084 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21086 else
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 #include "xorg-server.h"
21094
21095 int
21096 main ()
21097 {
21098 #ifndef XSERVER_LIBPCIACCESS
21099 (void) XSERVER_LIBPCIACCESS;
21100 #endif
21101
21102 ;
21103 return 0;
21104 }
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 fi
21133 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21134 echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21135 if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then
21136 XSERVER_LIBPCIACCESS=yes
21137 else
21138 XSERVER_LIBPCIACCESS=no
21139 fi
21140
21141 CFLAGS="$save_CFLAGS"
21142
21143 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21144
21145 pkg_failed=no
21146 { echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21147 echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
21148
21149 if test -n "$PCIACCESS_CFLAGS"; then
21150 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21151 elif test -n "$PKG_CONFIG"; then
21152 if test -n "$PKG_CONFIG" && \
21153 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
21154 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; then
21158 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
21159 else
21160 pkg_failed=yes
21161 fi
21162 else
21163 pkg_failed=untried
21164 fi
21165 if test -n "$PCIACCESS_LIBS"; then
21166 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21167 elif test -n "$PKG_CONFIG"; then
21168 if test -n "$PKG_CONFIG" && \
21169 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
21170 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; then
21174 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
21175 else
21176 pkg_failed=yes
21177 fi
21178 else
21179 pkg_failed=untried
21180 fi
21181
21182
21183
21184 if test $pkg_failed = yes; then
21185
21186 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21187 _pkg_short_errors_supported=yes
21188 else
21189 _pkg_short_errors_supported=no
21190 fi
21191 if test $_pkg_short_errors_supported = yes; then
21192 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
21193 else
21194 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
21195 fi
21196 # Put the nasty error message in config.log where it belongs
21197 echo "$PCIACCESS_PKG_ERRORS" >&5
21198
21199 { { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met:
21200
21201 $PCIACCESS_PKG_ERRORS
21202
21203 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21204 installed software in a non-standard prefix.
21205
21206 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21207 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21208 See the pkg-config man page for more details.
21209 " >&5
21210 echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met:
21211
21212 $PCIACCESS_PKG_ERRORS
21213
21214 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21215 installed software in a non-standard prefix.
21216
21217 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21218 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21219 See the pkg-config man page for more details.
21220 " >&2;}
21221 { (exit 1); exit 1; }; }
21222 elif test $pkg_failed = untried; then
21223 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21224 is in your PATH or set the PKG_CONFIG environment variable to the full
21225 path to pkg-config.
21226
21227 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21228 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21229 See the pkg-config man page for more details.
21230
21231 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21232 See \`config.log' for more details." >&5
21233 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21234 is in your PATH or set the PKG_CONFIG environment variable to the full
21235 path to pkg-config.
21236
21237 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21238 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21239 See the pkg-config man page for more details.
21240
21241 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21242 See \`config.log' for more details." >&2;}
21243 { (exit 1); exit 1; }; }
21244 else
21245 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21246 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21247 { echo "$as_me:$LINENO: result: yes" >&5
21248 echo "${ECHO_T}yes" >&6; }
21249 :
21250 fi
21251 fi
21252 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21253 XSERVER_LIBPCIACCESS_TRUE=
21254 XSERVER_LIBPCIACCESS_FALSE='#'
21255 else
21256 XSERVER_LIBPCIACCESS_TRUE='#'
21257 XSERVER_LIBPCIACCESS_FALSE=
21258 fi
21259
21260
21261
21262
21263
21264
21265 DRIVER_NAME=savage
21266
21267
21268
21269
21270
21271 if test x$APP_MAN_SUFFIX = x ; then
21272 APP_MAN_SUFFIX=1
21273 fi
21274 if test x$APP_MAN_DIR = x ; then
21275 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21276 fi
21277
21278 if test x$LIB_MAN_SUFFIX = x ; then
21279 LIB_MAN_SUFFIX=3
21280 fi
21281 if test x$LIB_MAN_DIR = x ; then
21282 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21283 fi
21284
21285 if test x$FILE_MAN_SUFFIX = x ; then
21286 case $host_os in
21287 solaris*) FILE_MAN_SUFFIX=4 ;;
21288 *) FILE_MAN_SUFFIX=5 ;;
21289 esac
21290 fi
21291 if test x$FILE_MAN_DIR = x ; then
21292 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21293 fi
21294
21295 if test x$MISC_MAN_SUFFIX = x ; then
21296 case $host_os in
21297 solaris*) MISC_MAN_SUFFIX=5 ;;
21298 *) MISC_MAN_SUFFIX=7 ;;
21299 esac
21300 fi
21301 if test x$MISC_MAN_DIR = x ; then
21302 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21303 fi
21304
21305 if test x$DRIVER_MAN_SUFFIX = x ; then
21306 case $host_os in
21307 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21308 *) DRIVER_MAN_SUFFIX=4 ;;
21309 esac
21310 fi
21311 if test x$DRIVER_MAN_DIR = x ; then
21312 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21313 fi
21314
21315 if test x$ADMIN_MAN_SUFFIX = x ; then
21316 case $host_os in
21317 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21318 *) ADMIN_MAN_SUFFIX=8 ;;
21319 esac
21320 fi
21321 if test x$ADMIN_MAN_DIR = x ; then
21322 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21323 fi
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341 # Check whether --with-release-version was given.
21342 if test "${with_release_version+set}" = set; then
21343 withval=$with_release_version; RELEASE_VERSION="$withval"
21344 else
21345 RELEASE_VERSION=""
21346 fi
21347
21348 if test "x$RELEASE_VERSION" != "x"; then
21349 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21350 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21351 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21352 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21353 fi
21354
21355 cat >>confdefs.h <<_ACEOF
21356 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21357 _ACEOF
21358
21359 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21360 if test "x$PVM" = "x"; then
21361 PVM="0"
21362 fi
21363
21364 cat >>confdefs.h <<_ACEOF
21365 #define PACKAGE_VERSION_MINOR $PVM
21366 _ACEOF
21367
21368 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21369 if test "x$PVP" = "x"; then
21370 PVP="0"
21371 fi
21372
21373 cat >>confdefs.h <<_ACEOF
21374 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21375 _ACEOF
21376
21377
21378
21379 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21380
21381 cat >confcache <<\_ACEOF
21382 # This file is a shell script that caches the results of configure
21383 # tests run on this system so they can be shared between configure
21384 # scripts and configure runs, see configure's option --config-cache.
21385 # It is not useful on other systems. If it contains results you don't
21386 # want to keep, you may remove or edit it.
21387 #
21388 # config.status only pays attention to the cache file if you give it
21389 # the --recheck option to rerun configure.
21390 #
21391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21393 # following values.
21394
21395 _ACEOF
21396
21397 # The following way of writing the cache mishandles newlines in values,
21398 # but we know of no workaround that is simple, portable, and efficient.
21399 # So, we kill variables containing newlines.
21400 # Ultrix sh set writes to stderr and can't be redirected directly,
21401 # and sets the high bit in the cache file unless we assign to the vars.
21402 (
21403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21404 eval ac_val=\$$ac_var
21405 case $ac_val in #(
21406 *${as_nl}*)
21407 case $ac_var in #(
21408 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21409 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21410 esac
21411 case $ac_var in #(
21412 _ | IFS | as_nl) ;; #(
21413 *) $as_unset $ac_var ;;
21414 esac ;;
21415 esac
21416 done
21417
21418 (set) 2>&1 |
21419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21420 *${as_nl}ac_space=\ *)
21421 # `set' does not quote correctly, so add quotes (double-quote
21422 # substitution turns \\\\ into \\, and sed turns \\ into \).
21423 sed -n \
21424 "s/'/'\\\\''/g;
21425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21426 ;; #(
21427 *)
21428 # `set' quotes correctly as required by POSIX, so do not add quotes.
21429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21430 ;;
21431 esac |
21432 sort
21433 ) |
21434 sed '
21435 /^ac_cv_env_/b end
21436 t clear
21437 :clear
21438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21439 t end
21440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21441 :end' >>confcache
21442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21443 if test -w "$cache_file"; then
21444 test "x$cache_file" != "x/dev/null" &&
21445 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21446 echo "$as_me: updating cache $cache_file" >&6;}
21447 cat confcache >$cache_file
21448 else
21449 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21450 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21451 fi
21452 fi
21453 rm -f confcache
21454
21455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21456 # Let make expand exec_prefix.
21457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21458
21459 DEFS=-DHAVE_CONFIG_H
21460
21461 ac_libobjs=
21462 ac_ltlibobjs=
21463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21464 # 1. Remove the extension, and $U if already installed.
21465 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21466 ac_i=`echo "$ac_i" | sed "$ac_script"`
21467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21468 # will be set to the directory where LIBOBJS objects are built.
21469 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21470 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21471 done
21472 LIBOBJS=$ac_libobjs
21473
21474 LTLIBOBJS=$ac_ltlibobjs
21475
21476
21477 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21478 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21479 Usually this means the macro was only invoked conditionally." >&5
21480 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21481 Usually this means the macro was only invoked conditionally." >&2;}
21482 { (exit 1); exit 1; }; }
21483 fi
21484 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21485 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21486 Usually this means the macro was only invoked conditionally." >&5
21487 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21488 Usually this means the macro was only invoked conditionally." >&2;}
21489 { (exit 1); exit 1; }; }
21490 fi
21491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21492 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21493 Usually this means the macro was only invoked conditionally." >&5
21494 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21495 Usually this means the macro was only invoked conditionally." >&2;}
21496 { (exit 1); exit 1; }; }
21497 fi
21498 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21499 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21500 Usually this means the macro was only invoked conditionally." >&5
21501 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&2;}
21503 { (exit 1); exit 1; }; }
21504 fi
21505 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21506 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21507 Usually this means the macro was only invoked conditionally." >&5
21508 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21509 Usually this means the macro was only invoked conditionally." >&2;}
21510 { (exit 1); exit 1; }; }
21511 fi
21512 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
21513 { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
21514 Usually this means the macro was only invoked conditionally." >&5
21515 echo "$as_me: error: conditional \"DRI\" was never defined.
21516 Usually this means the macro was only invoked conditionally." >&2;}
21517 { (exit 1); exit 1; }; }
21518 fi
21519 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21520 { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21521 Usually this means the macro was only invoked conditionally." >&5
21522 echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21523 Usually this means the macro was only invoked conditionally." >&2;}
21524 { (exit 1); exit 1; }; }
21525 fi
21526
21527 : ${CONFIG_STATUS=./config.status}
21528 ac_clean_files_save=$ac_clean_files
21529 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21530 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21531 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21532 cat >$CONFIG_STATUS <<_ACEOF
21533 #! $SHELL
21534 # Generated by $as_me.
21535 # Run this file to recreate the current configuration.
21536 # Compiler output produced by configure, useful for debugging
21537 # configure, is in config.log if it exists.
21538
21539 debug=false
21540 ac_cs_recheck=false
21541 ac_cs_silent=false
21542 SHELL=\${CONFIG_SHELL-$SHELL}
21543 _ACEOF
21544
21545 cat >>$CONFIG_STATUS <<\_ACEOF
21546 ## --------------------- ##
21547 ## M4sh Initialization. ##
21548 ## --------------------- ##
21549
21550 # Be more Bourne compatible
21551 DUALCASE=1; export DUALCASE # for MKS sh
21552 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21553 emulate sh
21554 NULLCMD=:
21555 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21556 # is contrary to our usage. Disable this feature.
21557 alias -g '${1+"$@"}'='"$@"'
21558 setopt NO_GLOB_SUBST
21559 else
21560 case `(set -o) 2>/dev/null` in
21561 *posix*) set -o posix ;;
21562 esac
21563
21564 fi
21565
21566
21567
21568
21569 # PATH needs CR
21570 # Avoid depending upon Character Ranges.
21571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21574 as_cr_digits='0123456789'
21575 as_cr_alnum=$as_cr_Letters$as_cr_digits
21576
21577 # The user is always right.
21578 if test "${PATH_SEPARATOR+set}" != set; then
21579 echo "#! /bin/sh" >conf$$.sh
21580 echo "exit 0" >>conf$$.sh
21581 chmod +x conf$$.sh
21582 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21583 PATH_SEPARATOR=';'
21584 else
21585 PATH_SEPARATOR=:
21586 fi
21587 rm -f conf$$.sh
21588 fi
21589
21590 # Support unset when possible.
21591 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21592 as_unset=unset
21593 else
21594 as_unset=false
21595 fi
21596
21597
21598 # IFS
21599 # We need space, tab and new line, in precisely that order. Quoting is
21600 # there to prevent editors from complaining about space-tab.
21601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21602 # splitting by setting IFS to empty value.)
21603 as_nl='
21604 '
21605 IFS=" "" $as_nl"
21606
21607 # Find who we are. Look in the path if we contain no directory separator.
21608 case $0 in
21609 *[\\/]* ) as_myself=$0 ;;
21610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21611 for as_dir in $PATH
21612 do
21613 IFS=$as_save_IFS
21614 test -z "$as_dir" && as_dir=.
21615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21616 done
21617 IFS=$as_save_IFS
21618
21619 ;;
21620 esac
21621 # We did not find ourselves, most probably we were run as `sh COMMAND'
21622 # in which case we are not to be found in the path.
21623 if test "x$as_myself" = x; then
21624 as_myself=$0
21625 fi
21626 if test ! -f "$as_myself"; then
21627 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21628 { (exit 1); exit 1; }
21629 fi
21630
21631 # Work around bugs in pre-3.0 UWIN ksh.
21632 for as_var in ENV MAIL MAILPATH
21633 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21634 done
21635 PS1='$ '
21636 PS2='> '
21637 PS4='+ '
21638
21639 # NLS nuisances.
21640 for as_var in \
21641 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21642 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21643 LC_TELEPHONE LC_TIME
21644 do
21645 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21646 eval $as_var=C; export $as_var
21647 else
21648 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21649 fi
21650 done
21651
21652 # Required to use basename.
21653 if expr a : '\(a\)' >/dev/null 2>&1 &&
21654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21655 as_expr=expr
21656 else
21657 as_expr=false
21658 fi
21659
21660 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21661 as_basename=basename
21662 else
21663 as_basename=false
21664 fi
21665
21666
21667 # Name of the executable.
21668 as_me=`$as_basename -- "$0" ||
21669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21670 X"$0" : 'X\(//\)$' \| \
21671 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21672 echo X/"$0" |
21673 sed '/^.*\/\([^/][^/]*\)\/*$/{
21674 s//\1/
21675 q
21676 }
21677 /^X\/\(\/\/\)$/{
21678 s//\1/
21679 q
21680 }
21681 /^X\/\(\/\).*/{
21682 s//\1/
21683 q
21684 }
21685 s/.*/./; q'`
21686
21687 # CDPATH.
21688 $as_unset CDPATH
21689
21690
21691
21692 as_lineno_1=$LINENO
21693 as_lineno_2=$LINENO
21694 test "x$as_lineno_1" != "x$as_lineno_2" &&
21695 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21696
21697 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21698 # uniformly replaced by the line number. The first 'sed' inserts a
21699 # line-number line after each line using $LINENO; the second 'sed'
21700 # does the real work. The second script uses 'N' to pair each
21701 # line-number line with the line containing $LINENO, and appends
21702 # trailing '-' during substitution so that $LINENO is not a special
21703 # case at line end.
21704 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21705 # scripts with optimization help from Paolo Bonzini. Blame Lee
21706 # E. McMahon (1931-1989) for sed's syntax. :-)
21707 sed -n '
21708 p
21709 /[$]LINENO/=
21710 ' <$as_myself |
21711 sed '
21712 s/[$]LINENO.*/&-/
21713 t lineno
21714 b
21715 :lineno
21716 N
21717 :loop
21718 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21719 t loop
21720 s/-\n.*//
21721 ' >$as_me.lineno &&
21722 chmod +x "$as_me.lineno" ||
21723 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21724 { (exit 1); exit 1; }; }
21725
21726 # Don't try to exec as it changes $[0], causing all sort of problems
21727 # (the dirname of $[0] is not the place where we might find the
21728 # original and so on. Autoconf is especially sensitive to this).
21729 . "./$as_me.lineno"
21730 # Exit status is that of the last command.
21731 exit
21732 }
21733
21734
21735 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21736 as_dirname=dirname
21737 else
21738 as_dirname=false
21739 fi
21740
21741 ECHO_C= ECHO_N= ECHO_T=
21742 case `echo -n x` in
21743 -n*)
21744 case `echo 'x\c'` in
21745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21746 *) ECHO_C='\c';;
21747 esac;;
21748 *)
21749 ECHO_N='-n';;
21750 esac
21751
21752 if expr a : '\(a\)' >/dev/null 2>&1 &&
21753 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21754 as_expr=expr
21755 else
21756 as_expr=false
21757 fi
21758
21759 rm -f conf$$ conf$$.exe conf$$.file
21760 if test -d conf$$.dir; then
21761 rm -f conf$$.dir/conf$$.file
21762 else
21763 rm -f conf$$.dir
21764 mkdir conf$$.dir
21765 fi
21766 echo >conf$$.file
21767 if ln -s conf$$.file conf$$ 2>/dev/null; then
21768 as_ln_s='ln -s'
21769 # ... but there are two gotchas:
21770 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21771 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21772 # In both cases, we have to default to `cp -p'.
21773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21774 as_ln_s='cp -p'
21775 elif ln conf$$.file conf$$ 2>/dev/null; then
21776 as_ln_s=ln
21777 else
21778 as_ln_s='cp -p'
21779 fi
21780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21781 rmdir conf$$.dir 2>/dev/null
21782
21783 if mkdir -p . 2>/dev/null; then
21784 as_mkdir_p=:
21785 else
21786 test -d ./-p && rmdir ./-p
21787 as_mkdir_p=false
21788 fi
21789
21790 if test -x / >/dev/null 2>&1; then
21791 as_test_x='test -x'
21792 else
21793 if ls -dL / >/dev/null 2>&1; then
21794 as_ls_L_option=L
21795 else
21796 as_ls_L_option=
21797 fi
21798 as_test_x='
21799 eval sh -c '\''
21800 if test -d "$1"; then
21801 test -d "$1/.";
21802 else
21803 case $1 in
21804 -*)set "./$1";;
21805 esac;
21806 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21807 ???[sx]*):;;*)false;;esac;fi
21808 '\'' sh
21809 '
21810 fi
21811 as_executable_p=$as_test_x
21812
21813 # Sed expression to map a string onto a valid CPP name.
21814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21815
21816 # Sed expression to map a string onto a valid variable name.
21817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21818
21819
21820 exec 6>&1
21821
21822 # Save the log message, to keep $[0] and so on meaningful, and to
21823 # report actual input values of CONFIG_FILES etc. instead of their
21824 # values after options handling.
21825 ac_log="
21826 This file was extended by xf86-video-savage $as_me 2.2.1, which was
21827 generated by GNU Autoconf 2.61. Invocation command line was
21828
21829 CONFIG_FILES = $CONFIG_FILES
21830 CONFIG_HEADERS = $CONFIG_HEADERS
21831 CONFIG_LINKS = $CONFIG_LINKS
21832 CONFIG_COMMANDS = $CONFIG_COMMANDS
21833 $ $0 $@
21834
21835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21836 "
21837
21838 _ACEOF
21839
21840 cat >>$CONFIG_STATUS <<_ACEOF
21841 # Files that config.status was made for.
21842 config_files="$ac_config_files"
21843 config_headers="$ac_config_headers"
21844 config_commands="$ac_config_commands"
21845
21846 _ACEOF
21847
21848 cat >>$CONFIG_STATUS <<\_ACEOF
21849 ac_cs_usage="\
21850 \`$as_me' instantiates files from templates according to the
21851 current configuration.
21852
21853 Usage: $0 [OPTIONS] [FILE]...
21854
21855 -h, --help print this help, then exit
21856 -V, --version print version number and configuration settings, then exit
21857 -q, --quiet do not print progress messages
21858 -d, --debug don't remove temporary files
21859 --recheck update $as_me by reconfiguring in the same conditions
21860 --file=FILE[:TEMPLATE]
21861 instantiate the configuration file FILE
21862 --header=FILE[:TEMPLATE]
21863 instantiate the configuration header FILE
21864
21865 Configuration files:
21866 $config_files
21867
21868 Configuration headers:
21869 $config_headers
21870
21871 Configuration commands:
21872 $config_commands
21873
21874 Report bugs to <bug-autoconf (at] gnu.org>."
21875
21876 _ACEOF
21877 cat >>$CONFIG_STATUS <<_ACEOF
21878 ac_cs_version="\\
21879 xf86-video-savage config.status 2.2.1
21880 configured by $0, generated by GNU Autoconf 2.61,
21881 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21882
21883 Copyright (C) 2006 Free Software Foundation, Inc.
21884 This config.status script is free software; the Free Software Foundation
21885 gives unlimited permission to copy, distribute and modify it."
21886
21887 ac_pwd='$ac_pwd'
21888 srcdir='$srcdir'
21889 INSTALL='$INSTALL'
21890 MKDIR_P='$MKDIR_P'
21891 _ACEOF
21892
21893 cat >>$CONFIG_STATUS <<\_ACEOF
21894 # If no file are specified by the user, then we need to provide default
21895 # value. By we need to know if files were specified by the user.
21896 ac_need_defaults=:
21897 while test $# != 0
21898 do
21899 case $1 in
21900 --*=*)
21901 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21902 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21903 ac_shift=:
21904 ;;
21905 *)
21906 ac_option=$1
21907 ac_optarg=$2
21908 ac_shift=shift
21909 ;;
21910 esac
21911
21912 case $ac_option in
21913 # Handling of the options.
21914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21915 ac_cs_recheck=: ;;
21916 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21917 echo "$ac_cs_version"; exit ;;
21918 --debug | --debu | --deb | --de | --d | -d )
21919 debug=: ;;
21920 --file | --fil | --fi | --f )
21921 $ac_shift
21922 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21923 ac_need_defaults=false;;
21924 --header | --heade | --head | --hea )
21925 $ac_shift
21926 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21927 ac_need_defaults=false;;
21928 --he | --h)
21929 # Conflict between --help and --header
21930 { echo "$as_me: error: ambiguous option: $1
21931 Try \`$0 --help' for more information." >&2
21932 { (exit 1); exit 1; }; };;
21933 --help | --hel | -h )
21934 echo "$ac_cs_usage"; exit ;;
21935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21937 ac_cs_silent=: ;;
21938
21939 # This is an error.
21940 -*) { echo "$as_me: error: unrecognized option: $1
21941 Try \`$0 --help' for more information." >&2
21942 { (exit 1); exit 1; }; } ;;
21943
21944 *) ac_config_targets="$ac_config_targets $1"
21945 ac_need_defaults=false ;;
21946
21947 esac
21948 shift
21949 done
21950
21951 ac_configure_extra_args=
21952
21953 if $ac_cs_silent; then
21954 exec 6>/dev/null
21955 ac_configure_extra_args="$ac_configure_extra_args --silent"
21956 fi
21957
21958 _ACEOF
21959 cat >>$CONFIG_STATUS <<_ACEOF
21960 if \$ac_cs_recheck; then
21961 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21962 CONFIG_SHELL=$SHELL
21963 export CONFIG_SHELL
21964 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21965 fi
21966
21967 _ACEOF
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21969 exec 5>>config.log
21970 {
21971 echo
21972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21973 ## Running $as_me. ##
21974 _ASBOX
21975 echo "$ac_log"
21976 } >&5
21977
21978 _ACEOF
21979 cat >>$CONFIG_STATUS <<_ACEOF
21980 #
21981 # INIT-COMMANDS
21982 #
21983 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21984
21985 _ACEOF
21986
21987 cat >>$CONFIG_STATUS <<\_ACEOF
21988
21989 # Handling of arguments.
21990 for ac_config_target in $ac_config_targets
21991 do
21992 case $ac_config_target in
21993 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21994 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21995 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21996 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21997 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21998
21999 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22000 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22001 { (exit 1); exit 1; }; };;
22002 esac
22003 done
22004
22005
22006 # If the user did not use the arguments to specify the items to instantiate,
22007 # then the envvar interface is used. Set only those that are not.
22008 # We use the long form for the default assignment because of an extremely
22009 # bizarre bug on SunOS 4.1.3.
22010 if $ac_need_defaults; then
22011 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22012 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22013 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22014 fi
22015
22016 # Have a temporary directory for convenience. Make it in the build tree
22017 # simply because there is no reason against having it here, and in addition,
22018 # creating and moving files from /tmp can sometimes cause problems.
22019 # Hook for its removal unless debugging.
22020 # Note that there is a small window in which the directory will not be cleaned:
22021 # after its creation but before its name has been assigned to `$tmp'.
22022 $debug ||
22023 {
22024 tmp=
22025 trap 'exit_status=$?
22026 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22027 ' 0
22028 trap '{ (exit 1); exit 1; }' 1 2 13 15
22029 }
22030 # Create a (secure) tmp directory for tmp files.
22031
22032 {
22033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22034 test -n "$tmp" && test -d "$tmp"
22035 } ||
22036 {
22037 tmp=./conf$$-$RANDOM
22038 (umask 077 && mkdir "$tmp")
22039 } ||
22040 {
22041 echo "$me: cannot create a temporary directory in ." >&2
22042 { (exit 1); exit 1; }
22043 }
22044
22045 #
22046 # Set up the sed scripts for CONFIG_FILES section.
22047 #
22048
22049 # No need to generate the scripts if there are no CONFIG_FILES.
22050 # This happens for instance when ./config.status config.h
22051 if test -n "$CONFIG_FILES"; then
22052
22053 _ACEOF
22054
22055
22056
22057 ac_delim='%!_!# '
22058 for ac_last_try in false false false false false :; do
22059 cat >conf$$subs.sed <<_ACEOF
22060 SHELL!$SHELL$ac_delim
22061 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22062 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22063 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22064 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22065 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22066 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22067 exec_prefix!$exec_prefix$ac_delim
22068 prefix!$prefix$ac_delim
22069 program_transform_name!$program_transform_name$ac_delim
22070 bindir!$bindir$ac_delim
22071 sbindir!$sbindir$ac_delim
22072 libexecdir!$libexecdir$ac_delim
22073 datarootdir!$datarootdir$ac_delim
22074 datadir!$datadir$ac_delim
22075 sysconfdir!$sysconfdir$ac_delim
22076 sharedstatedir!$sharedstatedir$ac_delim
22077 localstatedir!$localstatedir$ac_delim
22078 includedir!$includedir$ac_delim
22079 oldincludedir!$oldincludedir$ac_delim
22080 docdir!$docdir$ac_delim
22081 infodir!$infodir$ac_delim
22082 htmldir!$htmldir$ac_delim
22083 dvidir!$dvidir$ac_delim
22084 pdfdir!$pdfdir$ac_delim
22085 psdir!$psdir$ac_delim
22086 libdir!$libdir$ac_delim
22087 localedir!$localedir$ac_delim
22088 mandir!$mandir$ac_delim
22089 DEFS!$DEFS$ac_delim
22090 ECHO_C!$ECHO_C$ac_delim
22091 ECHO_N!$ECHO_N$ac_delim
22092 ECHO_T!$ECHO_T$ac_delim
22093 LIBS!$LIBS$ac_delim
22094 build_alias!$build_alias$ac_delim
22095 host_alias!$host_alias$ac_delim
22096 target_alias!$target_alias$ac_delim
22097 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22098 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22099 INSTALL_DATA!$INSTALL_DATA$ac_delim
22100 am__isrc!$am__isrc$ac_delim
22101 CYGPATH_W!$CYGPATH_W$ac_delim
22102 PACKAGE!$PACKAGE$ac_delim
22103 VERSION!$VERSION$ac_delim
22104 ACLOCAL!$ACLOCAL$ac_delim
22105 AUTOCONF!$AUTOCONF$ac_delim
22106 AUTOMAKE!$AUTOMAKE$ac_delim
22107 AUTOHEADER!$AUTOHEADER$ac_delim
22108 MAKEINFO!$MAKEINFO$ac_delim
22109 install_sh!$install_sh$ac_delim
22110 STRIP!$STRIP$ac_delim
22111 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22112 mkdir_p!$mkdir_p$ac_delim
22113 AWK!$AWK$ac_delim
22114 SET_MAKE!$SET_MAKE$ac_delim
22115 am__leading_dot!$am__leading_dot$ac_delim
22116 AMTAR!$AMTAR$ac_delim
22117 am__tar!$am__tar$ac_delim
22118 am__untar!$am__untar$ac_delim
22119 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22120 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22121 MAINT!$MAINT$ac_delim
22122 build!$build$ac_delim
22123 build_cpu!$build_cpu$ac_delim
22124 build_vendor!$build_vendor$ac_delim
22125 build_os!$build_os$ac_delim
22126 host!$host$ac_delim
22127 host_cpu!$host_cpu$ac_delim
22128 host_vendor!$host_vendor$ac_delim
22129 host_os!$host_os$ac_delim
22130 CC!$CC$ac_delim
22131 CFLAGS!$CFLAGS$ac_delim
22132 LDFLAGS!$LDFLAGS$ac_delim
22133 CPPFLAGS!$CPPFLAGS$ac_delim
22134 ac_ct_CC!$ac_ct_CC$ac_delim
22135 EXEEXT!$EXEEXT$ac_delim
22136 OBJEXT!$OBJEXT$ac_delim
22137 DEPDIR!$DEPDIR$ac_delim
22138 am__include!$am__include$ac_delim
22139 am__quote!$am__quote$ac_delim
22140 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22141 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22142 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22143 CCDEPMODE!$CCDEPMODE$ac_delim
22144 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22145 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22146 SED!$SED$ac_delim
22147 GREP!$GREP$ac_delim
22148 EGREP!$EGREP$ac_delim
22149 LN_S!$LN_S$ac_delim
22150 ECHO!$ECHO$ac_delim
22151 AR!$AR$ac_delim
22152 RANLIB!$RANLIB$ac_delim
22153 CPP!$CPP$ac_delim
22154 CXX!$CXX$ac_delim
22155 CXXFLAGS!$CXXFLAGS$ac_delim
22156 ac_ct_CXX!$ac_ct_CXX$ac_delim
22157 _ACEOF
22158
22159 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22160 break
22161 elif $ac_last_try; then
22162 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22163 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22164 { (exit 1); exit 1; }; }
22165 else
22166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22167 fi
22168 done
22169
22170 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22171 if test -n "$ac_eof"; then
22172 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22173 ac_eof=`expr $ac_eof + 1`
22174 fi
22175
22176 cat >>$CONFIG_STATUS <<_ACEOF
22177 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22179 _ACEOF
22180 sed '
22181 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22182 s/^/s,@/; s/!/@,|#_!!_#|/
22183 :n
22184 t n
22185 s/'"$ac_delim"'$/,g/; t
22186 s/$/\\/; p
22187 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22188 ' >>$CONFIG_STATUS <conf$$subs.sed
22189 rm -f conf$$subs.sed
22190 cat >>$CONFIG_STATUS <<_ACEOF
22191 CEOF$ac_eof
22192 _ACEOF
22193
22194
22195 ac_delim='%!_!# '
22196 for ac_last_try in false false false false false :; do
22197 cat >conf$$subs.sed <<_ACEOF
22198 CXXDEPMODE!$CXXDEPMODE$ac_delim
22199 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22200 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22201 CXXCPP!$CXXCPP$ac_delim
22202 F77!$F77$ac_delim
22203 FFLAGS!$FFLAGS$ac_delim
22204 ac_ct_F77!$ac_ct_F77$ac_delim
22205 LIBTOOL!$LIBTOOL$ac_delim
22206 PKG_CONFIG!$PKG_CONFIG$ac_delim
22207 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
22208 XORG_LIBS!$XORG_LIBS$ac_delim
22209 DRI_TRUE!$DRI_TRUE$ac_delim
22210 DRI_FALSE!$DRI_FALSE$ac_delim
22211 DRI_CFLAGS!$DRI_CFLAGS$ac_delim
22212 DRI_LIBS!$DRI_LIBS$ac_delim
22213 PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
22214 PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
22215 XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim
22216 XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim
22217 moduledir!$moduledir$ac_delim
22218 DRIVER_NAME!$DRIVER_NAME$ac_delim
22219 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
22220 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
22221 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
22222 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
22223 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
22224 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
22225 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
22226 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
22227 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
22228 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
22229 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
22230 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
22231 LIBOBJS!$LIBOBJS$ac_delim
22232 LTLIBOBJS!$LTLIBOBJS$ac_delim
22233 _ACEOF
22234
22235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
22236 break
22237 elif $ac_last_try; then
22238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22240 { (exit 1); exit 1; }; }
22241 else
22242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22243 fi
22244 done
22245
22246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22247 if test -n "$ac_eof"; then
22248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22249 ac_eof=`expr $ac_eof + 1`
22250 fi
22251
22252 cat >>$CONFIG_STATUS <<_ACEOF
22253 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22255 _ACEOF
22256 sed '
22257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22258 s/^/s,@/; s/!/@,|#_!!_#|/
22259 :n
22260 t n
22261 s/'"$ac_delim"'$/,g/; t
22262 s/$/\\/; p
22263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22264 ' >>$CONFIG_STATUS <conf$$subs.sed
22265 rm -f conf$$subs.sed
22266 cat >>$CONFIG_STATUS <<_ACEOF
22267 :end
22268 s/|#_!!_#|//g
22269 CEOF$ac_eof
22270 _ACEOF
22271
22272
22273 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22274 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22275 # trailing colons and then remove the whole line if VPATH becomes empty
22276 # (actually we leave an empty line to preserve line numbers).
22277 if test "x$srcdir" = x.; then
22278 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22279 s/:*\$(srcdir):*/:/
22280 s/:*\${srcdir}:*/:/
22281 s/:*@srcdir@:*/:/
22282 s/^\([^=]*=[ ]*\):*/\1/
22283 s/:*$//
22284 s/^[^=]*=[ ]*$//
22285 }'
22286 fi
22287
22288 cat >>$CONFIG_STATUS <<\_ACEOF
22289 fi # test -n "$CONFIG_FILES"
22290
22291
22292 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22293 do
22294 case $ac_tag in
22295 :[FHLC]) ac_mode=$ac_tag; continue;;
22296 esac
22297 case $ac_mode$ac_tag in
22298 :[FHL]*:*);;
22299 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22300 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22301 { (exit 1); exit 1; }; };;
22302 :[FH]-) ac_tag=-:-;;
22303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22304 esac
22305 ac_save_IFS=$IFS
22306 IFS=:
22307 set x $ac_tag
22308 IFS=$ac_save_IFS
22309 shift
22310 ac_file=$1
22311 shift
22312
22313 case $ac_mode in
22314 :L) ac_source=$1;;
22315 :[FH])
22316 ac_file_inputs=
22317 for ac_f
22318 do
22319 case $ac_f in
22320 -) ac_f="$tmp/stdin";;
22321 *) # Look for the file first in the build tree, then in the source tree
22322 # (if the path is not absolute). The absolute path cannot be DOS-style,
22323 # because $ac_f cannot contain `:'.
22324 test -f "$ac_f" ||
22325 case $ac_f in
22326 [\\/$]*) false;;
22327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22328 esac ||
22329 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22330 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22331 { (exit 1); exit 1; }; };;
22332 esac
22333 ac_file_inputs="$ac_file_inputs $ac_f"
22334 done
22335
22336 # Let's still pretend it is `configure' which instantiates (i.e., don't
22337 # use $as_me), people would be surprised to read:
22338 # /* config.h. Generated by config.status. */
22339 configure_input="Generated from "`IFS=:
22340 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22341 if test x"$ac_file" != x-; then
22342 configure_input="$ac_file. $configure_input"
22343 { echo "$as_me:$LINENO: creating $ac_file" >&5
22344 echo "$as_me: creating $ac_file" >&6;}
22345 fi
22346
22347 case $ac_tag in
22348 *:-:* | *:-) cat >"$tmp/stdin";;
22349 esac
22350 ;;
22351 esac
22352
22353 ac_dir=`$as_dirname -- "$ac_file" ||
22354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22355 X"$ac_file" : 'X\(//\)[^/]' \| \
22356 X"$ac_file" : 'X\(//\)$' \| \
22357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22358 echo X"$ac_file" |
22359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22360 s//\1/
22361 q
22362 }
22363 /^X\(\/\/\)[^/].*/{
22364 s//\1/
22365 q
22366 }
22367 /^X\(\/\/\)$/{
22368 s//\1/
22369 q
22370 }
22371 /^X\(\/\).*/{
22372 s//\1/
22373 q
22374 }
22375 s/.*/./; q'`
22376 { as_dir="$ac_dir"
22377 case $as_dir in #(
22378 -*) as_dir=./$as_dir;;
22379 esac
22380 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22381 as_dirs=
22382 while :; do
22383 case $as_dir in #(
22384 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22385 *) as_qdir=$as_dir;;
22386 esac
22387 as_dirs="'$as_qdir' $as_dirs"
22388 as_dir=`$as_dirname -- "$as_dir" ||
22389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22390 X"$as_dir" : 'X\(//\)[^/]' \| \
22391 X"$as_dir" : 'X\(//\)$' \| \
22392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22393 echo X"$as_dir" |
22394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22395 s//\1/
22396 q
22397 }
22398 /^X\(\/\/\)[^/].*/{
22399 s//\1/
22400 q
22401 }
22402 /^X\(\/\/\)$/{
22403 s//\1/
22404 q
22405 }
22406 /^X\(\/\).*/{
22407 s//\1/
22408 q
22409 }
22410 s/.*/./; q'`
22411 test -d "$as_dir" && break
22412 done
22413 test -z "$as_dirs" || eval "mkdir $as_dirs"
22414 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22415 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22416 { (exit 1); exit 1; }; }; }
22417 ac_builddir=.
22418
22419 case "$ac_dir" in
22420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22421 *)
22422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22423 # A ".." for each directory in $ac_dir_suffix.
22424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22425 case $ac_top_builddir_sub in
22426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22428 esac ;;
22429 esac
22430 ac_abs_top_builddir=$ac_pwd
22431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22432 # for backward compatibility:
22433 ac_top_builddir=$ac_top_build_prefix
22434
22435 case $srcdir in
22436 .) # We are building in place.
22437 ac_srcdir=.
22438 ac_top_srcdir=$ac_top_builddir_sub
22439 ac_abs_top_srcdir=$ac_pwd ;;
22440 [\\/]* | ?:[\\/]* ) # Absolute name.
22441 ac_srcdir=$srcdir$ac_dir_suffix;
22442 ac_top_srcdir=$srcdir
22443 ac_abs_top_srcdir=$srcdir ;;
22444 *) # Relative name.
22445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22446 ac_top_srcdir=$ac_top_build_prefix$srcdir
22447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22448 esac
22449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22450
22451
22452 case $ac_mode in
22453 :F)
22454 #
22455 # CONFIG_FILE
22456 #
22457
22458 case $INSTALL in
22459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22460 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22461 esac
22462 ac_MKDIR_P=$MKDIR_P
22463 case $MKDIR_P in
22464 [\\/$]* | ?:[\\/]* ) ;;
22465 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22466 esac
22467 _ACEOF
22468
22469 cat >>$CONFIG_STATUS <<\_ACEOF
22470 # If the template does not know about datarootdir, expand it.
22471 # FIXME: This hack should be removed a few years after 2.60.
22472 ac_datarootdir_hack=; ac_datarootdir_seen=
22473
22474 case `sed -n '/datarootdir/ {
22475 p
22476 q
22477 }
22478 /@datadir@/p
22479 /@docdir@/p
22480 /@infodir@/p
22481 /@localedir@/p
22482 /@mandir@/p
22483 ' $ac_file_inputs` in
22484 *datarootdir*) ac_datarootdir_seen=yes;;
22485 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22486 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22487 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22488 _ACEOF
22489 cat >>$CONFIG_STATUS <<_ACEOF
22490 ac_datarootdir_hack='
22491 s&@datadir@&$datadir&g
22492 s&@docdir@&$docdir&g
22493 s&@infodir@&$infodir&g
22494 s&@localedir@&$localedir&g
22495 s&@mandir@&$mandir&g
22496 s&\\\${datarootdir}&$datarootdir&g' ;;
22497 esac
22498 _ACEOF
22499
22500 # Neutralize VPATH when `$srcdir' = `.'.
22501 # Shell code in configure.ac might set extrasub.
22502 # FIXME: do we really want to maintain this feature?
22503 cat >>$CONFIG_STATUS <<_ACEOF
22504 sed "$ac_vpsub
22505 $extrasub
22506 _ACEOF
22507 cat >>$CONFIG_STATUS <<\_ACEOF
22508 :t
22509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22510 s&@configure_input@&$configure_input&;t t
22511 s&@top_builddir@&$ac_top_builddir_sub&;t t
22512 s&@srcdir@&$ac_srcdir&;t t
22513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22514 s&@top_srcdir@&$ac_top_srcdir&;t t
22515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22516 s&@builddir@&$ac_builddir&;t t
22517 s&@abs_builddir@&$ac_abs_builddir&;t t
22518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22519 s&@INSTALL@&$ac_INSTALL&;t t
22520 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22521 $ac_datarootdir_hack
22522 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22523
22524 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22525 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22527 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22528 which seems to be undefined. Please make sure it is defined." >&5
22529 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22530 which seems to be undefined. Please make sure it is defined." >&2;}
22531
22532 rm -f "$tmp/stdin"
22533 case $ac_file in
22534 -) cat "$tmp/out"; rm -f "$tmp/out";;
22535 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22536 esac
22537 ;;
22538 :H)
22539 #
22540 # CONFIG_HEADER
22541 #
22542 _ACEOF
22543
22544 # Transform confdefs.h into a sed script `conftest.defines', that
22545 # substitutes the proper values into config.h.in to produce config.h.
22546 rm -f conftest.defines conftest.tail
22547 # First, append a space to every undef/define line, to ease matching.
22548 echo 's/$/ /' >conftest.defines
22549 # Then, protect against being on the right side of a sed subst, or in
22550 # an unquoted here document, in config.status. If some macros were
22551 # called several times there might be several #defines for the same
22552 # symbol, which is useless. But do not sort them, since the last
22553 # AC_DEFINE must be honored.
22554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22555 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22556 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22557 # PARAMS is the parameter list in the macro definition--in most cases, it's
22558 # just an empty string.
22559 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22560 ac_dB='\\)[ (].*,\\1define\\2'
22561 ac_dC=' '
22562 ac_dD=' ,'
22563
22564 uniq confdefs.h |
22565 sed -n '
22566 t rset
22567 :rset
22568 s/^[ ]*#[ ]*define[ ][ ]*//
22569 t ok
22570 d
22571 :ok
22572 s/[\\&,]/\\&/g
22573 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22574 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22575 ' >>conftest.defines
22576
22577 # Remove the space that was appended to ease matching.
22578 # Then replace #undef with comments. This is necessary, for
22579 # example, in the case of _POSIX_SOURCE, which is predefined and required
22580 # on some systems where configure will not decide to define it.
22581 # (The regexp can be short, since the line contains either #define or #undef.)
22582 echo 's/ $//
22583 s,^[ #]*u.*,/* & */,' >>conftest.defines
22584
22585 # Break up conftest.defines:
22586 ac_max_sed_lines=50
22587
22588 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22589 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22590 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22591 # et cetera.
22592 ac_in='$ac_file_inputs'
22593 ac_out='"$tmp/out1"'
22594 ac_nxt='"$tmp/out2"'
22595
22596 while :
22597 do
22598 # Write a here document:
22599 cat >>$CONFIG_STATUS <<_ACEOF
22600 # First, check the format of the line:
22601 cat >"\$tmp/defines.sed" <<\\CEOF
22602 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22603 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22604 b
22605 :def
22606 _ACEOF
22607 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22608 echo 'CEOF
22609 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22610 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22611 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22612 grep . conftest.tail >/dev/null || break
22613 rm -f conftest.defines
22614 mv conftest.tail conftest.defines
22615 done
22616 rm -f conftest.defines conftest.tail
22617
22618 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22619 cat >>$CONFIG_STATUS <<\_ACEOF
22620 if test x"$ac_file" != x-; then
22621 echo "/* $configure_input */" >"$tmp/config.h"
22622 cat "$ac_result" >>"$tmp/config.h"
22623 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22625 echo "$as_me: $ac_file is unchanged" >&6;}
22626 else
22627 rm -f $ac_file
22628 mv "$tmp/config.h" $ac_file
22629 fi
22630 else
22631 echo "/* $configure_input */"
22632 cat "$ac_result"
22633 fi
22634 rm -f "$tmp/out12"
22635 # Compute $ac_file's index in $config_headers.
22636 _am_arg=$ac_file
22637 _am_stamp_count=1
22638 for _am_header in $config_headers :; do
22639 case $_am_header in
22640 $_am_arg | $_am_arg:* )
22641 break ;;
22642 * )
22643 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22644 esac
22645 done
22646 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22647 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22648 X"$_am_arg" : 'X\(//\)[^/]' \| \
22649 X"$_am_arg" : 'X\(//\)$' \| \
22650 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22651 echo X"$_am_arg" |
22652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22653 s//\1/
22654 q
22655 }
22656 /^X\(\/\/\)[^/].*/{
22657 s//\1/
22658 q
22659 }
22660 /^X\(\/\/\)$/{
22661 s//\1/
22662 q
22663 }
22664 /^X\(\/\).*/{
22665 s//\1/
22666 q
22667 }
22668 s/.*/./; q'`/stamp-h$_am_stamp_count
22669 ;;
22670
22671 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22672 echo "$as_me: executing $ac_file commands" >&6;}
22673 ;;
22674 esac
22675
22676
22677 case $ac_file$ac_mode in
22678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22679 # Strip MF so we end up with the name of the file.
22680 mf=`echo "$mf" | sed -e 's/:.*$//'`
22681 # Check whether this is an Automake generated Makefile or not.
22682 # We used to match only the files named `Makefile.in', but
22683 # some people rename them; so instead we look at the file content.
22684 # Grep'ing the first line is not enough: some people post-process
22685 # each Makefile.in and add a new line on top of each file to say so.
22686 # Grep'ing the whole file is not good either: AIX grep has a line
22687 # limit of 2048, but all sed's we know have understand at least 4000.
22688 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22689 dirpart=`$as_dirname -- "$mf" ||
22690 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22691 X"$mf" : 'X\(//\)[^/]' \| \
22692 X"$mf" : 'X\(//\)$' \| \
22693 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22694 echo X"$mf" |
22695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22696 s//\1/
22697 q
22698 }
22699 /^X\(\/\/\)[^/].*/{
22700 s//\1/
22701 q
22702 }
22703 /^X\(\/\/\)$/{
22704 s//\1/
22705 q
22706 }
22707 /^X\(\/\).*/{
22708 s//\1/
22709 q
22710 }
22711 s/.*/./; q'`
22712 else
22713 continue
22714 fi
22715 # Extract the definition of DEPDIR, am__include, and am__quote
22716 # from the Makefile without running `make'.
22717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22718 test -z "$DEPDIR" && continue
22719 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22720 test -z "am__include" && continue
22721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22722 # When using ansi2knr, U may be empty or an underscore; expand it
22723 U=`sed -n 's/^U = //p' < "$mf"`
22724 # Find all dependency output files, they are included files with
22725 # $(DEPDIR) in their names. We invoke sed twice because it is the
22726 # simplest approach to changing $(DEPDIR) to its actual value in the
22727 # expansion.
22728 for file in `sed -n "
22729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22731 # Make sure the directory exists.
22732 test -f "$dirpart/$file" && continue
22733 fdir=`$as_dirname -- "$file" ||
22734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22735 X"$file" : 'X\(//\)[^/]' \| \
22736 X"$file" : 'X\(//\)$' \| \
22737 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22738 echo X"$file" |
22739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22740 s//\1/
22741 q
22742 }
22743 /^X\(\/\/\)[^/].*/{
22744 s//\1/
22745 q
22746 }
22747 /^X\(\/\/\)$/{
22748 s//\1/
22749 q
22750 }
22751 /^X\(\/\).*/{
22752 s//\1/
22753 q
22754 }
22755 s/.*/./; q'`
22756 { as_dir=$dirpart/$fdir
22757 case $as_dir in #(
22758 -*) as_dir=./$as_dir;;
22759 esac
22760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22761 as_dirs=
22762 while :; do
22763 case $as_dir in #(
22764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22765 *) as_qdir=$as_dir;;
22766 esac
22767 as_dirs="'$as_qdir' $as_dirs"
22768 as_dir=`$as_dirname -- "$as_dir" ||
22769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22770 X"$as_dir" : 'X\(//\)[^/]' \| \
22771 X"$as_dir" : 'X\(//\)$' \| \
22772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22773 echo X"$as_dir" |
22774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22775 s//\1/
22776 q
22777 }
22778 /^X\(\/\/\)[^/].*/{
22779 s//\1/
22780 q
22781 }
22782 /^X\(\/\/\)$/{
22783 s//\1/
22784 q
22785 }
22786 /^X\(\/\).*/{
22787 s//\1/
22788 q
22789 }
22790 s/.*/./; q'`
22791 test -d "$as_dir" && break
22792 done
22793 test -z "$as_dirs" || eval "mkdir $as_dirs"
22794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22795 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22796 { (exit 1); exit 1; }; }; }
22797 # echo "creating $dirpart/$file"
22798 echo '# dummy' > "$dirpart/$file"
22799 done
22800 done
22801 ;;
22802
22803 esac
22804 done # for ac_tag
22805
22806
22807 { (exit 0); exit 0; }
22808 _ACEOF
22809 chmod +x $CONFIG_STATUS
22810 ac_clean_files=$ac_clean_files_save
22811
22812
22813 # configure is writing to config.log, and then calls config.status.
22814 # config.status does its own redirection, appending to config.log.
22815 # Unfortunately, on DOS this fails, as config.log is still kept open
22816 # by configure, so config.status won't be able to write to it; its
22817 # output is simply discarded. So we exec the FD to /dev/null,
22818 # effectively closing config.log, so it can be properly (re)opened and
22819 # appended to by config.status. When coming back to configure, we
22820 # need to make the FD available again.
22821 if test "$no_create" != yes; then
22822 ac_cs_success=:
22823 ac_config_status_args=
22824 test "$silent" = yes &&
22825 ac_config_status_args="$ac_config_status_args --quiet"
22826 exec 5>/dev/null
22827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22828 exec 5>>config.log
22829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22830 # would make configure fail if this is the last instruction.
22831 $ac_cs_success || { (exit 1); exit 1; }
22832 fi
22833
22834