configure revision 1.1 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.1.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be 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.1.3'
732 PACKAGE_STRING='xf86-video-savage 2.1.3'
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 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 MAINTAINER_MODE_TRUE
831 MAINTAINER_MODE_FALSE
832 MAINT
833 build
834 build_cpu
835 build_vendor
836 build_os
837 host
838 host_cpu
839 host_vendor
840 host_os
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 ac_ct_CC
846 EXEEXT
847 OBJEXT
848 DEPDIR
849 am__include
850 am__quote
851 AMDEP_TRUE
852 AMDEP_FALSE
853 AMDEPBACKSLASH
854 CCDEPMODE
855 am__fastdepCC_TRUE
856 am__fastdepCC_FALSE
857 GREP
858 EGREP
859 LN_S
860 ECHO
861 AR
862 RANLIB
863 CPP
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 PKG_CONFIG
876 XORG_CFLAGS
877 XORG_LIBS
878 DRI_TRUE
879 DRI_FALSE
880 DRI_CFLAGS
881 DRI_LIBS
882 moduledir
883 DRIVER_NAME
884 APP_MAN_SUFFIX
885 LIB_MAN_SUFFIX
886 FILE_MAN_SUFFIX
887 MISC_MAN_SUFFIX
888 DRIVER_MAN_SUFFIX
889 ADMIN_MAN_SUFFIX
890 APP_MAN_DIR
891 LIB_MAN_DIR
892 FILE_MAN_DIR
893 MISC_MAN_DIR
894 DRIVER_MAN_DIR
895 ADMIN_MAN_DIR
896 LIBOBJS
897 LTLIBOBJS'
898 ac_subst_files=''
899 ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 CXX
909 CXXFLAGS
910 CCC
911 CXXCPP
912 F77
913 FFLAGS
914 PKG_CONFIG
915 XORG_CFLAGS
916 XORG_LIBS
917 DRI_CFLAGS
918 DRI_LIBS'
919
920
921 # Initialize some variables set by options.
922 ac_init_help=
923 ac_init_version=false
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
966
967 ac_prev=
968 ac_dashdash=
969 for ac_option
970 do
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\$ac_option
974 ac_prev=
975 continue
976 fi
977
978 case $ac_option in
979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 *) ac_optarg=yes ;;
981 esac
982
983 # Accept the important Cygnus configure options, so we can diagnose typos.
984
985 case $ac_dashdash$ac_option in
986 --)
987 ac_dashdash=yes ;;
988
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
993
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
998
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1005
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1008
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1013
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1020
1021 -disable-* | --disable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=no ;;
1029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1039
1040 -enable-* | --enable-*)
1041 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047 eval enable_$ac_feature=\$ac_optarg ;;
1048
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1057
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1061
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1068
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1073
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1079
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1086
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1091
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1096
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1103
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1108
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1115
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1120
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1124
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1128
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1132
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1141
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1146
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1153
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1160
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1177
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1182
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1187
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1191
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1197
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1208
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1213
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1218
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1225
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1230
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1233
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1236
1237 -with-* | --with-*)
1238 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 { echo "$as_me: error: invalid package name: $ac_package" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244 eval with_$ac_package=\$ac_optarg ;;
1245
1246 -without-* | --without-*)
1247 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid package name: $ac_package" >&2
1251 { (exit 1); exit 1; }; }
1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253 eval with_$ac_package=no ;;
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1272
1273 -*) { echo "$as_me: error: unrecognized option: $ac_option
1274 Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283 { (exit 1); exit 1; }; }
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1286
1287 *)
1288 # FIXME: should be removed in autoconf 3.0.
1289 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293 ;;
1294
1295 esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 { echo "$as_me: error: missing argument to $ac_option" >&2
1301 { (exit 1); exit 1; }; }
1302 fi
1303
1304 # Be sure to have absolute directory names.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1309 do
1310 eval ac_val=\$$ac_var
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316 { (exit 1); exit 1; }; }
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used." >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 { echo "$as_me: error: Working directory cannot be determined" >&2
1347 { (exit 1); exit 1; }; }
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 { echo "$as_me: error: pwd does not report name of working directory" >&2
1350 { (exit 1); exit 1; }; }
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$0" ||
1358 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$0" : 'X\(//\)[^/]' \| \
1360 X"$0" : 'X\(//\)$' \| \
1361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362 echo X"$0" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390 { (exit 1); exit 1; }; }
1391 fi
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395 { (exit 1); exit 1; }; }
1396 pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 srcdir=.
1400 fi
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1413
1414 #
1415 # Report the --help message.
1416 #
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1420 cat <<_ACEOF
1421 \`configure' configures xf86-video-savage 2.1.3 to adapt to many kinds of systems.
1422
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1427
1428 Defaults for the options are specified in brackets.
1429
1430 Configuration:
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 [PREFIX]
1446
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1451
1452 For better control, use the options below.
1453
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-savage]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474 _ACEOF
1475
1476 cat <<\_ACEOF
1477
1478 Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482
1483 System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 _ACEOF
1487 fi
1488
1489 if test -n "$ac_init_help"; then
1490 case $ac_init_help in
1491 short | recursive ) echo "Configuration of xf86-video-savage 2.1.3:";;
1492 esac
1493 cat <<\_ACEOF
1494
1495 Optional Features:
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-maintainer-mode enable make rules and dependencies not useful
1499 (and sometimes confusing) to the casual installer
1500 --enable-static[=PKGS] build static libraries [default=no]
1501 --enable-shared[=PKGS] build shared libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
1504 --disable-dependency-tracking speeds up one-time build
1505 --enable-dependency-tracking do not reject slow dependency extractors
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --disable-dri Disable DRI support [default=auto]
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-pic try to use only PIC/non-PIC objects [default=use
1514 both]
1515 --with-tags[=TAGS] include additional configurations [automatic]
1516 --with-xorg-module-dir=DIR
1517 Default xorg module directory
1518 [default=$libdir/xorg/modules]
1519 --with-release-version=STRING
1520 Use release version string in package name
1521
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 CPP C preprocessor
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 CXXCPP C++ preprocessor
1534 F77 Fortran 77 compiler command
1535 FFLAGS Fortran 77 compiler flags
1536 PKG_CONFIG path to pkg-config utility
1537 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1538 XORG_LIBS linker flags for XORG, overriding pkg-config
1539 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1540 DRI_LIBS linker flags for DRI, overriding pkg-config
1541
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1546 _ACEOF
1547 ac_status=$?
1548 fi
1549
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" || continue
1554 ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 xf86-video-savage configure 2.1.3
1607 generated by GNU Autoconf 2.61
1608
1609 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1610 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616 cat >config.log <<_ACEOF
1617 This file contains any messages produced by compilers while
1618 running configure, to aid debugging if configure makes a mistake.
1619
1620 It was created by xf86-video-savage $as_me 2.1.3, which was
1621 generated by GNU Autoconf 2.61. Invocation command line was
1622
1623 $ $0 $@
1624
1625 _ACEOF
1626 exec 5>>config.log
1627 {
1628 cat <<_ASUNAME
1629 ## --------- ##
1630 ## Platform. ##
1631 ## --------- ##
1632
1633 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1634 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1635 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1636 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1637 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638
1639 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1640 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641
1642 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1643 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1644 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1645 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1646 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1647 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1648 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649
1650 _ASUNAME
1651
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 echo "PATH: $as_dir"
1658 done
1659 IFS=$as_save_IFS
1660
1661 } >&5
1662
1663 cat >&5 <<_ACEOF
1664
1665
1666 ## ----------- ##
1667 ## Core tests. ##
1668 ## ----------- ##
1669
1670 _ACEOF
1671
1672
1673 # Keep a trace of the command line.
1674 # Strip out --no-create and --no-recursion so they do not pile up.
1675 # Strip out --silent because we don't want to record it for future runs.
1676 # Also quote any args containing shell meta-characters.
1677 # Make two passes to allow for proper duplicate-argument suppression.
1678 ac_configure_args=
1679 ac_configure_args0=
1680 ac_configure_args1=
1681 ac_must_keep_next=false
1682 for ac_pass in 1 2
1683 do
1684 for ac_arg
1685 do
1686 case $ac_arg in
1687 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1689 | -silent | --silent | --silen | --sile | --sil)
1690 continue ;;
1691 *\'*)
1692 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1693 esac
1694 case $ac_pass in
1695 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696 2)
1697 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1698 if test $ac_must_keep_next = true; then
1699 ac_must_keep_next=false # Got value, back to normal.
1700 else
1701 case $ac_arg in
1702 *=* | --config-cache | -C | -disable-* | --disable-* \
1703 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1704 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1705 | -with-* | --with-* | -without-* | --without-* | --x)
1706 case "$ac_configure_args0 " in
1707 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1708 esac
1709 ;;
1710 -* ) ac_must_keep_next=true ;;
1711 esac
1712 fi
1713 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 ;;
1715 esac
1716 done
1717 done
1718 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1719 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720
1721 # When interrupted or exit'd, cleanup temporary files, and complete
1722 # config.log. We remove comments because anyway the quotes in there
1723 # would cause problems or look ugly.
1724 # WARNING: Use '\'' to represent an apostrophe within the trap.
1725 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1726 trap 'exit_status=$?
1727 # Save into config.log some information that might help in debugging.
1728 {
1729 echo
1730
1731 cat <<\_ASBOX
1732 ## ---------------- ##
1733 ## Cache variables. ##
1734 ## ---------------- ##
1735 _ASBOX
1736 echo
1737 # The following way of writing the cache mishandles newlines in values,
1738 (
1739 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in #(
1742 *${as_nl}*)
1743 case $ac_var in #(
1744 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1745 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1746 esac
1747 case $ac_var in #(
1748 _ | IFS | as_nl) ;; #(
1749 *) $as_unset $ac_var ;;
1750 esac ;;
1751 esac
1752 done
1753 (set) 2>&1 |
1754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1755 *${as_nl}ac_space=\ *)
1756 sed -n \
1757 "s/'\''/'\''\\\\'\'''\''/g;
1758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759 ;; #(
1760 *)
1761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 ;;
1763 esac |
1764 sort
1765 )
1766 echo
1767
1768 cat <<\_ASBOX
1769 ## ----------------- ##
1770 ## Output variables. ##
1771 ## ----------------- ##
1772 _ASBOX
1773 echo
1774 for ac_var in $ac_subst_vars
1775 do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in
1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 esac
1780 echo "$ac_var='\''$ac_val'\''"
1781 done | sort
1782 echo
1783
1784 if test -n "$ac_subst_files"; then
1785 cat <<\_ASBOX
1786 ## ------------------- ##
1787 ## File substitutions. ##
1788 ## ------------------- ##
1789 _ASBOX
1790 echo
1791 for ac_var in $ac_subst_files
1792 do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 esac
1797 echo "$ac_var='\''$ac_val'\''"
1798 done | sort
1799 echo
1800 fi
1801
1802 if test -s confdefs.h; then
1803 cat <<\_ASBOX
1804 ## ----------- ##
1805 ## confdefs.h. ##
1806 ## ----------- ##
1807 _ASBOX
1808 echo
1809 cat confdefs.h
1810 echo
1811 fi
1812 test "$ac_signal" != 0 &&
1813 echo "$as_me: caught signal $ac_signal"
1814 echo "$as_me: exit $exit_status"
1815 } >&5
1816 rm -f core *.core core.conftest.* &&
1817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1818 exit $exit_status
1819 ' 0
1820 for ac_signal in 1 2 13 15; do
1821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822 done
1823 ac_signal=0
1824
1825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1826 rm -f -r conftest* confdefs.h
1827
1828 # Predefined preprocessor variables.
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_NAME "$PACKAGE_NAME"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_STRING "$PACKAGE_STRING"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852 _ACEOF
1853
1854
1855 # Let the site file select an alternate cache file if it wants to.
1856 # Prefer explicitly selected file to automatically selected ones.
1857 if test -n "$CONFIG_SITE"; then
1858 set x "$CONFIG_SITE"
1859 elif test "x$prefix" != xNONE; then
1860 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1861 else
1862 set x "$ac_default_prefix/share/config.site" \
1863 "$ac_default_prefix/etc/config.site"
1864 fi
1865 shift
1866 for ac_site_file
1867 do
1868 if test -r "$ac_site_file"; then
1869 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1870 echo "$as_me: loading site script $ac_site_file" >&6;}
1871 sed 's/^/| /' "$ac_site_file" >&5
1872 . "$ac_site_file"
1873 fi
1874 done
1875
1876 if test -r "$cache_file"; then
1877 # Some versions of bash will fail to source /dev/null (special
1878 # files actually), so we avoid doing that.
1879 if test -f "$cache_file"; then
1880 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1881 echo "$as_me: loading cache $cache_file" >&6;}
1882 case $cache_file in
1883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884 *) . "./$cache_file";;
1885 esac
1886 fi
1887 else
1888 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1889 echo "$as_me: creating cache $cache_file" >&6;}
1890 >$cache_file
1891 fi
1892
1893 # Check that the precious variables saved in the cache have kept the same
1894 # value.
1895 ac_cache_corrupted=false
1896 for ac_var in $ac_precious_vars; do
1897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1898 eval ac_new_set=\$ac_env_${ac_var}_set
1899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1900 eval ac_new_val=\$ac_env_${ac_var}_value
1901 case $ac_old_set,$ac_new_set in
1902 set,)
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1906 ,set)
1907 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1908 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1909 ac_cache_corrupted=: ;;
1910 ,);;
1911 *)
1912 if test "x$ac_old_val" != "x$ac_new_val"; then
1913 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1916 echo "$as_me: former value: $ac_old_val" >&2;}
1917 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1918 echo "$as_me: current value: $ac_new_val" >&2;}
1919 ac_cache_corrupted=:
1920 fi;;
1921 esac
1922 # Pass precious variables to config.status.
1923 if test "$ac_new_set" = set; then
1924 case $ac_new_val in
1925 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 *) ac_arg=$ac_var=$ac_new_val ;;
1927 esac
1928 case " $ac_configure_args " in
1929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1930 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1931 esac
1932 fi
1933 done
1934 if $ac_cache_corrupted; then
1935 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1938 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1939 { (exit 1); exit 1; }; }
1940 fi
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966 ac_ext=c
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971
1972
1973
1974
1975 ac_config_headers="$ac_config_headers config.h"
1976
1977 ac_aux_dir=
1978 for ac_dir in . "$srcdir"/.; do
1979 if test -f "$ac_dir/install-sh"; then
1980 ac_aux_dir=$ac_dir
1981 ac_install_sh="$ac_aux_dir/install-sh -c"
1982 break
1983 elif test -f "$ac_dir/install.sh"; then
1984 ac_aux_dir=$ac_dir
1985 ac_install_sh="$ac_aux_dir/install.sh -c"
1986 break
1987 elif test -f "$ac_dir/shtool"; then
1988 ac_aux_dir=$ac_dir
1989 ac_install_sh="$ac_aux_dir/shtool install -c"
1990 break
1991 fi
1992 done
1993 if test -z "$ac_aux_dir"; then
1994 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1995 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1996 { (exit 1); exit 1; }; }
1997 fi
1998
1999 # These three variables are undocumented and unsupported,
2000 # and are intended to be withdrawn in a future Autoconf release.
2001 # They can cause serious problems if a builder's source tree is in a directory
2002 # whose full name contains unusual characters.
2003 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2004 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2005 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2006
2007
2008
2009 am__api_version="1.9"
2010 # Find a good install program. We prefer a C program (faster),
2011 # so one script is as good as another. But avoid the broken or
2012 # incompatible versions:
2013 # SysV /etc/install, /usr/sbin/install
2014 # SunOS /usr/etc/install
2015 # IRIX /sbin/install
2016 # AIX /bin/install
2017 # AmigaOS /C/install, which installs bootblocks on floppy discs
2018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2021 # OS/2's system install, which has a completely different semantic
2022 # ./install, which can be erroneously created by make from ./install.sh.
2023 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2024 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2025 if test -z "$INSTALL"; then
2026 if test "${ac_cv_path_install+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 # Account for people who put trailing slashes in PATH elements.
2035 case $as_dir/ in
2036 ./ | .// | /cC/* | \
2037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2038 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2039 /usr/ucb/* ) ;;
2040 *)
2041 # OSF1 and SCO ODT 3.0 have their own names for install.
2042 # Don't use installbsd from OSF since it installs stuff as root
2043 # by default.
2044 for ac_prog in ginstall scoinst install; do
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2047 if test $ac_prog = install &&
2048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2049 # AIX install. It has an incompatible calling convention.
2050 :
2051 elif test $ac_prog = install &&
2052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2053 # program-specific install script used by HP pwplus--don't use.
2054 :
2055 else
2056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2057 break 3
2058 fi
2059 fi
2060 done
2061 done
2062 ;;
2063 esac
2064 done
2065 IFS=$as_save_IFS
2066
2067
2068 fi
2069 if test "${ac_cv_path_install+set}" = set; then
2070 INSTALL=$ac_cv_path_install
2071 else
2072 # As a last resort, use the slow shell script. Don't cache a
2073 # value for INSTALL within a source directory, because that will
2074 # break other packages using the cache if that directory is
2075 # removed, or if the value is a relative name.
2076 INSTALL=$ac_install_sh
2077 fi
2078 fi
2079 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2080 echo "${ECHO_T}$INSTALL" >&6; }
2081
2082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2083 # It thinks the first close brace ends the variable substitution.
2084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2085
2086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2087
2088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2089
2090 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2091 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2092 # Just in case
2093 sleep 1
2094 echo timestamp > conftest.file
2095 # Do `set' in a subshell so we don't clobber the current shell's
2096 # arguments. Must try -L first in case configure is actually a
2097 # symlink; some systems play weird games with the mod time of symlinks
2098 # (eg FreeBSD returns the mod time of the symlink's containing
2099 # directory).
2100 if (
2101 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2102 if test "$*" = "X"; then
2103 # -L didn't work.
2104 set X `ls -t $srcdir/configure conftest.file`
2105 fi
2106 rm -f conftest.file
2107 if test "$*" != "X $srcdir/configure conftest.file" \
2108 && test "$*" != "X conftest.file $srcdir/configure"; then
2109
2110 # If neither matched, then we have a broken ls. This can happen
2111 # if, for instance, CONFIG_SHELL is bash and it inherits a
2112 # broken ls alias from the environment. This has actually
2113 # happened. Such a system could not be considered "sane".
2114 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2115 alias in your environment" >&5
2116 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2117 alias in your environment" >&2;}
2118 { (exit 1); exit 1; }; }
2119 fi
2120
2121 test "$2" = conftest.file
2122 )
2123 then
2124 # Ok.
2125 :
2126 else
2127 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2128 Check your system clock" >&5
2129 echo "$as_me: error: newly created file is older than distributed files!
2130 Check your system clock" >&2;}
2131 { (exit 1); exit 1; }; }
2132 fi
2133 { echo "$as_me:$LINENO: result: yes" >&5
2134 echo "${ECHO_T}yes" >&6; }
2135 test "$program_prefix" != NONE &&
2136 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2137 # Use a double $ so make ignores it.
2138 test "$program_suffix" != NONE &&
2139 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2140 # Double any \ or $. echo might interpret backslashes.
2141 # By default was `s,x,x', remove it if useless.
2142 cat <<\_ACEOF >conftest.sed
2143 s/[\\$]/&&/g;s/;s,x,x,$//
2144 _ACEOF
2145 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2146 rm -f conftest.sed
2147
2148 # expand $ac_aux_dir to an absolute path
2149 am_aux_dir=`cd $ac_aux_dir && pwd`
2150
2151 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2152 # Use eval to expand $SHELL
2153 if eval "$MISSING --run true"; then
2154 am_missing_run="$MISSING --run "
2155 else
2156 am_missing_run=
2157 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2158 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2159 fi
2160
2161 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2162 # We used to keeping the `.' as first argument, in order to
2163 # allow $(mkdir_p) to be used without argument. As in
2164 # $(mkdir_p) $(somedir)
2165 # where $(somedir) is conditionally defined. However this is wrong
2166 # for two reasons:
2167 # 1. if the package is installed by a user who cannot write `.'
2168 # make install will fail,
2169 # 2. the above comment should most certainly read
2170 # $(mkdir_p) $(DESTDIR)$(somedir)
2171 # so it does not work when $(somedir) is undefined and
2172 # $(DESTDIR) is not.
2173 # To support the latter case, we have to write
2174 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2175 # so the `.' trick is pointless.
2176 mkdir_p='mkdir -p --'
2177 else
2178 # On NextStep and OpenStep, the `mkdir' command does not
2179 # recognize any option. It will interpret all options as
2180 # directories to create, and then abort because `.' already
2181 # exists.
2182 for d in ./-p ./--version;
2183 do
2184 test -d $d && rmdir $d
2185 done
2186 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2187 if test -f "$ac_aux_dir/mkinstalldirs"; then
2188 mkdir_p='$(mkinstalldirs)'
2189 else
2190 mkdir_p='$(install_sh) -d'
2191 fi
2192 fi
2193
2194 for ac_prog in gawk mawk nawk awk
2195 do
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_AWK+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203 if test -n "$AWK"; then
2204 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_AWK="$ac_prog"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 break 2
2216 fi
2217 done
2218 done
2219 IFS=$as_save_IFS
2220
2221 fi
2222 fi
2223 AWK=$ac_cv_prog_AWK
2224 if test -n "$AWK"; then
2225 { echo "$as_me:$LINENO: result: $AWK" >&5
2226 echo "${ECHO_T}$AWK" >&6; }
2227 else
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2230 fi
2231
2232
2233 test -n "$AWK" && break
2234 done
2235
2236 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2237 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2238 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2239 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 cat >conftest.make <<\_ACEOF
2243 SHELL = /bin/sh
2244 all:
2245 @echo '@@@%%%=$(MAKE)=@@@%%%'
2246 _ACEOF
2247 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2248 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2249 *@@@%%%=?*=@@@%%%*)
2250 eval ac_cv_prog_make_${ac_make}_set=yes;;
2251 *)
2252 eval ac_cv_prog_make_${ac_make}_set=no;;
2253 esac
2254 rm -f conftest.make
2255 fi
2256 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2259 SET_MAKE=
2260 else
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2263 SET_MAKE="MAKE=${MAKE-make}"
2264 fi
2265
2266 rm -rf .tst 2>/dev/null
2267 mkdir .tst 2>/dev/null
2268 if test -d .tst; then
2269 am__leading_dot=.
2270 else
2271 am__leading_dot=_
2272 fi
2273 rmdir .tst 2>/dev/null
2274
2275 # test to see if srcdir already configured
2276 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2277 test -f $srcdir/config.status; then
2278 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2279 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2280 { (exit 1); exit 1; }; }
2281 fi
2282
2283 # test whether we have cygpath
2284 if test -z "$CYGPATH_W"; then
2285 if (cygpath --version) >/dev/null 2>/dev/null; then
2286 CYGPATH_W='cygpath -w'
2287 else
2288 CYGPATH_W=echo
2289 fi
2290 fi
2291
2292
2293 # Define the identity of the package.
2294 PACKAGE='xf86-video-savage'
2295 VERSION='2.1.3'
2296
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE "$PACKAGE"
2300 _ACEOF
2301
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define VERSION "$VERSION"
2305 _ACEOF
2306
2307 # Some tools Automake needs.
2308
2309 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2310
2311
2312 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2313
2314
2315 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2316
2317
2318 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2319
2320
2321 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2322
2323 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2324
2325 # Installed binaries are usually stripped using `strip' when the user
2326 # run `make install-strip'. However `strip' might not be the right
2327 # tool to use in cross-compilation environments, therefore Automake
2328 # will honor the `STRIP' environment variable to overrule this program.
2329 if test "$cross_compiling" != no; then
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}strip; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_STRIP+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 if test -n "$STRIP"; then
2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 STRIP=$ac_cv_prog_STRIP
2359 if test -n "$STRIP"; then
2360 { echo "$as_me:$LINENO: result: $STRIP" >&5
2361 echo "${ECHO_T}$STRIP" >&6; }
2362 else
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2365 fi
2366
2367
2368 fi
2369 if test -z "$ac_cv_prog_STRIP"; then
2370 ac_ct_STRIP=$STRIP
2371 # Extract the first word of "strip", so it can be a program name with args.
2372 set dummy strip; ac_word=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 if test -n "$ac_ct_STRIP"; then
2379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_ac_ct_STRIP="strip"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392 done
2393 done
2394 IFS=$as_save_IFS
2395
2396 fi
2397 fi
2398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2399 if test -n "$ac_ct_STRIP"; then
2400 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2401 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2402 else
2403 { echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6; }
2405 fi
2406
2407 if test "x$ac_ct_STRIP" = x; then
2408 STRIP=":"
2409 else
2410 case $cross_compiling:$ac_tool_warned in
2411 yes:)
2412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet. If you think this
2417 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420 STRIP=$ac_ct_STRIP
2421 fi
2422 else
2423 STRIP="$ac_cv_prog_STRIP"
2424 fi
2425
2426 fi
2427 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2428
2429 # We need awk for the "check" target. The system "awk" is bad on
2430 # some platforms.
2431 # Always define AMTAR for backward compatibility.
2432
2433 AMTAR=${AMTAR-"${am_missing_run}tar"}
2434
2435 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2436
2437
2438
2439
2440
2441
2442 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2443 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2444 # Check whether --enable-maintainer-mode was given.
2445 if test "${enable_maintainer_mode+set}" = set; then
2446 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2447 else
2448 USE_MAINTAINER_MODE=no
2449 fi
2450
2451 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2452 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2453
2454
2455 if test $USE_MAINTAINER_MODE = yes; then
2456 MAINTAINER_MODE_TRUE=
2457 MAINTAINER_MODE_FALSE='#'
2458 else
2459 MAINTAINER_MODE_TRUE='#'
2460 MAINTAINER_MODE_FALSE=
2461 fi
2462
2463 MAINT=$MAINTAINER_MODE_TRUE
2464
2465
2466
2467 # Checks for programs.
2468 # Check whether --enable-static was given.
2469 if test "${enable_static+set}" = set; then
2470 enableval=$enable_static; p=${PACKAGE-default}
2471 case $enableval in
2472 yes) enable_static=yes ;;
2473 no) enable_static=no ;;
2474 *)
2475 enable_static=no
2476 # Look at the argument we got. We use all the common list separators.
2477 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2478 for pkg in $enableval; do
2479 IFS="$lt_save_ifs"
2480 if test "X$pkg" = "X$p"; then
2481 enable_static=yes
2482 fi
2483 done
2484 IFS="$lt_save_ifs"
2485 ;;
2486 esac
2487 else
2488 enable_static=no
2489 fi
2490
2491
2492
2493 # Check whether --enable-shared was given.
2494 if test "${enable_shared+set}" = set; then
2495 enableval=$enable_shared; p=${PACKAGE-default}
2496 case $enableval in
2497 yes) enable_shared=yes ;;
2498 no) enable_shared=no ;;
2499 *)
2500 enable_shared=no
2501 # Look at the argument we got. We use all the common list separators.
2502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2503 for pkg in $enableval; do
2504 IFS="$lt_save_ifs"
2505 if test "X$pkg" = "X$p"; then
2506 enable_shared=yes
2507 fi
2508 done
2509 IFS="$lt_save_ifs"
2510 ;;
2511 esac
2512 else
2513 enable_shared=yes
2514 fi
2515
2516
2517 # Check whether --enable-fast-install was given.
2518 if test "${enable_fast_install+set}" = set; then
2519 enableval=$enable_fast_install; p=${PACKAGE-default}
2520 case $enableval in
2521 yes) enable_fast_install=yes ;;
2522 no) enable_fast_install=no ;;
2523 *)
2524 enable_fast_install=no
2525 # Look at the argument we got. We use all the common list separators.
2526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2527 for pkg in $enableval; do
2528 IFS="$lt_save_ifs"
2529 if test "X$pkg" = "X$p"; then
2530 enable_fast_install=yes
2531 fi
2532 done
2533 IFS="$lt_save_ifs"
2534 ;;
2535 esac
2536 else
2537 enable_fast_install=yes
2538 fi
2539
2540
2541 # Make sure we can run config.sub.
2542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2543 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2544 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2545 { (exit 1); exit 1; }; }
2546
2547 { echo "$as_me:$LINENO: checking build system type" >&5
2548 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2549 if test "${ac_cv_build+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 ac_build_alias=$build_alias
2553 test "x$ac_build_alias" = x &&
2554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2555 test "x$ac_build_alias" = x &&
2556 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2558 { (exit 1); exit 1; }; }
2559 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2560 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2561 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2562 { (exit 1); exit 1; }; }
2563
2564 fi
2565 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2566 echo "${ECHO_T}$ac_cv_build" >&6; }
2567 case $ac_cv_build in
2568 *-*-*) ;;
2569 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2570 echo "$as_me: error: invalid value of canonical build" >&2;}
2571 { (exit 1); exit 1; }; };;
2572 esac
2573 build=$ac_cv_build
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_build
2576 shift
2577 build_cpu=$1
2578 build_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 build_os=$*
2583 IFS=$ac_save_IFS
2584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2585
2586
2587 { echo "$as_me:$LINENO: checking host system type" >&5
2588 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2589 if test "${ac_cv_host+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 if test "x$host_alias" = x; then
2593 ac_cv_host=$ac_cv_build
2594 else
2595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2596 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2597 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2598 { (exit 1); exit 1; }; }
2599 fi
2600
2601 fi
2602 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2603 echo "${ECHO_T}$ac_cv_host" >&6; }
2604 case $ac_cv_host in
2605 *-*-*) ;;
2606 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2607 echo "$as_me: error: invalid value of canonical host" >&2;}
2608 { (exit 1); exit 1; }; };;
2609 esac
2610 host=$ac_cv_host
2611 ac_save_IFS=$IFS; IFS='-'
2612 set x $ac_cv_host
2613 shift
2614 host_cpu=$1
2615 host_vendor=$2
2616 shift; shift
2617 # Remember, the first character of IFS is used to create $*,
2618 # except with old shells:
2619 host_os=$*
2620 IFS=$ac_save_IFS
2621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2622
2623
2624 DEPDIR="${am__leading_dot}deps"
2625
2626 ac_config_commands="$ac_config_commands depfiles"
2627
2628
2629 am_make=${MAKE-make}
2630 cat > confinc << 'END'
2631 am__doit:
2632 @echo done
2633 .PHONY: am__doit
2634 END
2635 # If we don't find an include directive, just comment out the code.
2636 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2637 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2638 am__include="#"
2639 am__quote=
2640 _am_result=none
2641 # First try GNU make style include.
2642 echo "include confinc" > confmf
2643 # We grep out `Entering directory' and `Leaving directory'
2644 # messages which can occur if `w' ends up in MAKEFLAGS.
2645 # In particular we don't look at `^make:' because GNU make might
2646 # be invoked under some other name (usually "gmake"), in which
2647 # case it prints its new name instead of `make'.
2648 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2649 am__include=include
2650 am__quote=
2651 _am_result=GNU
2652 fi
2653 # Now try BSD make style include.
2654 if test "$am__include" = "#"; then
2655 echo '.include "confinc"' > confmf
2656 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2657 am__include=.include
2658 am__quote="\""
2659 _am_result=BSD
2660 fi
2661 fi
2662
2663
2664 { echo "$as_me:$LINENO: result: $_am_result" >&5
2665 echo "${ECHO_T}$_am_result" >&6; }
2666 rm -f confinc confmf
2667
2668 # Check whether --enable-dependency-tracking was given.
2669 if test "${enable_dependency_tracking+set}" = set; then
2670 enableval=$enable_dependency_tracking;
2671 fi
2672
2673 if test "x$enable_dependency_tracking" != xno; then
2674 am_depcomp="$ac_aux_dir/depcomp"
2675 AMDEPBACKSLASH='\'
2676 fi
2677
2678
2679 if test "x$enable_dependency_tracking" != xno; then
2680 AMDEP_TRUE=
2681 AMDEP_FALSE='#'
2682 else
2683 AMDEP_TRUE='#'
2684 AMDEP_FALSE=
2685 fi
2686
2687
2688
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 CC=$ac_cv_prog_CC
2723 if test -n "$CC"; then
2724 { echo "$as_me:$LINENO: result: $CC" >&5
2725 echo "${ECHO_T}$CC" >&6; }
2726 else
2727 { echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6; }
2729 fi
2730
2731
2732 fi
2733 if test -z "$ac_cv_prog_CC"; then
2734 ac_ct_CC=$CC
2735 # Extract the first word of "gcc", so it can be a program name with args.
2736 set dummy gcc; ac_word=$2
2737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 if test -n "$ac_ct_CC"; then
2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_ac_ct_CC="gcc"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763 if test -n "$ac_ct_CC"; then
2764 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765 echo "${ECHO_T}$ac_ct_CC" >&6; }
2766 else
2767 { echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6; }
2769 fi
2770
2771 if test "x$ac_ct_CC" = x; then
2772 CC=""
2773 else
2774 case $cross_compiling:$ac_tool_warned in
2775 yes:)
2776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2777 whose name does not start with the host triplet. If you think this
2778 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2780 whose name does not start with the host triplet. If you think this
2781 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2782 ac_tool_warned=yes ;;
2783 esac
2784 CC=$ac_ct_CC
2785 fi
2786 else
2787 CC="$ac_cv_prog_CC"
2788 fi
2789
2790 if test -z "$CC"; then
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2793 set dummy ${ac_tool_prefix}cc; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CC+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="${ac_tool_prefix}cc"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { echo "$as_me:$LINENO: result: $CC" >&5
2822 echo "${ECHO_T}$CC" >&6; }
2823 else
2824 { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2826 fi
2827
2828
2829 fi
2830 fi
2831 if test -z "$CC"; then
2832 # Extract the first word of "cc", so it can be a program name with args.
2833 set dummy cc; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 ac_prog_rejected=no
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2851 ac_prog_rejected=yes
2852 continue
2853 fi
2854 ac_cv_prog_CC="cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 if test $ac_prog_rejected = yes; then
2863 # We found a bogon in the path, so make sure we never use it.
2864 set dummy $ac_cv_prog_CC
2865 shift
2866 if test $# != 0; then
2867 # We chose a different compiler from the bogus one.
2868 # However, it has the same basename, so the bogon will be chosen
2869 # first if we set CC to just the basename; use the full file name.
2870 shift
2871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2872 fi
2873 fi
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6; }
2880 else
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in cl.exe
2890 do
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2895 if test "${ac_cv_prog_CC+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920 { echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6; }
2922 else
2923 { echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6; }
2925 fi
2926
2927
2928 test -n "$CC" && break
2929 done
2930 fi
2931 if test -z "$CC"; then
2932 ac_ct_CC=$CC
2933 for ac_prog in cl.exe
2934 do
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_CC="$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2965 echo "${ECHO_T}$ac_ct_CC" >&6; }
2966 else
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2969 fi
2970
2971
2972 test -n "$ac_ct_CC" && break
2973 done
2974
2975 if test "x$ac_ct_CC" = x; then
2976 CC=""
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979 yes:)
2980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2981 whose name does not start with the host triplet. If you think this
2982 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet. If you think this
2985 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CC=$ac_ct_CC
2989 fi
2990 fi
2991
2992 fi
2993
2994
2995 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: no acceptable C compiler found in \$PATH
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3000
3001 # Provide some information about the compiler.
3002 echo "$as_me:$LINENO: checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (ac_try="$ac_compiler --version >&5"
3005 case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compiler --version >&5") 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (ac_try="$ac_compiler -v >&5"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compiler -v >&5") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }
3024 { (ac_try="$ac_compiler -V >&5"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compiler -V >&5") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3041
3042 int
3043 main ()
3044 {
3045
3046 ;
3047 return 0;
3048 }
3049 _ACEOF
3050 ac_clean_files_save=$ac_clean_files
3051 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3052 # Try to create an executable without -o first, disregard a.out.
3053 # It will help us diagnose broken compilers, and finding out an intuition
3054 # of exeext.
3055 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3056 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3057 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058 #
3059 # List of possible output files, starting from the most likely.
3060 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3061 # only as a last resort. b.out is created by i960 compilers.
3062 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3063 #
3064 # The IRIX 6 linker writes into existing files which may not be
3065 # executable, retaining their permissions. Remove them first so a
3066 # subsequent execution test works.
3067 ac_rmfiles=
3068 for ac_file in $ac_files
3069 do
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3072 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073 esac
3074 done
3075 rm -f $ac_rmfiles
3076
3077 if { (ac_try="$ac_link_default"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_link_default") 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; then
3087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3088 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3089 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3090 # so that the user can short-circuit this test for compilers unknown to
3091 # Autoconf.
3092 for ac_file in $ac_files ''
3093 do
3094 test -f "$ac_file" || continue
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3097 ;;
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104 then :; else
3105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106 fi
3107 # We set ac_cv_exeext here because the later test for it is not
3108 # safe: cross compilers may not add the suffix if given an `-o'
3109 # argument, so we may need to know it at that point already.
3110 # Even if this section looks crufty: it has the advantage of
3111 # actually working.
3112 break;;
3113 * )
3114 break;;
3115 esac
3116 done
3117 test "$ac_cv_exeext" = no && ac_cv_exeext=
3118
3119 else
3120 ac_file=''
3121 fi
3122
3123 { echo "$as_me:$LINENO: result: $ac_file" >&5
3124 echo "${ECHO_T}$ac_file" >&6; }
3125 if test -z "$ac_file"; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: C compiler cannot create executables
3132 See \`config.log' for more details." >&2;}
3133 { (exit 77); exit 77; }; }
3134 fi
3135
3136 ac_exeext=$ac_cv_exeext
3137
3138 # Check that the compiler produces executables we can run. If not, either
3139 # the compiler is broken, or we cross compile.
3140 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3141 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3142 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3143 # If not cross compiling, check that we can run a simple program.
3144 if test "$cross_compiling" != yes; then
3145 if { ac_try='./$ac_file'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 cross_compiling=no
3156 else
3157 if test "$cross_compiling" = maybe; then
3158 cross_compiling=yes
3159 else
3160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3161 If you meant to cross compile, use \`--host'.
3162 See \`config.log' for more details." >&5
3163 echo "$as_me: error: cannot run C compiled programs.
3164 If you meant to cross compile, use \`--host'.
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3167 fi
3168 fi
3169 fi
3170 { echo "$as_me:$LINENO: result: yes" >&5
3171 echo "${ECHO_T}yes" >&6; }
3172
3173 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3174 ac_clean_files=$ac_clean_files_save
3175 # Check that the compiler produces executables we can run. If not, either
3176 # the compiler is broken, or we cross compile.
3177 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3178 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3179 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3180 echo "${ECHO_T}$cross_compiling" >&6; }
3181
3182 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3183 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3184 if { (ac_try="$ac_link"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_link") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; then
3194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3196 # work properly (i.e., refer to `conftest.exe'), while it won't with
3197 # `rm'.
3198 for ac_file in conftest.exe conftest conftest.*; do
3199 test -f "$ac_file" || continue
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 break;;
3204 * ) break;;
3205 esac
3206 done
3207 else
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3213 fi
3214
3215 rm -f conftest$ac_cv_exeext
3216 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3217 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3218
3219 rm -f conftest.$ac_ext
3220 EXEEXT=$ac_cv_exeext
3221 ac_exeext=$EXEEXT
3222 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3223 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3224 if test "${ac_cv_objext+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233
3234 int
3235 main ()
3236 {
3237
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 rm -f conftest.o conftest.obj
3243 if { (ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compile") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 for ac_file in conftest.o conftest.obj conftest.*; do
3254 test -f "$ac_file" || continue;
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3258 break;;
3259 esac
3260 done
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3266 See \`config.log' for more details." >&5
3267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3268 See \`config.log' for more details." >&2;}
3269 { (exit 1); exit 1; }; }
3270 fi
3271
3272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3273 fi
3274 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3275 echo "${ECHO_T}$ac_cv_objext" >&6; }
3276 OBJEXT=$ac_cv_objext
3277 ac_objext=$OBJEXT
3278 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3279 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3280 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293 #ifndef __GNUC__
3294 choke me
3295 #endif
3296
3297 ;
3298 return 0;
3299 }
3300 _ACEOF
3301 rm -f conftest.$ac_objext
3302 if { (ac_try="$ac_compile"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3318 ac_compiler_gnu=yes
3319 else
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 ac_compiler_gnu=no
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3328
3329 fi
3330 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3331 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3332 GCC=`test $ac_compiler_gnu = yes && echo yes`
3333 ac_test_CFLAGS=${CFLAGS+set}
3334 ac_save_CFLAGS=$CFLAGS
3335 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3336 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_cc_g+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 ac_save_c_werror_flag=$ac_c_werror_flag
3341 ac_c_werror_flag=yes
3342 ac_cv_prog_cc_g=no
3343 CFLAGS="-g"
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } && {
3373 test -z "$ac_c_werror_flag" ||
3374 test ! -s conftest.err
3375 } && test -s conftest.$ac_objext; then
3376 ac_cv_prog_cc_g=yes
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 CFLAGS=""
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388
3389 int
3390 main ()
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
3414 :
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 ac_c_werror_flag=$ac_save_c_werror_flag
3420 CFLAGS="-g"
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (ac_try="$ac_compile"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_cv_prog_cc_g=yes
3454 else
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458
3459 fi
3460
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 fi
3463
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 fi
3466
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 ac_c_werror_flag=$ac_save_c_werror_flag
3469 fi
3470 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3472 if test "$ac_test_CFLAGS" = set; then
3473 CFLAGS=$ac_save_CFLAGS
3474 elif test $ac_cv_prog_cc_g = yes; then
3475 if test "$GCC" = yes; then
3476 CFLAGS="-g -O2"
3477 else
3478 CFLAGS="-g"
3479 fi
3480 else
3481 if test "$GCC" = yes; then
3482 CFLAGS="-O2"
3483 else
3484 CFLAGS=
3485 fi
3486 fi
3487 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3488 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_cc_c89+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 ac_cv_prog_cc_c89=no
3493 ac_save_CC=$CC
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include <stdarg.h>
3501 #include <stdio.h>
3502 #include <sys/types.h>
3503 #include <sys/stat.h>
3504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3505 struct buf { int x; };
3506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3507 static char *e (p, i)
3508 char **p;
3509 int i;
3510 {
3511 return p[i];
3512 }
3513 static char *f (char * (*g) (char **, int), char **p, ...)
3514 {
3515 char *s;
3516 va_list v;
3517 va_start (v,p);
3518 s = g (p, va_arg (v,int));
3519 va_end (v);
3520 return s;
3521 }
3522
3523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3524 function prototypes and stuff, but not '\xHH' hex character constants.
3525 These don't provoke an error unfortunately, instead are silently treated
3526 as 'x'. The following induces an error, until -std is added to get
3527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3528 array size at least. It's necessary to write '\x00'==0 to get something
3529 that's true only with -std. */
3530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3531
3532 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3533 inside strings and character constants. */
3534 #define FOO(x) 'x'
3535 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3536
3537 int test (int i, double x);
3538 struct s1 {int (*f) (int a);};
3539 struct s2 {int (*f) (double a);};
3540 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3541 int argc;
3542 char **argv;
3543 int
3544 main ()
3545 {
3546 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3552 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553 do
3554 CC="$ac_save_CC $ac_arg"
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3572 ac_cv_prog_cc_c89=$ac_arg
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext
3581 test "x$ac_cv_prog_cc_c89" != "xno" && break
3582 done
3583 rm -f conftest.$ac_ext
3584 CC=$ac_save_CC
3585
3586 fi
3587 # AC_CACHE_VAL
3588 case "x$ac_cv_prog_cc_c89" in
3589 x)
3590 { echo "$as_me:$LINENO: result: none needed" >&5
3591 echo "${ECHO_T}none needed" >&6; } ;;
3592 xno)
3593 { echo "$as_me:$LINENO: result: unsupported" >&5
3594 echo "${ECHO_T}unsupported" >&6; } ;;
3595 *)
3596 CC="$CC $ac_cv_prog_cc_c89"
3597 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3598 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3599 esac
3600
3601
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607
3608 depcc="$CC" am_compiler_list=
3609
3610 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3611 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3612 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3616 # We make a subdir and do the tests there. Otherwise we can end up
3617 # making bogus files that we don't know about and never remove. For
3618 # instance it was reported that on HP-UX the gcc test will end up
3619 # making a dummy file named `D' -- because `-MD' means `put the output
3620 # in D'.
3621 mkdir conftest.dir
3622 # Copy depcomp to subdir because otherwise we won't find it if we're
3623 # using a relative directory.
3624 cp "$am_depcomp" conftest.dir
3625 cd conftest.dir
3626 # We will build objects and dependencies in a subdirectory because
3627 # it helps to detect inapplicable dependency modes. For instance
3628 # both Tru64's cc and ICC support -MD to output dependencies as a
3629 # side effect of compilation, but ICC will put the dependencies in
3630 # the current directory while Tru64 will put them in the object
3631 # directory.
3632 mkdir sub
3633
3634 am_cv_CC_dependencies_compiler_type=none
3635 if test "$am_compiler_list" = ""; then
3636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3637 fi
3638 for depmode in $am_compiler_list; do
3639 # Setup a source with many dependencies, because some compilers
3640 # like to wrap large dependency lists on column 80 (with \), and
3641 # we should not choose a depcomp mode which is confused by this.
3642 #
3643 # We need to recreate these files for each test, as the compiler may
3644 # overwrite some of them when testing with obscure command lines.
3645 # This happens at least with the AIX C compiler.
3646 : > sub/conftest.c
3647 for i in 1 2 3 4 5 6; do
3648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3649 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3650 # Solaris 8's {/usr,}/bin/sh.
3651 touch sub/conftst$i.h
3652 done
3653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3654
3655 case $depmode in
3656 nosideeffect)
3657 # after this tag, mechanisms are not by side-effect, so they'll
3658 # only be used when explicitly requested
3659 if test "x$enable_dependency_tracking" = xyes; then
3660 continue
3661 else
3662 break
3663 fi
3664 ;;
3665 none) break ;;
3666 esac
3667 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3668 # mode. It turns out that the SunPro C++ compiler does not properly
3669 # handle `-M -o', and we need to detect this.
3670 if depmode=$depmode \
3671 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3673 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3674 >/dev/null 2>conftest.err &&
3675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3676 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3678 # icc doesn't choke on unknown options, it will just issue warnings
3679 # or remarks (even with -Werror). So we grep stderr for any message
3680 # that says an option was ignored or not supported.
3681 # When given -MP, icc 7.0 and 7.1 complain thusly:
3682 # icc: Command line warning: ignoring option '-M'; no argument required
3683 # The diagnosis changed in icc 8.0:
3684 # icc: Command line remark: option '-MP' not supported
3685 if (grep 'ignoring option' conftest.err ||
3686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3687 am_cv_CC_dependencies_compiler_type=$depmode
3688 break
3689 fi
3690 fi
3691 done
3692
3693 cd ..
3694 rm -rf conftest.dir
3695 else
3696 am_cv_CC_dependencies_compiler_type=none
3697 fi
3698
3699 fi
3700 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3701 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3703
3704
3705
3706 if
3707 test "x$enable_dependency_tracking" != xno \
3708 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3709 am__fastdepCC_TRUE=
3710 am__fastdepCC_FALSE='#'
3711 else
3712 am__fastdepCC_TRUE='#'
3713 am__fastdepCC_FALSE=
3714 fi
3715
3716
3717 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3718 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3719 if test "${lt_cv_path_SED+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 # Loop through the user's path and test for sed and gsed.
3723 # Then use that list of sed's as ones to test for truncation.
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for lt_ac_prog in sed gsed; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3732 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3733 fi
3734 done
3735 done
3736 done
3737 lt_ac_max=0
3738 lt_ac_count=0
3739 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3740 # along with /bin/sed that truncates output.
3741 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3742 test ! -f $lt_ac_sed && continue
3743 cat /dev/null > conftest.in
3744 lt_ac_count=0
3745 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3746 # Check for GNU sed and select it if it is found.
3747 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3748 lt_cv_path_SED=$lt_ac_sed
3749 break
3750 fi
3751 while true; do
3752 cat conftest.in conftest.in >conftest.tmp
3753 mv conftest.tmp conftest.in
3754 cp conftest.in conftest.nl
3755 echo >>conftest.nl
3756 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3757 cmp -s conftest.out conftest.nl || break
3758 # 10000 chars as input seems more than enough
3759 test $lt_ac_count -gt 10 && break
3760 lt_ac_count=`expr $lt_ac_count + 1`
3761 if test $lt_ac_count -gt $lt_ac_max; then
3762 lt_ac_max=$lt_ac_count
3763 lt_cv_path_SED=$lt_ac_sed
3764 fi
3765 done
3766 done
3767
3768 fi
3769
3770 SED=$lt_cv_path_SED
3771 { echo "$as_me:$LINENO: result: $SED" >&5
3772 echo "${ECHO_T}$SED" >&6; }
3773
3774 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3775 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3776 if test "${ac_cv_path_GREP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 # Extract the first word of "grep ggrep" to use in msg output
3780 if test -z "$GREP"; then
3781 set dummy grep ggrep; ac_prog_name=$2
3782 if test "${ac_cv_path_GREP+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 ac_path_GREP_found=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in grep ggrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3796 # Check for GNU ac_path_GREP and select it if it is found.
3797 # Check for GNU $ac_path_GREP
3798 case `"$ac_path_GREP" --version 2>&1` in
3799 *GNU*)
3800 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3801 *)
3802 ac_count=0
3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 while :
3805 do
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 echo 'GREP' >> "conftest.nl"
3810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812 ac_count=`expr $ac_count + 1`
3813 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_GREP="$ac_path_GREP"
3816 ac_path_GREP_max=$ac_count
3817 fi
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3820 done
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822 esac
3823
3824
3825 $ac_path_GREP_found && break 3
3826 done
3827 done
3828
3829 done
3830 IFS=$as_save_IFS
3831
3832
3833 fi
3834
3835 GREP="$ac_cv_path_GREP"
3836 if test -z "$GREP"; then
3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839 { (exit 1); exit 1; }; }
3840 fi
3841
3842 else
3843 ac_cv_path_GREP=$GREP
3844 fi
3845
3846
3847 fi
3848 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3849 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3850 GREP="$ac_cv_path_GREP"
3851
3852
3853 { echo "$as_me:$LINENO: checking for egrep" >&5
3854 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3855 if test "${ac_cv_path_EGREP+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3859 then ac_cv_path_EGREP="$GREP -E"
3860 else
3861 # Extract the first word of "egrep" to use in msg output
3862 if test -z "$EGREP"; then
3863 set dummy egrep; ac_prog_name=$2
3864 if test "${ac_cv_path_EGREP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 ac_path_EGREP_found=false
3868 # Loop through the user's path and test for each of PROGNAME-LIST
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871 do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_prog in egrep; do
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3877 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3878 # Check for GNU ac_path_EGREP and select it if it is found.
3879 # Check for GNU $ac_path_EGREP
3880 case `"$ac_path_EGREP" --version 2>&1` in
3881 *GNU*)
3882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3883 *)
3884 ac_count=0
3885 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3886 while :
3887 do
3888 cat "conftest.in" "conftest.in" >"conftest.tmp"
3889 mv "conftest.tmp" "conftest.in"
3890 cp "conftest.in" "conftest.nl"
3891 echo 'EGREP' >> "conftest.nl"
3892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894 ac_count=`expr $ac_count + 1`
3895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3896 # Best one so far, save it but keep looking for a better one
3897 ac_cv_path_EGREP="$ac_path_EGREP"
3898 ac_path_EGREP_max=$ac_count
3899 fi
3900 # 10*(2^10) chars as input seems more than enough
3901 test $ac_count -gt 10 && break
3902 done
3903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904 esac
3905
3906
3907 $ac_path_EGREP_found && break 3
3908 done
3909 done
3910
3911 done
3912 IFS=$as_save_IFS
3913
3914
3915 fi
3916
3917 EGREP="$ac_cv_path_EGREP"
3918 if test -z "$EGREP"; then
3919 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921 { (exit 1); exit 1; }; }
3922 fi
3923
3924 else
3925 ac_cv_path_EGREP=$EGREP
3926 fi
3927
3928
3929 fi
3930 fi
3931 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3932 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3933 EGREP="$ac_cv_path_EGREP"
3934
3935
3936
3937 # Check whether --with-gnu-ld was given.
3938 if test "${with_gnu_ld+set}" = set; then
3939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3940 else
3941 with_gnu_ld=no
3942 fi
3943
3944 ac_prog=ld
3945 if test "$GCC" = yes; then
3946 # Check if gcc -print-prog-name=ld gives a path.
3947 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3948 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3949 case $host in
3950 *-*-mingw*)
3951 # gcc leaves a trailing carriage return which upsets mingw
3952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3953 *)
3954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3955 esac
3956 case $ac_prog in
3957 # Accept absolute paths.
3958 [\\/]* | ?:[\\/]*)
3959 re_direlt='/[^/][^/]*/\.\./'
3960 # Canonicalize the pathname of ld
3961 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3963 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3964 done
3965 test -z "$LD" && LD="$ac_prog"
3966 ;;
3967 "")
3968 # If it fails, then pretend we aren't using GCC.
3969 ac_prog=ld
3970 ;;
3971 *)
3972 # If it is relative, then search for the first ld in PATH.
3973 with_gnu_ld=unknown
3974 ;;
3975 esac
3976 elif test "$with_gnu_ld" = yes; then
3977 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3979 else
3980 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3982 fi
3983 if test "${lt_cv_path_LD+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 if test -z "$LD"; then
3987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3988 for ac_dir in $PATH; do
3989 IFS="$lt_save_ifs"
3990 test -z "$ac_dir" && ac_dir=.
3991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3992 lt_cv_path_LD="$ac_dir/$ac_prog"
3993 # Check to see if the program is GNU ld. I'd rather use --version,
3994 # but apparently some variants of GNU ld only accept -v.
3995 # Break only if it was the GNU/non-GNU ld that we prefer.
3996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3997 *GNU* | *'with BFD'*)
3998 test "$with_gnu_ld" != no && break
3999 ;;
4000 *)
4001 test "$with_gnu_ld" != yes && break
4002 ;;
4003 esac
4004 fi
4005 done
4006 IFS="$lt_save_ifs"
4007 else
4008 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4009 fi
4010 fi
4011
4012 LD="$lt_cv_path_LD"
4013 if test -n "$LD"; then
4014 { echo "$as_me:$LINENO: result: $LD" >&5
4015 echo "${ECHO_T}$LD" >&6; }
4016 else
4017 { echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6; }
4019 fi
4020 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4021 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4022 { (exit 1); exit 1; }; }
4023 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4024 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4025 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4029 case `$LD -v 2>&1 </dev/null` in
4030 *GNU* | *'with BFD'*)
4031 lt_cv_prog_gnu_ld=yes
4032 ;;
4033 *)
4034 lt_cv_prog_gnu_ld=no
4035 ;;
4036 esac
4037 fi
4038 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4039 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4040 with_gnu_ld=$lt_cv_prog_gnu_ld
4041
4042
4043 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4044 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4045 if test "${lt_cv_ld_reload_flag+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 lt_cv_ld_reload_flag='-r'
4049 fi
4050 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4051 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4052 reload_flag=$lt_cv_ld_reload_flag
4053 case $reload_flag in
4054 "" | " "*) ;;
4055 *) reload_flag=" $reload_flag" ;;
4056 esac
4057 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4058 case $host_os in
4059 darwin*)
4060 if test "$GCC" = yes; then
4061 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4062 else
4063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4064 fi
4065 ;;
4066 esac
4067
4068 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4069 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4070 if test "${lt_cv_path_NM+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if test -n "$NM"; then
4074 # Let the user override the test.
4075 lt_cv_path_NM="$NM"
4076 else
4077 lt_nm_to_check="${ac_tool_prefix}nm"
4078 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4079 lt_nm_to_check="$lt_nm_to_check nm"
4080 fi
4081 for lt_tmp_nm in $lt_nm_to_check; do
4082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4083 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4084 IFS="$lt_save_ifs"
4085 test -z "$ac_dir" && ac_dir=.
4086 tmp_nm="$ac_dir/$lt_tmp_nm"
4087 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4088 # Check to see if the nm accepts a BSD-compat flag.
4089 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4090 # nm: unknown option "B" ignored
4091 # Tru64's nm complains that /dev/null is an invalid object file
4092 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4093 */dev/null* | *'Invalid file or object type'*)
4094 lt_cv_path_NM="$tmp_nm -B"
4095 break
4096 ;;
4097 *)
4098 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4099 */dev/null*)
4100 lt_cv_path_NM="$tmp_nm -p"
4101 break
4102 ;;
4103 *)
4104 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4105 continue # so that we can try to find one that supports BSD flags
4106 ;;
4107 esac
4108 ;;
4109 esac
4110 fi
4111 done
4112 IFS="$lt_save_ifs"
4113 done
4114 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4115 fi
4116 fi
4117 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4118 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4119 NM="$lt_cv_path_NM"
4120
4121 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4122 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4123 LN_S=$as_ln_s
4124 if test "$LN_S" = "ln -s"; then
4125 { echo "$as_me:$LINENO: result: yes" >&5
4126 echo "${ECHO_T}yes" >&6; }
4127 else
4128 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4129 echo "${ECHO_T}no, using $LN_S" >&6; }
4130 fi
4131
4132 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4133 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4134 if test "${lt_cv_deplibs_check_method+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 lt_cv_file_magic_cmd='$MAGIC_CMD'
4138 lt_cv_file_magic_test_file=
4139 lt_cv_deplibs_check_method='unknown'
4140 # Need to set the preceding variable on all platforms that support
4141 # interlibrary dependencies.
4142 # 'none' -- dependencies not supported.
4143 # `unknown' -- same as none, but documents that we really don't know.
4144 # 'pass_all' -- all dependencies passed with no checks.
4145 # 'test_compile' -- check by making test program.
4146 # 'file_magic [[regex]]' -- check by looking for files in library path
4147 # which responds to the $file_magic_cmd with a given extended regex.
4148 # If you have `file' or equivalent on your system and you're not sure
4149 # whether `pass_all' will *always* work, you probably want this one.
4150
4151 case $host_os in
4152 aix4* | aix5*)
4153 lt_cv_deplibs_check_method=pass_all
4154 ;;
4155
4156 beos*)
4157 lt_cv_deplibs_check_method=pass_all
4158 ;;
4159
4160 bsdi[45]*)
4161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4162 lt_cv_file_magic_cmd='/usr/bin/file -L'
4163 lt_cv_file_magic_test_file=/shlib/libc.so
4164 ;;
4165
4166 cygwin*)
4167 # func_win32_libid is a shell function defined in ltmain.sh
4168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4169 lt_cv_file_magic_cmd='func_win32_libid'
4170 ;;
4171
4172 mingw* | pw32*)
4173 # Base MSYS/MinGW do not provide the 'file' command needed by
4174 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4175 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4176 lt_cv_file_magic_cmd='$OBJDUMP -f'
4177 ;;
4178
4179 darwin* | rhapsody*)
4180 lt_cv_deplibs_check_method=pass_all
4181 ;;
4182
4183 freebsd* | dragonfly*)
4184 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4185 case $host_cpu in
4186 i*86 )
4187 # Not sure whether the presence of OpenBSD here was a mistake.
4188 # Let's accept both of them until this is cleared up.
4189 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4190 lt_cv_file_magic_cmd=/usr/bin/file
4191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4192 ;;
4193 esac
4194 else
4195 lt_cv_deplibs_check_method=pass_all
4196 fi
4197 ;;
4198
4199 gnu*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203 hpux10.20* | hpux11*)
4204 lt_cv_file_magic_cmd=/usr/bin/file
4205 case $host_cpu in
4206 ia64*)
4207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4208 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4209 ;;
4210 hppa*64*)
4211 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]'
4212 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4213 ;;
4214 *)
4215 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4216 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4217 ;;
4218 esac
4219 ;;
4220
4221 interix3*)
4222 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4224 ;;
4225
4226 irix5* | irix6* | nonstopux*)
4227 case $LD in
4228 *-32|*"-32 ") libmagic=32-bit;;
4229 *-n32|*"-n32 ") libmagic=N32;;
4230 *-64|*"-64 ") libmagic=64-bit;;
4231 *) libmagic=never-match;;
4232 esac
4233 lt_cv_deplibs_check_method=pass_all
4234 ;;
4235
4236 # This must be Linux ELF.
4237 linux* | k*bsd*-gnu)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
4240
4241 netbsd* | netbsdelf*-gnu)
4242 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4244 else
4245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4246 fi
4247 ;;
4248
4249 newos6*)
4250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4251 lt_cv_file_magic_cmd=/usr/bin/file
4252 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4253 ;;
4254
4255 nto-qnx*)
4256 lt_cv_deplibs_check_method=unknown
4257 ;;
4258
4259 openbsd*)
4260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4262 else
4263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4264 fi
4265 ;;
4266
4267 osf3* | osf4* | osf5*)
4268 lt_cv_deplibs_check_method=pass_all
4269 ;;
4270
4271 solaris*)
4272 lt_cv_deplibs_check_method=pass_all
4273 ;;
4274
4275 sysv4 | sysv4.3*)
4276 case $host_vendor in
4277 motorola)
4278 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]'
4279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4280 ;;
4281 ncr)
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284 sequent)
4285 lt_cv_file_magic_cmd='/bin/file'
4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4287 ;;
4288 sni)
4289 lt_cv_file_magic_cmd='/bin/file'
4290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4291 lt_cv_file_magic_test_file=/lib/libc.so
4292 ;;
4293 siemens)
4294 lt_cv_deplibs_check_method=pass_all
4295 ;;
4296 pc)
4297 lt_cv_deplibs_check_method=pass_all
4298 ;;
4299 esac
4300 ;;
4301
4302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4303 lt_cv_deplibs_check_method=pass_all
4304 ;;
4305 esac
4306
4307 fi
4308 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4309 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4310 file_magic_cmd=$lt_cv_file_magic_cmd
4311 deplibs_check_method=$lt_cv_deplibs_check_method
4312 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4313
4314
4315
4316
4317 # If no C compiler was specified, use CC.
4318 LTCC=${LTCC-"$CC"}
4319
4320 # If no C compiler flags were specified, use CFLAGS.
4321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4322
4323 # Allow CC to be a program name with arguments.
4324 compiler=$CC
4325
4326
4327 # Check whether --enable-libtool-lock was given.
4328 if test "${enable_libtool_lock+set}" = set; then
4329 enableval=$enable_libtool_lock;
4330 fi
4331
4332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4333
4334 # Some flags need to be propagated to the compiler or linker for good
4335 # libtool support.
4336 case $host in
4337 ia64-*-hpux*)
4338 # Find out which ABI we are using.
4339 echo 'int i;' > conftest.$ac_ext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; then
4345 case `/usr/bin/file conftest.$ac_objext` in
4346 *ELF-32*)
4347 HPUX_IA64_MODE="32"
4348 ;;
4349 *ELF-64*)
4350 HPUX_IA64_MODE="64"
4351 ;;
4352 esac
4353 fi
4354 rm -rf conftest*
4355 ;;
4356 *-*-irix6*)
4357 # Find out which ABI we are using.
4358 echo '#line 4358 "configure"' > conftest.$ac_ext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; then
4364 if test "$lt_cv_prog_gnu_ld" = yes; then
4365 case `/usr/bin/file conftest.$ac_objext` in
4366 *32-bit*)
4367 LD="${LD-ld} -melf32bsmip"
4368 ;;
4369 *N32*)
4370 LD="${LD-ld} -melf32bmipn32"
4371 ;;
4372 *64-bit*)
4373 LD="${LD-ld} -melf64bmip"
4374 ;;
4375 esac
4376 else
4377 case `/usr/bin/file conftest.$ac_objext` in
4378 *32-bit*)
4379 LD="${LD-ld} -32"
4380 ;;
4381 *N32*)
4382 LD="${LD-ld} -n32"
4383 ;;
4384 *64-bit*)
4385 LD="${LD-ld} -64"
4386 ;;
4387 esac
4388 fi
4389 fi
4390 rm -rf conftest*
4391 ;;
4392
4393 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4394 # Find out which ABI we are using.
4395 echo 'int i;' > conftest.$ac_ext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; then
4401 case `/usr/bin/file conftest.o` in
4402 *32-bit*)
4403 case $host in
4404 x86_64-*linux*)
4405 LD="${LD-ld} -m elf_i386"
4406 ;;
4407 ppc64-*linux*|powerpc64-*linux*)
4408 LD="${LD-ld} -m elf32ppclinux"
4409 ;;
4410 s390x-*linux*)
4411 LD="${LD-ld} -m elf_s390"
4412 ;;
4413 sparc64-*linux*)
4414 LD="${LD-ld} -m elf32_sparc"
4415 ;;
4416 esac
4417 ;;
4418 *64-bit*)
4419 case $host in
4420 x86_64-*linux*)
4421 LD="${LD-ld} -m elf_x86_64"
4422 ;;
4423 ppc*-*linux*|powerpc*-*linux*)
4424 LD="${LD-ld} -m elf64ppc"
4425 ;;
4426 s390*-*linux*)
4427 LD="${LD-ld} -m elf64_s390"
4428 ;;
4429 sparc*-*linux*)
4430 LD="${LD-ld} -m elf64_sparc"
4431 ;;
4432 esac
4433 ;;
4434 esac
4435 fi
4436 rm -rf conftest*
4437 ;;
4438
4439 *-*-sco3.2v5*)
4440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4441 SAVE_CFLAGS="$CFLAGS"
4442 CFLAGS="$CFLAGS -belf"
4443 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4444 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4445 if test "${lt_cv_cc_needs_belf+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460
4461 int
4462 main ()
4463 {
4464
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (ac_try="$ac_link"
4471 case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_link") 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } && {
4483 test -z "$ac_c_werror_flag" ||
4484 test ! -s conftest.err
4485 } && test -s conftest$ac_exeext &&
4486 $as_test_x conftest$ac_exeext; then
4487 lt_cv_cc_needs_belf=yes
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 lt_cv_cc_needs_belf=no
4493 fi
4494
4495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4496 conftest$ac_exeext conftest.$ac_ext
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502
4503 fi
4504 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4505 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4506 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4507 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4508 CFLAGS="$SAVE_CFLAGS"
4509 fi
4510 ;;
4511 sparc*-*solaris*)
4512 # Find out which ABI we are using.
4513 echo 'int i;' > conftest.$ac_ext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; then
4519 case `/usr/bin/file conftest.o` in
4520 *64-bit*)
4521 case $lt_cv_prog_gnu_ld in
4522 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4523 *) LD="${LD-ld} -64" ;;
4524 esac
4525 ;;
4526 esac
4527 fi
4528 rm -rf conftest*
4529 ;;
4530
4531
4532 esac
4533
4534 need_locks="$enable_libtool_lock"
4535
4536
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4543 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4544 # On Suns, sometimes $CPP names a directory.
4545 if test -n "$CPP" && test -d "$CPP"; then
4546 CPP=
4547 fi
4548 if test -z "$CPP"; then
4549 if test "${ac_cv_prog_CPP+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 # Double quotes because CPP needs to be expanded
4553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4554 do
4555 ac_preproc_ok=false
4556 for ac_c_preproc_warn_flag in '' yes
4557 do
4558 # Use a header file that comes with gcc, so configuring glibc
4559 # with a fresh cross-compiler works.
4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4561 # <limits.h> exists even on freestanding compilers.
4562 # On the NeXT, cc -E runs the code through the compiler's parser,
4563 # not just through cpp. "Syntax error" is here to catch this case.
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #ifdef __STDC__
4571 # include <limits.h>
4572 #else
4573 # include <assert.h>
4574 #endif
4575 Syntax error
4576 _ACEOF
4577 if { (ac_try="$ac_cpp conftest.$ac_ext"
4578 case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } >/dev/null && {
4590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4591 test ! -s conftest.err
4592 }; then
4593 :
4594 else
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 # Broken: fails on valid input.
4599 continue
4600 fi
4601
4602 rm -f conftest.err conftest.$ac_ext
4603
4604 # OK, works on sane cases. Now check whether nonexistent headers
4605 # can be detected and how.
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 #include <ac_nonexistent.h>
4613 _ACEOF
4614 if { (ac_try="$ac_cpp conftest.$ac_ext"
4615 case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } >/dev/null && {
4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4628 test ! -s conftest.err
4629 }; then
4630 # Broken: success on invalid input.
4631 continue
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 # Passes both tests.
4637 ac_preproc_ok=:
4638 break
4639 fi
4640
4641 rm -f conftest.err conftest.$ac_ext
4642
4643 done
4644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4645 rm -f conftest.err conftest.$ac_ext
4646 if $ac_preproc_ok; then
4647 break
4648 fi
4649
4650 done
4651 ac_cv_prog_CPP=$CPP
4652
4653 fi
4654 CPP=$ac_cv_prog_CPP
4655 else
4656 ac_cv_prog_CPP=$CPP
4657 fi
4658 { echo "$as_me:$LINENO: result: $CPP" >&5
4659 echo "${ECHO_T}$CPP" >&6; }
4660 ac_preproc_ok=false
4661 for ac_c_preproc_warn_flag in '' yes
4662 do
4663 # Use a header file that comes with gcc, so configuring glibc
4664 # with a fresh cross-compiler works.
4665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4666 # <limits.h> exists even on freestanding compilers.
4667 # On the NeXT, cc -E runs the code through the compiler's parser,
4668 # not just through cpp. "Syntax error" is here to catch this case.
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #ifdef __STDC__
4676 # include <limits.h>
4677 #else
4678 # include <assert.h>
4679 #endif
4680 Syntax error
4681 _ACEOF
4682 if { (ac_try="$ac_cpp conftest.$ac_ext"
4683 case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } >/dev/null && {
4695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4696 test ! -s conftest.err
4697 }; then
4698 :
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 # Broken: fails on valid input.
4704 continue
4705 fi
4706
4707 rm -f conftest.err conftest.$ac_ext
4708
4709 # OK, works on sane cases. Now check whether nonexistent headers
4710 # can be detected and how.
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 #include <ac_nonexistent.h>
4718 _ACEOF
4719 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 }; then
4735 # Broken: success on invalid input.
4736 continue
4737 else
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 # Passes both tests.
4742 ac_preproc_ok=:
4743 break
4744 fi
4745
4746 rm -f conftest.err conftest.$ac_ext
4747
4748 done
4749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750 rm -f conftest.err conftest.$ac_ext
4751 if $ac_preproc_ok; then
4752 :
4753 else
4754 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4757 See \`config.log' for more details." >&2;}
4758 { (exit 1); exit 1; }; }
4759 fi
4760
4761 ac_ext=c
4762 ac_cpp='$CPP $CPPFLAGS'
4763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766
4767
4768 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4770 if test "${ac_cv_header_stdc+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <stdlib.h>
4780 #include <stdarg.h>
4781 #include <string.h>
4782 #include <float.h>
4783
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (ac_try="$ac_compile"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_compile") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && {
4806 test -z "$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 } && test -s conftest.$ac_objext; then
4809 ac_cv_header_stdc=yes
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 ac_cv_header_stdc=no
4815 fi
4816
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818
4819 if test $ac_cv_header_stdc = yes; then
4820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <string.h>
4828
4829 _ACEOF
4830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831 $EGREP "memchr" >/dev/null 2>&1; then
4832 :
4833 else
4834 ac_cv_header_stdc=no
4835 fi
4836 rm -f conftest*
4837
4838 fi
4839
4840 if test $ac_cv_header_stdc = yes; then
4841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <stdlib.h>
4849
4850 _ACEOF
4851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4852 $EGREP "free" >/dev/null 2>&1; then
4853 :
4854 else
4855 ac_cv_header_stdc=no
4856 fi
4857 rm -f conftest*
4858
4859 fi
4860
4861 if test $ac_cv_header_stdc = yes; then
4862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4863 if test "$cross_compiling" = yes; then
4864 :
4865 else
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <ctype.h>
4873 #include <stdlib.h>
4874 #if ((' ' & 0x0FF) == 0x020)
4875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4877 #else
4878 # define ISLOWER(c) \
4879 (('a' <= (c) && (c) <= 'i') \
4880 || ('j' <= (c) && (c) <= 'r') \
4881 || ('s' <= (c) && (c) <= 'z'))
4882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4883 #endif
4884
4885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4886 int
4887 main ()
4888 {
4889 int i;
4890 for (i = 0; i < 256; i++)
4891 if (XOR (islower (i), ISLOWER (i))
4892 || toupper (i) != TOUPPER (i))
4893 return 2;
4894 return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest$ac_exeext
4898 if { (ac_try="$ac_link"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_link") 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4908 { (case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_try") 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 :
4918 else
4919 echo "$as_me: program exited with status $ac_status" >&5
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ( exit $ac_status )
4924 ac_cv_header_stdc=no
4925 fi
4926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4927 fi
4928
4929
4930 fi
4931 fi
4932 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4933 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4934 if test $ac_cv_header_stdc = yes; then
4935
4936 cat >>confdefs.h <<\_ACEOF
4937 #define STDC_HEADERS 1
4938 _ACEOF
4939
4940 fi
4941
4942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4953 inttypes.h stdint.h unistd.h
4954 do
4955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 $ac_includes_default
4968
4969 #include <$ac_header>
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_compile") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest.$ac_objext; then
4988 eval "$as_ac_Header=yes"
4989 else
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 eval "$as_ac_Header=no"
4994 fi
4995
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 ac_res=`eval echo '${'$as_ac_Header'}'`
4999 { echo "$as_me:$LINENO: result: $ac_res" >&5
5000 echo "${ECHO_T}$ac_res" >&6; }
5001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5002 cat >>confdefs.h <<_ACEOF
5003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5004 _ACEOF
5005
5006 fi
5007
5008 done
5009
5010
5011
5012 for ac_header in dlfcn.h
5013 do
5014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 fi
5021 ac_res=`eval echo '${'$as_ac_Header'}'`
5022 { echo "$as_me:$LINENO: result: $ac_res" >&5
5023 echo "${ECHO_T}$ac_res" >&6; }
5024 else
5025 # Is the header compilable?
5026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 $ac_includes_default
5035 #include <$ac_header>
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.$ac_objext; then
5054 ac_header_compiler=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 ac_header_compiler=no
5060 fi
5061
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5064 echo "${ECHO_T}$ac_header_compiler" >&6; }
5065
5066 # Is the header present?
5067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 #include <$ac_header>
5076 _ACEOF
5077 if { (ac_try="$ac_cpp conftest.$ac_ext"
5078 case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null && {
5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 }; then
5093 ac_header_preproc=yes
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 ac_header_preproc=no
5099 fi
5100
5101 rm -f conftest.err conftest.$ac_ext
5102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 echo "${ECHO_T}$ac_header_preproc" >&6; }
5104
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5107 yes:no: )
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112 ac_header_preproc=yes
5113 ;;
5114 no:yes:* )
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5127 ( cat <<\_ASBOX
5128 ## ---------------------------------------------------------------------- ##
5129 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5130 ## ---------------------------------------------------------------------- ##
5131 _ASBOX
5132 ) | sed "s/^/$as_me: WARNING: /" >&2
5133 ;;
5134 esac
5135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 eval "$as_ac_Header=\$ac_header_preproc"
5141 fi
5142 ac_res=`eval echo '${'$as_ac_Header'}'`
5143 { echo "$as_me:$LINENO: result: $ac_res" >&5
5144 echo "${ECHO_T}$ac_res" >&6; }
5145
5146 fi
5147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148 cat >>confdefs.h <<_ACEOF
5149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5150 _ACEOF
5151
5152 fi
5153
5154 done
5155
5156 ac_ext=cpp
5157 ac_cpp='$CXXCPP $CPPFLAGS'
5158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161 if test -z "$CXX"; then
5162 if test -n "$CCC"; then
5163 CXX=$CCC
5164 else
5165 if test -n "$ac_tool_prefix"; then
5166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167 do
5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_prog_CXX+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 if test -n "$CXX"; then
5176 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189 done
5190 done
5191 IFS=$as_save_IFS
5192
5193 fi
5194 fi
5195 CXX=$ac_cv_prog_CXX
5196 if test -n "$CXX"; then
5197 { echo "$as_me:$LINENO: result: $CXX" >&5
5198 echo "${ECHO_T}$CXX" >&6; }
5199 else
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5202 fi
5203
5204
5205 test -n "$CXX" && break
5206 done
5207 fi
5208 if test -z "$CXX"; then
5209 ac_ct_CXX=$CXX
5210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 do
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 if test -n "$ac_ct_CXX"; then
5220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_CXX="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5240 if test -n "$ac_ct_CXX"; then
5241 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5242 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5243 else
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5246 fi
5247
5248
5249 test -n "$ac_ct_CXX" && break
5250 done
5251
5252 if test "x$ac_ct_CXX" = x; then
5253 CXX="g++"
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5258 whose name does not start with the host triplet. If you think this
5259 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5260 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5261 whose name does not start with the host triplet. If you think this
5262 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5263 ac_tool_warned=yes ;;
5264 esac
5265 CXX=$ac_ct_CXX
5266 fi
5267 fi
5268
5269 fi
5270 fi
5271 # Provide some information about the compiler.
5272 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5273 ac_compiler=`set X $ac_compile; echo $2`
5274 { (ac_try="$ac_compiler --version >&5"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compiler --version >&5") 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }
5284 { (ac_try="$ac_compiler -v >&5"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compiler -v >&5") 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294 { (ac_try="$ac_compiler -V >&5"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compiler -V >&5") 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5304
5305 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5306 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5307 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316
5317 int
5318 main ()
5319 {
5320 #ifndef __GNUC__
5321 choke me
5322 #endif
5323
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_cxx_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5345 ac_compiler_gnu=yes
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 ac_compiler_gnu=no
5351 fi
5352
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5355
5356 fi
5357 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5358 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5359 GXX=`test $ac_compiler_gnu = yes && echo yes`
5360 ac_test_CXXFLAGS=${CXXFLAGS+set}
5361 ac_save_CXXFLAGS=$CXXFLAGS
5362 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5363 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5364 if test "${ac_cv_prog_cxx_g+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5368 ac_cxx_werror_flag=yes
5369 ac_cv_prog_cxx_g=no
5370 CXXFLAGS="-g"
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h. */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377
5378 int
5379 main ()
5380 {
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5388 case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_cxx_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest.$ac_objext; then
5403 ac_cv_prog_cxx_g=yes
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 CXXFLAGS=""
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h. */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415
5416 int
5417 main ()
5418 {
5419
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_cxx_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5441 :
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5447 CXXFLAGS="-g"
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454
5455 int
5456 main ()
5457 {
5458
5459 ;
5460 return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_cxx_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_cv_prog_cxx_g=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 fi
5490
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 fi
5493
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5496 fi
5497 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5498 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5499 if test "$ac_test_CXXFLAGS" = set; then
5500 CXXFLAGS=$ac_save_CXXFLAGS
5501 elif test $ac_cv_prog_cxx_g = yes; then
5502 if test "$GXX" = yes; then
5503 CXXFLAGS="-g -O2"
5504 else
5505 CXXFLAGS="-g"
5506 fi
5507 else
5508 if test "$GXX" = yes; then
5509 CXXFLAGS="-O2"
5510 else
5511 CXXFLAGS=
5512 fi
5513 fi
5514 ac_ext=cpp
5515 ac_cpp='$CXXCPP $CPPFLAGS'
5516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5519
5520 depcc="$CXX" am_compiler_list=
5521
5522 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5523 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5524 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5528 # We make a subdir and do the tests there. Otherwise we can end up
5529 # making bogus files that we don't know about and never remove. For
5530 # instance it was reported that on HP-UX the gcc test will end up
5531 # making a dummy file named `D' -- because `-MD' means `put the output
5532 # in D'.
5533 mkdir conftest.dir
5534 # Copy depcomp to subdir because otherwise we won't find it if we're
5535 # using a relative directory.
5536 cp "$am_depcomp" conftest.dir
5537 cd conftest.dir
5538 # We will build objects and dependencies in a subdirectory because
5539 # it helps to detect inapplicable dependency modes. For instance
5540 # both Tru64's cc and ICC support -MD to output dependencies as a
5541 # side effect of compilation, but ICC will put the dependencies in
5542 # the current directory while Tru64 will put them in the object
5543 # directory.
5544 mkdir sub
5545
5546 am_cv_CXX_dependencies_compiler_type=none
5547 if test "$am_compiler_list" = ""; then
5548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5549 fi
5550 for depmode in $am_compiler_list; do
5551 # Setup a source with many dependencies, because some compilers
5552 # like to wrap large dependency lists on column 80 (with \), and
5553 # we should not choose a depcomp mode which is confused by this.
5554 #
5555 # We need to recreate these files for each test, as the compiler may
5556 # overwrite some of them when testing with obscure command lines.
5557 # This happens at least with the AIX C compiler.
5558 : > sub/conftest.c
5559 for i in 1 2 3 4 5 6; do
5560 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5561 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5562 # Solaris 8's {/usr,}/bin/sh.
5563 touch sub/conftst$i.h
5564 done
5565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5566
5567 case $depmode in
5568 nosideeffect)
5569 # after this tag, mechanisms are not by side-effect, so they'll
5570 # only be used when explicitly requested
5571 if test "x$enable_dependency_tracking" = xyes; then
5572 continue
5573 else
5574 break
5575 fi
5576 ;;
5577 none) break ;;
5578 esac
5579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5580 # mode. It turns out that the SunPro C++ compiler does not properly
5581 # handle `-M -o', and we need to detect this.
5582 if depmode=$depmode \
5583 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5585 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5586 >/dev/null 2>conftest.err &&
5587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5588 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5590 # icc doesn't choke on unknown options, it will just issue warnings
5591 # or remarks (even with -Werror). So we grep stderr for any message
5592 # that says an option was ignored or not supported.
5593 # When given -MP, icc 7.0 and 7.1 complain thusly:
5594 # icc: Command line warning: ignoring option '-M'; no argument required
5595 # The diagnosis changed in icc 8.0:
5596 # icc: Command line remark: option '-MP' not supported
5597 if (grep 'ignoring option' conftest.err ||
5598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5599 am_cv_CXX_dependencies_compiler_type=$depmode
5600 break
5601 fi
5602 fi
5603 done
5604
5605 cd ..
5606 rm -rf conftest.dir
5607 else
5608 am_cv_CXX_dependencies_compiler_type=none
5609 fi
5610
5611 fi
5612 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5613 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5614 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5615
5616
5617
5618 if
5619 test "x$enable_dependency_tracking" != xno \
5620 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5621 am__fastdepCXX_TRUE=
5622 am__fastdepCXX_FALSE='#'
5623 else
5624 am__fastdepCXX_TRUE='#'
5625 am__fastdepCXX_FALSE=
5626 fi
5627
5628
5629
5630
5631 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5632 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5633 (test "X$CXX" != "Xg++"))) ; then
5634 ac_ext=cpp
5635 ac_cpp='$CXXCPP $CPPFLAGS'
5636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5639 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5640 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5641 if test -z "$CXXCPP"; then
5642 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 # Double quotes because CXXCPP needs to be expanded
5646 for CXXCPP in "$CXX -E" "/lib/cpp"
5647 do
5648 ac_preproc_ok=false
5649 for ac_cxx_preproc_warn_flag in '' yes
5650 do
5651 # Use a header file that comes with gcc, so configuring glibc
5652 # with a fresh cross-compiler works.
5653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654 # <limits.h> exists even on freestanding compilers.
5655 # On the NeXT, cc -E runs the code through the compiler's parser,
5656 # not just through cpp. "Syntax error" is here to catch this case.
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #ifdef __STDC__
5664 # include <limits.h>
5665 #else
5666 # include <assert.h>
5667 #endif
5668 Syntax error
5669 _ACEOF
5670 if { (ac_try="$ac_cpp conftest.$ac_ext"
5671 case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } >/dev/null && {
5683 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5684 test ! -s conftest.err
5685 }; then
5686 :
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 # Broken: fails on valid input.
5692 continue
5693 fi
5694
5695 rm -f conftest.err conftest.$ac_ext
5696
5697 # OK, works on sane cases. Now check whether nonexistent headers
5698 # can be detected and how.
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <ac_nonexistent.h>
5706 _ACEOF
5707 if { (ac_try="$ac_cpp conftest.$ac_ext"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
5723 # Broken: success on invalid input.
5724 continue
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5728
5729 # Passes both tests.
5730 ac_preproc_ok=:
5731 break
5732 fi
5733
5734 rm -f conftest.err conftest.$ac_ext
5735
5736 done
5737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5738 rm -f conftest.err conftest.$ac_ext
5739 if $ac_preproc_ok; then
5740 break
5741 fi
5742
5743 done
5744 ac_cv_prog_CXXCPP=$CXXCPP
5745
5746 fi
5747 CXXCPP=$ac_cv_prog_CXXCPP
5748 else
5749 ac_cv_prog_CXXCPP=$CXXCPP
5750 fi
5751 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5752 echo "${ECHO_T}$CXXCPP" >&6; }
5753 ac_preproc_ok=false
5754 for ac_cxx_preproc_warn_flag in '' yes
5755 do
5756 # Use a header file that comes with gcc, so configuring glibc
5757 # with a fresh cross-compiler works.
5758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759 # <limits.h> exists even on freestanding compilers.
5760 # On the NeXT, cc -E runs the code through the compiler's parser,
5761 # not just through cpp. "Syntax error" is here to catch this case.
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #ifdef __STDC__
5769 # include <limits.h>
5770 #else
5771 # include <assert.h>
5772 #endif
5773 Syntax error
5774 _ACEOF
5775 if { (ac_try="$ac_cpp conftest.$ac_ext"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } >/dev/null && {
5788 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789 test ! -s conftest.err
5790 }; then
5791 :
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 # Broken: fails on valid input.
5797 continue
5798 fi
5799
5800 rm -f conftest.err conftest.$ac_ext
5801
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <ac_nonexistent.h>
5811 _ACEOF
5812 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev/null && {
5825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5826 test ! -s conftest.err
5827 }; then
5828 # Broken: success on invalid input.
5829 continue
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 # Passes both tests.
5835 ac_preproc_ok=:
5836 break
5837 fi
5838
5839 rm -f conftest.err conftest.$ac_ext
5840
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then
5845 :
5846 else
5847 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5848 See \`config.log' for more details." >&5
5849 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5850 See \`config.log' for more details." >&2;}
5851 { (exit 1); exit 1; }; }
5852 fi
5853
5854 ac_ext=cpp
5855 ac_cpp='$CXXCPP $CPPFLAGS'
5856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5859
5860 fi
5861
5862
5863 ac_ext=f
5864 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5865 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5867 if test -n "$ac_tool_prefix"; then
5868 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
5869 do
5870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874 if test "${ac_cv_prog_F77+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 if test -n "$F77"; then
5878 ac_cv_prog_F77="$F77" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 F77=$ac_cv_prog_F77
5898 if test -n "$F77"; then
5899 { echo "$as_me:$LINENO: result: $F77" >&5
5900 echo "${ECHO_T}$F77" >&6; }
5901 else
5902 { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5904 fi
5905
5906
5907 test -n "$F77" && break
5908 done
5909 fi
5910 if test -z "$F77"; then
5911 ac_ct_F77=$F77
5912 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
5913 do
5914 # Extract the first word of "$ac_prog", so it can be a program name with args.
5915 set dummy $ac_prog; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 if test -n "$ac_ct_F77"; then
5922 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_ac_ct_F77="$ac_prog"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5942 if test -n "$ac_ct_F77"; then
5943 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5944 echo "${ECHO_T}$ac_ct_F77" >&6; }
5945 else
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951 test -n "$ac_ct_F77" && break
5952 done
5953
5954 if test "x$ac_ct_F77" = x; then
5955 F77=""
5956 else
5957 case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5960 whose name does not start with the host triplet. If you think this
5961 configuration is useful to you, please write to autoconf@gnu.org." >&5
5962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5963 whose name does not start with the host triplet. If you think this
5964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5965 ac_tool_warned=yes ;;
5966 esac
5967 F77=$ac_ct_F77
5968 fi
5969 fi
5970
5971
5972 # Provide some information about the compiler.
5973 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5974 ac_compiler=`set X $ac_compile; echo $2`
5975 { (ac_try="$ac_compiler --version >&5"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compiler --version >&5") 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }
5985 { (ac_try="$ac_compiler -v >&5"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_compiler -v >&5") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }
5995 { (ac_try="$ac_compiler -V >&5"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_compiler -V >&5") 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }
6005 rm -f a.out
6006
6007 # If we don't use `.F' as extension, the preprocessor is not run on the
6008 # input file. (Note that this only needs to work for GNU compilers.)
6009 ac_save_ext=$ac_ext
6010 ac_ext=F
6011 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6012 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6013 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 program main
6018 #ifndef __GNUC__
6019 choke me
6020 #endif
6021
6022 end
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_compile") 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && {
6038 test -z "$ac_f77_werror_flag" ||
6039 test ! -s conftest.err
6040 } && test -s conftest.$ac_objext; then
6041 ac_compiler_gnu=yes
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6045
6046 ac_compiler_gnu=no
6047 fi
6048
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6051
6052 fi
6053 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6054 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6055 ac_ext=$ac_save_ext
6056 ac_test_FFLAGS=${FFLAGS+set}
6057 ac_save_FFLAGS=$FFLAGS
6058 FFLAGS=
6059 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6060 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6061 if test "${ac_cv_prog_f77_g+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 FFLAGS=-g
6065 cat >conftest.$ac_ext <<_ACEOF
6066 program main
6067
6068 end
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && {
6084 test -z "$ac_f77_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest.$ac_objext; then
6087 ac_cv_prog_f77_g=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_cv_prog_f77_g=no
6093 fi
6094
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096
6097 fi
6098 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6099 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6100 if test "$ac_test_FFLAGS" = set; then
6101 FFLAGS=$ac_save_FFLAGS
6102 elif test $ac_cv_prog_f77_g = yes; then
6103 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6104 FFLAGS="-g -O2"
6105 else
6106 FFLAGS="-g"
6107 fi
6108 else
6109 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6110 FFLAGS="-O2"
6111 else
6112 FFLAGS=
6113 fi
6114 fi
6115
6116 G77=`test $ac_compiler_gnu = yes && echo yes`
6117 ac_ext=c
6118 ac_cpp='$CPP $CPPFLAGS'
6119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6122
6123
6124
6125 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6126
6127 # find the maximum length of command line arguments
6128 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6129 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6130 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 i=0
6134 teststring="ABCD"
6135
6136 case $build_os in
6137 msdosdjgpp*)
6138 # On DJGPP, this test can blow up pretty badly due to problems in libc
6139 # (any single argument exceeding 2000 bytes causes a buffer overrun
6140 # during glob expansion). Even if it were fixed, the result of this
6141 # check would be larger than it should be.
6142 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6143 ;;
6144
6145 gnu*)
6146 # Under GNU Hurd, this test is not required because there is
6147 # no limit to the length of command line arguments.
6148 # Libtool will interpret -1 as no limit whatsoever
6149 lt_cv_sys_max_cmd_len=-1;
6150 ;;
6151
6152 cygwin* | mingw*)
6153 # On Win9x/ME, this test blows up -- it succeeds, but takes
6154 # about 5 minutes as the teststring grows exponentially.
6155 # Worse, since 9x/ME are not pre-emptively multitasking,
6156 # you end up with a "frozen" computer, even though with patience
6157 # the test eventually succeeds (with a max line length of 256k).
6158 # Instead, let's just punt: use the minimum linelength reported by
6159 # all of the supported platforms: 8192 (on NT/2K/XP).
6160 lt_cv_sys_max_cmd_len=8192;
6161 ;;
6162
6163 amigaos*)
6164 # On AmigaOS with pdksh, this test takes hours, literally.
6165 # So we just punt and use a minimum line length of 8192.
6166 lt_cv_sys_max_cmd_len=8192;
6167 ;;
6168
6169 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6170 # This has been around since 386BSD, at least. Likely further.
6171 if test -x /sbin/sysctl; then
6172 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6173 elif test -x /usr/sbin/sysctl; then
6174 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6175 else
6176 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6177 fi
6178 # And add a safety zone
6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6181 ;;
6182
6183 interix*)
6184 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6185 lt_cv_sys_max_cmd_len=196608
6186 ;;
6187
6188 osf*)
6189 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6190 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6191 # nice to cause kernel panics so lets avoid the loop below.
6192 # First set a reasonable default.
6193 lt_cv_sys_max_cmd_len=16384
6194 #
6195 if test -x /sbin/sysconfig; then
6196 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6197 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6198 esac
6199 fi
6200 ;;
6201 sco3.2v5*)
6202 lt_cv_sys_max_cmd_len=102400
6203 ;;
6204 sysv5* | sco5v6* | sysv4.2uw2*)
6205 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6206 if test -n "$kargmax"; then
6207 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6208 else
6209 lt_cv_sys_max_cmd_len=32768
6210 fi
6211 ;;
6212 *)
6213 # If test is not a shell built-in, we'll probably end up computing a
6214 # maximum length that is only half of the actual maximum length, but
6215 # we can't tell.
6216 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6217 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6218 = "XX$teststring") >/dev/null 2>&1 &&
6219 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6220 lt_cv_sys_max_cmd_len=$new_result &&
6221 test $i != 17 # 1/2 MB should be enough
6222 do
6223 i=`expr $i + 1`
6224 teststring=$teststring$teststring
6225 done
6226 teststring=
6227 # Add a significant safety factor because C++ compilers can tack on massive
6228 # amounts of additional arguments before passing them to the linker.
6229 # It appears as though 1/2 is a usable value.
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6231 ;;
6232 esac
6233
6234 fi
6235
6236 if test -n $lt_cv_sys_max_cmd_len ; then
6237 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6238 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6239 else
6240 { echo "$as_me:$LINENO: result: none" >&5
6241 echo "${ECHO_T}none" >&6; }
6242 fi
6243
6244
6245
6246
6247 # Check for command to grab the raw symbol name followed by C symbol from nm.
6248 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6249 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6250 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253
6254 # These are sane defaults that work on at least a few old systems.
6255 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6256
6257 # Character class describing NM global symbol codes.
6258 symcode='[BCDEGRST]'
6259
6260 # Regexp to match symbols that can be accessed directly from C.
6261 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6262
6263 # Transform an extracted symbol line into a proper C declaration
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6265
6266 # Transform an extracted symbol line into symbol name and symbol address
6267 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'"
6268
6269 # Define system-specific variables.
6270 case $host_os in
6271 aix*)
6272 symcode='[BCDT]'
6273 ;;
6274 cygwin* | mingw* | pw32*)
6275 symcode='[ABCDGISTW]'
6276 ;;
6277 hpux*) # Its linker distinguishes data from code symbols
6278 if test "$host_cpu" = ia64; then
6279 symcode='[ABCDEGRST]'
6280 fi
6281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6282 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'"
6283 ;;
6284 linux* | k*bsd*-gnu)
6285 if test "$host_cpu" = ia64; then
6286 symcode='[ABCDGIRSTW]'
6287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6288 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'"
6289 fi
6290 ;;
6291 irix* | nonstopux*)
6292 symcode='[BCDEGRST]'
6293 ;;
6294 osf*)
6295 symcode='[BCDEGQRST]'
6296 ;;
6297 solaris*)
6298 symcode='[BDRT]'
6299 ;;
6300 sco3.2v5*)
6301 symcode='[DT]'
6302 ;;
6303 sysv4.2uw2*)
6304 symcode='[DT]'
6305 ;;
6306 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6307 symcode='[ABDT]'
6308 ;;
6309 sysv4)
6310 symcode='[DFNSTU]'
6311 ;;
6312 esac
6313
6314 # Handle CRLF in mingw tool chain
6315 opt_cr=
6316 case $build_os in
6317 mingw*)
6318 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6319 ;;
6320 esac
6321
6322 # If we're using GNU nm, then use its standard symbol codes.
6323 case `$NM -V 2>&1` in
6324 *GNU* | *'with BFD'*)
6325 symcode='[ABCDGIRSTW]' ;;
6326 esac
6327
6328 # Try without a prefix undercore, then with it.
6329 for ac_symprfx in "" "_"; do
6330
6331 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6332 symxfrm="\\1 $ac_symprfx\\2 \\2"
6333
6334 # Write the raw and C identifiers.
6335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6336
6337 # Check to see that the pipe works correctly.
6338 pipe_works=no
6339
6340 rm -f conftest*
6341 cat > conftest.$ac_ext <<EOF
6342 #ifdef __cplusplus
6343 extern "C" {
6344 #endif
6345 char nm_test_var;
6346 void nm_test_func(){}
6347 #ifdef __cplusplus
6348 }
6349 #endif
6350 int main(){nm_test_var='a';nm_test_func();return(0);}
6351 EOF
6352
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; then
6358 # Now try to grab the symbols.
6359 nlist=conftest.nm
6360 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6361 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && test -s "$nlist"; then
6365 # Try sorting and uniquifying the output.
6366 if sort "$nlist" | uniq > "$nlist"T; then
6367 mv -f "$nlist"T "$nlist"
6368 else
6369 rm -f "$nlist"T
6370 fi
6371
6372 # Make sure that we snagged all the symbols we need.
6373 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6374 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6375 cat <<EOF > conftest.$ac_ext
6376 #ifdef __cplusplus
6377 extern "C" {
6378 #endif
6379
6380 EOF
6381 # Now generate the symbol file.
6382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6383
6384 cat <<EOF >> conftest.$ac_ext
6385 #if defined (__STDC__) && __STDC__
6386 # define lt_ptr_t void *
6387 #else
6388 # define lt_ptr_t char *
6389 # define const
6390 #endif
6391
6392 /* The mapping between symbol names and symbols. */
6393 const struct {
6394 const char *name;
6395 lt_ptr_t address;
6396 }
6397 lt_preloaded_symbols[] =
6398 {
6399 EOF
6400 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6401 cat <<\EOF >> conftest.$ac_ext
6402 {0, (lt_ptr_t) 0}
6403 };
6404
6405 #ifdef __cplusplus
6406 }
6407 #endif
6408 EOF
6409 # Now try linking the two files.
6410 mv conftest.$ac_objext conftstm.$ac_objext
6411 lt_save_LIBS="$LIBS"
6412 lt_save_CFLAGS="$CFLAGS"
6413 LIBS="conftstm.$ac_objext"
6414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6420 pipe_works=yes
6421 fi
6422 LIBS="$lt_save_LIBS"
6423 CFLAGS="$lt_save_CFLAGS"
6424 else
6425 echo "cannot find nm_test_func in $nlist" >&5
6426 fi
6427 else
6428 echo "cannot find nm_test_var in $nlist" >&5
6429 fi
6430 else
6431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6432 fi
6433 else
6434 echo "$progname: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 fi
6437 rm -f conftest* conftst*
6438
6439 # Do not use the global_symbol_pipe unless it works.
6440 if test "$pipe_works" = yes; then
6441 break
6442 else
6443 lt_cv_sys_global_symbol_pipe=
6444 fi
6445 done
6446
6447 fi
6448
6449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6450 lt_cv_sys_global_symbol_to_cdecl=
6451 fi
6452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6453 { echo "$as_me:$LINENO: result: failed" >&5
6454 echo "${ECHO_T}failed" >&6; }
6455 else
6456 { echo "$as_me:$LINENO: result: ok" >&5
6457 echo "${ECHO_T}ok" >&6; }
6458 fi
6459
6460 { echo "$as_me:$LINENO: checking for objdir" >&5
6461 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6462 if test "${lt_cv_objdir+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 rm -f .libs 2>/dev/null
6466 mkdir .libs 2>/dev/null
6467 if test -d .libs; then
6468 lt_cv_objdir=.libs
6469 else
6470 # MS-DOS does not allow filenames that begin with a dot.
6471 lt_cv_objdir=_libs
6472 fi
6473 rmdir .libs 2>/dev/null
6474 fi
6475 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6476 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6477 objdir=$lt_cv_objdir
6478
6479
6480
6481
6482
6483 case $host_os in
6484 aix3*)
6485 # AIX sometimes has problems with the GCC collect2 program. For some
6486 # reason, if we set the COLLECT_NAMES environment variable, the problems
6487 # vanish in a puff of smoke.
6488 if test "X${COLLECT_NAMES+set}" != Xset; then
6489 COLLECT_NAMES=
6490 export COLLECT_NAMES
6491 fi
6492 ;;
6493 esac
6494
6495 # Sed substitution that helps us do robust quoting. It backslashifies
6496 # metacharacters that are still active within double-quoted strings.
6497 Xsed='sed -e 1s/^X//'
6498 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6499
6500 # Same as above, but do not quote variable references.
6501 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6502
6503 # Sed substitution to delay expansion of an escaped shell variable in a
6504 # double_quote_subst'ed string.
6505 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6506
6507 # Sed substitution to avoid accidental globbing in evaled expressions
6508 no_glob_subst='s/\*/\\\*/g'
6509
6510 # Constants:
6511 rm="rm -f"
6512
6513 # Global variables:
6514 default_ofile=libtool
6515 can_build_shared=yes
6516
6517 # All known linkers require a `.a' archive for static linking (except MSVC,
6518 # which needs '.lib').
6519 libext=a
6520 ltmain="$ac_aux_dir/ltmain.sh"
6521 ofile="$default_ofile"
6522 with_gnu_ld="$lt_cv_prog_gnu_ld"
6523
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}ar; ac_word=$2
6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529 if test "${ac_cv_prog_AR+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 if test -n "$AR"; then
6533 ac_cv_prog_AR="$AR" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_AR="${ac_tool_prefix}ar"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 AR=$ac_cv_prog_AR
6553 if test -n "$AR"; then
6554 { echo "$as_me:$LINENO: result: $AR" >&5
6555 echo "${ECHO_T}$AR" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_AR"; then
6564 ac_ct_AR=$AR
6565 # Extract the first word of "ar", so it can be a program name with args.
6566 set dummy ar; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 if test -n "$ac_ct_AR"; then
6573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_ac_ct_AR="ar"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6593 if test -n "$ac_ct_AR"; then
6594 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6595 echo "${ECHO_T}$ac_ct_AR" >&6; }
6596 else
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601 if test "x$ac_ct_AR" = x; then
6602 AR="false"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6607 whose name does not start with the host triplet. If you think this
6608 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6609 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet. If you think this
6611 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614 AR=$ac_ct_AR
6615 fi
6616 else
6617 AR="$ac_cv_prog_AR"
6618 fi
6619
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_prog_RANLIB+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 if test -n "$RANLIB"; then
6629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 RANLIB=$ac_cv_prog_RANLIB
6649 if test -n "$RANLIB"; then
6650 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6651 echo "${ECHO_T}$RANLIB" >&6; }
6652 else
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$ac_cv_prog_RANLIB"; then
6660 ac_ct_RANLIB=$RANLIB
6661 # Extract the first word of "ranlib", so it can be a program name with args.
6662 set dummy ranlib; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668 if test -n "$ac_ct_RANLIB"; then
6669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_ac_ct_RANLIB="ranlib"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6689 if test -n "$ac_ct_RANLIB"; then
6690 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6691 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6692 else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697 if test "x$ac_ct_RANLIB" = x; then
6698 RANLIB=":"
6699 else
6700 case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet. If you think this
6704 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet. If you think this
6707 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 RANLIB=$ac_ct_RANLIB
6711 fi
6712 else
6713 RANLIB="$ac_cv_prog_RANLIB"
6714 fi
6715
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_STRIP+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 if test -n "$STRIP"; then
6725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 STRIP=$ac_cv_prog_STRIP
6745 if test -n "$STRIP"; then
6746 { echo "$as_me:$LINENO: result: $STRIP" >&5
6747 echo "${ECHO_T}$STRIP" >&6; }
6748 else
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_STRIP"; then
6756 ac_ct_STRIP=$STRIP
6757 # Extract the first word of "strip", so it can be a program name with args.
6758 set dummy strip; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 if test -n "$ac_ct_STRIP"; then
6765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_STRIP="strip"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6785 if test -n "$ac_ct_STRIP"; then
6786 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6787 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6788 else
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793 if test "x$ac_ct_STRIP" = x; then
6794 STRIP=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6799 whose name does not start with the host triplet. If you think this
6800 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet. If you think this
6803 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806 STRIP=$ac_ct_STRIP
6807 fi
6808 else
6809 STRIP="$ac_cv_prog_STRIP"
6810 fi
6811
6812
6813 old_CC="$CC"
6814 old_CFLAGS="$CFLAGS"
6815
6816 # Set sane defaults for various variables
6817 test -z "$AR" && AR=ar
6818 test -z "$AR_FLAGS" && AR_FLAGS=cru
6819 test -z "$AS" && AS=as
6820 test -z "$CC" && CC=cc
6821 test -z "$LTCC" && LTCC=$CC
6822 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6823 test -z "$DLLTOOL" && DLLTOOL=dlltool
6824 test -z "$LD" && LD=ld
6825 test -z "$LN_S" && LN_S="ln -s"
6826 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6827 test -z "$NM" && NM=nm
6828 test -z "$SED" && SED=sed
6829 test -z "$OBJDUMP" && OBJDUMP=objdump
6830 test -z "$RANLIB" && RANLIB=:
6831 test -z "$STRIP" && STRIP=:
6832 test -z "$ac_objext" && ac_objext=o
6833
6834 # Determine commands to create old-style static archives.
6835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6836 old_postinstall_cmds='chmod 644 $oldlib'
6837 old_postuninstall_cmds=
6838
6839 if test -n "$RANLIB"; then
6840 case $host_os in
6841 openbsd*)
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6843 ;;
6844 *)
6845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6846 ;;
6847 esac
6848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6849 fi
6850
6851 for cc_temp in $compiler""; do
6852 case $cc_temp in
6853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6855 \-*) ;;
6856 *) break;;
6857 esac
6858 done
6859 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6860
6861
6862 # Only perform the check for file, if the check method requires it
6863 case $deplibs_check_method in
6864 file_magic*)
6865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6866 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6867 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 case $MAGIC_CMD in
6872 [\\/*] | ?:[\\/]*)
6873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 lt_save_MAGIC_CMD="$MAGIC_CMD"
6877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6879 for ac_dir in $ac_dummy; do
6880 IFS="$lt_save_ifs"
6881 test -z "$ac_dir" && ac_dir=.
6882 if test -f $ac_dir/${ac_tool_prefix}file; then
6883 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6884 if test -n "$file_magic_test_file"; then
6885 case $deplibs_check_method in
6886 "file_magic "*)
6887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6890 $EGREP "$file_magic_regex" > /dev/null; then
6891 :
6892 else
6893 cat <<EOF 1>&2
6894
6895 *** Warning: the command libtool uses to detect shared libraries,
6896 *** $file_magic_cmd, produces output that libtool cannot recognize.
6897 *** The result is that libtool may fail to recognize shared libraries
6898 *** as such. This will affect the creation of libtool libraries that
6899 *** depend on shared libraries, but programs linked with such libtool
6900 *** libraries will work regardless of this problem. Nevertheless, you
6901 *** may want to report the problem to your system manager and/or to
6902 *** bug-libtool@gnu.org
6903
6904 EOF
6905 fi ;;
6906 esac
6907 fi
6908 break
6909 fi
6910 done
6911 IFS="$lt_save_ifs"
6912 MAGIC_CMD="$lt_save_MAGIC_CMD"
6913 ;;
6914 esac
6915 fi
6916
6917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6918 if test -n "$MAGIC_CMD"; then
6919 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6920 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6921 else
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6924 fi
6925
6926 if test -z "$lt_cv_path_MAGIC_CMD"; then
6927 if test -n "$ac_tool_prefix"; then
6928 { echo "$as_me:$LINENO: checking for file" >&5
6929 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 case $MAGIC_CMD in
6934 [\\/*] | ?:[\\/]*)
6935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6936 ;;
6937 *)
6938 lt_save_MAGIC_CMD="$MAGIC_CMD"
6939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6941 for ac_dir in $ac_dummy; do
6942 IFS="$lt_save_ifs"
6943 test -z "$ac_dir" && ac_dir=.
6944 if test -f $ac_dir/file; then
6945 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6946 if test -n "$file_magic_test_file"; then
6947 case $deplibs_check_method in
6948 "file_magic "*)
6949 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6952 $EGREP "$file_magic_regex" > /dev/null; then
6953 :
6954 else
6955 cat <<EOF 1>&2
6956
6957 *** Warning: the command libtool uses to detect shared libraries,
6958 *** $file_magic_cmd, produces output that libtool cannot recognize.
6959 *** The result is that libtool may fail to recognize shared libraries
6960 *** as such. This will affect the creation of libtool libraries that
6961 *** depend on shared libraries, but programs linked with such libtool
6962 *** libraries will work regardless of this problem. Nevertheless, you
6963 *** may want to report the problem to your system manager and/or to
6964 *** bug-libtool@gnu.org
6965
6966 EOF
6967 fi ;;
6968 esac
6969 fi
6970 break
6971 fi
6972 done
6973 IFS="$lt_save_ifs"
6974 MAGIC_CMD="$lt_save_MAGIC_CMD"
6975 ;;
6976 esac
6977 fi
6978
6979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980 if test -n "$MAGIC_CMD"; then
6981 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6982 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6983 else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6986 fi
6987
6988 else
6989 MAGIC_CMD=:
6990 fi
6991 fi
6992
6993 fi
6994 ;;
6995 esac
6996
6997 enable_dlopen=no
6998 enable_win32_dll=no
6999
7000 # Check whether --enable-libtool-lock was given.
7001 if test "${enable_libtool_lock+set}" = set; then
7002 enableval=$enable_libtool_lock;
7003 fi
7004
7005 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7006
7007
7008 # Check whether --with-pic was given.
7009 if test "${with_pic+set}" = set; then
7010 withval=$with_pic; pic_mode="$withval"
7011 else
7012 pic_mode=default
7013 fi
7014
7015 test -z "$pic_mode" && pic_mode=default
7016
7017 # Use C for the default configuration in the libtool script
7018 tagname=
7019 lt_save_CC="$CC"
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026
7027 # Source file extension for C test sources.
7028 ac_ext=c
7029
7030 # Object file extension for compiled C test sources.
7031 objext=o
7032 objext=$objext
7033
7034 # Code to be used in simple compile tests
7035 lt_simple_compile_test_code="int some_variable = 0;\n"
7036
7037 # Code to be used in simple link tests
7038 lt_simple_link_test_code='int main(){return(0);}\n'
7039
7040
7041 # If no C compiler was specified, use CC.
7042 LTCC=${LTCC-"$CC"}
7043
7044 # If no C compiler flags were specified, use CFLAGS.
7045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7046
7047 # Allow CC to be a program name with arguments.
7048 compiler=$CC
7049
7050
7051 # save warnings/boilerplate of simple test code
7052 ac_outfile=conftest.$ac_objext
7053 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7055 _lt_compiler_boilerplate=`cat conftest.err`
7056 $rm conftest*
7057
7058 ac_outfile=conftest.$ac_objext
7059 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061 _lt_linker_boilerplate=`cat conftest.err`
7062 $rm conftest*
7063
7064
7065
7066 lt_prog_compiler_no_builtin_flag=
7067
7068 if test "$GCC" = yes; then
7069 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7070
7071
7072 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7073 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7074 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 lt_cv_prog_compiler_rtti_exceptions=no
7078 ac_outfile=conftest.$ac_objext
7079 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7080 lt_compiler_flag="-fno-rtti -fno-exceptions"
7081 # Insert the option either (1) after the last *FLAGS variable, or
7082 # (2) before a word containing "conftest.", or (3) at the end.
7083 # Note that $ac_compile itself does not contain backslashes and begins
7084 # with a dollar sign (not a hyphen), so the echo should work correctly.
7085 # The option is referenced via a variable to avoid confusing sed.
7086 lt_compile=`echo "$ac_compile" | $SED \
7087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7089 -e 's:$: $lt_compiler_flag:'`
7090 (eval echo "\"\$as_me:7090: $lt_compile\"" >&5)
7091 (eval "$lt_compile" 2>conftest.err)
7092 ac_status=$?
7093 cat conftest.err >&5
7094 echo "$as_me:7094: \$? = $ac_status" >&5
7095 if (exit $ac_status) && test -s "$ac_outfile"; then
7096 # The compiler can only warn and ignore the option if not recognized
7097 # So say no if there are warnings other than the usual output.
7098 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7101 lt_cv_prog_compiler_rtti_exceptions=yes
7102 fi
7103 fi
7104 $rm conftest*
7105
7106 fi
7107 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7108 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7109
7110 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7111 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7112 else
7113 :
7114 fi
7115
7116 fi
7117
7118 lt_prog_compiler_wl=
7119 lt_prog_compiler_pic=
7120 lt_prog_compiler_static=
7121
7122 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7123 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7124
7125 if test "$GCC" = yes; then
7126 lt_prog_compiler_wl='-Wl,'
7127 lt_prog_compiler_static='-static'
7128
7129 case $host_os in
7130 aix*)
7131 # All AIX code is PIC.
7132 if test "$host_cpu" = ia64; then
7133 # AIX 5 now supports IA64 processor
7134 lt_prog_compiler_static='-Bstatic'
7135 fi
7136 ;;
7137
7138 amigaos*)
7139 # FIXME: we need at least 68020 code to build shared libraries, but
7140 # adding the `-m68020' flag to GCC prevents building anything better,
7141 # like `-m68040'.
7142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7143 ;;
7144
7145 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7146 # PIC is the default for these OSes.
7147 ;;
7148
7149 mingw* | pw32* | os2*)
7150 # This hack is so that the source file can tell whether it is being
7151 # built for inclusion in a dll (and should export symbols for example).
7152 lt_prog_compiler_pic='-DDLL_EXPORT'
7153 ;;
7154
7155 darwin* | rhapsody*)
7156 # PIC is the default on this platform
7157 # Common symbols not allowed in MH_DYLIB files
7158 lt_prog_compiler_pic='-fno-common'
7159 ;;
7160
7161 interix3*)
7162 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7163 # Instead, we relocate shared libraries at runtime.
7164 ;;
7165
7166 msdosdjgpp*)
7167 # Just because we use GCC doesn't mean we suddenly get shared libraries
7168 # on systems that don't support them.
7169 lt_prog_compiler_can_build_shared=no
7170 enable_shared=no
7171 ;;
7172
7173 sysv4*MP*)
7174 if test -d /usr/nec; then
7175 lt_prog_compiler_pic=-Kconform_pic
7176 fi
7177 ;;
7178
7179 hpux*)
7180 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7181 # not for PA HP-UX.
7182 case $host_cpu in
7183 hppa*64*|ia64*)
7184 # +Z the default
7185 ;;
7186 *)
7187 lt_prog_compiler_pic='-fPIC'
7188 ;;
7189 esac
7190 ;;
7191
7192 *)
7193 lt_prog_compiler_pic='-fPIC'
7194 ;;
7195 esac
7196 else
7197 # PORTME Check for flag to pass linker flags through the system compiler.
7198 case $host_os in
7199 aix*)
7200 lt_prog_compiler_wl='-Wl,'
7201 if test "$host_cpu" = ia64; then
7202 # AIX 5 now supports IA64 processor
7203 lt_prog_compiler_static='-Bstatic'
7204 else
7205 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7206 fi
7207 ;;
7208 darwin*)
7209 # PIC is the default on this platform
7210 # Common symbols not allowed in MH_DYLIB files
7211 case $cc_basename in
7212 xlc*)
7213 lt_prog_compiler_pic='-qnocommon'
7214 lt_prog_compiler_wl='-Wl,'
7215 ;;
7216 esac
7217 ;;
7218
7219 mingw* | pw32* | os2*)
7220 # This hack is so that the source file can tell whether it is being
7221 # built for inclusion in a dll (and should export symbols for example).
7222 lt_prog_compiler_pic='-DDLL_EXPORT'
7223 ;;
7224
7225 hpux9* | hpux10* | hpux11*)
7226 lt_prog_compiler_wl='-Wl,'
7227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7228 # not for PA HP-UX.
7229 case $host_cpu in
7230 hppa*64*|ia64*)
7231 # +Z the default
7232 ;;
7233 *)
7234 lt_prog_compiler_pic='+Z'
7235 ;;
7236 esac
7237 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7238 lt_prog_compiler_static='${wl}-a ${wl}archive'
7239 ;;
7240
7241 irix5* | irix6* | nonstopux*)
7242 lt_prog_compiler_wl='-Wl,'
7243 # PIC (with -KPIC) is the default.
7244 lt_prog_compiler_static='-non_shared'
7245 ;;
7246
7247 newsos6)
7248 lt_prog_compiler_pic='-KPIC'
7249 lt_prog_compiler_static='-Bstatic'
7250 ;;
7251
7252 linux* | k*bsd*-gnu)
7253 case $cc_basename in
7254 icc* | ecc*)
7255 lt_prog_compiler_wl='-Wl,'
7256 lt_prog_compiler_pic='-KPIC'
7257 lt_prog_compiler_static='-static'
7258 ;;
7259 pgcc* | pgf77* | pgf90* | pgf95*)
7260 # Portland Group compilers (*not* the Pentium gcc compiler,
7261 # which looks to be a dead project)
7262 lt_prog_compiler_wl='-Wl,'
7263 lt_prog_compiler_pic='-fpic'
7264 lt_prog_compiler_static='-Bstatic'
7265 ;;
7266 ccc*)
7267 lt_prog_compiler_wl='-Wl,'
7268 # All Alpha code is PIC.
7269 lt_prog_compiler_static='-non_shared'
7270 ;;
7271 esac
7272 ;;
7273
7274 osf3* | osf4* | osf5*)
7275 lt_prog_compiler_wl='-Wl,'
7276 # All OSF/1 code is PIC.
7277 lt_prog_compiler_static='-non_shared'
7278 ;;
7279
7280 solaris*)
7281 lt_prog_compiler_pic='-KPIC'
7282 lt_prog_compiler_static='-Bstatic'
7283 case $cc_basename in
7284 f77* | f90* | f95*)
7285 lt_prog_compiler_wl='-Qoption ld ';;
7286 *)
7287 lt_prog_compiler_wl='-Wl,';;
7288 esac
7289 ;;
7290
7291 sunos4*)
7292 lt_prog_compiler_wl='-Qoption ld '
7293 lt_prog_compiler_pic='-PIC'
7294 lt_prog_compiler_static='-Bstatic'
7295 ;;
7296
7297 sysv4 | sysv4.2uw2* | sysv4.3*)
7298 lt_prog_compiler_wl='-Wl,'
7299 lt_prog_compiler_pic='-KPIC'
7300 lt_prog_compiler_static='-Bstatic'
7301 ;;
7302
7303 sysv4*MP*)
7304 if test -d /usr/nec ;then
7305 lt_prog_compiler_pic='-Kconform_pic'
7306 lt_prog_compiler_static='-Bstatic'
7307 fi
7308 ;;
7309
7310 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7311 lt_prog_compiler_wl='-Wl,'
7312 lt_prog_compiler_pic='-KPIC'
7313 lt_prog_compiler_static='-Bstatic'
7314 ;;
7315
7316 unicos*)
7317 lt_prog_compiler_wl='-Wl,'
7318 lt_prog_compiler_can_build_shared=no
7319 ;;
7320
7321 uts4*)
7322 lt_prog_compiler_pic='-pic'
7323 lt_prog_compiler_static='-Bstatic'
7324 ;;
7325
7326 *)
7327 lt_prog_compiler_can_build_shared=no
7328 ;;
7329 esac
7330 fi
7331
7332 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7333 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7334
7335 #
7336 # Check to make sure the PIC flag actually works.
7337 #
7338 if test -n "$lt_prog_compiler_pic"; then
7339
7340 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7341 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7342 if test "${lt_prog_compiler_pic_works+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 lt_prog_compiler_pic_works=no
7346 ac_outfile=conftest.$ac_objext
7347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7349 # Insert the option either (1) after the last *FLAGS variable, or
7350 # (2) before a word containing "conftest.", or (3) at the end.
7351 # Note that $ac_compile itself does not contain backslashes and begins
7352 # with a dollar sign (not a hyphen), so the echo should work correctly.
7353 # The option is referenced via a variable to avoid confusing sed.
7354 lt_compile=`echo "$ac_compile" | $SED \
7355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357 -e 's:$: $lt_compiler_flag:'`
7358 (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359 (eval "$lt_compile" 2>conftest.err)
7360 ac_status=$?
7361 cat conftest.err >&5
7362 echo "$as_me:7362: \$? = $ac_status" >&5
7363 if (exit $ac_status) && test -s "$ac_outfile"; then
7364 # The compiler can only warn and ignore the option if not recognized
7365 # So say no if there are warnings other than the usual output.
7366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369 lt_prog_compiler_pic_works=yes
7370 fi
7371 fi
7372 $rm conftest*
7373
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7376 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7377
7378 if test x"$lt_prog_compiler_pic_works" = xyes; then
7379 case $lt_prog_compiler_pic in
7380 "" | " "*) ;;
7381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7382 esac
7383 else
7384 lt_prog_compiler_pic=
7385 lt_prog_compiler_can_build_shared=no
7386 fi
7387
7388 fi
7389 case $host_os in
7390 # For platforms which do not support PIC, -DPIC is meaningless:
7391 *djgpp*)
7392 lt_prog_compiler_pic=
7393 ;;
7394 *)
7395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7396 ;;
7397 esac
7398
7399 #
7400 # Check to make sure the static flag actually works.
7401 #
7402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7403 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7404 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7405 if test "${lt_prog_compiler_static_works+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 lt_prog_compiler_static_works=no
7409 save_LDFLAGS="$LDFLAGS"
7410 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7411 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7413 # The linker can only warn and ignore the option if not recognized
7414 # So say no if there are warnings
7415 if test -s conftest.err; then
7416 # Append any errors to the config.log.
7417 cat conftest.err 1>&5
7418 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7420 if diff conftest.exp conftest.er2 >/dev/null; then
7421 lt_prog_compiler_static_works=yes
7422 fi
7423 else
7424 lt_prog_compiler_static_works=yes
7425 fi
7426 fi
7427 $rm conftest*
7428 LDFLAGS="$save_LDFLAGS"
7429
7430 fi
7431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7432 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7433
7434 if test x"$lt_prog_compiler_static_works" = xyes; then
7435 :
7436 else
7437 lt_prog_compiler_static=
7438 fi
7439
7440
7441 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7442 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7443 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 lt_cv_prog_compiler_c_o=no
7447 $rm -r conftest 2>/dev/null
7448 mkdir conftest
7449 cd conftest
7450 mkdir out
7451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7452
7453 lt_compiler_flag="-o out/conftest2.$ac_objext"
7454 # Insert the option either (1) after the last *FLAGS variable, or
7455 # (2) before a word containing "conftest.", or (3) at the end.
7456 # Note that $ac_compile itself does not contain backslashes and begins
7457 # with a dollar sign (not a hyphen), so the echo should work correctly.
7458 lt_compile=`echo "$ac_compile" | $SED \
7459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7461 -e 's:$: $lt_compiler_flag:'`
7462 (eval echo "\"\$as_me:7462: $lt_compile\"" >&5)
7463 (eval "$lt_compile" 2>out/conftest.err)
7464 ac_status=$?
7465 cat out/conftest.err >&5
7466 echo "$as_me:7466: \$? = $ac_status" >&5
7467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7468 then
7469 # The compiler can only warn and ignore the option if not recognized
7470 # So say no if there are warnings
7471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7474 lt_cv_prog_compiler_c_o=yes
7475 fi
7476 fi
7477 chmod u+w . 2>&5
7478 $rm conftest*
7479 # SGI C++ compiler will create directory out/ii_files/ for
7480 # template instantiation
7481 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7482 $rm out/* && rmdir out
7483 cd ..
7484 rmdir conftest
7485 $rm conftest*
7486
7487 fi
7488 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7489 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7490
7491
7492 hard_links="nottested"
7493 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7494 # do not overwrite the value of need_locks provided by the user
7495 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7496 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7497 hard_links=yes
7498 $rm conftest*
7499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7500 touch conftest.a
7501 ln conftest.a conftest.b 2>&5 || hard_links=no
7502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7503 { echo "$as_me:$LINENO: result: $hard_links" >&5
7504 echo "${ECHO_T}$hard_links" >&6; }
7505 if test "$hard_links" = no; then
7506 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7507 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7508 need_locks=warn
7509 fi
7510 else
7511 need_locks=no
7512 fi
7513
7514 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7515 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7516
7517 runpath_var=
7518 allow_undefined_flag=
7519 enable_shared_with_static_runtimes=no
7520 archive_cmds=
7521 archive_expsym_cmds=
7522 old_archive_From_new_cmds=
7523 old_archive_from_expsyms_cmds=
7524 export_dynamic_flag_spec=
7525 whole_archive_flag_spec=
7526 thread_safe_flag_spec=
7527 hardcode_libdir_flag_spec=
7528 hardcode_libdir_flag_spec_ld=
7529 hardcode_libdir_separator=
7530 hardcode_direct=no
7531 hardcode_minus_L=no
7532 hardcode_shlibpath_var=unsupported
7533 link_all_deplibs=unknown
7534 hardcode_automatic=no
7535 module_cmds=
7536 module_expsym_cmds=
7537 always_export_symbols=no
7538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7539 # include_expsyms should be a list of space-separated symbols to be *always*
7540 # included in the symbol list
7541 include_expsyms=
7542 # exclude_expsyms can be an extended regexp of symbols to exclude
7543 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7544 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7545 # as well as any symbol that contains `d'.
7546 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7548 # platforms (ab)use it in PIC code, but their linkers get confused if
7549 # the symbol is explicitly referenced. Since portable code cannot
7550 # rely on this symbol name, it's probably fine to never include it in
7551 # preloaded symbol tables.
7552 extract_expsyms_cmds=
7553 # Just being paranoid about ensuring that cc_basename is set.
7554 for cc_temp in $compiler""; do
7555 case $cc_temp in
7556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7558 \-*) ;;
7559 *) break;;
7560 esac
7561 done
7562 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7563
7564 case $host_os in
7565 cygwin* | mingw* | pw32*)
7566 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7567 # When not using gcc, we currently assume that we are using
7568 # Microsoft Visual C++.
7569 if test "$GCC" != yes; then
7570 with_gnu_ld=no
7571 fi
7572 ;;
7573 interix*)
7574 # we just hope/assume this is gcc and not c89 (= MSVC++)
7575 with_gnu_ld=yes
7576 ;;
7577 openbsd*)
7578 with_gnu_ld=no
7579 ;;
7580 esac
7581
7582 ld_shlibs=yes
7583 if test "$with_gnu_ld" = yes; then
7584 # If archive_cmds runs LD, not CC, wlarc should be empty
7585 wlarc='${wl}'
7586
7587 # Set some defaults for GNU ld with shared library support. These
7588 # are reset later if shared libraries are not supported. Putting them
7589 # here allows them to be overridden if necessary.
7590 runpath_var=LD_RUN_PATH
7591 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7592 export_dynamic_flag_spec='${wl}--export-dynamic'
7593 # ancient GNU ld didn't support --whole-archive et. al.
7594 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7595 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7596 else
7597 whole_archive_flag_spec=
7598 fi
7599 supports_anon_versioning=no
7600 case `$LD -v 2>/dev/null` in
7601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7604 *\ 2.11.*) ;; # other 2.11 versions
7605 *) supports_anon_versioning=yes ;;
7606 esac
7607
7608 # See if GNU ld supports shared libraries.
7609 case $host_os in
7610 aix3* | aix4* | aix5*)
7611 # On AIX/PPC, the GNU linker is very broken
7612 if test "$host_cpu" != ia64; then
7613 ld_shlibs=no
7614 cat <<EOF 1>&2
7615
7616 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7617 *** to be unable to reliably create shared libraries on AIX.
7618 *** Therefore, libtool is disabling shared libraries support. If you
7619 *** really care for shared libraries, you may want to modify your PATH
7620 *** so that a non-GNU linker is found, and then restart.
7621
7622 EOF
7623 fi
7624 ;;
7625
7626 amigaos*)
7627 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)'
7628 hardcode_libdir_flag_spec='-L$libdir'
7629 hardcode_minus_L=yes
7630
7631 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7632 # that the semantics of dynamic libraries on AmigaOS, at least up
7633 # to version 4, is to share data among multiple programs linked
7634 # with the same dynamic library. Since this doesn't match the
7635 # behavior of shared libraries on other platforms, we can't use
7636 # them.
7637 ld_shlibs=no
7638 ;;
7639
7640 beos*)
7641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642 allow_undefined_flag=unsupported
7643 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7644 # support --undefined. This deserves some investigation. FIXME
7645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646 else
7647 ld_shlibs=no
7648 fi
7649 ;;
7650
7651 cygwin* | mingw* | pw32*)
7652 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7653 # as there is no search path for DLLs.
7654 hardcode_libdir_flag_spec='-L$libdir'
7655 allow_undefined_flag=unsupported
7656 always_export_symbols=no
7657 enable_shared_with_static_runtimes=yes
7658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7659
7660 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7662 # If the export-symbols file already is a .def file (1st line
7663 # is EXPORTS), use it as is; otherwise, prepend...
7664 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7665 cp $export_symbols $output_objdir/$soname.def;
7666 else
7667 echo EXPORTS > $output_objdir/$soname.def;
7668 cat $export_symbols >> $output_objdir/$soname.def;
7669 fi~
7670 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7671 else
7672 ld_shlibs=no
7673 fi
7674 ;;
7675
7676 interix3*)
7677 hardcode_direct=no
7678 hardcode_shlibpath_var=no
7679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7680 export_dynamic_flag_spec='${wl}-E'
7681 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7682 # Instead, shared libraries are loaded at an image base (0x10000000 by
7683 # default) and relocated if they conflict, which is a slow very memory
7684 # consuming and fragmenting process. To avoid this, we pick a random,
7685 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7686 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7688 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'
7689 ;;
7690
7691 linux* | k*bsd*-gnu)
7692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7693 tmp_addflag=
7694 case $cc_basename,$host_cpu in
7695 pgcc*) # Portland Group C compiler
7696 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'
7697 tmp_addflag=' $pic_flag'
7698 ;;
7699 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7700 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'
7701 tmp_addflag=' $pic_flag -Mnomain' ;;
7702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7703 tmp_addflag=' -i_dynamic' ;;
7704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7705 tmp_addflag=' -i_dynamic -nofor_main' ;;
7706 ifc* | ifort*) # Intel Fortran compiler
7707 tmp_addflag=' -nofor_main' ;;
7708 esac
7709 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710
7711 if test $supports_anon_versioning = yes; then
7712 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7714 $echo "local: *; };" >> $output_objdir/$libname.ver~
7715 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7716 fi
7717 link_all_deplibs=no
7718 else
7719 ld_shlibs=no
7720 fi
7721 ;;
7722
7723 netbsd* | netbsdelf*-gnu)
7724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7725 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7726 wlarc=
7727 else
7728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730 fi
7731 ;;
7732
7733 solaris*)
7734 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7735 ld_shlibs=no
7736 cat <<EOF 1>&2
7737
7738 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7739 *** create shared libraries on Solaris systems. Therefore, libtool
7740 *** is disabling shared libraries support. We urge you to upgrade GNU
7741 *** binutils to release 2.9.1 or newer. Another option is to modify
7742 *** your PATH or compiler configuration so that the native linker is
7743 *** used, and then restart.
7744
7745 EOF
7746 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7749 else
7750 ld_shlibs=no
7751 fi
7752 ;;
7753
7754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7755 case `$LD -v 2>&1` in
7756 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7757 ld_shlibs=no
7758 cat <<_LT_EOF 1>&2
7759
7760 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7761 *** reliably create shared libraries on SCO systems. Therefore, libtool
7762 *** is disabling shared libraries support. We urge you to upgrade GNU
7763 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7764 *** your PATH or compiler configuration so that the native linker is
7765 *** used, and then restart.
7766
7767 _LT_EOF
7768 ;;
7769 *)
7770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7771 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7774 else
7775 ld_shlibs=no
7776 fi
7777 ;;
7778 esac
7779 ;;
7780
7781 sunos4*)
7782 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7783 wlarc=
7784 hardcode_direct=yes
7785 hardcode_shlibpath_var=no
7786 ;;
7787
7788 *)
7789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7792 else
7793 ld_shlibs=no
7794 fi
7795 ;;
7796 esac
7797
7798 if test "$ld_shlibs" = no; then
7799 runpath_var=
7800 hardcode_libdir_flag_spec=
7801 export_dynamic_flag_spec=
7802 whole_archive_flag_spec=
7803 fi
7804 else
7805 # PORTME fill in a description of your system's linker (not GNU ld)
7806 case $host_os in
7807 aix3*)
7808 allow_undefined_flag=unsupported
7809 always_export_symbols=yes
7810 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'
7811 # Note: this linker hardcodes the directories in LIBPATH if there
7812 # are no directories specified by -L.
7813 hardcode_minus_L=yes
7814 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7815 # Neither direct hardcoding nor static linking is supported with a
7816 # broken collect2.
7817 hardcode_direct=unsupported
7818 fi
7819 ;;
7820
7821 aix4* | aix5*)
7822 if test "$host_cpu" = ia64; then
7823 # On IA64, the linker does run time linking by default, so we don't
7824 # have to do anything special.
7825 aix_use_runtimelinking=no
7826 exp_sym_flag='-Bexport'
7827 no_entry_flag=""
7828 else
7829 # If we're using GNU nm, then we don't want the "-C" option.
7830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7831 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7832 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'
7833 else
7834 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'
7835 fi
7836 aix_use_runtimelinking=no
7837
7838 # Test if we are trying to use run time linking or normal
7839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7840 # need to do runtime linking.
7841 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7842 for ld_flag in $LDFLAGS; do
7843 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7844 aix_use_runtimelinking=yes
7845 break
7846 fi
7847 done
7848 ;;
7849 esac
7850
7851 exp_sym_flag='-bexport'
7852 no_entry_flag='-bnoentry'
7853 fi
7854
7855 # When large executables or shared objects are built, AIX ld can
7856 # have problems creating the table of contents. If linking a library
7857 # or program results in "error TOC overflow" add -mminimal-toc to
7858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7860
7861 archive_cmds=''
7862 hardcode_direct=yes
7863 hardcode_libdir_separator=':'
7864 link_all_deplibs=yes
7865
7866 if test "$GCC" = yes; then
7867 case $host_os in aix4.[012]|aix4.[012].*)
7868 # We only want to do this on AIX 4.2 and lower, the check
7869 # below for broken collect2 doesn't work under 4.3+
7870 collect2name=`${CC} -print-prog-name=collect2`
7871 if test -f "$collect2name" && \
7872 strings "$collect2name" | grep resolve_lib_name >/dev/null
7873 then
7874 # We have reworked collect2
7875 hardcode_direct=yes
7876 else
7877 # We have old collect2
7878 hardcode_direct=unsupported
7879 # It fails to find uninstalled libraries when the uninstalled
7880 # path is not listed in the libpath. Setting hardcode_minus_L
7881 # to unsupported forces relinking
7882 hardcode_minus_L=yes
7883 hardcode_libdir_flag_spec='-L$libdir'
7884 hardcode_libdir_separator=
7885 fi
7886 ;;
7887 esac
7888 shared_flag='-shared'
7889 if test "$aix_use_runtimelinking" = yes; then
7890 shared_flag="$shared_flag "'${wl}-G'
7891 fi
7892 else
7893 # not using gcc
7894 if test "$host_cpu" = ia64; then
7895 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7896 # chokes on -Wl,-G. The following line is correct:
7897 shared_flag='-G'
7898 else
7899 if test "$aix_use_runtimelinking" = yes; then
7900 shared_flag='${wl}-G'
7901 else
7902 shared_flag='${wl}-bM:SRE'
7903 fi
7904 fi
7905 fi
7906
7907 # It seems that -bexpall does not export symbols beginning with
7908 # underscore (_), so it is better to generate a list of symbols to export.
7909 always_export_symbols=yes
7910 if test "$aix_use_runtimelinking" = yes; then
7911 # Warning - without using the other runtime loading flags (-brtl),
7912 # -berok will link without error, but may produce a broken library.
7913 allow_undefined_flag='-berok'
7914 # Determine the default libpath from the value encoded in an empty executable.
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921
7922 int
7923 main ()
7924 {
7925
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (ac_try="$ac_link"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_link") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest$ac_exeext &&
7947 $as_test_x conftest$ac_exeext; then
7948
7949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7950 }'`
7951 # Check for a 64-bit object if we didn't find anything.
7952 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7953 }'`; fi
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7962 conftest$ac_exeext conftest.$ac_ext
7963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7964
7965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7966 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"
7967 else
7968 if test "$host_cpu" = ia64; then
7969 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7970 allow_undefined_flag="-z nodefs"
7971 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"
7972 else
7973 # Determine the default libpath from the value encoded in an empty executable.
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980
7981 int
7982 main ()
7983 {
7984
7985 ;
7986 return 0;
7987 }
7988 _ACEOF
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (ac_try="$ac_link"
7991 case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994 esac
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_link") 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } && {
8003 test -z "$ac_c_werror_flag" ||
8004 test ! -s conftest.err
8005 } && test -s conftest$ac_exeext &&
8006 $as_test_x conftest$ac_exeext; then
8007
8008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8009 }'`
8010 # Check for a 64-bit object if we didn't find anything.
8011 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8012 }'`; fi
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017
8018 fi
8019
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021 conftest$ac_exeext conftest.$ac_ext
8022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8023
8024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8025 # Warning - without using the other run time loading flags,
8026 # -berok will link without error, but may produce a broken library.
8027 no_undefined_flag=' ${wl}-bernotok'
8028 allow_undefined_flag=' ${wl}-berok'
8029 # Exported symbols can be pulled into shared objects from archives
8030 whole_archive_flag_spec='$convenience'
8031 archive_cmds_need_lc=yes
8032 # This is similar to how AIX traditionally builds its shared libraries.
8033 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'
8034 fi
8035 fi
8036 ;;
8037
8038 amigaos*)
8039 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)'
8040 hardcode_libdir_flag_spec='-L$libdir'
8041 hardcode_minus_L=yes
8042 # see comment about different semantics on the GNU ld section
8043 ld_shlibs=no
8044 ;;
8045
8046 bsdi[45]*)
8047 export_dynamic_flag_spec=-rdynamic
8048 ;;
8049
8050 cygwin* | mingw* | pw32*)
8051 # When not using gcc, we currently assume that we are using
8052 # Microsoft Visual C++.
8053 # hardcode_libdir_flag_spec is actually meaningless, as there is
8054 # no search path for DLLs.
8055 hardcode_libdir_flag_spec=' '
8056 allow_undefined_flag=unsupported
8057 # Tell ltmain to make .lib files, not .a files.
8058 libext=lib
8059 # Tell ltmain to make .dll files, not .so files.
8060 shrext_cmds=".dll"
8061 # FIXME: Setting linknames here is a bad hack.
8062 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8063 # The linker will automatically build a .lib file if we build a DLL.
8064 old_archive_From_new_cmds='true'
8065 # FIXME: Should let the user specify the lib program.
8066 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8067 fix_srcfile_path='`cygpath -w "$srcfile"`'
8068 enable_shared_with_static_runtimes=yes
8069 ;;
8070
8071 darwin* | rhapsody*)
8072 case $host_os in
8073 rhapsody* | darwin1.[012])
8074 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8075 ;;
8076 *) # Darwin 1.3 on
8077 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8078 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8079 else
8080 case ${MACOSX_DEPLOYMENT_TARGET} in
8081 10.[012])
8082 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8083 ;;
8084 10.*)
8085 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8086 ;;
8087 esac
8088 fi
8089 ;;
8090 esac
8091 archive_cmds_need_lc=no
8092 hardcode_direct=no
8093 hardcode_automatic=yes
8094 hardcode_shlibpath_var=unsupported
8095 whole_archive_flag_spec=''
8096 link_all_deplibs=yes
8097 if test "$GCC" = yes ; then
8098 output_verbose_link_cmd='echo'
8099 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8100 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8102 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}'
8103 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}'
8104 else
8105 case $cc_basename in
8106 xlc*)
8107 output_verbose_link_cmd='echo'
8108 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8109 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8110 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8111 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8112 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}'
8113 ;;
8114 *)
8115 ld_shlibs=no
8116 ;;
8117 esac
8118 fi
8119 ;;
8120
8121 dgux*)
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_libdir_flag_spec='-L$libdir'
8124 hardcode_shlibpath_var=no
8125 ;;
8126
8127 freebsd1*)
8128 ld_shlibs=no
8129 ;;
8130
8131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8132 # support. Future versions do this automatically, but an explicit c++rt0.o
8133 # does not break anything, and helps significantly (at the cost of a little
8134 # extra space).
8135 freebsd2.2*)
8136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8137 hardcode_libdir_flag_spec='-R$libdir'
8138 hardcode_direct=yes
8139 hardcode_shlibpath_var=no
8140 ;;
8141
8142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8143 freebsd2*)
8144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8145 hardcode_direct=yes
8146 hardcode_minus_L=yes
8147 hardcode_shlibpath_var=no
8148 ;;
8149
8150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8151 freebsd* | dragonfly*)
8152 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8153 hardcode_libdir_flag_spec='-R$libdir'
8154 hardcode_direct=yes
8155 hardcode_shlibpath_var=no
8156 ;;
8157
8158 hpux9*)
8159 if test "$GCC" = yes; then
8160 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'
8161 else
8162 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'
8163 fi
8164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8165 hardcode_libdir_separator=:
8166 hardcode_direct=yes
8167
8168 # hardcode_minus_L: Not really in the search PATH,
8169 # but as the default location of the library.
8170 hardcode_minus_L=yes
8171 export_dynamic_flag_spec='${wl}-E'
8172 ;;
8173
8174 hpux10*)
8175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8176 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8177 else
8178 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8179 fi
8180 if test "$with_gnu_ld" = no; then
8181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8182 hardcode_libdir_separator=:
8183
8184 hardcode_direct=yes
8185 export_dynamic_flag_spec='${wl}-E'
8186
8187 # hardcode_minus_L: Not really in the search PATH,
8188 # but as the default location of the library.
8189 hardcode_minus_L=yes
8190 fi
8191 ;;
8192
8193 hpux11*)
8194 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8195 case $host_cpu in
8196 hppa*64*)
8197 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8198 ;;
8199 ia64*)
8200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8201 ;;
8202 *)
8203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8204 ;;
8205 esac
8206 else
8207 case $host_cpu in
8208 hppa*64*)
8209 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8210 ;;
8211 ia64*)
8212 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8213 ;;
8214 *)
8215 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8216 ;;
8217 esac
8218 fi
8219 if test "$with_gnu_ld" = no; then
8220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8221 hardcode_libdir_separator=:
8222
8223 case $host_cpu in
8224 hppa*64*|ia64*)
8225 hardcode_libdir_flag_spec_ld='+b $libdir'
8226 hardcode_direct=no
8227 hardcode_shlibpath_var=no
8228 ;;
8229 *)
8230 hardcode_direct=yes
8231 export_dynamic_flag_spec='${wl}-E'
8232
8233 # hardcode_minus_L: Not really in the search PATH,
8234 # but as the default location of the library.
8235 hardcode_minus_L=yes
8236 ;;
8237 esac
8238 fi
8239 ;;
8240
8241 irix5* | irix6* | nonstopux*)
8242 if test "$GCC" = yes; then
8243 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'
8244 else
8245 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'
8246 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8247 fi
8248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8249 hardcode_libdir_separator=:
8250 link_all_deplibs=yes
8251 ;;
8252
8253 netbsd* | netbsdelf*-gnu)
8254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8256 else
8257 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8258 fi
8259 hardcode_libdir_flag_spec='-R$libdir'
8260 hardcode_direct=yes
8261 hardcode_shlibpath_var=no
8262 ;;
8263
8264 newsos6)
8265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8266 hardcode_direct=yes
8267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8268 hardcode_libdir_separator=:
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 openbsd*)
8273 hardcode_direct=yes
8274 hardcode_shlibpath_var=no
8275 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8277 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8279 export_dynamic_flag_spec='${wl}-E'
8280 else
8281 case $host_os in
8282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_libdir_flag_spec='-R$libdir'
8285 ;;
8286 *)
8287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8289 ;;
8290 esac
8291 fi
8292 ;;
8293
8294 os2*)
8295 hardcode_libdir_flag_spec='-L$libdir'
8296 hardcode_minus_L=yes
8297 allow_undefined_flag=unsupported
8298 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'
8299 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8300 ;;
8301
8302 osf3*)
8303 if test "$GCC" = yes; then
8304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8305 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'
8306 else
8307 allow_undefined_flag=' -expect_unresolved \*'
8308 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'
8309 fi
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 hardcode_libdir_separator=:
8312 ;;
8313
8314 osf4* | osf5*) # as osf3* with the addition of -msym flag
8315 if test "$GCC" = yes; then
8316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8317 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'
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 else
8320 allow_undefined_flag=' -expect_unresolved \*'
8321 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'
8322 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8323 $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'
8324
8325 # Both c and cxx compiler support -rpath directly
8326 hardcode_libdir_flag_spec='-rpath $libdir'
8327 fi
8328 hardcode_libdir_separator=:
8329 ;;
8330
8331 solaris*)
8332 no_undefined_flag=' -z text'
8333 if test "$GCC" = yes; then
8334 wlarc='${wl}'
8335 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8336 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8337 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8338 else
8339 wlarc=''
8340 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8343 fi
8344 hardcode_libdir_flag_spec='-R$libdir'
8345 hardcode_shlibpath_var=no
8346 case $host_os in
8347 solaris2.[0-5] | solaris2.[0-5].*) ;;
8348 *)
8349 # The compiler driver will combine linker options so we
8350 # cannot just pass the convience library names through
8351 # without $wl, iff we do not link with $LD.
8352 # Luckily, gcc supports the same syntax we need for Sun Studio.
8353 # Supported since Solaris 2.6 (maybe 2.5.1?)
8354 case $wlarc in
8355 '')
8356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8357 *)
8358 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8359 esac ;;
8360 esac
8361 link_all_deplibs=yes
8362 ;;
8363
8364 sunos4*)
8365 if test "x$host_vendor" = xsequent; then
8366 # Use $CC to link under sequent, because it throws in some extra .o
8367 # files that make .init and .fini sections work.
8368 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8369 else
8370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8371 fi
8372 hardcode_libdir_flag_spec='-L$libdir'
8373 hardcode_direct=yes
8374 hardcode_minus_L=yes
8375 hardcode_shlibpath_var=no
8376 ;;
8377
8378 sysv4)
8379 case $host_vendor in
8380 sni)
8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_direct=yes # is this really true???
8383 ;;
8384 siemens)
8385 ## LD is ld it makes a PLAMLIB
8386 ## CC just makes a GrossModule.
8387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8388 reload_cmds='$CC -r -o $output$reload_objs'
8389 hardcode_direct=no
8390 ;;
8391 motorola)
8392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8394 ;;
8395 esac
8396 runpath_var='LD_RUN_PATH'
8397 hardcode_shlibpath_var=no
8398 ;;
8399
8400 sysv4.3*)
8401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402 hardcode_shlibpath_var=no
8403 export_dynamic_flag_spec='-Bexport'
8404 ;;
8405
8406 sysv4*MP*)
8407 if test -d /usr/nec; then
8408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8409 hardcode_shlibpath_var=no
8410 runpath_var=LD_RUN_PATH
8411 hardcode_runpath_var=yes
8412 ld_shlibs=yes
8413 fi
8414 ;;
8415
8416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8417 no_undefined_flag='${wl}-z,text'
8418 archive_cmds_need_lc=no
8419 hardcode_shlibpath_var=no
8420 runpath_var='LD_RUN_PATH'
8421
8422 if test "$GCC" = yes; then
8423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 else
8426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428 fi
8429 ;;
8430
8431 sysv5* | sco3.2v5* | sco5v6*)
8432 # Note: We can NOT use -z defs as we might desire, because we do not
8433 # link with -lc, and that would cause any symbols used from libc to
8434 # always be unresolved, which means just about no library would
8435 # ever link correctly. If we're not using GNU ld we use -z text
8436 # though, which does catch some bad symbols but isn't as heavy-handed
8437 # as -z defs.
8438 no_undefined_flag='${wl}-z,text'
8439 allow_undefined_flag='${wl}-z,nodefs'
8440 archive_cmds_need_lc=no
8441 hardcode_shlibpath_var=no
8442 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8443 hardcode_libdir_separator=':'
8444 link_all_deplibs=yes
8445 export_dynamic_flag_spec='${wl}-Bexport'
8446 runpath_var='LD_RUN_PATH'
8447
8448 if test "$GCC" = yes; then
8449 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8450 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 else
8452 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8454 fi
8455 ;;
8456
8457 uts4*)
8458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8459 hardcode_libdir_flag_spec='-L$libdir'
8460 hardcode_shlibpath_var=no
8461 ;;
8462
8463 *)
8464 ld_shlibs=no
8465 ;;
8466 esac
8467 fi
8468
8469 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8470 echo "${ECHO_T}$ld_shlibs" >&6; }
8471 test "$ld_shlibs" = no && can_build_shared=no
8472
8473 #
8474 # Do we need to explicitly link libc?
8475 #
8476 case "x$archive_cmds_need_lc" in
8477 x|xyes)
8478 # Assume -lc should be added
8479 archive_cmds_need_lc=yes
8480
8481 if test "$enable_shared" = yes && test "$GCC" = yes; then
8482 case $archive_cmds in
8483 *'~'*)
8484 # FIXME: we may have to deal with multi-command sequences.
8485 ;;
8486 '$CC '*)
8487 # Test whether the compiler implicitly links with -lc since on some
8488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8489 # to ld, don't add -lc before -lgcc.
8490 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8491 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8492 $rm conftest*
8493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8494
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } 2>conftest.err; then
8500 soname=conftest
8501 lib=conftest
8502 libobjs=conftest.$ac_objext
8503 deplibs=
8504 wl=$lt_prog_compiler_wl
8505 pic_flag=$lt_prog_compiler_pic
8506 compiler_flags=-v
8507 linker_flags=-v
8508 verstring=
8509 output_objdir=.
8510 libname=conftest
8511 lt_save_allow_undefined_flag=$allow_undefined_flag
8512 allow_undefined_flag=
8513 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8514 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }
8518 then
8519 archive_cmds_need_lc=no
8520 else
8521 archive_cmds_need_lc=yes
8522 fi
8523 allow_undefined_flag=$lt_save_allow_undefined_flag
8524 else
8525 cat conftest.err 1>&5
8526 fi
8527 $rm conftest*
8528 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8529 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8530 ;;
8531 esac
8532 fi
8533 ;;
8534 esac
8535
8536 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8537 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8538 library_names_spec=
8539 libname_spec='lib$name'
8540 soname_spec=
8541 shrext_cmds=".so"
8542 postinstall_cmds=
8543 postuninstall_cmds=
8544 finish_cmds=
8545 finish_eval=
8546 shlibpath_var=
8547 shlibpath_overrides_runpath=unknown
8548 version_type=none
8549 dynamic_linker="$host_os ld.so"
8550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8551 if test "$GCC" = yes; then
8552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8553 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8554 # if the path contains ";" then we assume it to be the separator
8555 # otherwise default to the standard path separator (i.e. ":") - it is
8556 # assumed that no part of a normal pathname contains ";" but that should
8557 # okay in the real world where ";" in dirpaths is itself problematic.
8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8559 else
8560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8561 fi
8562 else
8563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8564 fi
8565 need_lib_prefix=unknown
8566 hardcode_into_libs=no
8567
8568 # when you set need_version to no, make sure it does not cause -set_version
8569 # flags to be left without arguments
8570 need_version=unknown
8571
8572 case $host_os in
8573 aix3*)
8574 version_type=linux
8575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8576 shlibpath_var=LIBPATH
8577
8578 # AIX 3 has no versioning support, so we append a major version to the name.
8579 soname_spec='${libname}${release}${shared_ext}$major'
8580 ;;
8581
8582 aix4* | aix5*)
8583 version_type=linux
8584 need_lib_prefix=no
8585 need_version=no
8586 hardcode_into_libs=yes
8587 if test "$host_cpu" = ia64; then
8588 # AIX 5 supports IA64
8589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8590 shlibpath_var=LD_LIBRARY_PATH
8591 else
8592 # With GCC up to 2.95.x, collect2 would create an import file
8593 # for dependence libraries. The import file would start with
8594 # the line `#! .'. This would cause the generated library to
8595 # depend on `.', always an invalid library. This was fixed in
8596 # development snapshots of GCC prior to 3.0.
8597 case $host_os in
8598 aix4 | aix4.[01] | aix4.[01].*)
8599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8600 echo ' yes '
8601 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8602 :
8603 else
8604 can_build_shared=no
8605 fi
8606 ;;
8607 esac
8608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8609 # soname into executable. Probably we can add versioning support to
8610 # collect2, so additional links can be useful in future.
8611 if test "$aix_use_runtimelinking" = yes; then
8612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8613 # instead of lib<name>.a to let people know that these are not
8614 # typical AIX shared libraries.
8615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8616 else
8617 # We preserve .a as extension for shared libraries through AIX4.2
8618 # and later when we are not doing run time linking.
8619 library_names_spec='${libname}${release}.a $libname.a'
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 fi
8622 shlibpath_var=LIBPATH
8623 fi
8624 ;;
8625
8626 amigaos*)
8627 library_names_spec='$libname.ixlibrary $libname.a'
8628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8629 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'
8630 ;;
8631
8632 beos*)
8633 library_names_spec='${libname}${shared_ext}'
8634 dynamic_linker="$host_os ld.so"
8635 shlibpath_var=LIBRARY_PATH
8636 ;;
8637
8638 bsdi[45]*)
8639 version_type=linux
8640 need_version=no
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642 soname_spec='${libname}${release}${shared_ext}$major'
8643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8644 shlibpath_var=LD_LIBRARY_PATH
8645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8647 # the default ld.so.conf also contains /usr/contrib/lib and
8648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8649 # libtool to hard-code these into programs
8650 ;;
8651
8652 cygwin* | mingw* | pw32*)
8653 version_type=windows
8654 shrext_cmds=".dll"
8655 need_version=no
8656 need_lib_prefix=no
8657
8658 case $GCC,$host_os in
8659 yes,cygwin* | yes,mingw* | yes,pw32*)
8660 library_names_spec='$libname.dll.a'
8661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8662 postinstall_cmds='base_file=`basename \${file}`~
8663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8664 dldir=$destdir/`dirname \$dlpath`~
8665 test -d \$dldir || mkdir -p \$dldir~
8666 $install_prog $dir/$dlname \$dldir/$dlname~
8667 chmod a+x \$dldir/$dlname'
8668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8669 dlpath=$dir/\$dldll~
8670 $rm \$dlpath'
8671 shlibpath_overrides_runpath=yes
8672
8673 case $host_os in
8674 cygwin*)
8675 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8676 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8677 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8678 ;;
8679 mingw*)
8680 # MinGW DLLs use traditional 'lib' prefix
8681 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8683 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8684 # It is most probably a Windows format PATH printed by
8685 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8686 # path with ; separators, and with drive letters. We can handle the
8687 # drive letters (cygwin fileutils understands them), so leave them,
8688 # especially as we might pass files found there to a mingw objdump,
8689 # which wouldn't understand a cygwinified path. Ahh.
8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8691 else
8692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8693 fi
8694 ;;
8695 pw32*)
8696 # pw32 DLLs use 'pw' prefix rather than 'lib'
8697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8698 ;;
8699 esac
8700 ;;
8701
8702 *)
8703 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8704 ;;
8705 esac
8706 dynamic_linker='Win32 ld.exe'
8707 # FIXME: first we should search . and the directory the executable is in
8708 shlibpath_var=PATH
8709 ;;
8710
8711 darwin* | rhapsody*)
8712 dynamic_linker="$host_os dyld"
8713 version_type=darwin
8714 need_lib_prefix=no
8715 need_version=no
8716 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8717 soname_spec='${libname}${release}${major}$shared_ext'
8718 shlibpath_overrides_runpath=yes
8719 shlibpath_var=DYLD_LIBRARY_PATH
8720 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8721 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8722 if test "$GCC" = yes; then
8723 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8724 else
8725 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8726 fi
8727 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8728 ;;
8729
8730 dgux*)
8731 version_type=linux
8732 need_lib_prefix=no
8733 need_version=no
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8735 soname_spec='${libname}${release}${shared_ext}$major'
8736 shlibpath_var=LD_LIBRARY_PATH
8737 ;;
8738
8739 freebsd1*)
8740 dynamic_linker=no
8741 ;;
8742
8743 freebsd* | dragonfly*)
8744 # DragonFly does not have aout. When/if they implement a new
8745 # versioning mechanism, adjust this.
8746 if test -x /usr/bin/objformat; then
8747 objformat=`/usr/bin/objformat`
8748 else
8749 case $host_os in
8750 freebsd[123]*) objformat=aout ;;
8751 *) objformat=elf ;;
8752 esac
8753 fi
8754 version_type=freebsd-$objformat
8755 case $version_type in
8756 freebsd-elf*)
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8758 need_version=no
8759 need_lib_prefix=no
8760 ;;
8761 freebsd-*)
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8763 need_version=yes
8764 ;;
8765 esac
8766 shlibpath_var=LD_LIBRARY_PATH
8767 case $host_os in
8768 freebsd2*)
8769 shlibpath_overrides_runpath=yes
8770 ;;
8771 freebsd3.[01]* | freebsdelf3.[01]*)
8772 shlibpath_overrides_runpath=yes
8773 hardcode_into_libs=yes
8774 ;;
8775 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8776 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8777 shlibpath_overrides_runpath=no
8778 hardcode_into_libs=yes
8779 ;;
8780 freebsd*) # from 4.6 on
8781 shlibpath_overrides_runpath=yes
8782 hardcode_into_libs=yes
8783 ;;
8784 esac
8785 ;;
8786
8787 gnu*)
8788 version_type=linux
8789 need_lib_prefix=no
8790 need_version=no
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 shlibpath_var=LD_LIBRARY_PATH
8794 hardcode_into_libs=yes
8795 ;;
8796
8797 hpux9* | hpux10* | hpux11*)
8798 # Give a soname corresponding to the major version so that dld.sl refuses to
8799 # link against other versions.
8800 version_type=sunos
8801 need_lib_prefix=no
8802 need_version=no
8803 case $host_cpu in
8804 ia64*)
8805 shrext_cmds='.so'
8806 hardcode_into_libs=yes
8807 dynamic_linker="$host_os dld.so"
8808 shlibpath_var=LD_LIBRARY_PATH
8809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 if test "X$HPUX_IA64_MODE" = X32; then
8813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8814 else
8815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8816 fi
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8818 ;;
8819 hppa*64*)
8820 shrext_cmds='.sl'
8821 hardcode_into_libs=yes
8822 dynamic_linker="$host_os dld.sl"
8823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8829 ;;
8830 *)
8831 shrext_cmds='.sl'
8832 dynamic_linker="$host_os dld.sl"
8833 shlibpath_var=SHLIB_PATH
8834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 ;;
8838 esac
8839 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8840 postinstall_cmds='chmod 555 $lib'
8841 ;;
8842
8843 interix3*)
8844 version_type=linux
8845 need_lib_prefix=no
8846 need_version=no
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 shlibpath_overrides_runpath=no
8852 hardcode_into_libs=yes
8853 ;;
8854
8855 irix5* | irix6* | nonstopux*)
8856 case $host_os in
8857 nonstopux*) version_type=nonstopux ;;
8858 *)
8859 if test "$lt_cv_prog_gnu_ld" = yes; then
8860 version_type=linux
8861 else
8862 version_type=irix
8863 fi ;;
8864 esac
8865 need_lib_prefix=no
8866 need_version=no
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8869 case $host_os in
8870 irix5* | nonstopux*)
8871 libsuff= shlibsuff=
8872 ;;
8873 *)
8874 case $LD in # libtool.m4 will add one of these switches to LD
8875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8876 libsuff= shlibsuff= libmagic=32-bit;;
8877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8878 libsuff=32 shlibsuff=N32 libmagic=N32;;
8879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8881 *) libsuff= shlibsuff= libmagic=never-match;;
8882 esac
8883 ;;
8884 esac
8885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8886 shlibpath_overrides_runpath=no
8887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8889 hardcode_into_libs=yes
8890 ;;
8891
8892 # No shared lib support for Linux oldld, aout, or coff.
8893 linux*oldld* | linux*aout* | linux*coff*)
8894 dynamic_linker=no
8895 ;;
8896
8897 # This must be Linux ELF.
8898 linux* | k*bsd*-gnu)
8899 version_type=linux
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=no
8907 # This implies no fast_install, which is unacceptable.
8908 # Some rework will be needed to allow for fast_install
8909 # before this can be enabled.
8910 hardcode_into_libs=yes
8911
8912 # Append ld.so.conf contents to the search path
8913 if test -f /etc/ld.so.conf; then
8914 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8916 fi
8917
8918 # We used to test for /lib/ld.so.1 and disable shared libraries on
8919 # powerpc, because MkLinux only supported shared libraries with the
8920 # GNU dynamic linker. Since this was broken with cross compilers,
8921 # most powerpc-linux boxes support dynamic linking these days and
8922 # people can always --disable-shared, the test was removed, and we
8923 # assume the GNU/Linux dynamic linker is in use.
8924 dynamic_linker='GNU/Linux ld.so'
8925 ;;
8926
8927 netbsdelf*-gnu)
8928 version_type=linux
8929 need_lib_prefix=no
8930 need_version=no
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=no
8935 hardcode_into_libs=yes
8936 dynamic_linker='NetBSD ld.elf_so'
8937 ;;
8938
8939 netbsd*)
8940 version_type=sunos
8941 need_lib_prefix=no
8942 need_version=no
8943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8946 dynamic_linker='NetBSD (a.out) ld.so'
8947 else
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 dynamic_linker='NetBSD ld.elf_so'
8951 fi
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=yes
8954 hardcode_into_libs=yes
8955 ;;
8956
8957 newsos6)
8958 version_type=linux
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=yes
8962 ;;
8963
8964 nto-qnx*)
8965 version_type=linux
8966 need_lib_prefix=no
8967 need_version=no
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=yes
8972 ;;
8973
8974 openbsd*)
8975 version_type=sunos
8976 sys_lib_dlsearch_path_spec="/usr/lib"
8977 need_lib_prefix=no
8978 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8979 case $host_os in
8980 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8981 *) need_version=no ;;
8982 esac
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8987 case $host_os in
8988 openbsd2.[89] | openbsd2.[89].*)
8989 shlibpath_overrides_runpath=no
8990 ;;
8991 *)
8992 shlibpath_overrides_runpath=yes
8993 ;;
8994 esac
8995 else
8996 shlibpath_overrides_runpath=yes
8997 fi
8998 ;;
8999
9000 os2*)
9001 libname_spec='$name'
9002 shrext_cmds=".dll"
9003 need_lib_prefix=no
9004 library_names_spec='$libname${shared_ext} $libname.a'
9005 dynamic_linker='OS/2 ld.exe'
9006 shlibpath_var=LIBPATH
9007 ;;
9008
9009 osf3* | osf4* | osf5*)
9010 version_type=osf
9011 need_lib_prefix=no
9012 need_version=no
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9017 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9018 ;;
9019
9020 solaris*)
9021 version_type=linux
9022 need_lib_prefix=no
9023 need_version=no
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 hardcode_into_libs=yes
9029 # ldd complains unless libraries are executable
9030 postinstall_cmds='chmod +x $lib'
9031 ;;
9032
9033 sunos4*)
9034 version_type=sunos
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 if test "$with_gnu_ld" = yes; then
9040 need_lib_prefix=no
9041 fi
9042 need_version=yes
9043 ;;
9044
9045 sysv4 | sysv4.3*)
9046 version_type=linux
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 case $host_vendor in
9051 sni)
9052 shlibpath_overrides_runpath=no
9053 need_lib_prefix=no
9054 export_dynamic_flag_spec='${wl}-Blargedynsym'
9055 runpath_var=LD_RUN_PATH
9056 ;;
9057 siemens)
9058 need_lib_prefix=no
9059 ;;
9060 motorola)
9061 need_lib_prefix=no
9062 need_version=no
9063 shlibpath_overrides_runpath=no
9064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9065 ;;
9066 esac
9067 ;;
9068
9069 sysv4*MP*)
9070 if test -d /usr/nec ;then
9071 version_type=linux
9072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9073 soname_spec='$libname${shared_ext}.$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 fi
9076 ;;
9077
9078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9079 version_type=freebsd-elf
9080 need_lib_prefix=no
9081 need_version=no
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 hardcode_into_libs=yes
9086 if test "$with_gnu_ld" = yes; then
9087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9088 shlibpath_overrides_runpath=no
9089 else
9090 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9091 shlibpath_overrides_runpath=yes
9092 case $host_os in
9093 sco3.2v5*)
9094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9095 ;;
9096 esac
9097 fi
9098 sys_lib_dlsearch_path_spec='/usr/lib'
9099 ;;
9100
9101 uts4*)
9102 version_type=linux
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 ;;
9107
9108 *)
9109 dynamic_linker=no
9110 ;;
9111 esac
9112 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9113 echo "${ECHO_T}$dynamic_linker" >&6; }
9114 test "$dynamic_linker" = no && can_build_shared=no
9115
9116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9117 if test "$GCC" = yes; then
9118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9119 fi
9120
9121 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9122 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9123 hardcode_action=
9124 if test -n "$hardcode_libdir_flag_spec" || \
9125 test -n "$runpath_var" || \
9126 test "X$hardcode_automatic" = "Xyes" ; then
9127
9128 # We can hardcode non-existant directories.
9129 if test "$hardcode_direct" != no &&
9130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9131 # have to relink, otherwise we might link with an installed library
9132 # when we should be linking with a yet-to-be-installed one
9133 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9134 test "$hardcode_minus_L" != no; then
9135 # Linking always hardcodes the temporary library directory.
9136 hardcode_action=relink
9137 else
9138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9139 hardcode_action=immediate
9140 fi
9141 else
9142 # We cannot hardcode anything, or else we can only hardcode existing
9143 # directories.
9144 hardcode_action=unsupported
9145 fi
9146 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9147 echo "${ECHO_T}$hardcode_action" >&6; }
9148
9149 if test "$hardcode_action" = relink; then
9150 # Fast installation is not supported
9151 enable_fast_install=no
9152 elif test "$shlibpath_overrides_runpath" = yes ||
9153 test "$enable_shared" = no; then
9154 # Fast installation is not necessary
9155 enable_fast_install=needless
9156 fi
9157
9158 striplib=
9159 old_striplib=
9160 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9161 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9162 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9163 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9164 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9165 { echo "$as_me:$LINENO: result: yes" >&5
9166 echo "${ECHO_T}yes" >&6; }
9167 else
9168 # FIXME - insert some real tests, host_os isn't really good enough
9169 case $host_os in
9170 darwin*)
9171 if test -n "$STRIP" ; then
9172 striplib="$STRIP -x"
9173 { echo "$as_me:$LINENO: result: yes" >&5
9174 echo "${ECHO_T}yes" >&6; }
9175 else
9176 { echo "$as_me:$LINENO: result: no" >&5
9177 echo "${ECHO_T}no" >&6; }
9178 fi
9179 ;;
9180 *)
9181 { echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6; }
9183 ;;
9184 esac
9185 fi
9186
9187 if test "x$enable_dlopen" != xyes; then
9188 enable_dlopen=unknown
9189 enable_dlopen_self=unknown
9190 enable_dlopen_self_static=unknown
9191 else
9192 lt_cv_dlopen=no
9193 lt_cv_dlopen_libs=
9194
9195 case $host_os in
9196 beos*)
9197 lt_cv_dlopen="load_add_on"
9198 lt_cv_dlopen_libs=
9199 lt_cv_dlopen_self=yes
9200 ;;
9201
9202 mingw* | pw32*)
9203 lt_cv_dlopen="LoadLibrary"
9204 lt_cv_dlopen_libs=
9205 ;;
9206
9207 cygwin*)
9208 lt_cv_dlopen="dlopen"
9209 lt_cv_dlopen_libs=
9210 ;;
9211
9212 darwin*)
9213 # if libdl is installed we need to link against it
9214 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9215 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9216 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 ac_check_lib_save_LIBS=$LIBS
9220 LIBS="-ldl $LIBS"
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 char dlopen ();
9235 int
9236 main ()
9237 {
9238 return dlopen ();
9239 ;
9240 return 0;
9241 }
9242 _ACEOF
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (ac_try="$ac_link"
9245 case "(($ac_try" in
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9248 esac
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_link") 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest$ac_exeext &&
9260 $as_test_x conftest$ac_exeext; then
9261 ac_cv_lib_dl_dlopen=yes
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_lib_dl_dlopen=no
9267 fi
9268
9269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9270 conftest$ac_exeext conftest.$ac_ext
9271 LIBS=$ac_check_lib_save_LIBS
9272 fi
9273 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9274 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9275 if test $ac_cv_lib_dl_dlopen = yes; then
9276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9277 else
9278
9279 lt_cv_dlopen="dyld"
9280 lt_cv_dlopen_libs=
9281 lt_cv_dlopen_self=yes
9282
9283 fi
9284
9285 ;;
9286
9287 *)
9288 { echo "$as_me:$LINENO: checking for shl_load" >&5
9289 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9290 if test "${ac_cv_func_shl_load+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 cat >conftest.$ac_ext <<_ACEOF
9294 /* confdefs.h. */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9301 #define shl_load innocuous_shl_load
9302
9303 /* System header to define __stub macros and hopefully few prototypes,
9304 which can conflict with char shl_load (); below.
9305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9306 <limits.h> exists even on freestanding compilers. */
9307
9308 #ifdef __STDC__
9309 # include <limits.h>
9310 #else
9311 # include <assert.h>
9312 #endif
9313
9314 #undef shl_load
9315
9316 /* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 char shl_load ();
9323 /* The GNU C library defines this for functions which it implements
9324 to always fail with ENOSYS. Some functions are actually named
9325 something starting with __ and the normal name is an alias. */
9326 #if defined __stub_shl_load || defined __stub___shl_load
9327 choke me
9328 #endif
9329
9330 int
9331 main ()
9332 {
9333 return shl_load ();
9334 ;
9335 return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_link") 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest$ac_exeext &&
9355 $as_test_x conftest$ac_exeext; then
9356 ac_cv_func_shl_load=yes
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_cv_func_shl_load=no
9362 fi
9363
9364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9365 conftest$ac_exeext conftest.$ac_ext
9366 fi
9367 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9368 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9369 if test $ac_cv_func_shl_load = yes; then
9370 lt_cv_dlopen="shl_load"
9371 else
9372 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9373 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377 ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-ldld $LIBS"
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385
9386 /* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 char shl_load ();
9393 int
9394 main ()
9395 {
9396 return shl_load ();
9397 ;
9398 return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (ac_try="$ac_link"
9403 case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_link") 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest$ac_exeext &&
9418 $as_test_x conftest$ac_exeext; then
9419 ac_cv_lib_dld_shl_load=yes
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ac_cv_lib_dld_shl_load=no
9425 fi
9426
9427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9428 conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9430 fi
9431 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9432 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9433 if test $ac_cv_lib_dld_shl_load = yes; then
9434 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9435 else
9436 { echo "$as_me:$LINENO: checking for dlopen" >&5
9437 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9438 if test "${ac_cv_func_dlopen+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9449 #define dlopen innocuous_dlopen
9450
9451 /* System header to define __stub macros and hopefully few prototypes,
9452 which can conflict with char dlopen (); below.
9453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9454 <limits.h> exists even on freestanding compilers. */
9455
9456 #ifdef __STDC__
9457 # include <limits.h>
9458 #else
9459 # include <assert.h>
9460 #endif
9461
9462 #undef dlopen
9463
9464 /* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9467 #ifdef __cplusplus
9468 extern "C"
9469 #endif
9470 char dlopen ();
9471 /* The GNU C library defines this for functions which it implements
9472 to always fail with ENOSYS. Some functions are actually named
9473 something starting with __ and the normal name is an alias. */
9474 #if defined __stub_dlopen || defined __stub___dlopen
9475 choke me
9476 #endif
9477
9478 int
9479 main ()
9480 {
9481 return dlopen ();
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (ac_try="$ac_link"
9488 case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_link") 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } && {
9500 test -z "$ac_c_werror_flag" ||
9501 test ! -s conftest.err
9502 } && test -s conftest$ac_exeext &&
9503 $as_test_x conftest$ac_exeext; then
9504 ac_cv_func_dlopen=yes
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ac_cv_func_dlopen=no
9510 fi
9511
9512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9513 conftest$ac_exeext conftest.$ac_ext
9514 fi
9515 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9516 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9517 if test $ac_cv_func_dlopen = yes; then
9518 lt_cv_dlopen="dlopen"
9519 else
9520 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9521 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9522 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525 ac_check_lib_save_LIBS=$LIBS
9526 LIBS="-ldl $LIBS"
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char dlopen ();
9541 int
9542 main ()
9543 {
9544 return dlopen ();
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } && {
9563 test -z "$ac_c_werror_flag" ||
9564 test ! -s conftest.err
9565 } && test -s conftest$ac_exeext &&
9566 $as_test_x conftest$ac_exeext; then
9567 ac_cv_lib_dl_dlopen=yes
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 ac_cv_lib_dl_dlopen=no
9573 fi
9574
9575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9576 conftest$ac_exeext conftest.$ac_ext
9577 LIBS=$ac_check_lib_save_LIBS
9578 fi
9579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9580 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9581 if test $ac_cv_lib_dl_dlopen = yes; then
9582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9583 else
9584 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9585 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9586 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 ac_check_lib_save_LIBS=$LIBS
9590 LIBS="-lsvld $LIBS"
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h. */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597
9598 /* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 char dlopen ();
9605 int
9606 main ()
9607 {
9608 return dlopen ();
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (ac_try="$ac_link"
9615 case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_link") 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest$ac_exeext &&
9630 $as_test_x conftest$ac_exeext; then
9631 ac_cv_lib_svld_dlopen=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636 ac_cv_lib_svld_dlopen=no
9637 fi
9638
9639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640 conftest$ac_exeext conftest.$ac_ext
9641 LIBS=$ac_check_lib_save_LIBS
9642 fi
9643 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9644 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9645 if test $ac_cv_lib_svld_dlopen = yes; then
9646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9647 else
9648 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9649 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9650 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653 ac_check_lib_save_LIBS=$LIBS
9654 LIBS="-ldld $LIBS"
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661
9662 /* Override any GCC internal prototype to avoid an error.
9663 Use char because int might match the return type of a GCC
9664 builtin and then its argument prototype would still apply. */
9665 #ifdef __cplusplus
9666 extern "C"
9667 #endif
9668 char dld_link ();
9669 int
9670 main ()
9671 {
9672 return dld_link ();
9673 ;
9674 return 0;
9675 }
9676 _ACEOF
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (ac_try="$ac_link"
9679 case "(($ac_try" in
9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_link") 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && {
9691 test -z "$ac_c_werror_flag" ||
9692 test ! -s conftest.err
9693 } && test -s conftest$ac_exeext &&
9694 $as_test_x conftest$ac_exeext; then
9695 ac_cv_lib_dld_dld_link=yes
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_lib_dld_dld_link=no
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9704 conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9706 fi
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9708 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9709 if test $ac_cv_lib_dld_dld_link = yes; then
9710 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9711 fi
9712
9713
9714 fi
9715
9716
9717 fi
9718
9719
9720 fi
9721
9722
9723 fi
9724
9725
9726 fi
9727
9728 ;;
9729 esac
9730
9731 if test "x$lt_cv_dlopen" != xno; then
9732 enable_dlopen=yes
9733 else
9734 enable_dlopen=no
9735 fi
9736
9737 case $lt_cv_dlopen in
9738 dlopen)
9739 save_CPPFLAGS="$CPPFLAGS"
9740 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9741
9742 save_LDFLAGS="$LDFLAGS"
9743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9744
9745 save_LIBS="$LIBS"
9746 LIBS="$lt_cv_dlopen_libs $LIBS"
9747
9748 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9749 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9750 if test "${lt_cv_dlopen_self+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 if test "$cross_compiling" = yes; then :
9754 lt_cv_dlopen_self=cross
9755 else
9756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9757 lt_status=$lt_dlunknown
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9759 "configure"
9760 #include "confdefs.h"
9761
9762 #if HAVE_DLFCN_H
9763 #include <dlfcn.h>
9764 #endif
9765
9766 #include <stdio.h>
9767
9768 #ifdef RTLD_GLOBAL
9769 # define LT_DLGLOBAL RTLD_GLOBAL
9770 #else
9771 # ifdef DL_GLOBAL
9772 # define LT_DLGLOBAL DL_GLOBAL
9773 # else
9774 # define LT_DLGLOBAL 0
9775 # endif
9776 #endif
9777
9778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9779 find out it does not work in some platform. */
9780 #ifndef LT_DLLAZY_OR_NOW
9781 # ifdef RTLD_LAZY
9782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9783 # else
9784 # ifdef DL_LAZY
9785 # define LT_DLLAZY_OR_NOW DL_LAZY
9786 # else
9787 # ifdef RTLD_NOW
9788 # define LT_DLLAZY_OR_NOW RTLD_NOW
9789 # else
9790 # ifdef DL_NOW
9791 # define LT_DLLAZY_OR_NOW DL_NOW
9792 # else
9793 # define LT_DLLAZY_OR_NOW 0
9794 # endif
9795 # endif
9796 # endif
9797 # endif
9798 #endif
9799
9800 #ifdef __cplusplus
9801 extern "C" void exit (int);
9802 #endif
9803
9804 void fnord() { int i=42;}
9805 int main ()
9806 {
9807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9808 int status = $lt_dlunknown;
9809
9810 if (self)
9811 {
9812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9813 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9814 /* dlclose (self); */
9815 }
9816 else
9817 puts (dlerror ());
9818
9819 exit (status);
9820 }
9821 EOF
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9827 (./conftest; exit; ) >&5 2>/dev/null
9828 lt_status=$?
9829 case x$lt_status in
9830 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9831 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9832 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9833 esac
9834 else :
9835 # compilation failed
9836 lt_cv_dlopen_self=no
9837 fi
9838 fi
9839 rm -fr conftest*
9840
9841
9842 fi
9843 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9844 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9845
9846 if test "x$lt_cv_dlopen_self" = xyes; then
9847 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9848 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9849 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9850 if test "${lt_cv_dlopen_self_static+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 if test "$cross_compiling" = yes; then :
9854 lt_cv_dlopen_self_static=cross
9855 else
9856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9857 lt_status=$lt_dlunknown
9858 cat > conftest.$ac_ext <<EOF
9859 #line 9859 "configure"
9860 #include "confdefs.h"
9861
9862 #if HAVE_DLFCN_H
9863 #include <dlfcn.h>
9864 #endif
9865
9866 #include <stdio.h>
9867
9868 #ifdef RTLD_GLOBAL
9869 # define LT_DLGLOBAL RTLD_GLOBAL
9870 #else
9871 # ifdef DL_GLOBAL
9872 # define LT_DLGLOBAL DL_GLOBAL
9873 # else
9874 # define LT_DLGLOBAL 0
9875 # endif
9876 #endif
9877
9878 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9879 find out it does not work in some platform. */
9880 #ifndef LT_DLLAZY_OR_NOW
9881 # ifdef RTLD_LAZY
9882 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9883 # else
9884 # ifdef DL_LAZY
9885 # define LT_DLLAZY_OR_NOW DL_LAZY
9886 # else
9887 # ifdef RTLD_NOW
9888 # define LT_DLLAZY_OR_NOW RTLD_NOW
9889 # else
9890 # ifdef DL_NOW
9891 # define LT_DLLAZY_OR_NOW DL_NOW
9892 # else
9893 # define LT_DLLAZY_OR_NOW 0
9894 # endif
9895 # endif
9896 # endif
9897 # endif
9898 #endif
9899
9900 #ifdef __cplusplus
9901 extern "C" void exit (int);
9902 #endif
9903
9904 void fnord() { int i=42;}
9905 int main ()
9906 {
9907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9908 int status = $lt_dlunknown;
9909
9910 if (self)
9911 {
9912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9914 /* dlclose (self); */
9915 }
9916 else
9917 puts (dlerror ());
9918
9919 exit (status);
9920 }
9921 EOF
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9927 (./conftest; exit; ) >&5 2>/dev/null
9928 lt_status=$?
9929 case x$lt_status in
9930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9932 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9933 esac
9934 else :
9935 # compilation failed
9936 lt_cv_dlopen_self_static=no
9937 fi
9938 fi
9939 rm -fr conftest*
9940
9941
9942 fi
9943 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9944 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9945 fi
9946
9947 CPPFLAGS="$save_CPPFLAGS"
9948 LDFLAGS="$save_LDFLAGS"
9949 LIBS="$save_LIBS"
9950 ;;
9951 esac
9952
9953 case $lt_cv_dlopen_self in
9954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9955 *) enable_dlopen_self=unknown ;;
9956 esac
9957
9958 case $lt_cv_dlopen_self_static in
9959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9960 *) enable_dlopen_self_static=unknown ;;
9961 esac
9962 fi
9963
9964
9965 # Report which library types will actually be built
9966 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9967 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9968 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9969 echo "${ECHO_T}$can_build_shared" >&6; }
9970
9971 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9972 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9973 test "$can_build_shared" = "no" && enable_shared=no
9974
9975 # On AIX, shared libraries and static libraries use the same namespace, and
9976 # are all built from PIC.
9977 case $host_os in
9978 aix3*)
9979 test "$enable_shared" = yes && enable_static=no
9980 if test -n "$RANLIB"; then
9981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9982 postinstall_cmds='$RANLIB $lib'
9983 fi
9984 ;;
9985
9986 aix4* | aix5*)
9987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9988 test "$enable_shared" = yes && enable_static=no
9989 fi
9990 ;;
9991 esac
9992 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9993 echo "${ECHO_T}$enable_shared" >&6; }
9994
9995 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9996 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9997 # Make sure either enable_shared or enable_static is yes.
9998 test "$enable_shared" = yes || enable_static=yes
9999 { echo "$as_me:$LINENO: result: $enable_static" >&5
10000 echo "${ECHO_T}$enable_static" >&6; }
10001
10002 # The else clause should only fire when bootstrapping the
10003 # libtool distribution, otherwise you forgot to ship ltmain.sh
10004 # with your package, and you will get complaints that there are
10005 # no rules to generate ltmain.sh.
10006 if test -f "$ltmain"; then
10007 # See if we are running on zsh, and set the options which allow our commands through
10008 # without removal of \ escapes.
10009 if test -n "${ZSH_VERSION+set}" ; then
10010 setopt NO_GLOB_SUBST
10011 fi
10012 # Now quote all the things that may contain metacharacters while being
10013 # careful not to overquote the AC_SUBSTed values. We take copies of the
10014 # variables and quote the copies for generation of the libtool script.
10015 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10016 SED SHELL STRIP \
10017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10019 deplibs_check_method reload_flag reload_cmds need_locks \
10020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10021 lt_cv_sys_global_symbol_to_c_name_address \
10022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10023 old_postinstall_cmds old_postuninstall_cmds \
10024 compiler \
10025 CC \
10026 LD \
10027 lt_prog_compiler_wl \
10028 lt_prog_compiler_pic \
10029 lt_prog_compiler_static \
10030 lt_prog_compiler_no_builtin_flag \
10031 export_dynamic_flag_spec \
10032 thread_safe_flag_spec \
10033 whole_archive_flag_spec \
10034 enable_shared_with_static_runtimes \
10035 old_archive_cmds \
10036 old_archive_from_new_cmds \
10037 predep_objects \
10038 postdep_objects \
10039 predeps \
10040 postdeps \
10041 compiler_lib_search_path \
10042 archive_cmds \
10043 archive_expsym_cmds \
10044 postinstall_cmds \
10045 postuninstall_cmds \
10046 old_archive_from_expsyms_cmds \
10047 allow_undefined_flag \
10048 no_undefined_flag \
10049 export_symbols_cmds \
10050 hardcode_libdir_flag_spec \
10051 hardcode_libdir_flag_spec_ld \
10052 hardcode_libdir_separator \
10053 hardcode_automatic \
10054 module_cmds \
10055 module_expsym_cmds \
10056 lt_cv_prog_compiler_c_o \
10057 exclude_expsyms \
10058 include_expsyms; do
10059
10060 case $var in
10061 old_archive_cmds | \
10062 old_archive_from_new_cmds | \
10063 archive_cmds | \
10064 archive_expsym_cmds | \
10065 module_cmds | \
10066 module_expsym_cmds | \
10067 old_archive_from_expsyms_cmds | \
10068 export_symbols_cmds | \
10069 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10070 postinstall_cmds | postuninstall_cmds | \
10071 old_postinstall_cmds | old_postuninstall_cmds | \
10072 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10073 # Double-quote double-evaled strings.
10074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10075 ;;
10076 *)
10077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10078 ;;
10079 esac
10080 done
10081
10082 case $lt_echo in
10083 *'\$0 --fallback-echo"')
10084 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10085 ;;
10086 esac
10087
10088 cfgfile="${ofile}T"
10089 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10090 $rm -f "$cfgfile"
10091 { echo "$as_me:$LINENO: creating $ofile" >&5
10092 echo "$as_me: creating $ofile" >&6;}
10093
10094 cat <<__EOF__ >> "$cfgfile"
10095 #! $SHELL
10096
10097 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10098 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10099 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10100 #
10101 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10102 # Free Software Foundation, Inc.
10103 #
10104 # This file is part of GNU Libtool:
10105 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10106 #
10107 # This program is free software; you can redistribute it and/or modify
10108 # it under the terms of the GNU General Public License as published by
10109 # the Free Software Foundation; either version 2 of the License, or
10110 # (at your option) any later version.
10111 #
10112 # This program is distributed in the hope that it will be useful, but
10113 # WITHOUT ANY WARRANTY; without even the implied warranty of
10114 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10115 # General Public License for more details.
10116 #
10117 # You should have received a copy of the GNU General Public License
10118 # along with this program; if not, write to the Free Software
10119 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10120 #
10121 # As a special exception to the GNU General Public License, if you
10122 # distribute this file as part of a program that contains a
10123 # configuration script generated by Autoconf, you may include it under
10124 # the same distribution terms that you use for the rest of that program.
10125
10126 # A sed program that does not truncate output.
10127 SED=$lt_SED
10128
10129 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10130 Xsed="$SED -e 1s/^X//"
10131
10132 # The HP-UX ksh and POSIX shell print the target directory to stdout
10133 # if CDPATH is set.
10134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10135
10136 # The names of the tagged configurations supported by this script.
10137 available_tags=
10138
10139 # ### BEGIN LIBTOOL CONFIG
10140
10141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10142
10143 # Shell to use when invoking shell scripts.
10144 SHELL=$lt_SHELL
10145
10146 # Whether or not to build shared libraries.
10147 build_libtool_libs=$enable_shared
10148
10149 # Whether or not to build static libraries.
10150 build_old_libs=$enable_static
10151
10152 # Whether or not to add -lc for building shared libraries.
10153 build_libtool_need_lc=$archive_cmds_need_lc
10154
10155 # Whether or not to disallow shared libs when runtime libs are static
10156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10157
10158 # Whether or not to optimize for fast installation.
10159 fast_install=$enable_fast_install
10160
10161 # The host system.
10162 host_alias=$host_alias
10163 host=$host
10164 host_os=$host_os
10165
10166 # The build system.
10167 build_alias=$build_alias
10168 build=$build
10169 build_os=$build_os
10170
10171 # An echo program that does not interpret backslashes.
10172 echo=$lt_echo
10173
10174 # The archiver.
10175 AR=$lt_AR
10176 AR_FLAGS=$lt_AR_FLAGS
10177
10178 # A C compiler.
10179 LTCC=$lt_LTCC
10180
10181 # LTCC compiler flags.
10182 LTCFLAGS=$lt_LTCFLAGS
10183
10184 # A language-specific compiler.
10185 CC=$lt_compiler
10186
10187 # Is the compiler the GNU C compiler?
10188 with_gcc=$GCC
10189
10190 # An ERE matcher.
10191 EGREP=$lt_EGREP
10192
10193 # The linker used to build libraries.
10194 LD=$lt_LD
10195
10196 # Whether we need hard or soft links.
10197 LN_S=$lt_LN_S
10198
10199 # A BSD-compatible nm program.
10200 NM=$lt_NM
10201
10202 # A symbol stripping program
10203 STRIP=$lt_STRIP
10204
10205 # Used to examine libraries when file_magic_cmd begins "file"
10206 MAGIC_CMD=$MAGIC_CMD
10207
10208 # Used on cygwin: DLL creation program.
10209 DLLTOOL="$DLLTOOL"
10210
10211 # Used on cygwin: object dumper.
10212 OBJDUMP="$OBJDUMP"
10213
10214 # Used on cygwin: assembler.
10215 AS="$AS"
10216
10217 # The name of the directory that contains temporary libtool files.
10218 objdir=$objdir
10219
10220 # How to create reloadable object files.
10221 reload_flag=$lt_reload_flag
10222 reload_cmds=$lt_reload_cmds
10223
10224 # How to pass a linker flag through the compiler.
10225 wl=$lt_lt_prog_compiler_wl
10226
10227 # Object file suffix (normally "o").
10228 objext="$ac_objext"
10229
10230 # Old archive suffix (normally "a").
10231 libext="$libext"
10232
10233 # Shared library suffix (normally ".so").
10234 shrext_cmds='$shrext_cmds'
10235
10236 # Executable file suffix (normally "").
10237 exeext="$exeext"
10238
10239 # Additional compiler flags for building library objects.
10240 pic_flag=$lt_lt_prog_compiler_pic
10241 pic_mode=$pic_mode
10242
10243 # What is the maximum length of a command?
10244 max_cmd_len=$lt_cv_sys_max_cmd_len
10245
10246 # Does compiler simultaneously support -c and -o options?
10247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10248
10249 # Must we lock files when doing compilation?
10250 need_locks=$lt_need_locks
10251
10252 # Do we need the lib prefix for modules?
10253 need_lib_prefix=$need_lib_prefix
10254
10255 # Do we need a version for libraries?
10256 need_version=$need_version
10257
10258 # Whether dlopen is supported.
10259 dlopen_support=$enable_dlopen
10260
10261 # Whether dlopen of programs is supported.
10262 dlopen_self=$enable_dlopen_self
10263
10264 # Whether dlopen of statically linked programs is supported.
10265 dlopen_self_static=$enable_dlopen_self_static
10266
10267 # Compiler flag to prevent dynamic linking.
10268 link_static_flag=$lt_lt_prog_compiler_static
10269
10270 # Compiler flag to turn off builtin functions.
10271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10272
10273 # Compiler flag to allow reflexive dlopens.
10274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10275
10276 # Compiler flag to generate shared objects directly from archives.
10277 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10278
10279 # Compiler flag to generate thread-safe objects.
10280 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10281
10282 # Library versioning type.
10283 version_type=$version_type
10284
10285 # Format of library name prefix.
10286 libname_spec=$lt_libname_spec
10287
10288 # List of archive names. First name is the real one, the rest are links.
10289 # The last name is the one that the linker finds with -lNAME.
10290 library_names_spec=$lt_library_names_spec
10291
10292 # The coded name of the library, if different from the real name.
10293 soname_spec=$lt_soname_spec
10294
10295 # Commands used to build and install an old-style archive.
10296 RANLIB=$lt_RANLIB
10297 old_archive_cmds=$lt_old_archive_cmds
10298 old_postinstall_cmds=$lt_old_postinstall_cmds
10299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10300
10301 # Create an old-style archive from a shared archive.
10302 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10303
10304 # Create a temporary old-style archive to link instead of a shared archive.
10305 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10306
10307 # Commands used to build and install a shared archive.
10308 archive_cmds=$lt_archive_cmds
10309 archive_expsym_cmds=$lt_archive_expsym_cmds
10310 postinstall_cmds=$lt_postinstall_cmds
10311 postuninstall_cmds=$lt_postuninstall_cmds
10312
10313 # Commands used to build a loadable module (assumed same as above if empty)
10314 module_cmds=$lt_module_cmds
10315 module_expsym_cmds=$lt_module_expsym_cmds
10316
10317 # Commands to strip libraries.
10318 old_striplib=$lt_old_striplib
10319 striplib=$lt_striplib
10320
10321 # Dependencies to place before the objects being linked to create a
10322 # shared library.
10323 predep_objects=$lt_predep_objects
10324
10325 # Dependencies to place after the objects being linked to create a
10326 # shared library.
10327 postdep_objects=$lt_postdep_objects
10328
10329 # Dependencies to place before the objects being linked to create a
10330 # shared library.
10331 predeps=$lt_predeps
10332
10333 # Dependencies to place after the objects being linked to create a
10334 # shared library.
10335 postdeps=$lt_postdeps
10336
10337 # The library search path used internally by the compiler when linking
10338 # a shared library.
10339 compiler_lib_search_path=$lt_compiler_lib_search_path
10340
10341 # Method to check whether dependent libraries are shared objects.
10342 deplibs_check_method=$lt_deplibs_check_method
10343
10344 # Command to use when deplibs_check_method == file_magic.
10345 file_magic_cmd=$lt_file_magic_cmd
10346
10347 # Flag that allows shared libraries with undefined symbols to be built.
10348 allow_undefined_flag=$lt_allow_undefined_flag
10349
10350 # Flag that forces no undefined symbols.
10351 no_undefined_flag=$lt_no_undefined_flag
10352
10353 # Commands used to finish a libtool library installation in a directory.
10354 finish_cmds=$lt_finish_cmds
10355
10356 # Same as above, but a single script fragment to be evaled but not shown.
10357 finish_eval=$lt_finish_eval
10358
10359 # Take the output of nm and produce a listing of raw symbols and C names.
10360 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10361
10362 # Transform the output of nm in a proper C declaration
10363 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10364
10365 # Transform the output of nm in a C name address pair
10366 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10367
10368 # This is the shared library runtime path variable.
10369 runpath_var=$runpath_var
10370
10371 # This is the shared library path variable.
10372 shlibpath_var=$shlibpath_var
10373
10374 # Is shlibpath searched before the hard-coded library search path?
10375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10376
10377 # How to hardcode a shared library path into an executable.
10378 hardcode_action=$hardcode_action
10379
10380 # Whether we should hardcode library paths into libraries.
10381 hardcode_into_libs=$hardcode_into_libs
10382
10383 # Flag to hardcode \$libdir into a binary during linking.
10384 # This must work even if \$libdir does not exist.
10385 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10386
10387 # If ld is used when linking, flag to hardcode \$libdir into
10388 # a binary during linking. This must work even if \$libdir does
10389 # not exist.
10390 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10391
10392 # Whether we need a single -rpath flag with a separated argument.
10393 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10394
10395 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10396 # resulting binary.
10397 hardcode_direct=$hardcode_direct
10398
10399 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10400 # resulting binary.
10401 hardcode_minus_L=$hardcode_minus_L
10402
10403 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10404 # the resulting binary.
10405 hardcode_shlibpath_var=$hardcode_shlibpath_var
10406
10407 # Set to yes if building a shared library automatically hardcodes DIR into the library
10408 # and all subsequent libraries and executables linked against it.
10409 hardcode_automatic=$hardcode_automatic
10410
10411 # Variables whose values should be saved in libtool wrapper scripts and
10412 # restored at relink time.
10413 variables_saved_for_relink="$variables_saved_for_relink"
10414
10415 # Whether libtool must link a program against all its dependency libraries.
10416 link_all_deplibs=$link_all_deplibs
10417
10418 # Compile-time system search path for libraries
10419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10420
10421 # Run-time system search path for libraries
10422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10423
10424 # Fix the shell variable \$srcfile for the compiler.
10425 fix_srcfile_path="$fix_srcfile_path"
10426
10427 # Set to yes if exported symbols are required.
10428 always_export_symbols=$always_export_symbols
10429
10430 # The commands to list exported symbols.
10431 export_symbols_cmds=$lt_export_symbols_cmds
10432
10433 # The commands to extract the exported symbol list from a shared archive.
10434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10435
10436 # Symbols that should not be listed in the preloaded symbols.
10437 exclude_expsyms=$lt_exclude_expsyms
10438
10439 # Symbols that must always be exported.
10440 include_expsyms=$lt_include_expsyms
10441
10442 # ### END LIBTOOL CONFIG
10443
10444 __EOF__
10445
10446
10447 case $host_os in
10448 aix3*)
10449 cat <<\EOF >> "$cfgfile"
10450
10451 # AIX sometimes has problems with the GCC collect2 program. For some
10452 # reason, if we set the COLLECT_NAMES environment variable, the problems
10453 # vanish in a puff of smoke.
10454 if test "X${COLLECT_NAMES+set}" != Xset; then
10455 COLLECT_NAMES=
10456 export COLLECT_NAMES
10457 fi
10458 EOF
10459 ;;
10460 esac
10461
10462 # We use sed instead of cat because bash on DJGPP gets confused if
10463 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10464 # text mode, it properly converts lines to CR/LF. This bash problem
10465 # is reportedly fixed, but why not run on old versions too?
10466 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10467
10468 mv -f "$cfgfile" "$ofile" || \
10469 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10470 chmod +x "$ofile"
10471
10472 else
10473 # If there is no Makefile yet, we rely on a make rule to execute
10474 # `config.status --recheck' to rerun these tests and create the
10475 # libtool script then.
10476 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10477 if test -f "$ltmain_in"; then
10478 test -f Makefile && make "$ltmain"
10479 fi
10480 fi
10481
10482
10483 ac_ext=c
10484 ac_cpp='$CPP $CPPFLAGS'
10485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10488
10489 CC="$lt_save_CC"
10490
10491
10492 # Check whether --with-tags was given.
10493 if test "${with_tags+set}" = set; then
10494 withval=$with_tags; tagnames="$withval"
10495 fi
10496
10497
10498 if test -f "$ltmain" && test -n "$tagnames"; then
10499 if test ! -f "${ofile}"; then
10500 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10501 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10502 fi
10503
10504 if test -z "$LTCC"; then
10505 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10506 if test -z "$LTCC"; then
10507 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10508 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10509 else
10510 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10511 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10512 fi
10513 fi
10514 if test -z "$LTCFLAGS"; then
10515 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10516 fi
10517
10518 # Extract list of available tagged configurations in $ofile.
10519 # Note that this assumes the entire list is on one line.
10520 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10521
10522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10523 for tagname in $tagnames; do
10524 IFS="$lt_save_ifs"
10525 # Check whether tagname contains only valid characters
10526 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10527 "") ;;
10528 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10529 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10530 { (exit 1); exit 1; }; }
10531 ;;
10532 esac
10533
10534 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10535 then
10536 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10537 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10538 { (exit 1); exit 1; }; }
10539 fi
10540
10541 # Update the list of available tags.
10542 if test -n "$tagname"; then
10543 echo appending configuration tag \"$tagname\" to $ofile
10544
10545 case $tagname in
10546 CXX)
10547 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10548 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10549 (test "X$CXX" != "Xg++"))) ; then
10550 ac_ext=cpp
10551 ac_cpp='$CXXCPP $CPPFLAGS'
10552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10555
10556
10557
10558
10559 archive_cmds_need_lc_CXX=no
10560 allow_undefined_flag_CXX=
10561 always_export_symbols_CXX=no
10562 archive_expsym_cmds_CXX=
10563 export_dynamic_flag_spec_CXX=
10564 hardcode_direct_CXX=no
10565 hardcode_libdir_flag_spec_CXX=
10566 hardcode_libdir_flag_spec_ld_CXX=
10567 hardcode_libdir_separator_CXX=
10568 hardcode_minus_L_CXX=no
10569 hardcode_shlibpath_var_CXX=unsupported
10570 hardcode_automatic_CXX=no
10571 module_cmds_CXX=
10572 module_expsym_cmds_CXX=
10573 link_all_deplibs_CXX=unknown
10574 old_archive_cmds_CXX=$old_archive_cmds
10575 no_undefined_flag_CXX=
10576 whole_archive_flag_spec_CXX=
10577 enable_shared_with_static_runtimes_CXX=no
10578
10579 # Dependencies to place before and after the object being linked:
10580 predep_objects_CXX=
10581 postdep_objects_CXX=
10582 predeps_CXX=
10583 postdeps_CXX=
10584 compiler_lib_search_path_CXX=
10585
10586 # Source file extension for C++ test sources.
10587 ac_ext=cpp
10588
10589 # Object file extension for compiled C++ test sources.
10590 objext=o
10591 objext_CXX=$objext
10592
10593 # Code to be used in simple compile tests
10594 lt_simple_compile_test_code="int some_variable = 0;\n"
10595
10596 # Code to be used in simple link tests
10597 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10598
10599 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10600
10601 # If no C compiler was specified, use CC.
10602 LTCC=${LTCC-"$CC"}
10603
10604 # If no C compiler flags were specified, use CFLAGS.
10605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10606
10607 # Allow CC to be a program name with arguments.
10608 compiler=$CC
10609
10610
10611 # save warnings/boilerplate of simple test code
10612 ac_outfile=conftest.$ac_objext
10613 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10614 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10615 _lt_compiler_boilerplate=`cat conftest.err`
10616 $rm conftest*
10617
10618 ac_outfile=conftest.$ac_objext
10619 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10620 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10621 _lt_linker_boilerplate=`cat conftest.err`
10622 $rm conftest*
10623
10624
10625 # Allow CC to be a program name with arguments.
10626 lt_save_CC=$CC
10627 lt_save_LD=$LD
10628 lt_save_GCC=$GCC
10629 GCC=$GXX
10630 lt_save_with_gnu_ld=$with_gnu_ld
10631 lt_save_path_LD=$lt_cv_path_LD
10632 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10633 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10634 else
10635 $as_unset lt_cv_prog_gnu_ld
10636 fi
10637 if test -n "${lt_cv_path_LDCXX+set}"; then
10638 lt_cv_path_LD=$lt_cv_path_LDCXX
10639 else
10640 $as_unset lt_cv_path_LD
10641 fi
10642 test -z "${LDCXX+set}" || LD=$LDCXX
10643 CC=${CXX-"c++"}
10644 compiler=$CC
10645 compiler_CXX=$CC
10646 for cc_temp in $compiler""; do
10647 case $cc_temp in
10648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10650 \-*) ;;
10651 *) break;;
10652 esac
10653 done
10654 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10655
10656
10657 # We don't want -fno-exception wen compiling C++ code, so set the
10658 # no_builtin_flag separately
10659 if test "$GXX" = yes; then
10660 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10661 else
10662 lt_prog_compiler_no_builtin_flag_CXX=
10663 fi
10664
10665 if test "$GXX" = yes; then
10666 # Set up default GNU C++ configuration
10667
10668
10669 # Check whether --with-gnu-ld was given.
10670 if test "${with_gnu_ld+set}" = set; then
10671 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10672 else
10673 with_gnu_ld=no
10674 fi
10675
10676 ac_prog=ld
10677 if test "$GCC" = yes; then
10678 # Check if gcc -print-prog-name=ld gives a path.
10679 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10680 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10681 case $host in
10682 *-*-mingw*)
10683 # gcc leaves a trailing carriage return which upsets mingw
10684 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10685 *)
10686 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10687 esac
10688 case $ac_prog in
10689 # Accept absolute paths.
10690 [\\/]* | ?:[\\/]*)
10691 re_direlt='/[^/][^/]*/\.\./'
10692 # Canonicalize the pathname of ld
10693 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10694 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10695 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10696 done
10697 test -z "$LD" && LD="$ac_prog"
10698 ;;
10699 "")
10700 # If it fails, then pretend we aren't using GCC.
10701 ac_prog=ld
10702 ;;
10703 *)
10704 # If it is relative, then search for the first ld in PATH.
10705 with_gnu_ld=unknown
10706 ;;
10707 esac
10708 elif test "$with_gnu_ld" = yes; then
10709 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10710 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10711 else
10712 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10713 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10714 fi
10715 if test "${lt_cv_path_LD+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718 if test -z "$LD"; then
10719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10720 for ac_dir in $PATH; do
10721 IFS="$lt_save_ifs"
10722 test -z "$ac_dir" && ac_dir=.
10723 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10724 lt_cv_path_LD="$ac_dir/$ac_prog"
10725 # Check to see if the program is GNU ld. I'd rather use --version,
10726 # but apparently some variants of GNU ld only accept -v.
10727 # Break only if it was the GNU/non-GNU ld that we prefer.
10728 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10729 *GNU* | *'with BFD'*)
10730 test "$with_gnu_ld" != no && break
10731 ;;
10732 *)
10733 test "$with_gnu_ld" != yes && break
10734 ;;
10735 esac
10736 fi
10737 done
10738 IFS="$lt_save_ifs"
10739 else
10740 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10741 fi
10742 fi
10743
10744 LD="$lt_cv_path_LD"
10745 if test -n "$LD"; then
10746 { echo "$as_me:$LINENO: result: $LD" >&5
10747 echo "${ECHO_T}$LD" >&6; }
10748 else
10749 { echo "$as_me:$LINENO: result: no" >&5
10750 echo "${ECHO_T}no" >&6; }
10751 fi
10752 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10753 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10754 { (exit 1); exit 1; }; }
10755 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10756 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10757 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10761 case `$LD -v 2>&1 </dev/null` in
10762 *GNU* | *'with BFD'*)
10763 lt_cv_prog_gnu_ld=yes
10764 ;;
10765 *)
10766 lt_cv_prog_gnu_ld=no
10767 ;;
10768 esac
10769 fi
10770 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10771 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10772 with_gnu_ld=$lt_cv_prog_gnu_ld
10773
10774
10775
10776 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10777 # archiving commands below assume that GNU ld is being used.
10778 if test "$with_gnu_ld" = yes; then
10779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10780 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'
10781
10782 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10783 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10784
10785 # If archive_cmds runs LD, not CC, wlarc should be empty
10786 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10787 # investigate it a little bit more. (MM)
10788 wlarc='${wl}'
10789
10790 # ancient GNU ld didn't support --whole-archive et. al.
10791 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10792 grep 'no-whole-archive' > /dev/null; then
10793 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10794 else
10795 whole_archive_flag_spec_CXX=
10796 fi
10797 else
10798 with_gnu_ld=no
10799 wlarc=
10800
10801 # A generic and very simple default shared library creation
10802 # command for GNU C++ for the case where it uses the native
10803 # linker, instead of GNU ld. If possible, this setting should
10804 # overridden to take advantage of the native linker features on
10805 # the platform it is being used on.
10806 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10807 fi
10808
10809 # Commands to make compiler produce verbose output that lists
10810 # what "hidden" libraries, object files and flags are used when
10811 # linking a shared library.
10812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10813
10814 else
10815 GXX=no
10816 with_gnu_ld=no
10817 wlarc=
10818 fi
10819
10820 # PORTME: fill in a description of your system's C++ link characteristics
10821 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10822 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10823 ld_shlibs_CXX=yes
10824 case $host_os in
10825 aix3*)
10826 # FIXME: insert proper C++ library support
10827 ld_shlibs_CXX=no
10828 ;;
10829 aix4* | aix5*)
10830 if test "$host_cpu" = ia64; then
10831 # On IA64, the linker does run time linking by default, so we don't
10832 # have to do anything special.
10833 aix_use_runtimelinking=no
10834 exp_sym_flag='-Bexport'
10835 no_entry_flag=""
10836 else
10837 aix_use_runtimelinking=no
10838
10839 # Test if we are trying to use run time linking or normal
10840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10841 # need to do runtime linking.
10842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10843 for ld_flag in $LDFLAGS; do
10844 case $ld_flag in
10845 *-brtl*)
10846 aix_use_runtimelinking=yes
10847 break
10848 ;;
10849 esac
10850 done
10851 ;;
10852 esac
10853
10854 exp_sym_flag='-bexport'
10855 no_entry_flag='-bnoentry'
10856 fi
10857
10858 # When large executables or shared objects are built, AIX ld can
10859 # have problems creating the table of contents. If linking a library
10860 # or program results in "error TOC overflow" add -mminimal-toc to
10861 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10862 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10863
10864 archive_cmds_CXX=''
10865 hardcode_direct_CXX=yes
10866 hardcode_libdir_separator_CXX=':'
10867 link_all_deplibs_CXX=yes
10868
10869 if test "$GXX" = yes; then
10870 case $host_os in aix4.[012]|aix4.[012].*)
10871 # We only want to do this on AIX 4.2 and lower, the check
10872 # below for broken collect2 doesn't work under 4.3+
10873 collect2name=`${CC} -print-prog-name=collect2`
10874 if test -f "$collect2name" && \
10875 strings "$collect2name" | grep resolve_lib_name >/dev/null
10876 then
10877 # We have reworked collect2
10878 hardcode_direct_CXX=yes
10879 else
10880 # We have old collect2
10881 hardcode_direct_CXX=unsupported
10882 # It fails to find uninstalled libraries when the uninstalled
10883 # path is not listed in the libpath. Setting hardcode_minus_L
10884 # to unsupported forces relinking
10885 hardcode_minus_L_CXX=yes
10886 hardcode_libdir_flag_spec_CXX='-L$libdir'
10887 hardcode_libdir_separator_CXX=
10888 fi
10889 ;;
10890 esac
10891 shared_flag='-shared'
10892 if test "$aix_use_runtimelinking" = yes; then
10893 shared_flag="$shared_flag "'${wl}-G'
10894 fi
10895 else
10896 # not using gcc
10897 if test "$host_cpu" = ia64; then
10898 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10899 # chokes on -Wl,-G. The following line is correct:
10900 shared_flag='-G'
10901 else
10902 if test "$aix_use_runtimelinking" = yes; then
10903 shared_flag='${wl}-G'
10904 else
10905 shared_flag='${wl}-bM:SRE'
10906 fi
10907 fi
10908 fi
10909
10910 # It seems that -bexpall does not export symbols beginning with
10911 # underscore (_), so it is better to generate a list of symbols to export.
10912 always_export_symbols_CXX=yes
10913 if test "$aix_use_runtimelinking" = yes; then
10914 # Warning - without using the other runtime loading flags (-brtl),
10915 # -berok will link without error, but may produce a broken library.
10916 allow_undefined_flag_CXX='-berok'
10917 # Determine the default libpath from the value encoded in an empty executable.
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924
10925 int
10926 main ()
10927 {
10928
10929 ;
10930 return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (ac_try="$ac_link"
10935 case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_link") 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } && {
10947 test -z "$ac_cxx_werror_flag" ||
10948 test ! -s conftest.err
10949 } && test -s conftest$ac_exeext &&
10950 $as_test_x conftest$ac_exeext; then
10951
10952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10953 }'`
10954 # Check for a 64-bit object if we didn't find anything.
10955 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10956 }'`; fi
10957 else
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10960
10961
10962 fi
10963
10964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10965 conftest$ac_exeext conftest.$ac_ext
10966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10967
10968 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10969
10970 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"
10971 else
10972 if test "$host_cpu" = ia64; then
10973 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10974 allow_undefined_flag_CXX="-z nodefs"
10975 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"
10976 else
10977 # Determine the default libpath from the value encoded in an empty executable.
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984
10985 int
10986 main ()
10987 {
10988
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_cxx_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest$ac_exeext &&
11010 $as_test_x conftest$ac_exeext; then
11011
11012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11013 }'`
11014 # Check for a 64-bit object if we didn't find anything.
11015 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11016 }'`; fi
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021
11022 fi
11023
11024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11025 conftest$ac_exeext conftest.$ac_ext
11026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11027
11028 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11029 # Warning - without using the other run time loading flags,
11030 # -berok will link without error, but may produce a broken library.
11031 no_undefined_flag_CXX=' ${wl}-bernotok'
11032 allow_undefined_flag_CXX=' ${wl}-berok'
11033 # Exported symbols can be pulled into shared objects from archives
11034 whole_archive_flag_spec_CXX='$convenience'
11035 archive_cmds_need_lc_CXX=yes
11036 # This is similar to how AIX traditionally builds its shared libraries.
11037 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'
11038 fi
11039 fi
11040 ;;
11041
11042 beos*)
11043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11044 allow_undefined_flag_CXX=unsupported
11045 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11046 # support --undefined. This deserves some investigation. FIXME
11047 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048 else
11049 ld_shlibs_CXX=no
11050 fi
11051 ;;
11052
11053 chorus*)
11054 case $cc_basename in
11055 *)
11056 # FIXME: insert proper C++ library support
11057 ld_shlibs_CXX=no
11058 ;;
11059 esac
11060 ;;
11061
11062 cygwin* | mingw* | pw32*)
11063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11064 # as there is no search path for DLLs.
11065 hardcode_libdir_flag_spec_CXX='-L$libdir'
11066 allow_undefined_flag_CXX=unsupported
11067 always_export_symbols_CXX=no
11068 enable_shared_with_static_runtimes_CXX=yes
11069
11070 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11071 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'
11072 # If the export-symbols file already is a .def file (1st line
11073 # is EXPORTS), use it as is; otherwise, prepend...
11074 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11075 cp $export_symbols $output_objdir/$soname.def;
11076 else
11077 echo EXPORTS > $output_objdir/$soname.def;
11078 cat $export_symbols >> $output_objdir/$soname.def;
11079 fi~
11080 $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'
11081 else
11082 ld_shlibs_CXX=no
11083 fi
11084 ;;
11085 darwin* | rhapsody*)
11086 case $host_os in
11087 rhapsody* | darwin1.[012])
11088 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11089 ;;
11090 *) # Darwin 1.3 on
11091 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11092 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11093 else
11094 case ${MACOSX_DEPLOYMENT_TARGET} in
11095 10.[012])
11096 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11097 ;;
11098 10.*)
11099 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11100 ;;
11101 esac
11102 fi
11103 ;;
11104 esac
11105 archive_cmds_need_lc_CXX=no
11106 hardcode_direct_CXX=no
11107 hardcode_automatic_CXX=yes
11108 hardcode_shlibpath_var_CXX=unsupported
11109 whole_archive_flag_spec_CXX=''
11110 link_all_deplibs_CXX=yes
11111
11112 if test "$GXX" = yes ; then
11113 lt_int_apple_cc_single_mod=no
11114 output_verbose_link_cmd='echo'
11115 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11116 lt_int_apple_cc_single_mod=yes
11117 fi
11118 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11119 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11120 else
11121 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'
11122 fi
11123 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11124 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11125 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11126 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}'
11127 else
11128 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}'
11129 fi
11130 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}'
11131 else
11132 case $cc_basename in
11133 xlc*)
11134 output_verbose_link_cmd='echo'
11135 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11136 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11138 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11139 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}'
11140 ;;
11141 *)
11142 ld_shlibs_CXX=no
11143 ;;
11144 esac
11145 fi
11146 ;;
11147
11148 dgux*)
11149 case $cc_basename in
11150 ec++*)
11151 # FIXME: insert proper C++ library support
11152 ld_shlibs_CXX=no
11153 ;;
11154 ghcx*)
11155 # Green Hills C++ Compiler
11156 # FIXME: insert proper C++ library support
11157 ld_shlibs_CXX=no
11158 ;;
11159 *)
11160 # FIXME: insert proper C++ library support
11161 ld_shlibs_CXX=no
11162 ;;
11163 esac
11164 ;;
11165 freebsd[12]*)
11166 # C++ shared libraries reported to be fairly broken before switch to ELF
11167 ld_shlibs_CXX=no
11168 ;;
11169 freebsd-elf*)
11170 archive_cmds_need_lc_CXX=no
11171 ;;
11172 freebsd* | dragonfly*)
11173 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11174 # conventions
11175 ld_shlibs_CXX=yes
11176 ;;
11177 gnu*)
11178 ;;
11179 hpux9*)
11180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11181 hardcode_libdir_separator_CXX=:
11182 export_dynamic_flag_spec_CXX='${wl}-E'
11183 hardcode_direct_CXX=yes
11184 hardcode_minus_L_CXX=yes # Not in the search PATH,
11185 # but as the default
11186 # location of the library.
11187
11188 case $cc_basename in
11189 CC*)
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11192 ;;
11193 aCC*)
11194 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'
11195 # Commands to make compiler produce verbose output that lists
11196 # what "hidden" libraries, object files and flags are used when
11197 # linking a shared library.
11198 #
11199 # There doesn't appear to be a way to prevent this compiler from
11200 # explicitly linking system object files so we need to strip them
11201 # from the output so that they don't get included in the library
11202 # dependencies.
11203 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'
11204 ;;
11205 *)
11206 if test "$GXX" = yes; then
11207 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'
11208 else
11209 # FIXME: insert proper C++ library support
11210 ld_shlibs_CXX=no
11211 fi
11212 ;;
11213 esac
11214 ;;
11215 hpux10*|hpux11*)
11216 if test $with_gnu_ld = no; then
11217 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11218 hardcode_libdir_separator_CXX=:
11219
11220 case $host_cpu in
11221 hppa*64*|ia64*)
11222 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11223 ;;
11224 *)
11225 export_dynamic_flag_spec_CXX='${wl}-E'
11226 ;;
11227 esac
11228 fi
11229 case $host_cpu in
11230 hppa*64*|ia64*)
11231 hardcode_direct_CXX=no
11232 hardcode_shlibpath_var_CXX=no
11233 ;;
11234 *)
11235 hardcode_direct_CXX=yes
11236 hardcode_minus_L_CXX=yes # Not in the search PATH,
11237 # but as the default
11238 # location of the library.
11239 ;;
11240 esac
11241
11242 case $cc_basename in
11243 CC*)
11244 # FIXME: insert proper C++ library support
11245 ld_shlibs_CXX=no
11246 ;;
11247 aCC*)
11248 case $host_cpu in
11249 hppa*64*)
11250 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11251 ;;
11252 ia64*)
11253 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11254 ;;
11255 *)
11256 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11257 ;;
11258 esac
11259 # Commands to make compiler produce verbose output that lists
11260 # what "hidden" libraries, object files and flags are used when
11261 # linking a shared library.
11262 #
11263 # There doesn't appear to be a way to prevent this compiler from
11264 # explicitly linking system object files so we need to strip them
11265 # from the output so that they don't get included in the library
11266 # dependencies.
11267 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'
11268 ;;
11269 *)
11270 if test "$GXX" = yes; then
11271 if test $with_gnu_ld = no; then
11272 case $host_cpu in
11273 hppa*64*)
11274 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11275 ;;
11276 ia64*)
11277 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11278 ;;
11279 *)
11280 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'
11281 ;;
11282 esac
11283 fi
11284 else
11285 # FIXME: insert proper C++ library support
11286 ld_shlibs_CXX=no
11287 fi
11288 ;;
11289 esac
11290 ;;
11291 interix3*)
11292 hardcode_direct_CXX=no
11293 hardcode_shlibpath_var_CXX=no
11294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11295 export_dynamic_flag_spec_CXX='${wl}-E'
11296 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11297 # Instead, shared libraries are loaded at an image base (0x10000000 by
11298 # default) and relocated if they conflict, which is a slow very memory
11299 # consuming and fragmenting process. To avoid this, we pick a random,
11300 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11301 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11302 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'
11303 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'
11304 ;;
11305 irix5* | irix6*)
11306 case $cc_basename in
11307 CC*)
11308 # SGI C++
11309 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'
11310
11311 # Archives containing C++ object files must be created using
11312 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11313 # necessary to make sure instantiated templates are included
11314 # in the archive.
11315 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11316 ;;
11317 *)
11318 if test "$GXX" = yes; then
11319 if test "$with_gnu_ld" = no; then
11320 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'
11321 else
11322 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'
11323 fi
11324 fi
11325 link_all_deplibs_CXX=yes
11326 ;;
11327 esac
11328 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11329 hardcode_libdir_separator_CXX=:
11330 ;;
11331 linux* | k*bsd*-gnu)
11332 case $cc_basename in
11333 KCC*)
11334 # Kuck and Associates, Inc. (KAI) C++ Compiler
11335
11336 # KCC will only create a shared library if the output file
11337 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11338 # to its proper name (with version) after linking.
11339 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'
11340 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'
11341 # Commands to make compiler produce verbose output that lists
11342 # what "hidden" libraries, object files and flags are used when
11343 # linking a shared library.
11344 #
11345 # There doesn't appear to be a way to prevent this compiler from
11346 # explicitly linking system object files so we need to strip them
11347 # from the output so that they don't get included in the library
11348 # dependencies.
11349 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'
11350
11351 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11353
11354 # Archives containing C++ object files must be created using
11355 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11356 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11357 ;;
11358 icpc*)
11359 # Intel C++
11360 with_gnu_ld=yes
11361 # version 8.0 and above of icpc choke on multiply defined symbols
11362 # if we add $predep_objects and $postdep_objects, however 7.1 and
11363 # earlier do not add the objects themselves.
11364 case `$CC -V 2>&1` in
11365 *"Version 7."*)
11366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11367 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'
11368 ;;
11369 *) # Version 8.0 or newer
11370 tmp_idyn=
11371 case $host_cpu in
11372 ia64*) tmp_idyn=' -i_dynamic';;
11373 esac
11374 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11375 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'
11376 ;;
11377 esac
11378 archive_cmds_need_lc_CXX=no
11379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11381 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11382 ;;
11383 pgCC*)
11384 # Portland Group C++ compiler
11385 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11386 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'
11387
11388 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11390 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'
11391 ;;
11392 cxx*)
11393 # Compaq C++
11394 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11395 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'
11396
11397 runpath_var=LD_RUN_PATH
11398 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11399 hardcode_libdir_separator_CXX=:
11400
11401 # Commands to make compiler produce verbose output that lists
11402 # what "hidden" libraries, object files and flags are used when
11403 # linking a shared library.
11404 #
11405 # There doesn't appear to be a way to prevent this compiler from
11406 # explicitly linking system object files so we need to strip them
11407 # from the output so that they don't get included in the library
11408 # dependencies.
11409 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'
11410 ;;
11411 esac
11412 ;;
11413 lynxos*)
11414 # FIXME: insert proper C++ library support
11415 ld_shlibs_CXX=no
11416 ;;
11417 m88k*)
11418 # FIXME: insert proper C++ library support
11419 ld_shlibs_CXX=no
11420 ;;
11421 mvs*)
11422 case $cc_basename in
11423 cxx*)
11424 # FIXME: insert proper C++ library support
11425 ld_shlibs_CXX=no
11426 ;;
11427 *)
11428 # FIXME: insert proper C++ library support
11429 ld_shlibs_CXX=no
11430 ;;
11431 esac
11432 ;;
11433 netbsd* | netbsdelf*-gnu)
11434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11435 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11436 wlarc=
11437 hardcode_libdir_flag_spec_CXX='-R$libdir'
11438 hardcode_direct_CXX=yes
11439 hardcode_shlibpath_var_CXX=no
11440 fi
11441 # Workaround some broken pre-1.5 toolchains
11442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11443 ;;
11444 openbsd2*)
11445 # C++ shared libraries are fairly broken
11446 ld_shlibs_CXX=no
11447 ;;
11448 openbsd*)
11449 hardcode_direct_CXX=yes
11450 hardcode_shlibpath_var_CXX=no
11451 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11454 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11455 export_dynamic_flag_spec_CXX='${wl}-E'
11456 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11457 fi
11458 output_verbose_link_cmd='echo'
11459 ;;
11460 osf3*)
11461 case $cc_basename in
11462 KCC*)
11463 # Kuck and Associates, Inc. (KAI) C++ Compiler
11464
11465 # KCC will only create a shared library if the output file
11466 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11467 # to its proper name (with version) after linking.
11468 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'
11469
11470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11471 hardcode_libdir_separator_CXX=:
11472
11473 # Archives containing C++ object files must be created using
11474 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11475 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11476
11477 ;;
11478 RCC*)
11479 # Rational C++ 2.4.1
11480 # FIXME: insert proper C++ library support
11481 ld_shlibs_CXX=no
11482 ;;
11483 cxx*)
11484 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11485 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'
11486
11487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11488 hardcode_libdir_separator_CXX=:
11489
11490 # Commands to make compiler produce verbose output that lists
11491 # what "hidden" libraries, object files and flags are used when
11492 # linking a shared library.
11493 #
11494 # There doesn't appear to be a way to prevent this compiler from
11495 # explicitly linking system object files so we need to strip them
11496 # from the output so that they don't get included in the library
11497 # dependencies.
11498 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'
11499 ;;
11500 *)
11501 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11502 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11503 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'
11504
11505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11506 hardcode_libdir_separator_CXX=:
11507
11508 # Commands to make compiler produce verbose output that lists
11509 # what "hidden" libraries, object files and flags are used when
11510 # linking a shared library.
11511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11512
11513 else
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 fi
11517 ;;
11518 esac
11519 ;;
11520 osf4* | osf5*)
11521 case $cc_basename in
11522 KCC*)
11523 # Kuck and Associates, Inc. (KAI) C++ Compiler
11524
11525 # KCC will only create a shared library if the output file
11526 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11527 # to its proper name (with version) after linking.
11528 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'
11529
11530 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11531 hardcode_libdir_separator_CXX=:
11532
11533 # Archives containing C++ object files must be created using
11534 # the KAI C++ compiler.
11535 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11536 ;;
11537 RCC*)
11538 # Rational C++ 2.4.1
11539 # FIXME: insert proper C++ library support
11540 ld_shlibs_CXX=no
11541 ;;
11542 cxx*)
11543 allow_undefined_flag_CXX=' -expect_unresolved \*'
11544 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'
11545 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11546 echo "-hidden">> $lib.exp~
11547 $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~
11548 $rm $lib.exp'
11549
11550 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11551 hardcode_libdir_separator_CXX=:
11552
11553 # Commands to make compiler produce verbose output that lists
11554 # what "hidden" libraries, object files and flags are used when
11555 # linking a shared library.
11556 #
11557 # There doesn't appear to be a way to prevent this compiler from
11558 # explicitly linking system object files so we need to strip them
11559 # from the output so that they don't get included in the library
11560 # dependencies.
11561 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'
11562 ;;
11563 *)
11564 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11565 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11566 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'
11567
11568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11569 hardcode_libdir_separator_CXX=:
11570
11571 # Commands to make compiler produce verbose output that lists
11572 # what "hidden" libraries, object files and flags are used when
11573 # linking a shared library.
11574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11575
11576 else
11577 # FIXME: insert proper C++ library support
11578 ld_shlibs_CXX=no
11579 fi
11580 ;;
11581 esac
11582 ;;
11583 psos*)
11584 # FIXME: insert proper C++ library support
11585 ld_shlibs_CXX=no
11586 ;;
11587 sunos4*)
11588 case $cc_basename in
11589 CC*)
11590 # Sun C++ 4.x
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 lcc*)
11595 # Lucid
11596 # FIXME: insert proper C++ library support
11597 ld_shlibs_CXX=no
11598 ;;
11599 *)
11600 # FIXME: insert proper C++ library support
11601 ld_shlibs_CXX=no
11602 ;;
11603 esac
11604 ;;
11605 solaris*)
11606 case $cc_basename in
11607 CC*)
11608 # Sun C++ 4.2, 5.x and Centerline C++
11609 archive_cmds_need_lc_CXX=yes
11610 no_undefined_flag_CXX=' -zdefs'
11611 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11612 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11613 $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'
11614
11615 hardcode_libdir_flag_spec_CXX='-R$libdir'
11616 hardcode_shlibpath_var_CXX=no
11617 case $host_os in
11618 solaris2.[0-5] | solaris2.[0-5].*) ;;
11619 *)
11620 # The C++ compiler is used as linker so we must use $wl
11621 # flag to pass the commands to the underlying system
11622 # linker. We must also pass each convience library through
11623 # to the system linker between allextract/defaultextract.
11624 # The C++ compiler will combine linker options so we
11625 # cannot just pass the convience library names through
11626 # without $wl.
11627 # Supported since Solaris 2.6 (maybe 2.5.1?)
11628 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11629 ;;
11630 esac
11631 link_all_deplibs_CXX=yes
11632
11633 output_verbose_link_cmd='echo'
11634
11635 # Archives containing C++ object files must be created using
11636 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11637 # necessary to make sure instantiated templates are included
11638 # in the archive.
11639 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11640 ;;
11641 gcx*)
11642 # Green Hills C++ Compiler
11643 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11644
11645 # The C++ compiler must be used to create the archive.
11646 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11647 ;;
11648 *)
11649 # GNU C++ compiler with Solaris linker
11650 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11651 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11652 if $CC --version | grep -v '^2\.7' > /dev/null; then
11653 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11654 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11655 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11656
11657 # Commands to make compiler produce verbose output that lists
11658 # what "hidden" libraries, object files and flags are used when
11659 # linking a shared library.
11660 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11661 else
11662 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11663 # platform.
11664 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11665 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11666 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11667
11668 # Commands to make compiler produce verbose output that lists
11669 # what "hidden" libraries, object files and flags are used when
11670 # linking a shared library.
11671 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11672 fi
11673
11674 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11675 fi
11676 ;;
11677 esac
11678 ;;
11679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11680 no_undefined_flag_CXX='${wl}-z,text'
11681 archive_cmds_need_lc_CXX=no
11682 hardcode_shlibpath_var_CXX=no
11683 runpath_var='LD_RUN_PATH'
11684
11685 case $cc_basename in
11686 CC*)
11687 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11688 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11689 ;;
11690 *)
11691 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11692 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11693 ;;
11694 esac
11695 ;;
11696 sysv5* | sco3.2v5* | sco5v6*)
11697 # Note: We can NOT use -z defs as we might desire, because we do not
11698 # link with -lc, and that would cause any symbols used from libc to
11699 # always be unresolved, which means just about no library would
11700 # ever link correctly. If we're not using GNU ld we use -z text
11701 # though, which does catch some bad symbols but isn't as heavy-handed
11702 # as -z defs.
11703 # For security reasons, it is highly recommended that you always
11704 # use absolute paths for naming shared libraries, and exclude the
11705 # DT_RUNPATH tag from executables and libraries. But doing so
11706 # requires that you compile everything twice, which is a pain.
11707 # So that behaviour is only enabled if SCOABSPATH is set to a
11708 # non-empty value in the environment. Most likely only useful for
11709 # creating official distributions of packages.
11710 # This is a hack until libtool officially supports absolute path
11711 # names for shared libraries.
11712 no_undefined_flag_CXX='${wl}-z,text'
11713 allow_undefined_flag_CXX='${wl}-z,nodefs'
11714 archive_cmds_need_lc_CXX=no
11715 hardcode_shlibpath_var_CXX=no
11716 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11717 hardcode_libdir_separator_CXX=':'
11718 link_all_deplibs_CXX=yes
11719 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11720 runpath_var='LD_RUN_PATH'
11721
11722 case $cc_basename in
11723 CC*)
11724 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11725 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11726 ;;
11727 *)
11728 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11729 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11730 ;;
11731 esac
11732 ;;
11733 tandem*)
11734 case $cc_basename in
11735 NCC*)
11736 # NonStop-UX NCC 3.20
11737 # FIXME: insert proper C++ library support
11738 ld_shlibs_CXX=no
11739 ;;
11740 *)
11741 # FIXME: insert proper C++ library support
11742 ld_shlibs_CXX=no
11743 ;;
11744 esac
11745 ;;
11746 vxworks*)
11747 # FIXME: insert proper C++ library support
11748 ld_shlibs_CXX=no
11749 ;;
11750 *)
11751 # FIXME: insert proper C++ library support
11752 ld_shlibs_CXX=no
11753 ;;
11754 esac
11755 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11756 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11757 test "$ld_shlibs_CXX" = no && can_build_shared=no
11758
11759 GCC_CXX="$GXX"
11760 LD_CXX="$LD"
11761
11762
11763 cat > conftest.$ac_ext <<EOF
11764 class Foo
11765 {
11766 public:
11767 Foo (void) { a = 0; }
11768 private:
11769 int a;
11770 };
11771 EOF
11772
11773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11774 (eval $ac_compile) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; then
11778 # Parse the compiler output and extract the necessary
11779 # objects, libraries and library flags.
11780
11781 # Sentinel used to keep track of whether or not we are before
11782 # the conftest object file.
11783 pre_test_object_deps_done=no
11784
11785 # The `*' in the case matches for architectures that use `case' in
11786 # $output_verbose_cmd can trigger glob expansion during the loop
11787 # eval without this substitution.
11788 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11789
11790 for p in `eval $output_verbose_link_cmd`; do
11791 case $p in
11792
11793 -L* | -R* | -l*)
11794 # Some compilers place space between "-{L,R}" and the path.
11795 # Remove the space.
11796 if test $p = "-L" \
11797 || test $p = "-R"; then
11798 prev=$p
11799 continue
11800 else
11801 prev=
11802 fi
11803
11804 if test "$pre_test_object_deps_done" = no; then
11805 case $p in
11806 -L* | -R*)
11807 # Internal compiler library paths should come after those
11808 # provided the user. The postdeps already come after the
11809 # user supplied libs so there is no need to process them.
11810 if test -z "$compiler_lib_search_path_CXX"; then
11811 compiler_lib_search_path_CXX="${prev}${p}"
11812 else
11813 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11814 fi
11815 ;;
11816 # The "-l" case would never come before the object being
11817 # linked, so don't bother handling this case.
11818 esac
11819 else
11820 if test -z "$postdeps_CXX"; then
11821 postdeps_CXX="${prev}${p}"
11822 else
11823 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11824 fi
11825 fi
11826 ;;
11827
11828 *.$objext)
11829 # This assumes that the test object file only shows up
11830 # once in the compiler output.
11831 if test "$p" = "conftest.$objext"; then
11832 pre_test_object_deps_done=yes
11833 continue
11834 fi
11835
11836 if test "$pre_test_object_deps_done" = no; then
11837 if test -z "$predep_objects_CXX"; then
11838 predep_objects_CXX="$p"
11839 else
11840 predep_objects_CXX="$predep_objects_CXX $p"
11841 fi
11842 else
11843 if test -z "$postdep_objects_CXX"; then
11844 postdep_objects_CXX="$p"
11845 else
11846 postdep_objects_CXX="$postdep_objects_CXX $p"
11847 fi
11848 fi
11849 ;;
11850
11851 *) ;; # Ignore the rest.
11852
11853 esac
11854 done
11855
11856 # Clean up.
11857 rm -f a.out a.exe
11858 else
11859 echo "libtool.m4: error: problem compiling CXX test program"
11860 fi
11861
11862 $rm -f confest.$objext
11863
11864 # PORTME: override above test on systems where it is broken
11865 case $host_os in
11866 interix3*)
11867 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11868 # hack all around it, let's just trust "g++" to DTRT.
11869 predep_objects_CXX=
11870 postdep_objects_CXX=
11871 postdeps_CXX=
11872 ;;
11873
11874 solaris*)
11875 case $cc_basename in
11876 CC*)
11877 # Adding this requires a known-good setup of shared libraries for
11878 # Sun compiler versions before 5.6, else PIC objects from an old
11879 # archive will be linked into the output, leading to subtle bugs.
11880 postdeps_CXX='-lCstd -lCrun'
11881 ;;
11882 esac
11883 ;;
11884 esac
11885
11886
11887 case " $postdeps_CXX " in
11888 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11889 esac
11890
11891 lt_prog_compiler_wl_CXX=
11892 lt_prog_compiler_pic_CXX=
11893 lt_prog_compiler_static_CXX=
11894
11895 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11897
11898 # C++ specific cases for pic, static, wl, etc.
11899 if test "$GXX" = yes; then
11900 lt_prog_compiler_wl_CXX='-Wl,'
11901 lt_prog_compiler_static_CXX='-static'
11902
11903 case $host_os in
11904 aix*)
11905 # All AIX code is PIC.
11906 if test "$host_cpu" = ia64; then
11907 # AIX 5 now supports IA64 processor
11908 lt_prog_compiler_static_CXX='-Bstatic'
11909 fi
11910 ;;
11911 amigaos*)
11912 # FIXME: we need at least 68020 code to build shared libraries, but
11913 # adding the `-m68020' flag to GCC prevents building anything better,
11914 # like `-m68040'.
11915 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11916 ;;
11917 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11918 # PIC is the default for these OSes.
11919 ;;
11920 mingw* | os2* | pw32*)
11921 # This hack is so that the source file can tell whether it is being
11922 # built for inclusion in a dll (and should export symbols for example).
11923 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11924 ;;
11925 darwin* | rhapsody*)
11926 # PIC is the default on this platform
11927 # Common symbols not allowed in MH_DYLIB files
11928 lt_prog_compiler_pic_CXX='-fno-common'
11929 ;;
11930 *djgpp*)
11931 # DJGPP does not support shared libraries at all
11932 lt_prog_compiler_pic_CXX=
11933 ;;
11934 interix3*)
11935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11936 # Instead, we relocate shared libraries at runtime.
11937 ;;
11938 sysv4*MP*)
11939 if test -d /usr/nec; then
11940 lt_prog_compiler_pic_CXX=-Kconform_pic
11941 fi
11942 ;;
11943 hpux*)
11944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11945 # not for PA HP-UX.
11946 case $host_cpu in
11947 hppa*64*|ia64*)
11948 ;;
11949 *)
11950 lt_prog_compiler_pic_CXX='-fPIC'
11951 ;;
11952 esac
11953 ;;
11954 *)
11955 lt_prog_compiler_pic_CXX='-fPIC'
11956 ;;
11957 esac
11958 else
11959 case $host_os in
11960 aix4* | aix5*)
11961 # All AIX code is PIC.
11962 if test "$host_cpu" = ia64; then
11963 # AIX 5 now supports IA64 processor
11964 lt_prog_compiler_static_CXX='-Bstatic'
11965 else
11966 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11967 fi
11968 ;;
11969 chorus*)
11970 case $cc_basename in
11971 cxch68*)
11972 # Green Hills C++ Compiler
11973 # _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"
11974 ;;
11975 esac
11976 ;;
11977 darwin*)
11978 # PIC is the default on this platform
11979 # Common symbols not allowed in MH_DYLIB files
11980 case $cc_basename in
11981 xlc*)
11982 lt_prog_compiler_pic_CXX='-qnocommon'
11983 lt_prog_compiler_wl_CXX='-Wl,'
11984 ;;
11985 esac
11986 ;;
11987 dgux*)
11988 case $cc_basename in
11989 ec++*)
11990 lt_prog_compiler_pic_CXX='-KPIC'
11991 ;;
11992 ghcx*)
11993 # Green Hills C++ Compiler
11994 lt_prog_compiler_pic_CXX='-pic'
11995 ;;
11996 *)
11997 ;;
11998 esac
11999 ;;
12000 freebsd* | dragonfly*)
12001 # FreeBSD uses GNU C++
12002 ;;
12003 hpux9* | hpux10* | hpux11*)
12004 case $cc_basename in
12005 CC*)
12006 lt_prog_compiler_wl_CXX='-Wl,'
12007 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12008 if test "$host_cpu" != ia64; then
12009 lt_prog_compiler_pic_CXX='+Z'
12010 fi
12011 ;;
12012 aCC*)
12013 lt_prog_compiler_wl_CXX='-Wl,'
12014 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12015 case $host_cpu in
12016 hppa*64*|ia64*)
12017 # +Z the default
12018 ;;
12019 *)
12020 lt_prog_compiler_pic_CXX='+Z'
12021 ;;
12022 esac
12023 ;;
12024 *)
12025 ;;
12026 esac
12027 ;;
12028 interix*)
12029 # This is c89, which is MS Visual C++ (no shared libs)
12030 # Anyone wants to do a port?
12031 ;;
12032 irix5* | irix6* | nonstopux*)
12033 case $cc_basename in
12034 CC*)
12035 lt_prog_compiler_wl_CXX='-Wl,'
12036 lt_prog_compiler_static_CXX='-non_shared'
12037 # CC pic flag -KPIC is the default.
12038 ;;
12039 *)
12040 ;;
12041 esac
12042 ;;
12043 linux* | k*bsd*-gnu)
12044 case $cc_basename in
12045 KCC*)
12046 # KAI C++ Compiler
12047 lt_prog_compiler_wl_CXX='--backend -Wl,'
12048 lt_prog_compiler_pic_CXX='-fPIC'
12049 ;;
12050 icpc* | ecpc*)
12051 # Intel C++
12052 lt_prog_compiler_wl_CXX='-Wl,'
12053 lt_prog_compiler_pic_CXX='-KPIC'
12054 lt_prog_compiler_static_CXX='-static'
12055 ;;
12056 pgCC*)
12057 # Portland Group C++ compiler.
12058 lt_prog_compiler_wl_CXX='-Wl,'
12059 lt_prog_compiler_pic_CXX='-fpic'
12060 lt_prog_compiler_static_CXX='-Bstatic'
12061 ;;
12062 cxx*)
12063 # Compaq C++
12064 # Make sure the PIC flag is empty. It appears that all Alpha
12065 # Linux and Compaq Tru64 Unix objects are PIC.
12066 lt_prog_compiler_pic_CXX=
12067 lt_prog_compiler_static_CXX='-non_shared'
12068 ;;
12069 *)
12070 ;;
12071 esac
12072 ;;
12073 lynxos*)
12074 ;;
12075 m88k*)
12076 ;;
12077 mvs*)
12078 case $cc_basename in
12079 cxx*)
12080 lt_prog_compiler_pic_CXX='-W c,exportall'
12081 ;;
12082 *)
12083 ;;
12084 esac
12085 ;;
12086 netbsd* | netbsdelf*-gnu)
12087 ;;
12088 osf3* | osf4* | osf5*)
12089 case $cc_basename in
12090 KCC*)
12091 lt_prog_compiler_wl_CXX='--backend -Wl,'
12092 ;;
12093 RCC*)
12094 # Rational C++ 2.4.1
12095 lt_prog_compiler_pic_CXX='-pic'
12096 ;;
12097 cxx*)
12098 # Digital/Compaq C++
12099 lt_prog_compiler_wl_CXX='-Wl,'
12100 # Make sure the PIC flag is empty. It appears that all Alpha
12101 # Linux and Compaq Tru64 Unix objects are PIC.
12102 lt_prog_compiler_pic_CXX=
12103 lt_prog_compiler_static_CXX='-non_shared'
12104 ;;
12105 *)
12106 ;;
12107 esac
12108 ;;
12109 psos*)
12110 ;;
12111 solaris*)
12112 case $cc_basename in
12113 CC*)
12114 # Sun C++ 4.2, 5.x and Centerline C++
12115 lt_prog_compiler_pic_CXX='-KPIC'
12116 lt_prog_compiler_static_CXX='-Bstatic'
12117 lt_prog_compiler_wl_CXX='-Qoption ld '
12118 ;;
12119 gcx*)
12120 # Green Hills C++ Compiler
12121 lt_prog_compiler_pic_CXX='-PIC'
12122 ;;
12123 *)
12124 ;;
12125 esac
12126 ;;
12127 sunos4*)
12128 case $cc_basename in
12129 CC*)
12130 # Sun C++ 4.x
12131 lt_prog_compiler_pic_CXX='-pic'
12132 lt_prog_compiler_static_CXX='-Bstatic'
12133 ;;
12134 lcc*)
12135 # Lucid
12136 lt_prog_compiler_pic_CXX='-pic'
12137 ;;
12138 *)
12139 ;;
12140 esac
12141 ;;
12142 tandem*)
12143 case $cc_basename in
12144 NCC*)
12145 # NonStop-UX NCC 3.20
12146 lt_prog_compiler_pic_CXX='-KPIC'
12147 ;;
12148 *)
12149 ;;
12150 esac
12151 ;;
12152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12153 case $cc_basename in
12154 CC*)
12155 lt_prog_compiler_wl_CXX='-Wl,'
12156 lt_prog_compiler_pic_CXX='-KPIC'
12157 lt_prog_compiler_static_CXX='-Bstatic'
12158 ;;
12159 esac
12160 ;;
12161 vxworks*)
12162 ;;
12163 *)
12164 lt_prog_compiler_can_build_shared_CXX=no
12165 ;;
12166 esac
12167 fi
12168
12169 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12170 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12171
12172 #
12173 # Check to make sure the PIC flag actually works.
12174 #
12175 if test -n "$lt_prog_compiler_pic_CXX"; then
12176
12177 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12178 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12179 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 lt_prog_compiler_pic_works_CXX=no
12183 ac_outfile=conftest.$ac_objext
12184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12185 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12186 # Insert the option either (1) after the last *FLAGS variable, or
12187 # (2) before a word containing "conftest.", or (3) at the end.
12188 # Note that $ac_compile itself does not contain backslashes and begins
12189 # with a dollar sign (not a hyphen), so the echo should work correctly.
12190 # The option is referenced via a variable to avoid confusing sed.
12191 lt_compile=`echo "$ac_compile" | $SED \
12192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194 -e 's:$: $lt_compiler_flag:'`
12195 (eval echo "\"\$as_me:12195: $lt_compile\"" >&5)
12196 (eval "$lt_compile" 2>conftest.err)
12197 ac_status=$?
12198 cat conftest.err >&5
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 if (exit $ac_status) && test -s "$ac_outfile"; then
12201 # The compiler can only warn and ignore the option if not recognized
12202 # So say no if there are warnings other than the usual output.
12203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12206 lt_prog_compiler_pic_works_CXX=yes
12207 fi
12208 fi
12209 $rm conftest*
12210
12211 fi
12212 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12213 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12214
12215 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12216 case $lt_prog_compiler_pic_CXX in
12217 "" | " "*) ;;
12218 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12219 esac
12220 else
12221 lt_prog_compiler_pic_CXX=
12222 lt_prog_compiler_can_build_shared_CXX=no
12223 fi
12224
12225 fi
12226 case $host_os in
12227 # For platforms which do not support PIC, -DPIC is meaningless:
12228 *djgpp*)
12229 lt_prog_compiler_pic_CXX=
12230 ;;
12231 *)
12232 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12233 ;;
12234 esac
12235
12236 #
12237 # Check to make sure the static flag actually works.
12238 #
12239 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12240 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12241 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12242 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 lt_prog_compiler_static_works_CXX=no
12246 save_LDFLAGS="$LDFLAGS"
12247 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12248 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12250 # The linker can only warn and ignore the option if not recognized
12251 # So say no if there are warnings
12252 if test -s conftest.err; then
12253 # Append any errors to the config.log.
12254 cat conftest.err 1>&5
12255 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12257 if diff conftest.exp conftest.er2 >/dev/null; then
12258 lt_prog_compiler_static_works_CXX=yes
12259 fi
12260 else
12261 lt_prog_compiler_static_works_CXX=yes
12262 fi
12263 fi
12264 $rm conftest*
12265 LDFLAGS="$save_LDFLAGS"
12266
12267 fi
12268 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12269 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12270
12271 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12272 :
12273 else
12274 lt_prog_compiler_static_CXX=
12275 fi
12276
12277
12278 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12280 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 lt_cv_prog_compiler_c_o_CXX=no
12284 $rm -r conftest 2>/dev/null
12285 mkdir conftest
12286 cd conftest
12287 mkdir out
12288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12289
12290 lt_compiler_flag="-o out/conftest2.$ac_objext"
12291 # Insert the option either (1) after the last *FLAGS variable, or
12292 # (2) before a word containing "conftest.", or (3) at the end.
12293 # Note that $ac_compile itself does not contain backslashes and begins
12294 # with a dollar sign (not a hyphen), so the echo should work correctly.
12295 lt_compile=`echo "$ac_compile" | $SED \
12296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12298 -e 's:$: $lt_compiler_flag:'`
12299 (eval echo "\"\$as_me:12299: $lt_compile\"" >&5)
12300 (eval "$lt_compile" 2>out/conftest.err)
12301 ac_status=$?
12302 cat out/conftest.err >&5
12303 echo "$as_me:12303: \$? = $ac_status" >&5
12304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12305 then
12306 # The compiler can only warn and ignore the option if not recognized
12307 # So say no if there are warnings
12308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12311 lt_cv_prog_compiler_c_o_CXX=yes
12312 fi
12313 fi
12314 chmod u+w . 2>&5
12315 $rm conftest*
12316 # SGI C++ compiler will create directory out/ii_files/ for
12317 # template instantiation
12318 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12319 $rm out/* && rmdir out
12320 cd ..
12321 rmdir conftest
12322 $rm conftest*
12323
12324 fi
12325 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12326 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12327
12328
12329 hard_links="nottested"
12330 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12331 # do not overwrite the value of need_locks provided by the user
12332 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12333 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12334 hard_links=yes
12335 $rm conftest*
12336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12337 touch conftest.a
12338 ln conftest.a conftest.b 2>&5 || hard_links=no
12339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12340 { echo "$as_me:$LINENO: result: $hard_links" >&5
12341 echo "${ECHO_T}$hard_links" >&6; }
12342 if test "$hard_links" = no; then
12343 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12344 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12345 need_locks=warn
12346 fi
12347 else
12348 need_locks=no
12349 fi
12350
12351 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12352 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12353
12354 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12355 case $host_os in
12356 aix4* | aix5*)
12357 # If we're using GNU nm, then we don't want the "-C" option.
12358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12359 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12360 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'
12361 else
12362 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'
12363 fi
12364 ;;
12365 pw32*)
12366 export_symbols_cmds_CXX="$ltdll_cmds"
12367 ;;
12368 cygwin* | mingw*)
12369 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'
12370 ;;
12371 linux* | k*bsd*-gnu)
12372 link_all_deplibs_CXX=no
12373 ;;
12374 *)
12375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12376 ;;
12377 esac
12378
12379 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12380 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12381 test "$ld_shlibs_CXX" = no && can_build_shared=no
12382
12383 #
12384 # Do we need to explicitly link libc?
12385 #
12386 case "x$archive_cmds_need_lc_CXX" in
12387 x|xyes)
12388 # Assume -lc should be added
12389 archive_cmds_need_lc_CXX=yes
12390
12391 if test "$enable_shared" = yes && test "$GCC" = yes; then
12392 case $archive_cmds_CXX in
12393 *'~'*)
12394 # FIXME: we may have to deal with multi-command sequences.
12395 ;;
12396 '$CC '*)
12397 # Test whether the compiler implicitly links with -lc since on some
12398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12399 # to ld, don't add -lc before -lgcc.
12400 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12401 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12402 $rm conftest*
12403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12404
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } 2>conftest.err; then
12410 soname=conftest
12411 lib=conftest
12412 libobjs=conftest.$ac_objext
12413 deplibs=
12414 wl=$lt_prog_compiler_wl_CXX
12415 pic_flag=$lt_prog_compiler_pic_CXX
12416 compiler_flags=-v
12417 linker_flags=-v
12418 verstring=
12419 output_objdir=.
12420 libname=conftest
12421 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12422 allow_undefined_flag_CXX=
12423 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12424 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }
12428 then
12429 archive_cmds_need_lc_CXX=no
12430 else
12431 archive_cmds_need_lc_CXX=yes
12432 fi
12433 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12434 else
12435 cat conftest.err 1>&5
12436 fi
12437 $rm conftest*
12438 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12439 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12440 ;;
12441 esac
12442 fi
12443 ;;
12444 esac
12445
12446 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12447 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12448 library_names_spec=
12449 libname_spec='lib$name'
12450 soname_spec=
12451 shrext_cmds=".so"
12452 postinstall_cmds=
12453 postuninstall_cmds=
12454 finish_cmds=
12455 finish_eval=
12456 shlibpath_var=
12457 shlibpath_overrides_runpath=unknown
12458 version_type=none
12459 dynamic_linker="$host_os ld.so"
12460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12461 if test "$GCC" = yes; then
12462 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12463 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12464 # if the path contains ";" then we assume it to be the separator
12465 # otherwise default to the standard path separator (i.e. ":") - it is
12466 # assumed that no part of a normal pathname contains ";" but that should
12467 # okay in the real world where ";" in dirpaths is itself problematic.
12468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12469 else
12470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12471 fi
12472 else
12473 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12474 fi
12475 need_lib_prefix=unknown
12476 hardcode_into_libs=no
12477
12478 # when you set need_version to no, make sure it does not cause -set_version
12479 # flags to be left without arguments
12480 need_version=unknown
12481
12482 case $host_os in
12483 aix3*)
12484 version_type=linux
12485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12486 shlibpath_var=LIBPATH
12487
12488 # AIX 3 has no versioning support, so we append a major version to the name.
12489 soname_spec='${libname}${release}${shared_ext}$major'
12490 ;;
12491
12492 aix4* | aix5*)
12493 version_type=linux
12494 need_lib_prefix=no
12495 need_version=no
12496 hardcode_into_libs=yes
12497 if test "$host_cpu" = ia64; then
12498 # AIX 5 supports IA64
12499 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12500 shlibpath_var=LD_LIBRARY_PATH
12501 else
12502 # With GCC up to 2.95.x, collect2 would create an import file
12503 # for dependence libraries. The import file would start with
12504 # the line `#! .'. This would cause the generated library to
12505 # depend on `.', always an invalid library. This was fixed in
12506 # development snapshots of GCC prior to 3.0.
12507 case $host_os in
12508 aix4 | aix4.[01] | aix4.[01].*)
12509 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12510 echo ' yes '
12511 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12512 :
12513 else
12514 can_build_shared=no
12515 fi
12516 ;;
12517 esac
12518 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12519 # soname into executable. Probably we can add versioning support to
12520 # collect2, so additional links can be useful in future.
12521 if test "$aix_use_runtimelinking" = yes; then
12522 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12523 # instead of lib<name>.a to let people know that these are not
12524 # typical AIX shared libraries.
12525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12526 else
12527 # We preserve .a as extension for shared libraries through AIX4.2
12528 # and later when we are not doing run time linking.
12529 library_names_spec='${libname}${release}.a $libname.a'
12530 soname_spec='${libname}${release}${shared_ext}$major'
12531 fi
12532 shlibpath_var=LIBPATH
12533 fi
12534 ;;
12535
12536 amigaos*)
12537 library_names_spec='$libname.ixlibrary $libname.a'
12538 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12539 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'
12540 ;;
12541
12542 beos*)
12543 library_names_spec='${libname}${shared_ext}'
12544 dynamic_linker="$host_os ld.so"
12545 shlibpath_var=LIBRARY_PATH
12546 ;;
12547
12548 bsdi[45]*)
12549 version_type=linux
12550 need_version=no
12551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12552 soname_spec='${libname}${release}${shared_ext}$major'
12553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12557 # the default ld.so.conf also contains /usr/contrib/lib and
12558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12559 # libtool to hard-code these into programs
12560 ;;
12561
12562 cygwin* | mingw* | pw32*)
12563 version_type=windows
12564 shrext_cmds=".dll"
12565 need_version=no
12566 need_lib_prefix=no
12567
12568 case $GCC,$host_os in
12569 yes,cygwin* | yes,mingw* | yes,pw32*)
12570 library_names_spec='$libname.dll.a'
12571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12572 postinstall_cmds='base_file=`basename \${file}`~
12573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12574 dldir=$destdir/`dirname \$dlpath`~
12575 test -d \$dldir || mkdir -p \$dldir~
12576 $install_prog $dir/$dlname \$dldir/$dlname~
12577 chmod a+x \$dldir/$dlname'
12578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12579 dlpath=$dir/\$dldll~
12580 $rm \$dlpath'
12581 shlibpath_overrides_runpath=yes
12582
12583 case $host_os in
12584 cygwin*)
12585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12587 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12588 ;;
12589 mingw*)
12590 # MinGW DLLs use traditional 'lib' prefix
12591 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12593 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12594 # It is most probably a Windows format PATH printed by
12595 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12596 # path with ; separators, and with drive letters. We can handle the
12597 # drive letters (cygwin fileutils understands them), so leave them,
12598 # especially as we might pass files found there to a mingw objdump,
12599 # which wouldn't understand a cygwinified path. Ahh.
12600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12601 else
12602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12603 fi
12604 ;;
12605 pw32*)
12606 # pw32 DLLs use 'pw' prefix rather than 'lib'
12607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12608 ;;
12609 esac
12610 ;;
12611
12612 *)
12613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12614 ;;
12615 esac
12616 dynamic_linker='Win32 ld.exe'
12617 # FIXME: first we should search . and the directory the executable is in
12618 shlibpath_var=PATH
12619 ;;
12620
12621 darwin* | rhapsody*)
12622 dynamic_linker="$host_os dyld"
12623 version_type=darwin
12624 need_lib_prefix=no
12625 need_version=no
12626 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12627 soname_spec='${libname}${release}${major}$shared_ext'
12628 shlibpath_overrides_runpath=yes
12629 shlibpath_var=DYLD_LIBRARY_PATH
12630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12631 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12632 if test "$GCC" = yes; then
12633 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12634 else
12635 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12636 fi
12637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12638 ;;
12639
12640 dgux*)
12641 version_type=linux
12642 need_lib_prefix=no
12643 need_version=no
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 shlibpath_var=LD_LIBRARY_PATH
12647 ;;
12648
12649 freebsd1*)
12650 dynamic_linker=no
12651 ;;
12652
12653 freebsd* | dragonfly*)
12654 # DragonFly does not have aout. When/if they implement a new
12655 # versioning mechanism, adjust this.
12656 if test -x /usr/bin/objformat; then
12657 objformat=`/usr/bin/objformat`
12658 else
12659 case $host_os in
12660 freebsd[123]*) objformat=aout ;;
12661 *) objformat=elf ;;
12662 esac
12663 fi
12664 version_type=freebsd-$objformat
12665 case $version_type in
12666 freebsd-elf*)
12667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12668 need_version=no
12669 need_lib_prefix=no
12670 ;;
12671 freebsd-*)
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12673 need_version=yes
12674 ;;
12675 esac
12676 shlibpath_var=LD_LIBRARY_PATH
12677 case $host_os in
12678 freebsd2*)
12679 shlibpath_overrides_runpath=yes
12680 ;;
12681 freebsd3.[01]* | freebsdelf3.[01]*)
12682 shlibpath_overrides_runpath=yes
12683 hardcode_into_libs=yes
12684 ;;
12685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12687 shlibpath_overrides_runpath=no
12688 hardcode_into_libs=yes
12689 ;;
12690 freebsd*) # from 4.6 on
12691 shlibpath_overrides_runpath=yes
12692 hardcode_into_libs=yes
12693 ;;
12694 esac
12695 ;;
12696
12697 gnu*)
12698 version_type=linux
12699 need_lib_prefix=no
12700 need_version=no
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12702 soname_spec='${libname}${release}${shared_ext}$major'
12703 shlibpath_var=LD_LIBRARY_PATH
12704 hardcode_into_libs=yes
12705 ;;
12706
12707 hpux9* | hpux10* | hpux11*)
12708 # Give a soname corresponding to the major version so that dld.sl refuses to
12709 # link against other versions.
12710 version_type=sunos
12711 need_lib_prefix=no
12712 need_version=no
12713 case $host_cpu in
12714 ia64*)
12715 shrext_cmds='.so'
12716 hardcode_into_libs=yes
12717 dynamic_linker="$host_os dld.so"
12718 shlibpath_var=LD_LIBRARY_PATH
12719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12722 if test "X$HPUX_IA64_MODE" = X32; then
12723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12724 else
12725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12726 fi
12727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12728 ;;
12729 hppa*64*)
12730 shrext_cmds='.sl'
12731 hardcode_into_libs=yes
12732 dynamic_linker="$host_os dld.sl"
12733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12736 soname_spec='${libname}${release}${shared_ext}$major'
12737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12739 ;;
12740 *)
12741 shrext_cmds='.sl'
12742 dynamic_linker="$host_os dld.sl"
12743 shlibpath_var=SHLIB_PATH
12744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746 soname_spec='${libname}${release}${shared_ext}$major'
12747 ;;
12748 esac
12749 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12750 postinstall_cmds='chmod 555 $lib'
12751 ;;
12752
12753 interix3*)
12754 version_type=linux
12755 need_lib_prefix=no
12756 need_version=no
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12758 soname_spec='${libname}${release}${shared_ext}$major'
12759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12760 shlibpath_var=LD_LIBRARY_PATH
12761 shlibpath_overrides_runpath=no
12762 hardcode_into_libs=yes
12763 ;;
12764
12765 irix5* | irix6* | nonstopux*)
12766 case $host_os in
12767 nonstopux*) version_type=nonstopux ;;
12768 *)
12769 if test "$lt_cv_prog_gnu_ld" = yes; then
12770 version_type=linux
12771 else
12772 version_type=irix
12773 fi ;;
12774 esac
12775 need_lib_prefix=no
12776 need_version=no
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12779 case $host_os in
12780 irix5* | nonstopux*)
12781 libsuff= shlibsuff=
12782 ;;
12783 *)
12784 case $LD in # libtool.m4 will add one of these switches to LD
12785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12786 libsuff= shlibsuff= libmagic=32-bit;;
12787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12788 libsuff=32 shlibsuff=N32 libmagic=N32;;
12789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12791 *) libsuff= shlibsuff= libmagic=never-match;;
12792 esac
12793 ;;
12794 esac
12795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12796 shlibpath_overrides_runpath=no
12797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12799 hardcode_into_libs=yes
12800 ;;
12801
12802 # No shared lib support for Linux oldld, aout, or coff.
12803 linux*oldld* | linux*aout* | linux*coff*)
12804 dynamic_linker=no
12805 ;;
12806
12807 # This must be Linux ELF.
12808 linux* | k*bsd*-gnu)
12809 version_type=linux
12810 need_lib_prefix=no
12811 need_version=no
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 shlibpath_overrides_runpath=no
12817 # This implies no fast_install, which is unacceptable.
12818 # Some rework will be needed to allow for fast_install
12819 # before this can be enabled.
12820 hardcode_into_libs=yes
12821
12822 # Append ld.so.conf contents to the search path
12823 if test -f /etc/ld.so.conf; then
12824 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12825 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12826 fi
12827
12828 # We used to test for /lib/ld.so.1 and disable shared libraries on
12829 # powerpc, because MkLinux only supported shared libraries with the
12830 # GNU dynamic linker. Since this was broken with cross compilers,
12831 # most powerpc-linux boxes support dynamic linking these days and
12832 # people can always --disable-shared, the test was removed, and we
12833 # assume the GNU/Linux dynamic linker is in use.
12834 dynamic_linker='GNU/Linux ld.so'
12835 ;;
12836
12837 netbsdelf*-gnu)
12838 version_type=linux
12839 need_lib_prefix=no
12840 need_version=no
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 shlibpath_overrides_runpath=no
12845 hardcode_into_libs=yes
12846 dynamic_linker='NetBSD ld.elf_so'
12847 ;;
12848
12849 netbsd*)
12850 version_type=sunos
12851 need_lib_prefix=no
12852 need_version=no
12853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12856 dynamic_linker='NetBSD (a.out) ld.so'
12857 else
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12859 soname_spec='${libname}${release}${shared_ext}$major'
12860 dynamic_linker='NetBSD ld.elf_so'
12861 fi
12862 shlibpath_var=LD_LIBRARY_PATH
12863 shlibpath_overrides_runpath=yes
12864 hardcode_into_libs=yes
12865 ;;
12866
12867 newsos6)
12868 version_type=linux
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12870 shlibpath_var=LD_LIBRARY_PATH
12871 shlibpath_overrides_runpath=yes
12872 ;;
12873
12874 nto-qnx*)
12875 version_type=linux
12876 need_lib_prefix=no
12877 need_version=no
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 shlibpath_var=LD_LIBRARY_PATH
12881 shlibpath_overrides_runpath=yes
12882 ;;
12883
12884 openbsd*)
12885 version_type=sunos
12886 sys_lib_dlsearch_path_spec="/usr/lib"
12887 need_lib_prefix=no
12888 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12889 case $host_os in
12890 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12891 *) need_version=no ;;
12892 esac
12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12895 shlibpath_var=LD_LIBRARY_PATH
12896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12897 case $host_os in
12898 openbsd2.[89] | openbsd2.[89].*)
12899 shlibpath_overrides_runpath=no
12900 ;;
12901 *)
12902 shlibpath_overrides_runpath=yes
12903 ;;
12904 esac
12905 else
12906 shlibpath_overrides_runpath=yes
12907 fi
12908 ;;
12909
12910 os2*)
12911 libname_spec='$name'
12912 shrext_cmds=".dll"
12913 need_lib_prefix=no
12914 library_names_spec='$libname${shared_ext} $libname.a'
12915 dynamic_linker='OS/2 ld.exe'
12916 shlibpath_var=LIBPATH
12917 ;;
12918
12919 osf3* | osf4* | osf5*)
12920 version_type=osf
12921 need_lib_prefix=no
12922 need_version=no
12923 soname_spec='${libname}${release}${shared_ext}$major'
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12927 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12928 ;;
12929
12930 solaris*)
12931 version_type=linux
12932 need_lib_prefix=no
12933 need_version=no
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12938 hardcode_into_libs=yes
12939 # ldd complains unless libraries are executable
12940 postinstall_cmds='chmod +x $lib'
12941 ;;
12942
12943 sunos4*)
12944 version_type=sunos
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12946 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12947 shlibpath_var=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath=yes
12949 if test "$with_gnu_ld" = yes; then
12950 need_lib_prefix=no
12951 fi
12952 need_version=yes
12953 ;;
12954
12955 sysv4 | sysv4.3*)
12956 version_type=linux
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12958 soname_spec='${libname}${release}${shared_ext}$major'
12959 shlibpath_var=LD_LIBRARY_PATH
12960 case $host_vendor in
12961 sni)
12962 shlibpath_overrides_runpath=no
12963 need_lib_prefix=no
12964 export_dynamic_flag_spec='${wl}-Blargedynsym'
12965 runpath_var=LD_RUN_PATH
12966 ;;
12967 siemens)
12968 need_lib_prefix=no
12969 ;;
12970 motorola)
12971 need_lib_prefix=no
12972 need_version=no
12973 shlibpath_overrides_runpath=no
12974 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12975 ;;
12976 esac
12977 ;;
12978
12979 sysv4*MP*)
12980 if test -d /usr/nec ;then
12981 version_type=linux
12982 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12983 soname_spec='$libname${shared_ext}.$major'
12984 shlibpath_var=LD_LIBRARY_PATH
12985 fi
12986 ;;
12987
12988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12989 version_type=freebsd-elf
12990 need_lib_prefix=no
12991 need_version=no
12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12993 soname_spec='${libname}${release}${shared_ext}$major'
12994 shlibpath_var=LD_LIBRARY_PATH
12995 hardcode_into_libs=yes
12996 if test "$with_gnu_ld" = yes; then
12997 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12998 shlibpath_overrides_runpath=no
12999 else
13000 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13001 shlibpath_overrides_runpath=yes
13002 case $host_os in
13003 sco3.2v5*)
13004 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13005 ;;
13006 esac
13007 fi
13008 sys_lib_dlsearch_path_spec='/usr/lib'
13009 ;;
13010
13011 uts4*)
13012 version_type=linux
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 soname_spec='${libname}${release}${shared_ext}$major'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 ;;
13017
13018 *)
13019 dynamic_linker=no
13020 ;;
13021 esac
13022 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13023 echo "${ECHO_T}$dynamic_linker" >&6; }
13024 test "$dynamic_linker" = no && can_build_shared=no
13025
13026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13027 if test "$GCC" = yes; then
13028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13029 fi
13030
13031 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13032 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13033 hardcode_action_CXX=
13034 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13035 test -n "$runpath_var_CXX" || \
13036 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13037
13038 # We can hardcode non-existant directories.
13039 if test "$hardcode_direct_CXX" != no &&
13040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13041 # have to relink, otherwise we might link with an installed library
13042 # when we should be linking with a yet-to-be-installed one
13043 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13044 test "$hardcode_minus_L_CXX" != no; then
13045 # Linking always hardcodes the temporary library directory.
13046 hardcode_action_CXX=relink
13047 else
13048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13049 hardcode_action_CXX=immediate
13050 fi
13051 else
13052 # We cannot hardcode anything, or else we can only hardcode existing
13053 # directories.
13054 hardcode_action_CXX=unsupported
13055 fi
13056 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13057 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13058
13059 if test "$hardcode_action_CXX" = relink; then
13060 # Fast installation is not supported
13061 enable_fast_install=no
13062 elif test "$shlibpath_overrides_runpath" = yes ||
13063 test "$enable_shared" = no; then
13064 # Fast installation is not necessary
13065 enable_fast_install=needless
13066 fi
13067
13068
13069 # The else clause should only fire when bootstrapping the
13070 # libtool distribution, otherwise you forgot to ship ltmain.sh
13071 # with your package, and you will get complaints that there are
13072 # no rules to generate ltmain.sh.
13073 if test -f "$ltmain"; then
13074 # See if we are running on zsh, and set the options which allow our commands through
13075 # without removal of \ escapes.
13076 if test -n "${ZSH_VERSION+set}" ; then
13077 setopt NO_GLOB_SUBST
13078 fi
13079 # Now quote all the things that may contain metacharacters while being
13080 # careful not to overquote the AC_SUBSTed values. We take copies of the
13081 # variables and quote the copies for generation of the libtool script.
13082 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13083 SED SHELL STRIP \
13084 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13085 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13086 deplibs_check_method reload_flag reload_cmds need_locks \
13087 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13088 lt_cv_sys_global_symbol_to_c_name_address \
13089 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13090 old_postinstall_cmds old_postuninstall_cmds \
13091 compiler_CXX \
13092 CC_CXX \
13093 LD_CXX \
13094 lt_prog_compiler_wl_CXX \
13095 lt_prog_compiler_pic_CXX \
13096 lt_prog_compiler_static_CXX \
13097 lt_prog_compiler_no_builtin_flag_CXX \
13098 export_dynamic_flag_spec_CXX \
13099 thread_safe_flag_spec_CXX \
13100 whole_archive_flag_spec_CXX \
13101 enable_shared_with_static_runtimes_CXX \
13102 old_archive_cmds_CXX \
13103 old_archive_from_new_cmds_CXX \
13104 predep_objects_CXX \
13105 postdep_objects_CXX \
13106 predeps_CXX \
13107 postdeps_CXX \
13108 compiler_lib_search_path_CXX \
13109 archive_cmds_CXX \
13110 archive_expsym_cmds_CXX \
13111 postinstall_cmds_CXX \
13112 postuninstall_cmds_CXX \
13113 old_archive_from_expsyms_cmds_CXX \
13114 allow_undefined_flag_CXX \
13115 no_undefined_flag_CXX \
13116 export_symbols_cmds_CXX \
13117 hardcode_libdir_flag_spec_CXX \
13118 hardcode_libdir_flag_spec_ld_CXX \
13119 hardcode_libdir_separator_CXX \
13120 hardcode_automatic_CXX \
13121 module_cmds_CXX \
13122 module_expsym_cmds_CXX \
13123 lt_cv_prog_compiler_c_o_CXX \
13124 exclude_expsyms_CXX \
13125 include_expsyms_CXX; do
13126
13127 case $var in
13128 old_archive_cmds_CXX | \
13129 old_archive_from_new_cmds_CXX | \
13130 archive_cmds_CXX | \
13131 archive_expsym_cmds_CXX | \
13132 module_cmds_CXX | \
13133 module_expsym_cmds_CXX | \
13134 old_archive_from_expsyms_cmds_CXX | \
13135 export_symbols_cmds_CXX | \
13136 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13137 postinstall_cmds | postuninstall_cmds | \
13138 old_postinstall_cmds | old_postuninstall_cmds | \
13139 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13140 # Double-quote double-evaled strings.
13141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13142 ;;
13143 *)
13144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13145 ;;
13146 esac
13147 done
13148
13149 case $lt_echo in
13150 *'\$0 --fallback-echo"')
13151 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13152 ;;
13153 esac
13154
13155 cfgfile="$ofile"
13156
13157 cat <<__EOF__ >> "$cfgfile"
13158 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13159
13160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13161
13162 # Shell to use when invoking shell scripts.
13163 SHELL=$lt_SHELL
13164
13165 # Whether or not to build shared libraries.
13166 build_libtool_libs=$enable_shared
13167
13168 # Whether or not to build static libraries.
13169 build_old_libs=$enable_static
13170
13171 # Whether or not to add -lc for building shared libraries.
13172 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13173
13174 # Whether or not to disallow shared libs when runtime libs are static
13175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13176
13177 # Whether or not to optimize for fast installation.
13178 fast_install=$enable_fast_install
13179
13180 # The host system.
13181 host_alias=$host_alias
13182 host=$host
13183 host_os=$host_os
13184
13185 # The build system.
13186 build_alias=$build_alias
13187 build=$build
13188 build_os=$build_os
13189
13190 # An echo program that does not interpret backslashes.
13191 echo=$lt_echo
13192
13193 # The archiver.
13194 AR=$lt_AR
13195 AR_FLAGS=$lt_AR_FLAGS
13196
13197 # A C compiler.
13198 LTCC=$lt_LTCC
13199
13200 # LTCC compiler flags.
13201 LTCFLAGS=$lt_LTCFLAGS
13202
13203 # A language-specific compiler.
13204 CC=$lt_compiler_CXX
13205
13206 # Is the compiler the GNU C compiler?
13207 with_gcc=$GCC_CXX
13208
13209 # An ERE matcher.
13210 EGREP=$lt_EGREP
13211
13212 # The linker used to build libraries.
13213 LD=$lt_LD_CXX
13214
13215 # Whether we need hard or soft links.
13216 LN_S=$lt_LN_S
13217
13218 # A BSD-compatible nm program.
13219 NM=$lt_NM
13220
13221 # A symbol stripping program
13222 STRIP=$lt_STRIP
13223
13224 # Used to examine libraries when file_magic_cmd begins "file"
13225 MAGIC_CMD=$MAGIC_CMD
13226
13227 # Used on cygwin: DLL creation program.
13228 DLLTOOL="$DLLTOOL"
13229
13230 # Used on cygwin: object dumper.
13231 OBJDUMP="$OBJDUMP"
13232
13233 # Used on cygwin: assembler.
13234 AS="$AS"
13235
13236 # The name of the directory that contains temporary libtool files.
13237 objdir=$objdir
13238
13239 # How to create reloadable object files.
13240 reload_flag=$lt_reload_flag
13241 reload_cmds=$lt_reload_cmds
13242
13243 # How to pass a linker flag through the compiler.
13244 wl=$lt_lt_prog_compiler_wl_CXX
13245
13246 # Object file suffix (normally "o").
13247 objext="$ac_objext"
13248
13249 # Old archive suffix (normally "a").
13250 libext="$libext"
13251
13252 # Shared library suffix (normally ".so").
13253 shrext_cmds='$shrext_cmds'
13254
13255 # Executable file suffix (normally "").
13256 exeext="$exeext"
13257
13258 # Additional compiler flags for building library objects.
13259 pic_flag=$lt_lt_prog_compiler_pic_CXX
13260 pic_mode=$pic_mode
13261
13262 # What is the maximum length of a command?
13263 max_cmd_len=$lt_cv_sys_max_cmd_len
13264
13265 # Does compiler simultaneously support -c and -o options?
13266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13267
13268 # Must we lock files when doing compilation?
13269 need_locks=$lt_need_locks
13270
13271 # Do we need the lib prefix for modules?
13272 need_lib_prefix=$need_lib_prefix
13273
13274 # Do we need a version for libraries?
13275 need_version=$need_version
13276
13277 # Whether dlopen is supported.
13278 dlopen_support=$enable_dlopen
13279
13280 # Whether dlopen of programs is supported.
13281 dlopen_self=$enable_dlopen_self
13282
13283 # Whether dlopen of statically linked programs is supported.
13284 dlopen_self_static=$enable_dlopen_self_static
13285
13286 # Compiler flag to prevent dynamic linking.
13287 link_static_flag=$lt_lt_prog_compiler_static_CXX
13288
13289 # Compiler flag to turn off builtin functions.
13290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13291
13292 # Compiler flag to allow reflexive dlopens.
13293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13294
13295 # Compiler flag to generate shared objects directly from archives.
13296 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13297
13298 # Compiler flag to generate thread-safe objects.
13299 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13300
13301 # Library versioning type.
13302 version_type=$version_type
13303
13304 # Format of library name prefix.
13305 libname_spec=$lt_libname_spec
13306
13307 # List of archive names. First name is the real one, the rest are links.
13308 # The last name is the one that the linker finds with -lNAME.
13309 library_names_spec=$lt_library_names_spec
13310
13311 # The coded name of the library, if different from the real name.
13312 soname_spec=$lt_soname_spec
13313
13314 # Commands used to build and install an old-style archive.
13315 RANLIB=$lt_RANLIB
13316 old_archive_cmds=$lt_old_archive_cmds_CXX
13317 old_postinstall_cmds=$lt_old_postinstall_cmds
13318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13319
13320 # Create an old-style archive from a shared archive.
13321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13322
13323 # Create a temporary old-style archive to link instead of a shared archive.
13324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13325
13326 # Commands used to build and install a shared archive.
13327 archive_cmds=$lt_archive_cmds_CXX
13328 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13329 postinstall_cmds=$lt_postinstall_cmds
13330 postuninstall_cmds=$lt_postuninstall_cmds
13331
13332 # Commands used to build a loadable module (assumed same as above if empty)
13333 module_cmds=$lt_module_cmds_CXX
13334 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13335
13336 # Commands to strip libraries.
13337 old_striplib=$lt_old_striplib
13338 striplib=$lt_striplib
13339
13340 # Dependencies to place before the objects being linked to create a
13341 # shared library.
13342 predep_objects=$lt_predep_objects_CXX
13343
13344 # Dependencies to place after the objects being linked to create a
13345 # shared library.
13346 postdep_objects=$lt_postdep_objects_CXX
13347
13348 # Dependencies to place before the objects being linked to create a
13349 # shared library.
13350 predeps=$lt_predeps_CXX
13351
13352 # Dependencies to place after the objects being linked to create a
13353 # shared library.
13354 postdeps=$lt_postdeps_CXX
13355
13356 # The library search path used internally by the compiler when linking
13357 # a shared library.
13358 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13359
13360 # Method to check whether dependent libraries are shared objects.
13361 deplibs_check_method=$lt_deplibs_check_method
13362
13363 # Command to use when deplibs_check_method == file_magic.
13364 file_magic_cmd=$lt_file_magic_cmd
13365
13366 # Flag that allows shared libraries with undefined symbols to be built.
13367 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13368
13369 # Flag that forces no undefined symbols.
13370 no_undefined_flag=$lt_no_undefined_flag_CXX
13371
13372 # Commands used to finish a libtool library installation in a directory.
13373 finish_cmds=$lt_finish_cmds
13374
13375 # Same as above, but a single script fragment to be evaled but not shown.
13376 finish_eval=$lt_finish_eval
13377
13378 # Take the output of nm and produce a listing of raw symbols and C names.
13379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13380
13381 # Transform the output of nm in a proper C declaration
13382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13383
13384 # Transform the output of nm in a C name address pair
13385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13386
13387 # This is the shared library runtime path variable.
13388 runpath_var=$runpath_var
13389
13390 # This is the shared library path variable.
13391 shlibpath_var=$shlibpath_var
13392
13393 # Is shlibpath searched before the hard-coded library search path?
13394 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13395
13396 # How to hardcode a shared library path into an executable.
13397 hardcode_action=$hardcode_action_CXX
13398
13399 # Whether we should hardcode library paths into libraries.
13400 hardcode_into_libs=$hardcode_into_libs
13401
13402 # Flag to hardcode \$libdir into a binary during linking.
13403 # This must work even if \$libdir does not exist.
13404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13405
13406 # If ld is used when linking, flag to hardcode \$libdir into
13407 # a binary during linking. This must work even if \$libdir does
13408 # not exist.
13409 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13410
13411 # Whether we need a single -rpath flag with a separated argument.
13412 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13413
13414 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13415 # resulting binary.
13416 hardcode_direct=$hardcode_direct_CXX
13417
13418 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13419 # resulting binary.
13420 hardcode_minus_L=$hardcode_minus_L_CXX
13421
13422 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13423 # the resulting binary.
13424 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13425
13426 # Set to yes if building a shared library automatically hardcodes DIR into the library
13427 # and all subsequent libraries and executables linked against it.
13428 hardcode_automatic=$hardcode_automatic_CXX
13429
13430 # Variables whose values should be saved in libtool wrapper scripts and
13431 # restored at relink time.
13432 variables_saved_for_relink="$variables_saved_for_relink"
13433
13434 # Whether libtool must link a program against all its dependency libraries.
13435 link_all_deplibs=$link_all_deplibs_CXX
13436
13437 # Compile-time system search path for libraries
13438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13439
13440 # Run-time system search path for libraries
13441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13442
13443 # Fix the shell variable \$srcfile for the compiler.
13444 fix_srcfile_path="$fix_srcfile_path_CXX"
13445
13446 # Set to yes if exported symbols are required.
13447 always_export_symbols=$always_export_symbols_CXX
13448
13449 # The commands to list exported symbols.
13450 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13451
13452 # The commands to extract the exported symbol list from a shared archive.
13453 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13454
13455 # Symbols that should not be listed in the preloaded symbols.
13456 exclude_expsyms=$lt_exclude_expsyms_CXX
13457
13458 # Symbols that must always be exported.
13459 include_expsyms=$lt_include_expsyms_CXX
13460
13461 # ### END LIBTOOL TAG CONFIG: $tagname
13462
13463 __EOF__
13464
13465
13466 else
13467 # If there is no Makefile yet, we rely on a make rule to execute
13468 # `config.status --recheck' to rerun these tests and create the
13469 # libtool script then.
13470 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13471 if test -f "$ltmain_in"; then
13472 test -f Makefile && make "$ltmain"
13473 fi
13474 fi
13475
13476
13477 ac_ext=c
13478 ac_cpp='$CPP $CPPFLAGS'
13479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13482
13483 CC=$lt_save_CC
13484 LDCXX=$LD
13485 LD=$lt_save_LD
13486 GCC=$lt_save_GCC
13487 with_gnu_ldcxx=$with_gnu_ld
13488 with_gnu_ld=$lt_save_with_gnu_ld
13489 lt_cv_path_LDCXX=$lt_cv_path_LD
13490 lt_cv_path_LD=$lt_save_path_LD
13491 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13492 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13493
13494 else
13495 tagname=""
13496 fi
13497 ;;
13498
13499 F77)
13500 if test -n "$F77" && test "X$F77" != "Xno"; then
13501
13502 ac_ext=f
13503 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13504 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13505 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13506
13507
13508 archive_cmds_need_lc_F77=no
13509 allow_undefined_flag_F77=
13510 always_export_symbols_F77=no
13511 archive_expsym_cmds_F77=
13512 export_dynamic_flag_spec_F77=
13513 hardcode_direct_F77=no
13514 hardcode_libdir_flag_spec_F77=
13515 hardcode_libdir_flag_spec_ld_F77=
13516 hardcode_libdir_separator_F77=
13517 hardcode_minus_L_F77=no
13518 hardcode_automatic_F77=no
13519 module_cmds_F77=
13520 module_expsym_cmds_F77=
13521 link_all_deplibs_F77=unknown
13522 old_archive_cmds_F77=$old_archive_cmds
13523 no_undefined_flag_F77=
13524 whole_archive_flag_spec_F77=
13525 enable_shared_with_static_runtimes_F77=no
13526
13527 # Source file extension for f77 test sources.
13528 ac_ext=f
13529
13530 # Object file extension for compiled f77 test sources.
13531 objext=o
13532 objext_F77=$objext
13533
13534 # Code to be used in simple compile tests
13535 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13536
13537 # Code to be used in simple link tests
13538 lt_simple_link_test_code=" program t\n end\n"
13539
13540 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13541
13542 # If no C compiler was specified, use CC.
13543 LTCC=${LTCC-"$CC"}
13544
13545 # If no C compiler flags were specified, use CFLAGS.
13546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13547
13548 # Allow CC to be a program name with arguments.
13549 compiler=$CC
13550
13551
13552 # save warnings/boilerplate of simple test code
13553 ac_outfile=conftest.$ac_objext
13554 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13556 _lt_compiler_boilerplate=`cat conftest.err`
13557 $rm conftest*
13558
13559 ac_outfile=conftest.$ac_objext
13560 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13562 _lt_linker_boilerplate=`cat conftest.err`
13563 $rm conftest*
13564
13565
13566 # Allow CC to be a program name with arguments.
13567 lt_save_CC="$CC"
13568 CC=${F77-"f77"}
13569 compiler=$CC
13570 compiler_F77=$CC
13571 for cc_temp in $compiler""; do
13572 case $cc_temp in
13573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13575 \-*) ;;
13576 *) break;;
13577 esac
13578 done
13579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13580
13581
13582 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13584 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13585 echo "${ECHO_T}$can_build_shared" >&6; }
13586
13587 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13589 test "$can_build_shared" = "no" && enable_shared=no
13590
13591 # On AIX, shared libraries and static libraries use the same namespace, and
13592 # are all built from PIC.
13593 case $host_os in
13594 aix3*)
13595 test "$enable_shared" = yes && enable_static=no
13596 if test -n "$RANLIB"; then
13597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13598 postinstall_cmds='$RANLIB $lib'
13599 fi
13600 ;;
13601 aix4* | aix5*)
13602 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13603 test "$enable_shared" = yes && enable_static=no
13604 fi
13605 ;;
13606 esac
13607 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13608 echo "${ECHO_T}$enable_shared" >&6; }
13609
13610 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13611 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13612 # Make sure either enable_shared or enable_static is yes.
13613 test "$enable_shared" = yes || enable_static=yes
13614 { echo "$as_me:$LINENO: result: $enable_static" >&5
13615 echo "${ECHO_T}$enable_static" >&6; }
13616
13617 GCC_F77="$G77"
13618 LD_F77="$LD"
13619
13620 lt_prog_compiler_wl_F77=
13621 lt_prog_compiler_pic_F77=
13622 lt_prog_compiler_static_F77=
13623
13624 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13626
13627 if test "$GCC" = yes; then
13628 lt_prog_compiler_wl_F77='-Wl,'
13629 lt_prog_compiler_static_F77='-static'
13630
13631 case $host_os in
13632 aix*)
13633 # All AIX code is PIC.
13634 if test "$host_cpu" = ia64; then
13635 # AIX 5 now supports IA64 processor
13636 lt_prog_compiler_static_F77='-Bstatic'
13637 fi
13638 ;;
13639
13640 amigaos*)
13641 # FIXME: we need at least 68020 code to build shared libraries, but
13642 # adding the `-m68020' flag to GCC prevents building anything better,
13643 # like `-m68040'.
13644 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13645 ;;
13646
13647 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13648 # PIC is the default for these OSes.
13649 ;;
13650
13651 mingw* | pw32* | os2*)
13652 # This hack is so that the source file can tell whether it is being
13653 # built for inclusion in a dll (and should export symbols for example).
13654 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13655 ;;
13656
13657 darwin* | rhapsody*)
13658 # PIC is the default on this platform
13659 # Common symbols not allowed in MH_DYLIB files
13660 lt_prog_compiler_pic_F77='-fno-common'
13661 ;;
13662
13663 interix3*)
13664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665 # Instead, we relocate shared libraries at runtime.
13666 ;;
13667
13668 msdosdjgpp*)
13669 # Just because we use GCC doesn't mean we suddenly get shared libraries
13670 # on systems that don't support them.
13671 lt_prog_compiler_can_build_shared_F77=no
13672 enable_shared=no
13673 ;;
13674
13675 sysv4*MP*)
13676 if test -d /usr/nec; then
13677 lt_prog_compiler_pic_F77=-Kconform_pic
13678 fi
13679 ;;
13680
13681 hpux*)
13682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13683 # not for PA HP-UX.
13684 case $host_cpu in
13685 hppa*64*|ia64*)
13686 # +Z the default
13687 ;;
13688 *)
13689 lt_prog_compiler_pic_F77='-fPIC'
13690 ;;
13691 esac
13692 ;;
13693
13694 *)
13695 lt_prog_compiler_pic_F77='-fPIC'
13696 ;;
13697 esac
13698 else
13699 # PORTME Check for flag to pass linker flags through the system compiler.
13700 case $host_os in
13701 aix*)
13702 lt_prog_compiler_wl_F77='-Wl,'
13703 if test "$host_cpu" = ia64; then
13704 # AIX 5 now supports IA64 processor
13705 lt_prog_compiler_static_F77='-Bstatic'
13706 else
13707 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13708 fi
13709 ;;
13710 darwin*)
13711 # PIC is the default on this platform
13712 # Common symbols not allowed in MH_DYLIB files
13713 case $cc_basename in
13714 xlc*)
13715 lt_prog_compiler_pic_F77='-qnocommon'
13716 lt_prog_compiler_wl_F77='-Wl,'
13717 ;;
13718 esac
13719 ;;
13720
13721 mingw* | pw32* | os2*)
13722 # This hack is so that the source file can tell whether it is being
13723 # built for inclusion in a dll (and should export symbols for example).
13724 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13725 ;;
13726
13727 hpux9* | hpux10* | hpux11*)
13728 lt_prog_compiler_wl_F77='-Wl,'
13729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13730 # not for PA HP-UX.
13731 case $host_cpu in
13732 hppa*64*|ia64*)
13733 # +Z the default
13734 ;;
13735 *)
13736 lt_prog_compiler_pic_F77='+Z'
13737 ;;
13738 esac
13739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13740 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13741 ;;
13742
13743 irix5* | irix6* | nonstopux*)
13744 lt_prog_compiler_wl_F77='-Wl,'
13745 # PIC (with -KPIC) is the default.
13746 lt_prog_compiler_static_F77='-non_shared'
13747 ;;
13748
13749 newsos6)
13750 lt_prog_compiler_pic_F77='-KPIC'
13751 lt_prog_compiler_static_F77='-Bstatic'
13752 ;;
13753
13754 linux* | k*bsd*-gnu)
13755 case $cc_basename in
13756 icc* | ecc*)
13757 lt_prog_compiler_wl_F77='-Wl,'
13758 lt_prog_compiler_pic_F77='-KPIC'
13759 lt_prog_compiler_static_F77='-static'
13760 ;;
13761 pgcc* | pgf77* | pgf90* | pgf95*)
13762 # Portland Group compilers (*not* the Pentium gcc compiler,
13763 # which looks to be a dead project)
13764 lt_prog_compiler_wl_F77='-Wl,'
13765 lt_prog_compiler_pic_F77='-fpic'
13766 lt_prog_compiler_static_F77='-Bstatic'
13767 ;;
13768 ccc*)
13769 lt_prog_compiler_wl_F77='-Wl,'
13770 # All Alpha code is PIC.
13771 lt_prog_compiler_static_F77='-non_shared'
13772 ;;
13773 esac
13774 ;;
13775
13776 osf3* | osf4* | osf5*)
13777 lt_prog_compiler_wl_F77='-Wl,'
13778 # All OSF/1 code is PIC.
13779 lt_prog_compiler_static_F77='-non_shared'
13780 ;;
13781
13782 solaris*)
13783 lt_prog_compiler_pic_F77='-KPIC'
13784 lt_prog_compiler_static_F77='-Bstatic'
13785 case $cc_basename in
13786 f77* | f90* | f95*)
13787 lt_prog_compiler_wl_F77='-Qoption ld ';;
13788 *)
13789 lt_prog_compiler_wl_F77='-Wl,';;
13790 esac
13791 ;;
13792
13793 sunos4*)
13794 lt_prog_compiler_wl_F77='-Qoption ld '
13795 lt_prog_compiler_pic_F77='-PIC'
13796 lt_prog_compiler_static_F77='-Bstatic'
13797 ;;
13798
13799 sysv4 | sysv4.2uw2* | sysv4.3*)
13800 lt_prog_compiler_wl_F77='-Wl,'
13801 lt_prog_compiler_pic_F77='-KPIC'
13802 lt_prog_compiler_static_F77='-Bstatic'
13803 ;;
13804
13805 sysv4*MP*)
13806 if test -d /usr/nec ;then
13807 lt_prog_compiler_pic_F77='-Kconform_pic'
13808 lt_prog_compiler_static_F77='-Bstatic'
13809 fi
13810 ;;
13811
13812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13813 lt_prog_compiler_wl_F77='-Wl,'
13814 lt_prog_compiler_pic_F77='-KPIC'
13815 lt_prog_compiler_static_F77='-Bstatic'
13816 ;;
13817
13818 unicos*)
13819 lt_prog_compiler_wl_F77='-Wl,'
13820 lt_prog_compiler_can_build_shared_F77=no
13821 ;;
13822
13823 uts4*)
13824 lt_prog_compiler_pic_F77='-pic'
13825 lt_prog_compiler_static_F77='-Bstatic'
13826 ;;
13827
13828 *)
13829 lt_prog_compiler_can_build_shared_F77=no
13830 ;;
13831 esac
13832 fi
13833
13834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13835 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13836
13837 #
13838 # Check to make sure the PIC flag actually works.
13839 #
13840 if test -n "$lt_prog_compiler_pic_F77"; then
13841
13842 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13844 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847 lt_prog_compiler_pic_works_F77=no
13848 ac_outfile=conftest.$ac_objext
13849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13850 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13851 # Insert the option either (1) after the last *FLAGS variable, or
13852 # (2) before a word containing "conftest.", or (3) at the end.
13853 # Note that $ac_compile itself does not contain backslashes and begins
13854 # with a dollar sign (not a hyphen), so the echo should work correctly.
13855 # The option is referenced via a variable to avoid confusing sed.
13856 lt_compile=`echo "$ac_compile" | $SED \
13857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13859 -e 's:$: $lt_compiler_flag:'`
13860 (eval echo "\"\$as_me:13860: $lt_compile\"" >&5)
13861 (eval "$lt_compile" 2>conftest.err)
13862 ac_status=$?
13863 cat conftest.err >&5
13864 echo "$as_me:13864: \$? = $ac_status" >&5
13865 if (exit $ac_status) && test -s "$ac_outfile"; then
13866 # The compiler can only warn and ignore the option if not recognized
13867 # So say no if there are warnings other than the usual output.
13868 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13871 lt_prog_compiler_pic_works_F77=yes
13872 fi
13873 fi
13874 $rm conftest*
13875
13876 fi
13877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13878 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13879
13880 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13881 case $lt_prog_compiler_pic_F77 in
13882 "" | " "*) ;;
13883 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13884 esac
13885 else
13886 lt_prog_compiler_pic_F77=
13887 lt_prog_compiler_can_build_shared_F77=no
13888 fi
13889
13890 fi
13891 case $host_os in
13892 # For platforms which do not support PIC, -DPIC is meaningless:
13893 *djgpp*)
13894 lt_prog_compiler_pic_F77=
13895 ;;
13896 *)
13897 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13898 ;;
13899 esac
13900
13901 #
13902 # Check to make sure the static flag actually works.
13903 #
13904 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13905 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13906 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13907 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910 lt_prog_compiler_static_works_F77=no
13911 save_LDFLAGS="$LDFLAGS"
13912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13913 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13915 # The linker can only warn and ignore the option if not recognized
13916 # So say no if there are warnings
13917 if test -s conftest.err; then
13918 # Append any errors to the config.log.
13919 cat conftest.err 1>&5
13920 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13922 if diff conftest.exp conftest.er2 >/dev/null; then
13923 lt_prog_compiler_static_works_F77=yes
13924 fi
13925 else
13926 lt_prog_compiler_static_works_F77=yes
13927 fi
13928 fi
13929 $rm conftest*
13930 LDFLAGS="$save_LDFLAGS"
13931
13932 fi
13933 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13934 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13935
13936 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13937 :
13938 else
13939 lt_prog_compiler_static_F77=
13940 fi
13941
13942
13943 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13944 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13945 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 else
13948 lt_cv_prog_compiler_c_o_F77=no
13949 $rm -r conftest 2>/dev/null
13950 mkdir conftest
13951 cd conftest
13952 mkdir out
13953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
13955 lt_compiler_flag="-o out/conftest2.$ac_objext"
13956 # Insert the option either (1) after the last *FLAGS variable, or
13957 # (2) before a word containing "conftest.", or (3) at the end.
13958 # Note that $ac_compile itself does not contain backslashes and begins
13959 # with a dollar sign (not a hyphen), so the echo should work correctly.
13960 lt_compile=`echo "$ac_compile" | $SED \
13961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963 -e 's:$: $lt_compiler_flag:'`
13964 (eval echo "\"\$as_me:13964: $lt_compile\"" >&5)
13965 (eval "$lt_compile" 2>out/conftest.err)
13966 ac_status=$?
13967 cat out/conftest.err >&5
13968 echo "$as_me:13968: \$? = $ac_status" >&5
13969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13970 then
13971 # The compiler can only warn and ignore the option if not recognized
13972 # So say no if there are warnings
13973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13976 lt_cv_prog_compiler_c_o_F77=yes
13977 fi
13978 fi
13979 chmod u+w . 2>&5
13980 $rm conftest*
13981 # SGI C++ compiler will create directory out/ii_files/ for
13982 # template instantiation
13983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13984 $rm out/* && rmdir out
13985 cd ..
13986 rmdir conftest
13987 $rm conftest*
13988
13989 fi
13990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13992
13993
13994 hard_links="nottested"
13995 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13996 # do not overwrite the value of need_locks provided by the user
13997 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13999 hard_links=yes
14000 $rm conftest*
14001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14002 touch conftest.a
14003 ln conftest.a conftest.b 2>&5 || hard_links=no
14004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14005 { echo "$as_me:$LINENO: result: $hard_links" >&5
14006 echo "${ECHO_T}$hard_links" >&6; }
14007 if test "$hard_links" = no; then
14008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14010 need_locks=warn
14011 fi
14012 else
14013 need_locks=no
14014 fi
14015
14016 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14018
14019 runpath_var=
14020 allow_undefined_flag_F77=
14021 enable_shared_with_static_runtimes_F77=no
14022 archive_cmds_F77=
14023 archive_expsym_cmds_F77=
14024 old_archive_From_new_cmds_F77=
14025 old_archive_from_expsyms_cmds_F77=
14026 export_dynamic_flag_spec_F77=
14027 whole_archive_flag_spec_F77=
14028 thread_safe_flag_spec_F77=
14029 hardcode_libdir_flag_spec_F77=
14030 hardcode_libdir_flag_spec_ld_F77=
14031 hardcode_libdir_separator_F77=
14032 hardcode_direct_F77=no
14033 hardcode_minus_L_F77=no
14034 hardcode_shlibpath_var_F77=unsupported
14035 link_all_deplibs_F77=unknown
14036 hardcode_automatic_F77=no
14037 module_cmds_F77=
14038 module_expsym_cmds_F77=
14039 always_export_symbols_F77=no
14040 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14041 # include_expsyms should be a list of space-separated symbols to be *always*
14042 # included in the symbol list
14043 include_expsyms_F77=
14044 # exclude_expsyms can be an extended regexp of symbols to exclude
14045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14047 # as well as any symbol that contains `d'.
14048 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14050 # platforms (ab)use it in PIC code, but their linkers get confused if
14051 # the symbol is explicitly referenced. Since portable code cannot
14052 # rely on this symbol name, it's probably fine to never include it in
14053 # preloaded symbol tables.
14054 extract_expsyms_cmds=
14055 # Just being paranoid about ensuring that cc_basename is set.
14056 for cc_temp in $compiler""; do
14057 case $cc_temp in
14058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14060 \-*) ;;
14061 *) break;;
14062 esac
14063 done
14064 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14065
14066 case $host_os in
14067 cygwin* | mingw* | pw32*)
14068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14069 # When not using gcc, we currently assume that we are using
14070 # Microsoft Visual C++.
14071 if test "$GCC" != yes; then
14072 with_gnu_ld=no
14073 fi
14074 ;;
14075 interix*)
14076 # we just hope/assume this is gcc and not c89 (= MSVC++)
14077 with_gnu_ld=yes
14078 ;;
14079 openbsd*)
14080 with_gnu_ld=no
14081 ;;
14082 esac
14083
14084 ld_shlibs_F77=yes
14085 if test "$with_gnu_ld" = yes; then
14086 # If archive_cmds runs LD, not CC, wlarc should be empty
14087 wlarc='${wl}'
14088
14089 # Set some defaults for GNU ld with shared library support. These
14090 # are reset later if shared libraries are not supported. Putting them
14091 # here allows them to be overridden if necessary.
14092 runpath_var=LD_RUN_PATH
14093 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14094 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14095 # ancient GNU ld didn't support --whole-archive et. al.
14096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14097 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14098 else
14099 whole_archive_flag_spec_F77=
14100 fi
14101 supports_anon_versioning=no
14102 case `$LD -v 2>/dev/null` in
14103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14106 *\ 2.11.*) ;; # other 2.11 versions
14107 *) supports_anon_versioning=yes ;;
14108 esac
14109
14110 # See if GNU ld supports shared libraries.
14111 case $host_os in
14112 aix3* | aix4* | aix5*)
14113 # On AIX/PPC, the GNU linker is very broken
14114 if test "$host_cpu" != ia64; then
14115 ld_shlibs_F77=no
14116 cat <<EOF 1>&2
14117
14118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14119 *** to be unable to reliably create shared libraries on AIX.
14120 *** Therefore, libtool is disabling shared libraries support. If you
14121 *** really care for shared libraries, you may want to modify your PATH
14122 *** so that a non-GNU linker is found, and then restart.
14123
14124 EOF
14125 fi
14126 ;;
14127
14128 amigaos*)
14129 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)'
14130 hardcode_libdir_flag_spec_F77='-L$libdir'
14131 hardcode_minus_L_F77=yes
14132
14133 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14134 # that the semantics of dynamic libraries on AmigaOS, at least up
14135 # to version 4, is to share data among multiple programs linked
14136 # with the same dynamic library. Since this doesn't match the
14137 # behavior of shared libraries on other platforms, we can't use
14138 # them.
14139 ld_shlibs_F77=no
14140 ;;
14141
14142 beos*)
14143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14144 allow_undefined_flag_F77=unsupported
14145 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14146 # support --undefined. This deserves some investigation. FIXME
14147 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14148 else
14149 ld_shlibs_F77=no
14150 fi
14151 ;;
14152
14153 cygwin* | mingw* | pw32*)
14154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14155 # as there is no search path for DLLs.
14156 hardcode_libdir_flag_spec_F77='-L$libdir'
14157 allow_undefined_flag_F77=unsupported
14158 always_export_symbols_F77=no
14159 enable_shared_with_static_runtimes_F77=yes
14160 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14161
14162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14163 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14164 # If the export-symbols file already is a .def file (1st line
14165 # is EXPORTS), use it as is; otherwise, prepend...
14166 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14167 cp $export_symbols $output_objdir/$soname.def;
14168 else
14169 echo EXPORTS > $output_objdir/$soname.def;
14170 cat $export_symbols >> $output_objdir/$soname.def;
14171 fi~
14172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14173 else
14174 ld_shlibs_F77=no
14175 fi
14176 ;;
14177
14178 interix3*)
14179 hardcode_direct_F77=no
14180 hardcode_shlibpath_var_F77=no
14181 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14182 export_dynamic_flag_spec_F77='${wl}-E'
14183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14184 # Instead, shared libraries are loaded at an image base (0x10000000 by
14185 # default) and relocated if they conflict, which is a slow very memory
14186 # consuming and fragmenting process. To avoid this, we pick a random,
14187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14189 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'
14190 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'
14191 ;;
14192
14193 linux* | k*bsd*-gnu)
14194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14195 tmp_addflag=
14196 case $cc_basename,$host_cpu in
14197 pgcc*) # Portland Group C compiler
14198 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'
14199 tmp_addflag=' $pic_flag'
14200 ;;
14201 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14202 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'
14203 tmp_addflag=' $pic_flag -Mnomain' ;;
14204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14205 tmp_addflag=' -i_dynamic' ;;
14206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14207 tmp_addflag=' -i_dynamic -nofor_main' ;;
14208 ifc* | ifort*) # Intel Fortran compiler
14209 tmp_addflag=' -nofor_main' ;;
14210 esac
14211 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14212
14213 if test $supports_anon_versioning = yes; then
14214 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14216 $echo "local: *; };" >> $output_objdir/$libname.ver~
14217 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14218 fi
14219 link_all_deplibs_F77=no
14220 else
14221 ld_shlibs_F77=no
14222 fi
14223 ;;
14224
14225 netbsd* | netbsdelf*-gnu)
14226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14227 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14228 wlarc=
14229 else
14230 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14231 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14232 fi
14233 ;;
14234
14235 solaris*)
14236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14237 ld_shlibs_F77=no
14238 cat <<EOF 1>&2
14239
14240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14241 *** create shared libraries on Solaris systems. Therefore, libtool
14242 *** is disabling shared libraries support. We urge you to upgrade GNU
14243 *** binutils to release 2.9.1 or newer. Another option is to modify
14244 *** your PATH or compiler configuration so that the native linker is
14245 *** used, and then restart.
14246
14247 EOF
14248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14251 else
14252 ld_shlibs_F77=no
14253 fi
14254 ;;
14255
14256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14257 case `$LD -v 2>&1` in
14258 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14259 ld_shlibs_F77=no
14260 cat <<_LT_EOF 1>&2
14261
14262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14263 *** reliably create shared libraries on SCO systems. Therefore, libtool
14264 *** is disabling shared libraries support. We urge you to upgrade GNU
14265 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14266 *** your PATH or compiler configuration so that the native linker is
14267 *** used, and then restart.
14268
14269 _LT_EOF
14270 ;;
14271 *)
14272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14273 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14274 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14275 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14276 else
14277 ld_shlibs_F77=no
14278 fi
14279 ;;
14280 esac
14281 ;;
14282
14283 sunos4*)
14284 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14285 wlarc=
14286 hardcode_direct_F77=yes
14287 hardcode_shlibpath_var_F77=no
14288 ;;
14289
14290 *)
14291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14292 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14293 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14294 else
14295 ld_shlibs_F77=no
14296 fi
14297 ;;
14298 esac
14299
14300 if test "$ld_shlibs_F77" = no; then
14301 runpath_var=
14302 hardcode_libdir_flag_spec_F77=
14303 export_dynamic_flag_spec_F77=
14304 whole_archive_flag_spec_F77=
14305 fi
14306 else
14307 # PORTME fill in a description of your system's linker (not GNU ld)
14308 case $host_os in
14309 aix3*)
14310 allow_undefined_flag_F77=unsupported
14311 always_export_symbols_F77=yes
14312 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'
14313 # Note: this linker hardcodes the directories in LIBPATH if there
14314 # are no directories specified by -L.
14315 hardcode_minus_L_F77=yes
14316 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14317 # Neither direct hardcoding nor static linking is supported with a
14318 # broken collect2.
14319 hardcode_direct_F77=unsupported
14320 fi
14321 ;;
14322
14323 aix4* | aix5*)
14324 if test "$host_cpu" = ia64; then
14325 # On IA64, the linker does run time linking by default, so we don't
14326 # have to do anything special.
14327 aix_use_runtimelinking=no
14328 exp_sym_flag='-Bexport'
14329 no_entry_flag=""
14330 else
14331 # If we're using GNU nm, then we don't want the "-C" option.
14332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14333 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14334 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'
14335 else
14336 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'
14337 fi
14338 aix_use_runtimelinking=no
14339
14340 # Test if we are trying to use run time linking or normal
14341 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14342 # need to do runtime linking.
14343 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14344 for ld_flag in $LDFLAGS; do
14345 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14346 aix_use_runtimelinking=yes
14347 break
14348 fi
14349 done
14350 ;;
14351 esac
14352
14353 exp_sym_flag='-bexport'
14354 no_entry_flag='-bnoentry'
14355 fi
14356
14357 # When large executables or shared objects are built, AIX ld can
14358 # have problems creating the table of contents. If linking a library
14359 # or program results in "error TOC overflow" add -mminimal-toc to
14360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14362
14363 archive_cmds_F77=''
14364 hardcode_direct_F77=yes
14365 hardcode_libdir_separator_F77=':'
14366 link_all_deplibs_F77=yes
14367
14368 if test "$GCC" = yes; then
14369 case $host_os in aix4.[012]|aix4.[012].*)
14370 # We only want to do this on AIX 4.2 and lower, the check
14371 # below for broken collect2 doesn't work under 4.3+
14372 collect2name=`${CC} -print-prog-name=collect2`
14373 if test -f "$collect2name" && \
14374 strings "$collect2name" | grep resolve_lib_name >/dev/null
14375 then
14376 # We have reworked collect2
14377 hardcode_direct_F77=yes
14378 else
14379 # We have old collect2
14380 hardcode_direct_F77=unsupported
14381 # It fails to find uninstalled libraries when the uninstalled
14382 # path is not listed in the libpath. Setting hardcode_minus_L
14383 # to unsupported forces relinking
14384 hardcode_minus_L_F77=yes
14385 hardcode_libdir_flag_spec_F77='-L$libdir'
14386 hardcode_libdir_separator_F77=
14387 fi
14388 ;;
14389 esac
14390 shared_flag='-shared'
14391 if test "$aix_use_runtimelinking" = yes; then
14392 shared_flag="$shared_flag "'${wl}-G'
14393 fi
14394 else
14395 # not using gcc
14396 if test "$host_cpu" = ia64; then
14397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14398 # chokes on -Wl,-G. The following line is correct:
14399 shared_flag='-G'
14400 else
14401 if test "$aix_use_runtimelinking" = yes; then
14402 shared_flag='${wl}-G'
14403 else
14404 shared_flag='${wl}-bM:SRE'
14405 fi
14406 fi
14407 fi
14408
14409 # It seems that -bexpall does not export symbols beginning with
14410 # underscore (_), so it is better to generate a list of symbols to export.
14411 always_export_symbols_F77=yes
14412 if test "$aix_use_runtimelinking" = yes; then
14413 # Warning - without using the other runtime loading flags (-brtl),
14414 # -berok will link without error, but may produce a broken library.
14415 allow_undefined_flag_F77='-berok'
14416 # Determine the default libpath from the value encoded in an empty executable.
14417 cat >conftest.$ac_ext <<_ACEOF
14418 program main
14419
14420 end
14421 _ACEOF
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (ac_try="$ac_link"
14424 case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14427 esac
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_link") 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } && {
14436 test -z "$ac_f77_werror_flag" ||
14437 test ! -s conftest.err
14438 } && test -s conftest$ac_exeext &&
14439 $as_test_x conftest$ac_exeext; then
14440
14441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14442 }'`
14443 # Check for a 64-bit object if we didn't find anything.
14444 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14445 }'`; fi
14446 else
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450
14451 fi
14452
14453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14454 conftest$ac_exeext conftest.$ac_ext
14455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14456
14457 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14458 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"
14459 else
14460 if test "$host_cpu" = ia64; then
14461 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14462 allow_undefined_flag_F77="-z nodefs"
14463 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"
14464 else
14465 # Determine the default libpath from the value encoded in an empty executable.
14466 cat >conftest.$ac_ext <<_ACEOF
14467 program main
14468
14469 end
14470 _ACEOF
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (ac_try="$ac_link"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_link") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_f77_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest$ac_exeext &&
14488 $as_test_x conftest$ac_exeext; then
14489
14490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14491 }'`
14492 # Check for a 64-bit object if we didn't find anything.
14493 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14494 }'`; fi
14495 else
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499
14500 fi
14501
14502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14503 conftest$ac_exeext conftest.$ac_ext
14504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14505
14506 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14507 # Warning - without using the other run time loading flags,
14508 # -berok will link without error, but may produce a broken library.
14509 no_undefined_flag_F77=' ${wl}-bernotok'
14510 allow_undefined_flag_F77=' ${wl}-berok'
14511 # Exported symbols can be pulled into shared objects from archives
14512 whole_archive_flag_spec_F77='$convenience'
14513 archive_cmds_need_lc_F77=yes
14514 # This is similar to how AIX traditionally builds its shared libraries.
14515 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'
14516 fi
14517 fi
14518 ;;
14519
14520 amigaos*)
14521 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)'
14522 hardcode_libdir_flag_spec_F77='-L$libdir'
14523 hardcode_minus_L_F77=yes
14524 # see comment about different semantics on the GNU ld section
14525 ld_shlibs_F77=no
14526 ;;
14527
14528 bsdi[45]*)
14529 export_dynamic_flag_spec_F77=-rdynamic
14530 ;;
14531
14532 cygwin* | mingw* | pw32*)
14533 # When not using gcc, we currently assume that we are using
14534 # Microsoft Visual C++.
14535 # hardcode_libdir_flag_spec is actually meaningless, as there is
14536 # no search path for DLLs.
14537 hardcode_libdir_flag_spec_F77=' '
14538 allow_undefined_flag_F77=unsupported
14539 # Tell ltmain to make .lib files, not .a files.
14540 libext=lib
14541 # Tell ltmain to make .dll files, not .so files.
14542 shrext_cmds=".dll"
14543 # FIXME: Setting linknames here is a bad hack.
14544 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14545 # The linker will automatically build a .lib file if we build a DLL.
14546 old_archive_From_new_cmds_F77='true'
14547 # FIXME: Should let the user specify the lib program.
14548 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14549 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14550 enable_shared_with_static_runtimes_F77=yes
14551 ;;
14552
14553 darwin* | rhapsody*)
14554 case $host_os in
14555 rhapsody* | darwin1.[012])
14556 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14557 ;;
14558 *) # Darwin 1.3 on
14559 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14560 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14561 else
14562 case ${MACOSX_DEPLOYMENT_TARGET} in
14563 10.[012])
14564 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14565 ;;
14566 10.*)
14567 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14568 ;;
14569 esac
14570 fi
14571 ;;
14572 esac
14573 archive_cmds_need_lc_F77=no
14574 hardcode_direct_F77=no
14575 hardcode_automatic_F77=yes
14576 hardcode_shlibpath_var_F77=unsupported
14577 whole_archive_flag_spec_F77=''
14578 link_all_deplibs_F77=yes
14579 if test "$GCC" = yes ; then
14580 output_verbose_link_cmd='echo'
14581 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14582 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14584 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}'
14585 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}'
14586 else
14587 case $cc_basename in
14588 xlc*)
14589 output_verbose_link_cmd='echo'
14590 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14591 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14593 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14594 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}'
14595 ;;
14596 *)
14597 ld_shlibs_F77=no
14598 ;;
14599 esac
14600 fi
14601 ;;
14602
14603 dgux*)
14604 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14605 hardcode_libdir_flag_spec_F77='-L$libdir'
14606 hardcode_shlibpath_var_F77=no
14607 ;;
14608
14609 freebsd1*)
14610 ld_shlibs_F77=no
14611 ;;
14612
14613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14614 # support. Future versions do this automatically, but an explicit c++rt0.o
14615 # does not break anything, and helps significantly (at the cost of a little
14616 # extra space).
14617 freebsd2.2*)
14618 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14619 hardcode_libdir_flag_spec_F77='-R$libdir'
14620 hardcode_direct_F77=yes
14621 hardcode_shlibpath_var_F77=no
14622 ;;
14623
14624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14625 freebsd2*)
14626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14627 hardcode_direct_F77=yes
14628 hardcode_minus_L_F77=yes
14629 hardcode_shlibpath_var_F77=no
14630 ;;
14631
14632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14633 freebsd* | dragonfly*)
14634 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14635 hardcode_libdir_flag_spec_F77='-R$libdir'
14636 hardcode_direct_F77=yes
14637 hardcode_shlibpath_var_F77=no
14638 ;;
14639
14640 hpux9*)
14641 if test "$GCC" = yes; then
14642 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'
14643 else
14644 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'
14645 fi
14646 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14647 hardcode_libdir_separator_F77=:
14648 hardcode_direct_F77=yes
14649
14650 # hardcode_minus_L: Not really in the search PATH,
14651 # but as the default location of the library.
14652 hardcode_minus_L_F77=yes
14653 export_dynamic_flag_spec_F77='${wl}-E'
14654 ;;
14655
14656 hpux10*)
14657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14658 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14659 else
14660 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14661 fi
14662 if test "$with_gnu_ld" = no; then
14663 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14664 hardcode_libdir_separator_F77=:
14665
14666 hardcode_direct_F77=yes
14667 export_dynamic_flag_spec_F77='${wl}-E'
14668
14669 # hardcode_minus_L: Not really in the search PATH,
14670 # but as the default location of the library.
14671 hardcode_minus_L_F77=yes
14672 fi
14673 ;;
14674
14675 hpux11*)
14676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14677 case $host_cpu in
14678 hppa*64*)
14679 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14680 ;;
14681 ia64*)
14682 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14683 ;;
14684 *)
14685 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14686 ;;
14687 esac
14688 else
14689 case $host_cpu in
14690 hppa*64*)
14691 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14692 ;;
14693 ia64*)
14694 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14695 ;;
14696 *)
14697 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14698 ;;
14699 esac
14700 fi
14701 if test "$with_gnu_ld" = no; then
14702 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14703 hardcode_libdir_separator_F77=:
14704
14705 case $host_cpu in
14706 hppa*64*|ia64*)
14707 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14708 hardcode_direct_F77=no
14709 hardcode_shlibpath_var_F77=no
14710 ;;
14711 *)
14712 hardcode_direct_F77=yes
14713 export_dynamic_flag_spec_F77='${wl}-E'
14714
14715 # hardcode_minus_L: Not really in the search PATH,
14716 # but as the default location of the library.
14717 hardcode_minus_L_F77=yes
14718 ;;
14719 esac
14720 fi
14721 ;;
14722
14723 irix5* | irix6* | nonstopux*)
14724 if test "$GCC" = yes; then
14725 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'
14726 else
14727 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'
14728 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14729 fi
14730 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14731 hardcode_libdir_separator_F77=:
14732 link_all_deplibs_F77=yes
14733 ;;
14734
14735 netbsd* | netbsdelf*-gnu)
14736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14737 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14738 else
14739 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14740 fi
14741 hardcode_libdir_flag_spec_F77='-R$libdir'
14742 hardcode_direct_F77=yes
14743 hardcode_shlibpath_var_F77=no
14744 ;;
14745
14746 newsos6)
14747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14748 hardcode_direct_F77=yes
14749 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14750 hardcode_libdir_separator_F77=:
14751 hardcode_shlibpath_var_F77=no
14752 ;;
14753
14754 openbsd*)
14755 hardcode_direct_F77=yes
14756 hardcode_shlibpath_var_F77=no
14757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14758 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14759 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14760 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14761 export_dynamic_flag_spec_F77='${wl}-E'
14762 else
14763 case $host_os in
14764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14765 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14766 hardcode_libdir_flag_spec_F77='-R$libdir'
14767 ;;
14768 *)
14769 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14770 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14771 ;;
14772 esac
14773 fi
14774 ;;
14775
14776 os2*)
14777 hardcode_libdir_flag_spec_F77='-L$libdir'
14778 hardcode_minus_L_F77=yes
14779 allow_undefined_flag_F77=unsupported
14780 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'
14781 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14782 ;;
14783
14784 osf3*)
14785 if test "$GCC" = yes; then
14786 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14787 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'
14788 else
14789 allow_undefined_flag_F77=' -expect_unresolved \*'
14790 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'
14791 fi
14792 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14793 hardcode_libdir_separator_F77=:
14794 ;;
14795
14796 osf4* | osf5*) # as osf3* with the addition of -msym flag
14797 if test "$GCC" = yes; then
14798 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14799 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'
14800 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14801 else
14802 allow_undefined_flag_F77=' -expect_unresolved \*'
14803 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'
14804 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~
14805 $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'
14806
14807 # Both c and cxx compiler support -rpath directly
14808 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14809 fi
14810 hardcode_libdir_separator_F77=:
14811 ;;
14812
14813 solaris*)
14814 no_undefined_flag_F77=' -z text'
14815 if test "$GCC" = yes; then
14816 wlarc='${wl}'
14817 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14819 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14820 else
14821 wlarc=''
14822 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14825 fi
14826 hardcode_libdir_flag_spec_F77='-R$libdir'
14827 hardcode_shlibpath_var_F77=no
14828 case $host_os in
14829 solaris2.[0-5] | solaris2.[0-5].*) ;;
14830 *)
14831 # The compiler driver will combine linker options so we
14832 # cannot just pass the convience library names through
14833 # without $wl, iff we do not link with $LD.
14834 # Luckily, gcc supports the same syntax we need for Sun Studio.
14835 # Supported since Solaris 2.6 (maybe 2.5.1?)
14836 case $wlarc in
14837 '')
14838 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14839 *)
14840 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14841 esac ;;
14842 esac
14843 link_all_deplibs_F77=yes
14844 ;;
14845
14846 sunos4*)
14847 if test "x$host_vendor" = xsequent; then
14848 # Use $CC to link under sequent, because it throws in some extra .o
14849 # files that make .init and .fini sections work.
14850 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14851 else
14852 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14853 fi
14854 hardcode_libdir_flag_spec_F77='-L$libdir'
14855 hardcode_direct_F77=yes
14856 hardcode_minus_L_F77=yes
14857 hardcode_shlibpath_var_F77=no
14858 ;;
14859
14860 sysv4)
14861 case $host_vendor in
14862 sni)
14863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_direct_F77=yes # is this really true???
14865 ;;
14866 siemens)
14867 ## LD is ld it makes a PLAMLIB
14868 ## CC just makes a GrossModule.
14869 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14870 reload_cmds_F77='$CC -r -o $output$reload_objs'
14871 hardcode_direct_F77=no
14872 ;;
14873 motorola)
14874 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14875 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14876 ;;
14877 esac
14878 runpath_var='LD_RUN_PATH'
14879 hardcode_shlibpath_var_F77=no
14880 ;;
14881
14882 sysv4.3*)
14883 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14884 hardcode_shlibpath_var_F77=no
14885 export_dynamic_flag_spec_F77='-Bexport'
14886 ;;
14887
14888 sysv4*MP*)
14889 if test -d /usr/nec; then
14890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_shlibpath_var_F77=no
14892 runpath_var=LD_RUN_PATH
14893 hardcode_runpath_var=yes
14894 ld_shlibs_F77=yes
14895 fi
14896 ;;
14897
14898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14899 no_undefined_flag_F77='${wl}-z,text'
14900 archive_cmds_need_lc_F77=no
14901 hardcode_shlibpath_var_F77=no
14902 runpath_var='LD_RUN_PATH'
14903
14904 if test "$GCC" = yes; then
14905 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14906 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14907 else
14908 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14909 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14910 fi
14911 ;;
14912
14913 sysv5* | sco3.2v5* | sco5v6*)
14914 # Note: We can NOT use -z defs as we might desire, because we do not
14915 # link with -lc, and that would cause any symbols used from libc to
14916 # always be unresolved, which means just about no library would
14917 # ever link correctly. If we're not using GNU ld we use -z text
14918 # though, which does catch some bad symbols but isn't as heavy-handed
14919 # as -z defs.
14920 no_undefined_flag_F77='${wl}-z,text'
14921 allow_undefined_flag_F77='${wl}-z,nodefs'
14922 archive_cmds_need_lc_F77=no
14923 hardcode_shlibpath_var_F77=no
14924 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14925 hardcode_libdir_separator_F77=':'
14926 link_all_deplibs_F77=yes
14927 export_dynamic_flag_spec_F77='${wl}-Bexport'
14928 runpath_var='LD_RUN_PATH'
14929
14930 if test "$GCC" = yes; then
14931 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14932 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14933 else
14934 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14935 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14936 fi
14937 ;;
14938
14939 uts4*)
14940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14941 hardcode_libdir_flag_spec_F77='-L$libdir'
14942 hardcode_shlibpath_var_F77=no
14943 ;;
14944
14945 *)
14946 ld_shlibs_F77=no
14947 ;;
14948 esac
14949 fi
14950
14951 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14952 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14953 test "$ld_shlibs_F77" = no && can_build_shared=no
14954
14955 #
14956 # Do we need to explicitly link libc?
14957 #
14958 case "x$archive_cmds_need_lc_F77" in
14959 x|xyes)
14960 # Assume -lc should be added
14961 archive_cmds_need_lc_F77=yes
14962
14963 if test "$enable_shared" = yes && test "$GCC" = yes; then
14964 case $archive_cmds_F77 in
14965 *'~'*)
14966 # FIXME: we may have to deal with multi-command sequences.
14967 ;;
14968 '$CC '*)
14969 # Test whether the compiler implicitly links with -lc since on some
14970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14971 # to ld, don't add -lc before -lgcc.
14972 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14973 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14974 $rm conftest*
14975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14976
14977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978 (eval $ac_compile) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } 2>conftest.err; then
14982 soname=conftest
14983 lib=conftest
14984 libobjs=conftest.$ac_objext
14985 deplibs=
14986 wl=$lt_prog_compiler_wl_F77
14987 pic_flag=$lt_prog_compiler_pic_F77
14988 compiler_flags=-v
14989 linker_flags=-v
14990 verstring=
14991 output_objdir=.
14992 libname=conftest
14993 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14994 allow_undefined_flag_F77=
14995 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14996 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }
15000 then
15001 archive_cmds_need_lc_F77=no
15002 else
15003 archive_cmds_need_lc_F77=yes
15004 fi
15005 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15006 else
15007 cat conftest.err 1>&5
15008 fi
15009 $rm conftest*
15010 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15011 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15012 ;;
15013 esac
15014 fi
15015 ;;
15016 esac
15017
15018 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15020 library_names_spec=
15021 libname_spec='lib$name'
15022 soname_spec=
15023 shrext_cmds=".so"
15024 postinstall_cmds=
15025 postuninstall_cmds=
15026 finish_cmds=
15027 finish_eval=
15028 shlibpath_var=
15029 shlibpath_overrides_runpath=unknown
15030 version_type=none
15031 dynamic_linker="$host_os ld.so"
15032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15033 if test "$GCC" = yes; then
15034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15036 # if the path contains ";" then we assume it to be the separator
15037 # otherwise default to the standard path separator (i.e. ":") - it is
15038 # assumed that no part of a normal pathname contains ";" but that should
15039 # okay in the real world where ";" in dirpaths is itself problematic.
15040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15041 else
15042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15043 fi
15044 else
15045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15046 fi
15047 need_lib_prefix=unknown
15048 hardcode_into_libs=no
15049
15050 # when you set need_version to no, make sure it does not cause -set_version
15051 # flags to be left without arguments
15052 need_version=unknown
15053
15054 case $host_os in
15055 aix3*)
15056 version_type=linux
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15058 shlibpath_var=LIBPATH
15059
15060 # AIX 3 has no versioning support, so we append a major version to the name.
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 ;;
15063
15064 aix4* | aix5*)
15065 version_type=linux
15066 need_lib_prefix=no
15067 need_version=no
15068 hardcode_into_libs=yes
15069 if test "$host_cpu" = ia64; then
15070 # AIX 5 supports IA64
15071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 else
15074 # With GCC up to 2.95.x, collect2 would create an import file
15075 # for dependence libraries. The import file would start with
15076 # the line `#! .'. This would cause the generated library to
15077 # depend on `.', always an invalid library. This was fixed in
15078 # development snapshots of GCC prior to 3.0.
15079 case $host_os in
15080 aix4 | aix4.[01] | aix4.[01].*)
15081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15082 echo ' yes '
15083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15084 :
15085 else
15086 can_build_shared=no
15087 fi
15088 ;;
15089 esac
15090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15091 # soname into executable. Probably we can add versioning support to
15092 # collect2, so additional links can be useful in future.
15093 if test "$aix_use_runtimelinking" = yes; then
15094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15095 # instead of lib<name>.a to let people know that these are not
15096 # typical AIX shared libraries.
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098 else
15099 # We preserve .a as extension for shared libraries through AIX4.2
15100 # and later when we are not doing run time linking.
15101 library_names_spec='${libname}${release}.a $libname.a'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 fi
15104 shlibpath_var=LIBPATH
15105 fi
15106 ;;
15107
15108 amigaos*)
15109 library_names_spec='$libname.ixlibrary $libname.a'
15110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15111 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'
15112 ;;
15113
15114 beos*)
15115 library_names_spec='${libname}${shared_ext}'
15116 dynamic_linker="$host_os ld.so"
15117 shlibpath_var=LIBRARY_PATH
15118 ;;
15119
15120 bsdi[45]*)
15121 version_type=linux
15122 need_version=no
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15126 shlibpath_var=LD_LIBRARY_PATH
15127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15129 # the default ld.so.conf also contains /usr/contrib/lib and
15130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15131 # libtool to hard-code these into programs
15132 ;;
15133
15134 cygwin* | mingw* | pw32*)
15135 version_type=windows
15136 shrext_cmds=".dll"
15137 need_version=no
15138 need_lib_prefix=no
15139
15140 case $GCC,$host_os in
15141 yes,cygwin* | yes,mingw* | yes,pw32*)
15142 library_names_spec='$libname.dll.a'
15143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15144 postinstall_cmds='base_file=`basename \${file}`~
15145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15146 dldir=$destdir/`dirname \$dlpath`~
15147 test -d \$dldir || mkdir -p \$dldir~
15148 $install_prog $dir/$dlname \$dldir/$dlname~
15149 chmod a+x \$dldir/$dlname'
15150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15151 dlpath=$dir/\$dldll~
15152 $rm \$dlpath'
15153 shlibpath_overrides_runpath=yes
15154
15155 case $host_os in
15156 cygwin*)
15157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15159 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15160 ;;
15161 mingw*)
15162 # MinGW DLLs use traditional 'lib' prefix
15163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15164 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15165 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15166 # It is most probably a Windows format PATH printed by
15167 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15168 # path with ; separators, and with drive letters. We can handle the
15169 # drive letters (cygwin fileutils understands them), so leave them,
15170 # especially as we might pass files found there to a mingw objdump,
15171 # which wouldn't understand a cygwinified path. Ahh.
15172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15173 else
15174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15175 fi
15176 ;;
15177 pw32*)
15178 # pw32 DLLs use 'pw' prefix rather than 'lib'
15179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15180 ;;
15181 esac
15182 ;;
15183
15184 *)
15185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15186 ;;
15187 esac
15188 dynamic_linker='Win32 ld.exe'
15189 # FIXME: first we should search . and the directory the executable is in
15190 shlibpath_var=PATH
15191 ;;
15192
15193 darwin* | rhapsody*)
15194 dynamic_linker="$host_os dyld"
15195 version_type=darwin
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15199 soname_spec='${libname}${release}${major}$shared_ext'
15200 shlibpath_overrides_runpath=yes
15201 shlibpath_var=DYLD_LIBRARY_PATH
15202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15203 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15204 if test "$GCC" = yes; then
15205 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15206 else
15207 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15208 fi
15209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15210 ;;
15211
15212 dgux*)
15213 version_type=linux
15214 need_lib_prefix=no
15215 need_version=no
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 ;;
15220
15221 freebsd1*)
15222 dynamic_linker=no
15223 ;;
15224
15225 freebsd* | dragonfly*)
15226 # DragonFly does not have aout. When/if they implement a new
15227 # versioning mechanism, adjust this.
15228 if test -x /usr/bin/objformat; then
15229 objformat=`/usr/bin/objformat`
15230 else
15231 case $host_os in
15232 freebsd[123]*) objformat=aout ;;
15233 *) objformat=elf ;;
15234 esac
15235 fi
15236 version_type=freebsd-$objformat
15237 case $version_type in
15238 freebsd-elf*)
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15240 need_version=no
15241 need_lib_prefix=no
15242 ;;
15243 freebsd-*)
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15245 need_version=yes
15246 ;;
15247 esac
15248 shlibpath_var=LD_LIBRARY_PATH
15249 case $host_os in
15250 freebsd2*)
15251 shlibpath_overrides_runpath=yes
15252 ;;
15253 freebsd3.[01]* | freebsdelf3.[01]*)
15254 shlibpath_overrides_runpath=yes
15255 hardcode_into_libs=yes
15256 ;;
15257 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15258 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15259 shlibpath_overrides_runpath=no
15260 hardcode_into_libs=yes
15261 ;;
15262 freebsd*) # from 4.6 on
15263 shlibpath_overrides_runpath=yes
15264 hardcode_into_libs=yes
15265 ;;
15266 esac
15267 ;;
15268
15269 gnu*)
15270 version_type=linux
15271 need_lib_prefix=no
15272 need_version=no
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 hardcode_into_libs=yes
15277 ;;
15278
15279 hpux9* | hpux10* | hpux11*)
15280 # Give a soname corresponding to the major version so that dld.sl refuses to
15281 # link against other versions.
15282 version_type=sunos
15283 need_lib_prefix=no
15284 need_version=no
15285 case $host_cpu in
15286 ia64*)
15287 shrext_cmds='.so'
15288 hardcode_into_libs=yes
15289 dynamic_linker="$host_os dld.so"
15290 shlibpath_var=LD_LIBRARY_PATH
15291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 if test "X$HPUX_IA64_MODE" = X32; then
15295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15296 else
15297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15298 fi
15299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15300 ;;
15301 hppa*64*)
15302 shrext_cmds='.sl'
15303 hardcode_into_libs=yes
15304 dynamic_linker="$host_os dld.sl"
15305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15311 ;;
15312 *)
15313 shrext_cmds='.sl'
15314 dynamic_linker="$host_os dld.sl"
15315 shlibpath_var=SHLIB_PATH
15316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 ;;
15320 esac
15321 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15322 postinstall_cmds='chmod 555 $lib'
15323 ;;
15324
15325 interix3*)
15326 version_type=linux
15327 need_lib_prefix=no
15328 need_version=no
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 shlibpath_overrides_runpath=no
15334 hardcode_into_libs=yes
15335 ;;
15336
15337 irix5* | irix6* | nonstopux*)
15338 case $host_os in
15339 nonstopux*) version_type=nonstopux ;;
15340 *)
15341 if test "$lt_cv_prog_gnu_ld" = yes; then
15342 version_type=linux
15343 else
15344 version_type=irix
15345 fi ;;
15346 esac
15347 need_lib_prefix=no
15348 need_version=no
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15351 case $host_os in
15352 irix5* | nonstopux*)
15353 libsuff= shlibsuff=
15354 ;;
15355 *)
15356 case $LD in # libtool.m4 will add one of these switches to LD
15357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15358 libsuff= shlibsuff= libmagic=32-bit;;
15359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15360 libsuff=32 shlibsuff=N32 libmagic=N32;;
15361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15363 *) libsuff= shlibsuff= libmagic=never-match;;
15364 esac
15365 ;;
15366 esac
15367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15368 shlibpath_overrides_runpath=no
15369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15371 hardcode_into_libs=yes
15372 ;;
15373
15374 # No shared lib support for Linux oldld, aout, or coff.
15375 linux*oldld* | linux*aout* | linux*coff*)
15376 dynamic_linker=no
15377 ;;
15378
15379 # This must be Linux ELF.
15380 linux* | k*bsd*-gnu)
15381 version_type=linux
15382 need_lib_prefix=no
15383 need_version=no
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 shlibpath_overrides_runpath=no
15389 # This implies no fast_install, which is unacceptable.
15390 # Some rework will be needed to allow for fast_install
15391 # before this can be enabled.
15392 hardcode_into_libs=yes
15393
15394 # Append ld.so.conf contents to the search path
15395 if test -f /etc/ld.so.conf; then
15396 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15398 fi
15399
15400 # We used to test for /lib/ld.so.1 and disable shared libraries on
15401 # powerpc, because MkLinux only supported shared libraries with the
15402 # GNU dynamic linker. Since this was broken with cross compilers,
15403 # most powerpc-linux boxes support dynamic linking these days and
15404 # people can always --disable-shared, the test was removed, and we
15405 # assume the GNU/Linux dynamic linker is in use.
15406 dynamic_linker='GNU/Linux ld.so'
15407 ;;
15408
15409 netbsdelf*-gnu)
15410 version_type=linux
15411 need_lib_prefix=no
15412 need_version=no
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 shlibpath_overrides_runpath=no
15417 hardcode_into_libs=yes
15418 dynamic_linker='NetBSD ld.elf_so'
15419 ;;
15420
15421 netbsd*)
15422 version_type=sunos
15423 need_lib_prefix=no
15424 need_version=no
15425 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15428 dynamic_linker='NetBSD (a.out) ld.so'
15429 else
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 dynamic_linker='NetBSD ld.elf_so'
15433 fi
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes
15436 hardcode_into_libs=yes
15437 ;;
15438
15439 newsos6)
15440 version_type=linux
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 ;;
15445
15446 nto-qnx*)
15447 version_type=linux
15448 need_lib_prefix=no
15449 need_version=no
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 shlibpath_overrides_runpath=yes
15454 ;;
15455
15456 openbsd*)
15457 version_type=sunos
15458 sys_lib_dlsearch_path_spec="/usr/lib"
15459 need_lib_prefix=no
15460 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15461 case $host_os in
15462 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15463 *) need_version=no ;;
15464 esac
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15469 case $host_os in
15470 openbsd2.[89] | openbsd2.[89].*)
15471 shlibpath_overrides_runpath=no
15472 ;;
15473 *)
15474 shlibpath_overrides_runpath=yes
15475 ;;
15476 esac
15477 else
15478 shlibpath_overrides_runpath=yes
15479 fi
15480 ;;
15481
15482 os2*)
15483 libname_spec='$name'
15484 shrext_cmds=".dll"
15485 need_lib_prefix=no
15486 library_names_spec='$libname${shared_ext} $libname.a'
15487 dynamic_linker='OS/2 ld.exe'
15488 shlibpath_var=LIBPATH
15489 ;;
15490
15491 osf3* | osf4* | osf5*)
15492 version_type=osf
15493 need_lib_prefix=no
15494 need_version=no
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15500 ;;
15501
15502 solaris*)
15503 version_type=linux
15504 need_lib_prefix=no
15505 need_version=no
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507 soname_spec='${libname}${release}${shared_ext}$major'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=yes
15510 hardcode_into_libs=yes
15511 # ldd complains unless libraries are executable
15512 postinstall_cmds='chmod +x $lib'
15513 ;;
15514
15515 sunos4*)
15516 version_type=sunos
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15521 if test "$with_gnu_ld" = yes; then
15522 need_lib_prefix=no
15523 fi
15524 need_version=yes
15525 ;;
15526
15527 sysv4 | sysv4.3*)
15528 version_type=linux
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 case $host_vendor in
15533 sni)
15534 shlibpath_overrides_runpath=no
15535 need_lib_prefix=no
15536 export_dynamic_flag_spec='${wl}-Blargedynsym'
15537 runpath_var=LD_RUN_PATH
15538 ;;
15539 siemens)
15540 need_lib_prefix=no
15541 ;;
15542 motorola)
15543 need_lib_prefix=no
15544 need_version=no
15545 shlibpath_overrides_runpath=no
15546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15547 ;;
15548 esac
15549 ;;
15550
15551 sysv4*MP*)
15552 if test -d /usr/nec ;then
15553 version_type=linux
15554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15555 soname_spec='$libname${shared_ext}.$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 fi
15558 ;;
15559
15560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15561 version_type=freebsd-elf
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 hardcode_into_libs=yes
15568 if test "$with_gnu_ld" = yes; then
15569 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15570 shlibpath_overrides_runpath=no
15571 else
15572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15573 shlibpath_overrides_runpath=yes
15574 case $host_os in
15575 sco3.2v5*)
15576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15577 ;;
15578 esac
15579 fi
15580 sys_lib_dlsearch_path_spec='/usr/lib'
15581 ;;
15582
15583 uts4*)
15584 version_type=linux
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 ;;
15589
15590 *)
15591 dynamic_linker=no
15592 ;;
15593 esac
15594 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15595 echo "${ECHO_T}$dynamic_linker" >&6; }
15596 test "$dynamic_linker" = no && can_build_shared=no
15597
15598 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15599 if test "$GCC" = yes; then
15600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15601 fi
15602
15603 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15604 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15605 hardcode_action_F77=
15606 if test -n "$hardcode_libdir_flag_spec_F77" || \
15607 test -n "$runpath_var_F77" || \
15608 test "X$hardcode_automatic_F77" = "Xyes" ; then
15609
15610 # We can hardcode non-existant directories.
15611 if test "$hardcode_direct_F77" != no &&
15612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15613 # have to relink, otherwise we might link with an installed library
15614 # when we should be linking with a yet-to-be-installed one
15615 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15616 test "$hardcode_minus_L_F77" != no; then
15617 # Linking always hardcodes the temporary library directory.
15618 hardcode_action_F77=relink
15619 else
15620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15621 hardcode_action_F77=immediate
15622 fi
15623 else
15624 # We cannot hardcode anything, or else we can only hardcode existing
15625 # directories.
15626 hardcode_action_F77=unsupported
15627 fi
15628 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15629 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15630
15631 if test "$hardcode_action_F77" = relink; then
15632 # Fast installation is not supported
15633 enable_fast_install=no
15634 elif test "$shlibpath_overrides_runpath" = yes ||
15635 test "$enable_shared" = no; then
15636 # Fast installation is not necessary
15637 enable_fast_install=needless
15638 fi
15639
15640
15641 # The else clause should only fire when bootstrapping the
15642 # libtool distribution, otherwise you forgot to ship ltmain.sh
15643 # with your package, and you will get complaints that there are
15644 # no rules to generate ltmain.sh.
15645 if test -f "$ltmain"; then
15646 # See if we are running on zsh, and set the options which allow our commands through
15647 # without removal of \ escapes.
15648 if test -n "${ZSH_VERSION+set}" ; then
15649 setopt NO_GLOB_SUBST
15650 fi
15651 # Now quote all the things that may contain metacharacters while being
15652 # careful not to overquote the AC_SUBSTed values. We take copies of the
15653 # variables and quote the copies for generation of the libtool script.
15654 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15655 SED SHELL STRIP \
15656 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15657 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15658 deplibs_check_method reload_flag reload_cmds need_locks \
15659 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15660 lt_cv_sys_global_symbol_to_c_name_address \
15661 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15662 old_postinstall_cmds old_postuninstall_cmds \
15663 compiler_F77 \
15664 CC_F77 \
15665 LD_F77 \
15666 lt_prog_compiler_wl_F77 \
15667 lt_prog_compiler_pic_F77 \
15668 lt_prog_compiler_static_F77 \
15669 lt_prog_compiler_no_builtin_flag_F77 \
15670 export_dynamic_flag_spec_F77 \
15671 thread_safe_flag_spec_F77 \
15672 whole_archive_flag_spec_F77 \
15673 enable_shared_with_static_runtimes_F77 \
15674 old_archive_cmds_F77 \
15675 old_archive_from_new_cmds_F77 \
15676 predep_objects_F77 \
15677 postdep_objects_F77 \
15678 predeps_F77 \
15679 postdeps_F77 \
15680 compiler_lib_search_path_F77 \
15681 archive_cmds_F77 \
15682 archive_expsym_cmds_F77 \
15683 postinstall_cmds_F77 \
15684 postuninstall_cmds_F77 \
15685 old_archive_from_expsyms_cmds_F77 \
15686 allow_undefined_flag_F77 \
15687 no_undefined_flag_F77 \
15688 export_symbols_cmds_F77 \
15689 hardcode_libdir_flag_spec_F77 \
15690 hardcode_libdir_flag_spec_ld_F77 \
15691 hardcode_libdir_separator_F77 \
15692 hardcode_automatic_F77 \
15693 module_cmds_F77 \
15694 module_expsym_cmds_F77 \
15695 lt_cv_prog_compiler_c_o_F77 \
15696 exclude_expsyms_F77 \
15697 include_expsyms_F77; do
15698
15699 case $var in
15700 old_archive_cmds_F77 | \
15701 old_archive_from_new_cmds_F77 | \
15702 archive_cmds_F77 | \
15703 archive_expsym_cmds_F77 | \
15704 module_cmds_F77 | \
15705 module_expsym_cmds_F77 | \
15706 old_archive_from_expsyms_cmds_F77 | \
15707 export_symbols_cmds_F77 | \
15708 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15709 postinstall_cmds | postuninstall_cmds | \
15710 old_postinstall_cmds | old_postuninstall_cmds | \
15711 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15712 # Double-quote double-evaled strings.
15713 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15714 ;;
15715 *)
15716 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15717 ;;
15718 esac
15719 done
15720
15721 case $lt_echo in
15722 *'\$0 --fallback-echo"')
15723 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15724 ;;
15725 esac
15726
15727 cfgfile="$ofile"
15728
15729 cat <<__EOF__ >> "$cfgfile"
15730 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15731
15732 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15733
15734 # Shell to use when invoking shell scripts.
15735 SHELL=$lt_SHELL
15736
15737 # Whether or not to build shared libraries.
15738 build_libtool_libs=$enable_shared
15739
15740 # Whether or not to build static libraries.
15741 build_old_libs=$enable_static
15742
15743 # Whether or not to add -lc for building shared libraries.
15744 build_libtool_need_lc=$archive_cmds_need_lc_F77
15745
15746 # Whether or not to disallow shared libs when runtime libs are static
15747 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15748
15749 # Whether or not to optimize for fast installation.
15750 fast_install=$enable_fast_install
15751
15752 # The host system.
15753 host_alias=$host_alias
15754 host=$host
15755 host_os=$host_os
15756
15757 # The build system.
15758 build_alias=$build_alias
15759 build=$build
15760 build_os=$build_os
15761
15762 # An echo program that does not interpret backslashes.
15763 echo=$lt_echo
15764
15765 # The archiver.
15766 AR=$lt_AR
15767 AR_FLAGS=$lt_AR_FLAGS
15768
15769 # A C compiler.
15770 LTCC=$lt_LTCC
15771
15772 # LTCC compiler flags.
15773 LTCFLAGS=$lt_LTCFLAGS
15774
15775 # A language-specific compiler.
15776 CC=$lt_compiler_F77
15777
15778 # Is the compiler the GNU C compiler?
15779 with_gcc=$GCC_F77
15780
15781 # An ERE matcher.
15782 EGREP=$lt_EGREP
15783
15784 # The linker used to build libraries.
15785 LD=$lt_LD_F77
15786
15787 # Whether we need hard or soft links.
15788 LN_S=$lt_LN_S
15789
15790 # A BSD-compatible nm program.
15791 NM=$lt_NM
15792
15793 # A symbol stripping program
15794 STRIP=$lt_STRIP
15795
15796 # Used to examine libraries when file_magic_cmd begins "file"
15797 MAGIC_CMD=$MAGIC_CMD
15798
15799 # Used on cygwin: DLL creation program.
15800 DLLTOOL="$DLLTOOL"
15801
15802 # Used on cygwin: object dumper.
15803 OBJDUMP="$OBJDUMP"
15804
15805 # Used on cygwin: assembler.
15806 AS="$AS"
15807
15808 # The name of the directory that contains temporary libtool files.
15809 objdir=$objdir
15810
15811 # How to create reloadable object files.
15812 reload_flag=$lt_reload_flag
15813 reload_cmds=$lt_reload_cmds
15814
15815 # How to pass a linker flag through the compiler.
15816 wl=$lt_lt_prog_compiler_wl_F77
15817
15818 # Object file suffix (normally "o").
15819 objext="$ac_objext"
15820
15821 # Old archive suffix (normally "a").
15822 libext="$libext"
15823
15824 # Shared library suffix (normally ".so").
15825 shrext_cmds='$shrext_cmds'
15826
15827 # Executable file suffix (normally "").
15828 exeext="$exeext"
15829
15830 # Additional compiler flags for building library objects.
15831 pic_flag=$lt_lt_prog_compiler_pic_F77
15832 pic_mode=$pic_mode
15833
15834 # What is the maximum length of a command?
15835 max_cmd_len=$lt_cv_sys_max_cmd_len
15836
15837 # Does compiler simultaneously support -c and -o options?
15838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15839
15840 # Must we lock files when doing compilation?
15841 need_locks=$lt_need_locks
15842
15843 # Do we need the lib prefix for modules?
15844 need_lib_prefix=$need_lib_prefix
15845
15846 # Do we need a version for libraries?
15847 need_version=$need_version
15848
15849 # Whether dlopen is supported.
15850 dlopen_support=$enable_dlopen
15851
15852 # Whether dlopen of programs is supported.
15853 dlopen_self=$enable_dlopen_self
15854
15855 # Whether dlopen of statically linked programs is supported.
15856 dlopen_self_static=$enable_dlopen_self_static
15857
15858 # Compiler flag to prevent dynamic linking.
15859 link_static_flag=$lt_lt_prog_compiler_static_F77
15860
15861 # Compiler flag to turn off builtin functions.
15862 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15863
15864 # Compiler flag to allow reflexive dlopens.
15865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15866
15867 # Compiler flag to generate shared objects directly from archives.
15868 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15869
15870 # Compiler flag to generate thread-safe objects.
15871 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15872
15873 # Library versioning type.
15874 version_type=$version_type
15875
15876 # Format of library name prefix.
15877 libname_spec=$lt_libname_spec
15878
15879 # List of archive names. First name is the real one, the rest are links.
15880 # The last name is the one that the linker finds with -lNAME.
15881 library_names_spec=$lt_library_names_spec
15882
15883 # The coded name of the library, if different from the real name.
15884 soname_spec=$lt_soname_spec
15885
15886 # Commands used to build and install an old-style archive.
15887 RANLIB=$lt_RANLIB
15888 old_archive_cmds=$lt_old_archive_cmds_F77
15889 old_postinstall_cmds=$lt_old_postinstall_cmds
15890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15891
15892 # Create an old-style archive from a shared archive.
15893 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15894
15895 # Create a temporary old-style archive to link instead of a shared archive.
15896 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15897
15898 # Commands used to build and install a shared archive.
15899 archive_cmds=$lt_archive_cmds_F77
15900 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15901 postinstall_cmds=$lt_postinstall_cmds
15902 postuninstall_cmds=$lt_postuninstall_cmds
15903
15904 # Commands used to build a loadable module (assumed same as above if empty)
15905 module_cmds=$lt_module_cmds_F77
15906 module_expsym_cmds=$lt_module_expsym_cmds_F77
15907
15908 # Commands to strip libraries.
15909 old_striplib=$lt_old_striplib
15910 striplib=$lt_striplib
15911
15912 # Dependencies to place before the objects being linked to create a
15913 # shared library.
15914 predep_objects=$lt_predep_objects_F77
15915
15916 # Dependencies to place after the objects being linked to create a
15917 # shared library.
15918 postdep_objects=$lt_postdep_objects_F77
15919
15920 # Dependencies to place before the objects being linked to create a
15921 # shared library.
15922 predeps=$lt_predeps_F77
15923
15924 # Dependencies to place after the objects being linked to create a
15925 # shared library.
15926 postdeps=$lt_postdeps_F77
15927
15928 # The library search path used internally by the compiler when linking
15929 # a shared library.
15930 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15931
15932 # Method to check whether dependent libraries are shared objects.
15933 deplibs_check_method=$lt_deplibs_check_method
15934
15935 # Command to use when deplibs_check_method == file_magic.
15936 file_magic_cmd=$lt_file_magic_cmd
15937
15938 # Flag that allows shared libraries with undefined symbols to be built.
15939 allow_undefined_flag=$lt_allow_undefined_flag_F77
15940
15941 # Flag that forces no undefined symbols.
15942 no_undefined_flag=$lt_no_undefined_flag_F77
15943
15944 # Commands used to finish a libtool library installation in a directory.
15945 finish_cmds=$lt_finish_cmds
15946
15947 # Same as above, but a single script fragment to be evaled but not shown.
15948 finish_eval=$lt_finish_eval
15949
15950 # Take the output of nm and produce a listing of raw symbols and C names.
15951 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15952
15953 # Transform the output of nm in a proper C declaration
15954 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15955
15956 # Transform the output of nm in a C name address pair
15957 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15958
15959 # This is the shared library runtime path variable.
15960 runpath_var=$runpath_var
15961
15962 # This is the shared library path variable.
15963 shlibpath_var=$shlibpath_var
15964
15965 # Is shlibpath searched before the hard-coded library search path?
15966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15967
15968 # How to hardcode a shared library path into an executable.
15969 hardcode_action=$hardcode_action_F77
15970
15971 # Whether we should hardcode library paths into libraries.
15972 hardcode_into_libs=$hardcode_into_libs
15973
15974 # Flag to hardcode \$libdir into a binary during linking.
15975 # This must work even if \$libdir does not exist.
15976 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15977
15978 # If ld is used when linking, flag to hardcode \$libdir into
15979 # a binary during linking. This must work even if \$libdir does
15980 # not exist.
15981 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15982
15983 # Whether we need a single -rpath flag with a separated argument.
15984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15985
15986 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15987 # resulting binary.
15988 hardcode_direct=$hardcode_direct_F77
15989
15990 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15991 # resulting binary.
15992 hardcode_minus_L=$hardcode_minus_L_F77
15993
15994 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15995 # the resulting binary.
15996 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15997
15998 # Set to yes if building a shared library automatically hardcodes DIR into the library
15999 # and all subsequent libraries and executables linked against it.
16000 hardcode_automatic=$hardcode_automatic_F77
16001
16002 # Variables whose values should be saved in libtool wrapper scripts and
16003 # restored at relink time.
16004 variables_saved_for_relink="$variables_saved_for_relink"
16005
16006 # Whether libtool must link a program against all its dependency libraries.
16007 link_all_deplibs=$link_all_deplibs_F77
16008
16009 # Compile-time system search path for libraries
16010 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16011
16012 # Run-time system search path for libraries
16013 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16014
16015 # Fix the shell variable \$srcfile for the compiler.
16016 fix_srcfile_path="$fix_srcfile_path_F77"
16017
16018 # Set to yes if exported symbols are required.
16019 always_export_symbols=$always_export_symbols_F77
16020
16021 # The commands to list exported symbols.
16022 export_symbols_cmds=$lt_export_symbols_cmds_F77
16023
16024 # The commands to extract the exported symbol list from a shared archive.
16025 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16026
16027 # Symbols that should not be listed in the preloaded symbols.
16028 exclude_expsyms=$lt_exclude_expsyms_F77
16029
16030 # Symbols that must always be exported.
16031 include_expsyms=$lt_include_expsyms_F77
16032
16033 # ### END LIBTOOL TAG CONFIG: $tagname
16034
16035 __EOF__
16036
16037
16038 else
16039 # If there is no Makefile yet, we rely on a make rule to execute
16040 # `config.status --recheck' to rerun these tests and create the
16041 # libtool script then.
16042 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16043 if test -f "$ltmain_in"; then
16044 test -f Makefile && make "$ltmain"
16045 fi
16046 fi
16047
16048
16049 ac_ext=c
16050 ac_cpp='$CPP $CPPFLAGS'
16051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16054
16055 CC="$lt_save_CC"
16056
16057 else
16058 tagname=""
16059 fi
16060 ;;
16061
16062 GCJ)
16063 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16064
16065
16066 # Source file extension for Java test sources.
16067 ac_ext=java
16068
16069 # Object file extension for compiled Java test sources.
16070 objext=o
16071 objext_GCJ=$objext
16072
16073 # Code to be used in simple compile tests
16074 lt_simple_compile_test_code="class foo {}\n"
16075
16076 # Code to be used in simple link tests
16077 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16078
16079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16080
16081 # If no C compiler was specified, use CC.
16082 LTCC=${LTCC-"$CC"}
16083
16084 # If no C compiler flags were specified, use CFLAGS.
16085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16086
16087 # Allow CC to be a program name with arguments.
16088 compiler=$CC
16089
16090
16091 # save warnings/boilerplate of simple test code
16092 ac_outfile=conftest.$ac_objext
16093 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16095 _lt_compiler_boilerplate=`cat conftest.err`
16096 $rm conftest*
16097
16098 ac_outfile=conftest.$ac_objext
16099 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16101 _lt_linker_boilerplate=`cat conftest.err`
16102 $rm conftest*
16103
16104
16105 # Allow CC to be a program name with arguments.
16106 lt_save_CC="$CC"
16107 CC=${GCJ-"gcj"}
16108 compiler=$CC
16109 compiler_GCJ=$CC
16110 for cc_temp in $compiler""; do
16111 case $cc_temp in
16112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16114 \-*) ;;
16115 *) break;;
16116 esac
16117 done
16118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16119
16120
16121 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16122 archive_cmds_need_lc_GCJ=no
16123
16124 old_archive_cmds_GCJ=$old_archive_cmds
16125
16126
16127 lt_prog_compiler_no_builtin_flag_GCJ=
16128
16129 if test "$GCC" = yes; then
16130 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16131
16132
16133 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16134 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16135 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138 lt_cv_prog_compiler_rtti_exceptions=no
16139 ac_outfile=conftest.$ac_objext
16140 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16141 lt_compiler_flag="-fno-rtti -fno-exceptions"
16142 # Insert the option either (1) after the last *FLAGS variable, or
16143 # (2) before a word containing "conftest.", or (3) at the end.
16144 # Note that $ac_compile itself does not contain backslashes and begins
16145 # with a dollar sign (not a hyphen), so the echo should work correctly.
16146 # The option is referenced via a variable to avoid confusing sed.
16147 lt_compile=`echo "$ac_compile" | $SED \
16148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16150 -e 's:$: $lt_compiler_flag:'`
16151 (eval echo "\"\$as_me:16151: $lt_compile\"" >&5)
16152 (eval "$lt_compile" 2>conftest.err)
16153 ac_status=$?
16154 cat conftest.err >&5
16155 echo "$as_me:16155: \$? = $ac_status" >&5
16156 if (exit $ac_status) && test -s "$ac_outfile"; then
16157 # The compiler can only warn and ignore the option if not recognized
16158 # So say no if there are warnings other than the usual output.
16159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16162 lt_cv_prog_compiler_rtti_exceptions=yes
16163 fi
16164 fi
16165 $rm conftest*
16166
16167 fi
16168 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16169 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16170
16171 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16172 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16173 else
16174 :
16175 fi
16176
16177 fi
16178
16179 lt_prog_compiler_wl_GCJ=
16180 lt_prog_compiler_pic_GCJ=
16181 lt_prog_compiler_static_GCJ=
16182
16183 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16184 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16185
16186 if test "$GCC" = yes; then
16187 lt_prog_compiler_wl_GCJ='-Wl,'
16188 lt_prog_compiler_static_GCJ='-static'
16189
16190 case $host_os in
16191 aix*)
16192 # All AIX code is PIC.
16193 if test "$host_cpu" = ia64; then
16194 # AIX 5 now supports IA64 processor
16195 lt_prog_compiler_static_GCJ='-Bstatic'
16196 fi
16197 ;;
16198
16199 amigaos*)
16200 # FIXME: we need at least 68020 code to build shared libraries, but
16201 # adding the `-m68020' flag to GCC prevents building anything better,
16202 # like `-m68040'.
16203 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16204 ;;
16205
16206 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16207 # PIC is the default for these OSes.
16208 ;;
16209
16210 mingw* | pw32* | os2*)
16211 # This hack is so that the source file can tell whether it is being
16212 # built for inclusion in a dll (and should export symbols for example).
16213 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16214 ;;
16215
16216 darwin* | rhapsody*)
16217 # PIC is the default on this platform
16218 # Common symbols not allowed in MH_DYLIB files
16219 lt_prog_compiler_pic_GCJ='-fno-common'
16220 ;;
16221
16222 interix3*)
16223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16224 # Instead, we relocate shared libraries at runtime.
16225 ;;
16226
16227 msdosdjgpp*)
16228 # Just because we use GCC doesn't mean we suddenly get shared libraries
16229 # on systems that don't support them.
16230 lt_prog_compiler_can_build_shared_GCJ=no
16231 enable_shared=no
16232 ;;
16233
16234 sysv4*MP*)
16235 if test -d /usr/nec; then
16236 lt_prog_compiler_pic_GCJ=-Kconform_pic
16237 fi
16238 ;;
16239
16240 hpux*)
16241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16242 # not for PA HP-UX.
16243 case $host_cpu in
16244 hppa*64*|ia64*)
16245 # +Z the default
16246 ;;
16247 *)
16248 lt_prog_compiler_pic_GCJ='-fPIC'
16249 ;;
16250 esac
16251 ;;
16252
16253 *)
16254 lt_prog_compiler_pic_GCJ='-fPIC'
16255 ;;
16256 esac
16257 else
16258 # PORTME Check for flag to pass linker flags through the system compiler.
16259 case $host_os in
16260 aix*)
16261 lt_prog_compiler_wl_GCJ='-Wl,'
16262 if test "$host_cpu" = ia64; then
16263 # AIX 5 now supports IA64 processor
16264 lt_prog_compiler_static_GCJ='-Bstatic'
16265 else
16266 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16267 fi
16268 ;;
16269 darwin*)
16270 # PIC is the default on this platform
16271 # Common symbols not allowed in MH_DYLIB files
16272 case $cc_basename in
16273 xlc*)
16274 lt_prog_compiler_pic_GCJ='-qnocommon'
16275 lt_prog_compiler_wl_GCJ='-Wl,'
16276 ;;
16277 esac
16278 ;;
16279
16280 mingw* | pw32* | os2*)
16281 # This hack is so that the source file can tell whether it is being
16282 # built for inclusion in a dll (and should export symbols for example).
16283 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16284 ;;
16285
16286 hpux9* | hpux10* | hpux11*)
16287 lt_prog_compiler_wl_GCJ='-Wl,'
16288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16289 # not for PA HP-UX.
16290 case $host_cpu in
16291 hppa*64*|ia64*)
16292 # +Z the default
16293 ;;
16294 *)
16295 lt_prog_compiler_pic_GCJ='+Z'
16296 ;;
16297 esac
16298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16299 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16300 ;;
16301
16302 irix5* | irix6* | nonstopux*)
16303 lt_prog_compiler_wl_GCJ='-Wl,'
16304 # PIC (with -KPIC) is the default.
16305 lt_prog_compiler_static_GCJ='-non_shared'
16306 ;;
16307
16308 newsos6)
16309 lt_prog_compiler_pic_GCJ='-KPIC'
16310 lt_prog_compiler_static_GCJ='-Bstatic'
16311 ;;
16312
16313 linux* | k*bsd*-gnu)
16314 case $cc_basename in
16315 icc* | ecc*)
16316 lt_prog_compiler_wl_GCJ='-Wl,'
16317 lt_prog_compiler_pic_GCJ='-KPIC'
16318 lt_prog_compiler_static_GCJ='-static'
16319 ;;
16320 pgcc* | pgf77* | pgf90* | pgf95*)
16321 # Portland Group compilers (*not* the Pentium gcc compiler,
16322 # which looks to be a dead project)
16323 lt_prog_compiler_wl_GCJ='-Wl,'
16324 lt_prog_compiler_pic_GCJ='-fpic'
16325 lt_prog_compiler_static_GCJ='-Bstatic'
16326 ;;
16327 ccc*)
16328 lt_prog_compiler_wl_GCJ='-Wl,'
16329 # All Alpha code is PIC.
16330 lt_prog_compiler_static_GCJ='-non_shared'
16331 ;;
16332 esac
16333 ;;
16334
16335 osf3* | osf4* | osf5*)
16336 lt_prog_compiler_wl_GCJ='-Wl,'
16337 # All OSF/1 code is PIC.
16338 lt_prog_compiler_static_GCJ='-non_shared'
16339 ;;
16340
16341 solaris*)
16342 lt_prog_compiler_pic_GCJ='-KPIC'
16343 lt_prog_compiler_static_GCJ='-Bstatic'
16344 case $cc_basename in
16345 f77* | f90* | f95*)
16346 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16347 *)
16348 lt_prog_compiler_wl_GCJ='-Wl,';;
16349 esac
16350 ;;
16351
16352 sunos4*)
16353 lt_prog_compiler_wl_GCJ='-Qoption ld '
16354 lt_prog_compiler_pic_GCJ='-PIC'
16355 lt_prog_compiler_static_GCJ='-Bstatic'
16356 ;;
16357
16358 sysv4 | sysv4.2uw2* | sysv4.3*)
16359 lt_prog_compiler_wl_GCJ='-Wl,'
16360 lt_prog_compiler_pic_GCJ='-KPIC'
16361 lt_prog_compiler_static_GCJ='-Bstatic'
16362 ;;
16363
16364 sysv4*MP*)
16365 if test -d /usr/nec ;then
16366 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16367 lt_prog_compiler_static_GCJ='-Bstatic'
16368 fi
16369 ;;
16370
16371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16372 lt_prog_compiler_wl_GCJ='-Wl,'
16373 lt_prog_compiler_pic_GCJ='-KPIC'
16374 lt_prog_compiler_static_GCJ='-Bstatic'
16375 ;;
16376
16377 unicos*)
16378 lt_prog_compiler_wl_GCJ='-Wl,'
16379 lt_prog_compiler_can_build_shared_GCJ=no
16380 ;;
16381
16382 uts4*)
16383 lt_prog_compiler_pic_GCJ='-pic'
16384 lt_prog_compiler_static_GCJ='-Bstatic'
16385 ;;
16386
16387 *)
16388 lt_prog_compiler_can_build_shared_GCJ=no
16389 ;;
16390 esac
16391 fi
16392
16393 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16394 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16395
16396 #
16397 # Check to make sure the PIC flag actually works.
16398 #
16399 if test -n "$lt_prog_compiler_pic_GCJ"; then
16400
16401 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16402 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16403 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406 lt_prog_compiler_pic_works_GCJ=no
16407 ac_outfile=conftest.$ac_objext
16408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16409 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16410 # Insert the option either (1) after the last *FLAGS variable, or
16411 # (2) before a word containing "conftest.", or (3) at the end.
16412 # Note that $ac_compile itself does not contain backslashes and begins
16413 # with a dollar sign (not a hyphen), so the echo should work correctly.
16414 # The option is referenced via a variable to avoid confusing sed.
16415 lt_compile=`echo "$ac_compile" | $SED \
16416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16418 -e 's:$: $lt_compiler_flag:'`
16419 (eval echo "\"\$as_me:16419: $lt_compile\"" >&5)
16420 (eval "$lt_compile" 2>conftest.err)
16421 ac_status=$?
16422 cat conftest.err >&5
16423 echo "$as_me:16423: \$? = $ac_status" >&5
16424 if (exit $ac_status) && test -s "$ac_outfile"; then
16425 # The compiler can only warn and ignore the option if not recognized
16426 # So say no if there are warnings other than the usual output.
16427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16430 lt_prog_compiler_pic_works_GCJ=yes
16431 fi
16432 fi
16433 $rm conftest*
16434
16435 fi
16436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16437 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16438
16439 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16440 case $lt_prog_compiler_pic_GCJ in
16441 "" | " "*) ;;
16442 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16443 esac
16444 else
16445 lt_prog_compiler_pic_GCJ=
16446 lt_prog_compiler_can_build_shared_GCJ=no
16447 fi
16448
16449 fi
16450 case $host_os in
16451 # For platforms which do not support PIC, -DPIC is meaningless:
16452 *djgpp*)
16453 lt_prog_compiler_pic_GCJ=
16454 ;;
16455 *)
16456 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16457 ;;
16458 esac
16459
16460 #
16461 # Check to make sure the static flag actually works.
16462 #
16463 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16464 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16465 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16466 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469 lt_prog_compiler_static_works_GCJ=no
16470 save_LDFLAGS="$LDFLAGS"
16471 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16472 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16474 # The linker can only warn and ignore the option if not recognized
16475 # So say no if there are warnings
16476 if test -s conftest.err; then
16477 # Append any errors to the config.log.
16478 cat conftest.err 1>&5
16479 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16481 if diff conftest.exp conftest.er2 >/dev/null; then
16482 lt_prog_compiler_static_works_GCJ=yes
16483 fi
16484 else
16485 lt_prog_compiler_static_works_GCJ=yes
16486 fi
16487 fi
16488 $rm conftest*
16489 LDFLAGS="$save_LDFLAGS"
16490
16491 fi
16492 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16493 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16494
16495 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16496 :
16497 else
16498 lt_prog_compiler_static_GCJ=
16499 fi
16500
16501
16502 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16503 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16504 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507 lt_cv_prog_compiler_c_o_GCJ=no
16508 $rm -r conftest 2>/dev/null
16509 mkdir conftest
16510 cd conftest
16511 mkdir out
16512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16513
16514 lt_compiler_flag="-o out/conftest2.$ac_objext"
16515 # Insert the option either (1) after the last *FLAGS variable, or
16516 # (2) before a word containing "conftest.", or (3) at the end.
16517 # Note that $ac_compile itself does not contain backslashes and begins
16518 # with a dollar sign (not a hyphen), so the echo should work correctly.
16519 lt_compile=`echo "$ac_compile" | $SED \
16520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16522 -e 's:$: $lt_compiler_flag:'`
16523 (eval echo "\"\$as_me:16523: $lt_compile\"" >&5)
16524 (eval "$lt_compile" 2>out/conftest.err)
16525 ac_status=$?
16526 cat out/conftest.err >&5
16527 echo "$as_me:16527: \$? = $ac_status" >&5
16528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16529 then
16530 # The compiler can only warn and ignore the option if not recognized
16531 # So say no if there are warnings
16532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16535 lt_cv_prog_compiler_c_o_GCJ=yes
16536 fi
16537 fi
16538 chmod u+w . 2>&5
16539 $rm conftest*
16540 # SGI C++ compiler will create directory out/ii_files/ for
16541 # template instantiation
16542 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16543 $rm out/* && rmdir out
16544 cd ..
16545 rmdir conftest
16546 $rm conftest*
16547
16548 fi
16549 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16550 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16551
16552
16553 hard_links="nottested"
16554 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16555 # do not overwrite the value of need_locks provided by the user
16556 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16557 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16558 hard_links=yes
16559 $rm conftest*
16560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16561 touch conftest.a
16562 ln conftest.a conftest.b 2>&5 || hard_links=no
16563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16564 { echo "$as_me:$LINENO: result: $hard_links" >&5
16565 echo "${ECHO_T}$hard_links" >&6; }
16566 if test "$hard_links" = no; then
16567 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16568 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16569 need_locks=warn
16570 fi
16571 else
16572 need_locks=no
16573 fi
16574
16575 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16576 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16577
16578 runpath_var=
16579 allow_undefined_flag_GCJ=
16580 enable_shared_with_static_runtimes_GCJ=no
16581 archive_cmds_GCJ=
16582 archive_expsym_cmds_GCJ=
16583 old_archive_From_new_cmds_GCJ=
16584 old_archive_from_expsyms_cmds_GCJ=
16585 export_dynamic_flag_spec_GCJ=
16586 whole_archive_flag_spec_GCJ=
16587 thread_safe_flag_spec_GCJ=
16588 hardcode_libdir_flag_spec_GCJ=
16589 hardcode_libdir_flag_spec_ld_GCJ=
16590 hardcode_libdir_separator_GCJ=
16591 hardcode_direct_GCJ=no
16592 hardcode_minus_L_GCJ=no
16593 hardcode_shlibpath_var_GCJ=unsupported
16594 link_all_deplibs_GCJ=unknown
16595 hardcode_automatic_GCJ=no
16596 module_cmds_GCJ=
16597 module_expsym_cmds_GCJ=
16598 always_export_symbols_GCJ=no
16599 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16600 # include_expsyms should be a list of space-separated symbols to be *always*
16601 # included in the symbol list
16602 include_expsyms_GCJ=
16603 # exclude_expsyms can be an extended regexp of symbols to exclude
16604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16606 # as well as any symbol that contains `d'.
16607 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16609 # platforms (ab)use it in PIC code, but their linkers get confused if
16610 # the symbol is explicitly referenced. Since portable code cannot
16611 # rely on this symbol name, it's probably fine to never include it in
16612 # preloaded symbol tables.
16613 extract_expsyms_cmds=
16614 # Just being paranoid about ensuring that cc_basename is set.
16615 for cc_temp in $compiler""; do
16616 case $cc_temp in
16617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16619 \-*) ;;
16620 *) break;;
16621 esac
16622 done
16623 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16624
16625 case $host_os in
16626 cygwin* | mingw* | pw32*)
16627 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16628 # When not using gcc, we currently assume that we are using
16629 # Microsoft Visual C++.
16630 if test "$GCC" != yes; then
16631 with_gnu_ld=no
16632 fi
16633 ;;
16634 interix*)
16635 # we just hope/assume this is gcc and not c89 (= MSVC++)
16636 with_gnu_ld=yes
16637 ;;
16638 openbsd*)
16639 with_gnu_ld=no
16640 ;;
16641 esac
16642
16643 ld_shlibs_GCJ=yes
16644 if test "$with_gnu_ld" = yes; then
16645 # If archive_cmds runs LD, not CC, wlarc should be empty
16646 wlarc='${wl}'
16647
16648 # Set some defaults for GNU ld with shared library support. These
16649 # are reset later if shared libraries are not supported. Putting them
16650 # here allows them to be overridden if necessary.
16651 runpath_var=LD_RUN_PATH
16652 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16653 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16654 # ancient GNU ld didn't support --whole-archive et. al.
16655 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16656 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16657 else
16658 whole_archive_flag_spec_GCJ=
16659 fi
16660 supports_anon_versioning=no
16661 case `$LD -v 2>/dev/null` in
16662 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16663 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16664 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16665 *\ 2.11.*) ;; # other 2.11 versions
16666 *) supports_anon_versioning=yes ;;
16667 esac
16668
16669 # See if GNU ld supports shared libraries.
16670 case $host_os in
16671 aix3* | aix4* | aix5*)
16672 # On AIX/PPC, the GNU linker is very broken
16673 if test "$host_cpu" != ia64; then
16674 ld_shlibs_GCJ=no
16675 cat <<EOF 1>&2
16676
16677 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16678 *** to be unable to reliably create shared libraries on AIX.
16679 *** Therefore, libtool is disabling shared libraries support. If you
16680 *** really care for shared libraries, you may want to modify your PATH
16681 *** so that a non-GNU linker is found, and then restart.
16682
16683 EOF
16684 fi
16685 ;;
16686
16687 amigaos*)
16688 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)'
16689 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16690 hardcode_minus_L_GCJ=yes
16691
16692 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16693 # that the semantics of dynamic libraries on AmigaOS, at least up
16694 # to version 4, is to share data among multiple programs linked
16695 # with the same dynamic library. Since this doesn't match the
16696 # behavior of shared libraries on other platforms, we can't use
16697 # them.
16698 ld_shlibs_GCJ=no
16699 ;;
16700
16701 beos*)
16702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16703 allow_undefined_flag_GCJ=unsupported
16704 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16705 # support --undefined. This deserves some investigation. FIXME
16706 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16707 else
16708 ld_shlibs_GCJ=no
16709 fi
16710 ;;
16711
16712 cygwin* | mingw* | pw32*)
16713 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16714 # as there is no search path for DLLs.
16715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16716 allow_undefined_flag_GCJ=unsupported
16717 always_export_symbols_GCJ=no
16718 enable_shared_with_static_runtimes_GCJ=yes
16719 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16720
16721 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16723 # If the export-symbols file already is a .def file (1st line
16724 # is EXPORTS), use it as is; otherwise, prepend...
16725 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16726 cp $export_symbols $output_objdir/$soname.def;
16727 else
16728 echo EXPORTS > $output_objdir/$soname.def;
16729 cat $export_symbols >> $output_objdir/$soname.def;
16730 fi~
16731 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16732 else
16733 ld_shlibs_GCJ=no
16734 fi
16735 ;;
16736
16737 interix3*)
16738 hardcode_direct_GCJ=no
16739 hardcode_shlibpath_var_GCJ=no
16740 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16741 export_dynamic_flag_spec_GCJ='${wl}-E'
16742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16743 # Instead, shared libraries are loaded at an image base (0x10000000 by
16744 # default) and relocated if they conflict, which is a slow very memory
16745 # consuming and fragmenting process. To avoid this, we pick a random,
16746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16748 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'
16749 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'
16750 ;;
16751
16752 linux* | k*bsd*-gnu)
16753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16754 tmp_addflag=
16755 case $cc_basename,$host_cpu in
16756 pgcc*) # Portland Group C compiler
16757 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'
16758 tmp_addflag=' $pic_flag'
16759 ;;
16760 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16761 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'
16762 tmp_addflag=' $pic_flag -Mnomain' ;;
16763 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16764 tmp_addflag=' -i_dynamic' ;;
16765 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16766 tmp_addflag=' -i_dynamic -nofor_main' ;;
16767 ifc* | ifort*) # Intel Fortran compiler
16768 tmp_addflag=' -nofor_main' ;;
16769 esac
16770 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771
16772 if test $supports_anon_versioning = yes; then
16773 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16775 $echo "local: *; };" >> $output_objdir/$libname.ver~
16776 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16777 fi
16778 link_all_deplibs_GCJ=no
16779 else
16780 ld_shlibs_GCJ=no
16781 fi
16782 ;;
16783
16784 netbsd* | netbsdelf*-gnu)
16785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16786 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16787 wlarc=
16788 else
16789 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16790 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16791 fi
16792 ;;
16793
16794 solaris*)
16795 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16796 ld_shlibs_GCJ=no
16797 cat <<EOF 1>&2
16798
16799 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16800 *** create shared libraries on Solaris systems. Therefore, libtool
16801 *** is disabling shared libraries support. We urge you to upgrade GNU
16802 *** binutils to release 2.9.1 or newer. Another option is to modify
16803 *** your PATH or compiler configuration so that the native linker is
16804 *** used, and then restart.
16805
16806 EOF
16807 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16808 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16809 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16810 else
16811 ld_shlibs_GCJ=no
16812 fi
16813 ;;
16814
16815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16816 case `$LD -v 2>&1` in
16817 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16818 ld_shlibs_GCJ=no
16819 cat <<_LT_EOF 1>&2
16820
16821 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16822 *** reliably create shared libraries on SCO systems. Therefore, libtool
16823 *** is disabling shared libraries support. We urge you to upgrade GNU
16824 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16825 *** your PATH or compiler configuration so that the native linker is
16826 *** used, and then restart.
16827
16828 _LT_EOF
16829 ;;
16830 *)
16831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16832 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16833 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16834 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16835 else
16836 ld_shlibs_GCJ=no
16837 fi
16838 ;;
16839 esac
16840 ;;
16841
16842 sunos4*)
16843 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16844 wlarc=
16845 hardcode_direct_GCJ=yes
16846 hardcode_shlibpath_var_GCJ=no
16847 ;;
16848
16849 *)
16850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16851 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16852 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16853 else
16854 ld_shlibs_GCJ=no
16855 fi
16856 ;;
16857 esac
16858
16859 if test "$ld_shlibs_GCJ" = no; then
16860 runpath_var=
16861 hardcode_libdir_flag_spec_GCJ=
16862 export_dynamic_flag_spec_GCJ=
16863 whole_archive_flag_spec_GCJ=
16864 fi
16865 else
16866 # PORTME fill in a description of your system's linker (not GNU ld)
16867 case $host_os in
16868 aix3*)
16869 allow_undefined_flag_GCJ=unsupported
16870 always_export_symbols_GCJ=yes
16871 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'
16872 # Note: this linker hardcodes the directories in LIBPATH if there
16873 # are no directories specified by -L.
16874 hardcode_minus_L_GCJ=yes
16875 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16876 # Neither direct hardcoding nor static linking is supported with a
16877 # broken collect2.
16878 hardcode_direct_GCJ=unsupported
16879 fi
16880 ;;
16881
16882 aix4* | aix5*)
16883 if test "$host_cpu" = ia64; then
16884 # On IA64, the linker does run time linking by default, so we don't
16885 # have to do anything special.
16886 aix_use_runtimelinking=no
16887 exp_sym_flag='-Bexport'
16888 no_entry_flag=""
16889 else
16890 # If we're using GNU nm, then we don't want the "-C" option.
16891 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16892 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16893 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'
16894 else
16895 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'
16896 fi
16897 aix_use_runtimelinking=no
16898
16899 # Test if we are trying to use run time linking or normal
16900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16901 # need to do runtime linking.
16902 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16903 for ld_flag in $LDFLAGS; do
16904 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16905 aix_use_runtimelinking=yes
16906 break
16907 fi
16908 done
16909 ;;
16910 esac
16911
16912 exp_sym_flag='-bexport'
16913 no_entry_flag='-bnoentry'
16914 fi
16915
16916 # When large executables or shared objects are built, AIX ld can
16917 # have problems creating the table of contents. If linking a library
16918 # or program results in "error TOC overflow" add -mminimal-toc to
16919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16921
16922 archive_cmds_GCJ=''
16923 hardcode_direct_GCJ=yes
16924 hardcode_libdir_separator_GCJ=':'
16925 link_all_deplibs_GCJ=yes
16926
16927 if test "$GCC" = yes; then
16928 case $host_os in aix4.[012]|aix4.[012].*)
16929 # We only want to do this on AIX 4.2 and lower, the check
16930 # below for broken collect2 doesn't work under 4.3+
16931 collect2name=`${CC} -print-prog-name=collect2`
16932 if test -f "$collect2name" && \
16933 strings "$collect2name" | grep resolve_lib_name >/dev/null
16934 then
16935 # We have reworked collect2
16936 hardcode_direct_GCJ=yes
16937 else
16938 # We have old collect2
16939 hardcode_direct_GCJ=unsupported
16940 # It fails to find uninstalled libraries when the uninstalled
16941 # path is not listed in the libpath. Setting hardcode_minus_L
16942 # to unsupported forces relinking
16943 hardcode_minus_L_GCJ=yes
16944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16945 hardcode_libdir_separator_GCJ=
16946 fi
16947 ;;
16948 esac
16949 shared_flag='-shared'
16950 if test "$aix_use_runtimelinking" = yes; then
16951 shared_flag="$shared_flag "'${wl}-G'
16952 fi
16953 else
16954 # not using gcc
16955 if test "$host_cpu" = ia64; then
16956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16957 # chokes on -Wl,-G. The following line is correct:
16958 shared_flag='-G'
16959 else
16960 if test "$aix_use_runtimelinking" = yes; then
16961 shared_flag='${wl}-G'
16962 else
16963 shared_flag='${wl}-bM:SRE'
16964 fi
16965 fi
16966 fi
16967
16968 # It seems that -bexpall does not export symbols beginning with
16969 # underscore (_), so it is better to generate a list of symbols to export.
16970 always_export_symbols_GCJ=yes
16971 if test "$aix_use_runtimelinking" = yes; then
16972 # Warning - without using the other runtime loading flags (-brtl),
16973 # -berok will link without error, but may produce a broken library.
16974 allow_undefined_flag_GCJ='-berok'
16975 # Determine the default libpath from the value encoded in an empty executable.
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h. */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982
16983 int
16984 main ()
16985 {
16986
16987 ;
16988 return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } && {
17005 test -z "$ac_c_werror_flag" ||
17006 test ! -s conftest.err
17007 } && test -s conftest$ac_exeext &&
17008 $as_test_x conftest$ac_exeext; then
17009
17010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17011 }'`
17012 # Check for a 64-bit object if we didn't find anything.
17013 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17014 }'`; fi
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17018
17019
17020 fi
17021
17022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17023 conftest$ac_exeext conftest.$ac_ext
17024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17025
17026 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17027 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"
17028 else
17029 if test "$host_cpu" = ia64; then
17030 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17031 allow_undefined_flag_GCJ="-z nodefs"
17032 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"
17033 else
17034 # Determine the default libpath from the value encoded in an empty executable.
17035 cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h. */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041
17042 int
17043 main ()
17044 {
17045
17046 ;
17047 return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (ac_try="$ac_link"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_link") 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } && {
17064 test -z "$ac_c_werror_flag" ||
17065 test ! -s conftest.err
17066 } && test -s conftest$ac_exeext &&
17067 $as_test_x conftest$ac_exeext; then
17068
17069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17070 }'`
17071 # Check for a 64-bit object if we didn't find anything.
17072 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17073 }'`; fi
17074 else
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078
17079 fi
17080
17081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17082 conftest$ac_exeext conftest.$ac_ext
17083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17084
17085 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17086 # Warning - without using the other run time loading flags,
17087 # -berok will link without error, but may produce a broken library.
17088 no_undefined_flag_GCJ=' ${wl}-bernotok'
17089 allow_undefined_flag_GCJ=' ${wl}-berok'
17090 # Exported symbols can be pulled into shared objects from archives
17091 whole_archive_flag_spec_GCJ='$convenience'
17092 archive_cmds_need_lc_GCJ=yes
17093 # This is similar to how AIX traditionally builds its shared libraries.
17094 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'
17095 fi
17096 fi
17097 ;;
17098
17099 amigaos*)
17100 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)'
17101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17102 hardcode_minus_L_GCJ=yes
17103 # see comment about different semantics on the GNU ld section
17104 ld_shlibs_GCJ=no
17105 ;;
17106
17107 bsdi[45]*)
17108 export_dynamic_flag_spec_GCJ=-rdynamic
17109 ;;
17110
17111 cygwin* | mingw* | pw32*)
17112 # When not using gcc, we currently assume that we are using
17113 # Microsoft Visual C++.
17114 # hardcode_libdir_flag_spec is actually meaningless, as there is
17115 # no search path for DLLs.
17116 hardcode_libdir_flag_spec_GCJ=' '
17117 allow_undefined_flag_GCJ=unsupported
17118 # Tell ltmain to make .lib files, not .a files.
17119 libext=lib
17120 # Tell ltmain to make .dll files, not .so files.
17121 shrext_cmds=".dll"
17122 # FIXME: Setting linknames here is a bad hack.
17123 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17124 # The linker will automatically build a .lib file if we build a DLL.
17125 old_archive_From_new_cmds_GCJ='true'
17126 # FIXME: Should let the user specify the lib program.
17127 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17128 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17129 enable_shared_with_static_runtimes_GCJ=yes
17130 ;;
17131
17132 darwin* | rhapsody*)
17133 case $host_os in
17134 rhapsody* | darwin1.[012])
17135 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17136 ;;
17137 *) # Darwin 1.3 on
17138 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17139 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17140 else
17141 case ${MACOSX_DEPLOYMENT_TARGET} in
17142 10.[012])
17143 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17144 ;;
17145 10.*)
17146 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17147 ;;
17148 esac
17149 fi
17150 ;;
17151 esac
17152 archive_cmds_need_lc_GCJ=no
17153 hardcode_direct_GCJ=no
17154 hardcode_automatic_GCJ=yes
17155 hardcode_shlibpath_var_GCJ=unsupported
17156 whole_archive_flag_spec_GCJ=''
17157 link_all_deplibs_GCJ=yes
17158 if test "$GCC" = yes ; then
17159 output_verbose_link_cmd='echo'
17160 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17161 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17163 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}'
17164 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}'
17165 else
17166 case $cc_basename in
17167 xlc*)
17168 output_verbose_link_cmd='echo'
17169 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17170 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17171 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17172 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17173 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}'
17174 ;;
17175 *)
17176 ld_shlibs_GCJ=no
17177 ;;
17178 esac
17179 fi
17180 ;;
17181
17182 dgux*)
17183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17184 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17185 hardcode_shlibpath_var_GCJ=no
17186 ;;
17187
17188 freebsd1*)
17189 ld_shlibs_GCJ=no
17190 ;;
17191
17192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17193 # support. Future versions do this automatically, but an explicit c++rt0.o
17194 # does not break anything, and helps significantly (at the cost of a little
17195 # extra space).
17196 freebsd2.2*)
17197 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17198 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17199 hardcode_direct_GCJ=yes
17200 hardcode_shlibpath_var_GCJ=no
17201 ;;
17202
17203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17204 freebsd2*)
17205 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17206 hardcode_direct_GCJ=yes
17207 hardcode_minus_L_GCJ=yes
17208 hardcode_shlibpath_var_GCJ=no
17209 ;;
17210
17211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17212 freebsd* | dragonfly*)
17213 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17214 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17215 hardcode_direct_GCJ=yes
17216 hardcode_shlibpath_var_GCJ=no
17217 ;;
17218
17219 hpux9*)
17220 if test "$GCC" = yes; then
17221 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'
17222 else
17223 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'
17224 fi
17225 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17226 hardcode_libdir_separator_GCJ=:
17227 hardcode_direct_GCJ=yes
17228
17229 # hardcode_minus_L: Not really in the search PATH,
17230 # but as the default location of the library.
17231 hardcode_minus_L_GCJ=yes
17232 export_dynamic_flag_spec_GCJ='${wl}-E'
17233 ;;
17234
17235 hpux10*)
17236 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17237 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17238 else
17239 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17240 fi
17241 if test "$with_gnu_ld" = no; then
17242 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17243 hardcode_libdir_separator_GCJ=:
17244
17245 hardcode_direct_GCJ=yes
17246 export_dynamic_flag_spec_GCJ='${wl}-E'
17247
17248 # hardcode_minus_L: Not really in the search PATH,
17249 # but as the default location of the library.
17250 hardcode_minus_L_GCJ=yes
17251 fi
17252 ;;
17253
17254 hpux11*)
17255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17256 case $host_cpu in
17257 hppa*64*)
17258 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17259 ;;
17260 ia64*)
17261 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17262 ;;
17263 *)
17264 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17265 ;;
17266 esac
17267 else
17268 case $host_cpu in
17269 hppa*64*)
17270 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17271 ;;
17272 ia64*)
17273 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17274 ;;
17275 *)
17276 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17277 ;;
17278 esac
17279 fi
17280 if test "$with_gnu_ld" = no; then
17281 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17282 hardcode_libdir_separator_GCJ=:
17283
17284 case $host_cpu in
17285 hppa*64*|ia64*)
17286 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17287 hardcode_direct_GCJ=no
17288 hardcode_shlibpath_var_GCJ=no
17289 ;;
17290 *)
17291 hardcode_direct_GCJ=yes
17292 export_dynamic_flag_spec_GCJ='${wl}-E'
17293
17294 # hardcode_minus_L: Not really in the search PATH,
17295 # but as the default location of the library.
17296 hardcode_minus_L_GCJ=yes
17297 ;;
17298 esac
17299 fi
17300 ;;
17301
17302 irix5* | irix6* | nonstopux*)
17303 if test "$GCC" = yes; then
17304 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'
17305 else
17306 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'
17307 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17308 fi
17309 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17310 hardcode_libdir_separator_GCJ=:
17311 link_all_deplibs_GCJ=yes
17312 ;;
17313
17314 netbsd* | netbsdelf*-gnu)
17315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17316 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17317 else
17318 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17319 fi
17320 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17321 hardcode_direct_GCJ=yes
17322 hardcode_shlibpath_var_GCJ=no
17323 ;;
17324
17325 newsos6)
17326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327 hardcode_direct_GCJ=yes
17328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17329 hardcode_libdir_separator_GCJ=:
17330 hardcode_shlibpath_var_GCJ=no
17331 ;;
17332
17333 openbsd*)
17334 hardcode_direct_GCJ=yes
17335 hardcode_shlibpath_var_GCJ=no
17336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17337 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17338 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17339 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17340 export_dynamic_flag_spec_GCJ='${wl}-E'
17341 else
17342 case $host_os in
17343 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17344 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17345 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17346 ;;
17347 *)
17348 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17350 ;;
17351 esac
17352 fi
17353 ;;
17354
17355 os2*)
17356 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17357 hardcode_minus_L_GCJ=yes
17358 allow_undefined_flag_GCJ=unsupported
17359 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'
17360 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17361 ;;
17362
17363 osf3*)
17364 if test "$GCC" = yes; then
17365 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17366 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'
17367 else
17368 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17369 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'
17370 fi
17371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17372 hardcode_libdir_separator_GCJ=:
17373 ;;
17374
17375 osf4* | osf5*) # as osf3* with the addition of -msym flag
17376 if test "$GCC" = yes; then
17377 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17378 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'
17379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17380 else
17381 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17382 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'
17383 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~
17384 $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'
17385
17386 # Both c and cxx compiler support -rpath directly
17387 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17388 fi
17389 hardcode_libdir_separator_GCJ=:
17390 ;;
17391
17392 solaris*)
17393 no_undefined_flag_GCJ=' -z text'
17394 if test "$GCC" = yes; then
17395 wlarc='${wl}'
17396 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17397 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17398 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17399 else
17400 wlarc=''
17401 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17403 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17404 fi
17405 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17406 hardcode_shlibpath_var_GCJ=no
17407 case $host_os in
17408 solaris2.[0-5] | solaris2.[0-5].*) ;;
17409 *)
17410 # The compiler driver will combine linker options so we
17411 # cannot just pass the convience library names through
17412 # without $wl, iff we do not link with $LD.
17413 # Luckily, gcc supports the same syntax we need for Sun Studio.
17414 # Supported since Solaris 2.6 (maybe 2.5.1?)
17415 case $wlarc in
17416 '')
17417 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17418 *)
17419 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17420 esac ;;
17421 esac
17422 link_all_deplibs_GCJ=yes
17423 ;;
17424
17425 sunos4*)
17426 if test "x$host_vendor" = xsequent; then
17427 # Use $CC to link under sequent, because it throws in some extra .o
17428 # files that make .init and .fini sections work.
17429 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17430 else
17431 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17432 fi
17433 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17434 hardcode_direct_GCJ=yes
17435 hardcode_minus_L_GCJ=yes
17436 hardcode_shlibpath_var_GCJ=no
17437 ;;
17438
17439 sysv4)
17440 case $host_vendor in
17441 sni)
17442 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_direct_GCJ=yes # is this really true???
17444 ;;
17445 siemens)
17446 ## LD is ld it makes a PLAMLIB
17447 ## CC just makes a GrossModule.
17448 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17449 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17450 hardcode_direct_GCJ=no
17451 ;;
17452 motorola)
17453 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17455 ;;
17456 esac
17457 runpath_var='LD_RUN_PATH'
17458 hardcode_shlibpath_var_GCJ=no
17459 ;;
17460
17461 sysv4.3*)
17462 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17463 hardcode_shlibpath_var_GCJ=no
17464 export_dynamic_flag_spec_GCJ='-Bexport'
17465 ;;
17466
17467 sysv4*MP*)
17468 if test -d /usr/nec; then
17469 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470 hardcode_shlibpath_var_GCJ=no
17471 runpath_var=LD_RUN_PATH
17472 hardcode_runpath_var=yes
17473 ld_shlibs_GCJ=yes
17474 fi
17475 ;;
17476
17477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17478 no_undefined_flag_GCJ='${wl}-z,text'
17479 archive_cmds_need_lc_GCJ=no
17480 hardcode_shlibpath_var_GCJ=no
17481 runpath_var='LD_RUN_PATH'
17482
17483 if test "$GCC" = yes; then
17484 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17485 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17486 else
17487 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17488 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17489 fi
17490 ;;
17491
17492 sysv5* | sco3.2v5* | sco5v6*)
17493 # Note: We can NOT use -z defs as we might desire, because we do not
17494 # link with -lc, and that would cause any symbols used from libc to
17495 # always be unresolved, which means just about no library would
17496 # ever link correctly. If we're not using GNU ld we use -z text
17497 # though, which does catch some bad symbols but isn't as heavy-handed
17498 # as -z defs.
17499 no_undefined_flag_GCJ='${wl}-z,text'
17500 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17501 archive_cmds_need_lc_GCJ=no
17502 hardcode_shlibpath_var_GCJ=no
17503 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17504 hardcode_libdir_separator_GCJ=':'
17505 link_all_deplibs_GCJ=yes
17506 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17507 runpath_var='LD_RUN_PATH'
17508
17509 if test "$GCC" = yes; then
17510 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17511 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17512 else
17513 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17514 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17515 fi
17516 ;;
17517
17518 uts4*)
17519 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17521 hardcode_shlibpath_var_GCJ=no
17522 ;;
17523
17524 *)
17525 ld_shlibs_GCJ=no
17526 ;;
17527 esac
17528 fi
17529
17530 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17531 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17532 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17533
17534 #
17535 # Do we need to explicitly link libc?
17536 #
17537 case "x$archive_cmds_need_lc_GCJ" in
17538 x|xyes)
17539 # Assume -lc should be added
17540 archive_cmds_need_lc_GCJ=yes
17541
17542 if test "$enable_shared" = yes && test "$GCC" = yes; then
17543 case $archive_cmds_GCJ in
17544 *'~'*)
17545 # FIXME: we may have to deal with multi-command sequences.
17546 ;;
17547 '$CC '*)
17548 # Test whether the compiler implicitly links with -lc since on some
17549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17550 # to ld, don't add -lc before -lgcc.
17551 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17552 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17553 $rm conftest*
17554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17555
17556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557 (eval $ac_compile) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } 2>conftest.err; then
17561 soname=conftest
17562 lib=conftest
17563 libobjs=conftest.$ac_objext
17564 deplibs=
17565 wl=$lt_prog_compiler_wl_GCJ
17566 pic_flag=$lt_prog_compiler_pic_GCJ
17567 compiler_flags=-v
17568 linker_flags=-v
17569 verstring=
17570 output_objdir=.
17571 libname=conftest
17572 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17573 allow_undefined_flag_GCJ=
17574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17575 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }
17579 then
17580 archive_cmds_need_lc_GCJ=no
17581 else
17582 archive_cmds_need_lc_GCJ=yes
17583 fi
17584 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17585 else
17586 cat conftest.err 1>&5
17587 fi
17588 $rm conftest*
17589 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17590 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17591 ;;
17592 esac
17593 fi
17594 ;;
17595 esac
17596
17597 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17599 library_names_spec=
17600 libname_spec='lib$name'
17601 soname_spec=
17602 shrext_cmds=".so"
17603 postinstall_cmds=
17604 postuninstall_cmds=
17605 finish_cmds=
17606 finish_eval=
17607 shlibpath_var=
17608 shlibpath_overrides_runpath=unknown
17609 version_type=none
17610 dynamic_linker="$host_os ld.so"
17611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17612 if test "$GCC" = yes; then
17613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17614 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17615 # if the path contains ";" then we assume it to be the separator
17616 # otherwise default to the standard path separator (i.e. ":") - it is
17617 # assumed that no part of a normal pathname contains ";" but that should
17618 # okay in the real world where ";" in dirpaths is itself problematic.
17619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17620 else
17621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17622 fi
17623 else
17624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17625 fi
17626 need_lib_prefix=unknown
17627 hardcode_into_libs=no
17628
17629 # when you set need_version to no, make sure it does not cause -set_version
17630 # flags to be left without arguments
17631 need_version=unknown
17632
17633 case $host_os in
17634 aix3*)
17635 version_type=linux
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17637 shlibpath_var=LIBPATH
17638
17639 # AIX 3 has no versioning support, so we append a major version to the name.
17640 soname_spec='${libname}${release}${shared_ext}$major'
17641 ;;
17642
17643 aix4* | aix5*)
17644 version_type=linux
17645 need_lib_prefix=no
17646 need_version=no
17647 hardcode_into_libs=yes
17648 if test "$host_cpu" = ia64; then
17649 # AIX 5 supports IA64
17650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 else
17653 # With GCC up to 2.95.x, collect2 would create an import file
17654 # for dependence libraries. The import file would start with
17655 # the line `#! .'. This would cause the generated library to
17656 # depend on `.', always an invalid library. This was fixed in
17657 # development snapshots of GCC prior to 3.0.
17658 case $host_os in
17659 aix4 | aix4.[01] | aix4.[01].*)
17660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17661 echo ' yes '
17662 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17663 :
17664 else
17665 can_build_shared=no
17666 fi
17667 ;;
17668 esac
17669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17670 # soname into executable. Probably we can add versioning support to
17671 # collect2, so additional links can be useful in future.
17672 if test "$aix_use_runtimelinking" = yes; then
17673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17674 # instead of lib<name>.a to let people know that these are not
17675 # typical AIX shared libraries.
17676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17677 else
17678 # We preserve .a as extension for shared libraries through AIX4.2
17679 # and later when we are not doing run time linking.
17680 library_names_spec='${libname}${release}.a $libname.a'
17681 soname_spec='${libname}${release}${shared_ext}$major'
17682 fi
17683 shlibpath_var=LIBPATH
17684 fi
17685 ;;
17686
17687 amigaos*)
17688 library_names_spec='$libname.ixlibrary $libname.a'
17689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17690 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'
17691 ;;
17692
17693 beos*)
17694 library_names_spec='${libname}${shared_ext}'
17695 dynamic_linker="$host_os ld.so"
17696 shlibpath_var=LIBRARY_PATH
17697 ;;
17698
17699 bsdi[45]*)
17700 version_type=linux
17701 need_version=no
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 soname_spec='${libname}${release}${shared_ext}$major'
17704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17705 shlibpath_var=LD_LIBRARY_PATH
17706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17708 # the default ld.so.conf also contains /usr/contrib/lib and
17709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17710 # libtool to hard-code these into programs
17711 ;;
17712
17713 cygwin* | mingw* | pw32*)
17714 version_type=windows
17715 shrext_cmds=".dll"
17716 need_version=no
17717 need_lib_prefix=no
17718
17719 case $GCC,$host_os in
17720 yes,cygwin* | yes,mingw* | yes,pw32*)
17721 library_names_spec='$libname.dll.a'
17722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17723 postinstall_cmds='base_file=`basename \${file}`~
17724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17725 dldir=$destdir/`dirname \$dlpath`~
17726 test -d \$dldir || mkdir -p \$dldir~
17727 $install_prog $dir/$dlname \$dldir/$dlname~
17728 chmod a+x \$dldir/$dlname'
17729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17730 dlpath=$dir/\$dldll~
17731 $rm \$dlpath'
17732 shlibpath_overrides_runpath=yes
17733
17734 case $host_os in
17735 cygwin*)
17736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17737 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17738 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17739 ;;
17740 mingw*)
17741 # MinGW DLLs use traditional 'lib' prefix
17742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17744 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17745 # It is most probably a Windows format PATH printed by
17746 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17747 # path with ; separators, and with drive letters. We can handle the
17748 # drive letters (cygwin fileutils understands them), so leave them,
17749 # especially as we might pass files found there to a mingw objdump,
17750 # which wouldn't understand a cygwinified path. Ahh.
17751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17752 else
17753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17754 fi
17755 ;;
17756 pw32*)
17757 # pw32 DLLs use 'pw' prefix rather than 'lib'
17758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17759 ;;
17760 esac
17761 ;;
17762
17763 *)
17764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17765 ;;
17766 esac
17767 dynamic_linker='Win32 ld.exe'
17768 # FIXME: first we should search . and the directory the executable is in
17769 shlibpath_var=PATH
17770 ;;
17771
17772 darwin* | rhapsody*)
17773 dynamic_linker="$host_os dyld"
17774 version_type=darwin
17775 need_lib_prefix=no
17776 need_version=no
17777 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17778 soname_spec='${libname}${release}${major}$shared_ext'
17779 shlibpath_overrides_runpath=yes
17780 shlibpath_var=DYLD_LIBRARY_PATH
17781 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17782 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17783 if test "$GCC" = yes; then
17784 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17785 else
17786 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17787 fi
17788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17789 ;;
17790
17791 dgux*)
17792 version_type=linux
17793 need_lib_prefix=no
17794 need_version=no
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17796 soname_spec='${libname}${release}${shared_ext}$major'
17797 shlibpath_var=LD_LIBRARY_PATH
17798 ;;
17799
17800 freebsd1*)
17801 dynamic_linker=no
17802 ;;
17803
17804 freebsd* | dragonfly*)
17805 # DragonFly does not have aout. When/if they implement a new
17806 # versioning mechanism, adjust this.
17807 if test -x /usr/bin/objformat; then
17808 objformat=`/usr/bin/objformat`
17809 else
17810 case $host_os in
17811 freebsd[123]*) objformat=aout ;;
17812 *) objformat=elf ;;
17813 esac
17814 fi
17815 version_type=freebsd-$objformat
17816 case $version_type in
17817 freebsd-elf*)
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17819 need_version=no
17820 need_lib_prefix=no
17821 ;;
17822 freebsd-*)
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17824 need_version=yes
17825 ;;
17826 esac
17827 shlibpath_var=LD_LIBRARY_PATH
17828 case $host_os in
17829 freebsd2*)
17830 shlibpath_overrides_runpath=yes
17831 ;;
17832 freebsd3.[01]* | freebsdelf3.[01]*)
17833 shlibpath_overrides_runpath=yes
17834 hardcode_into_libs=yes
17835 ;;
17836 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17837 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17838 shlibpath_overrides_runpath=no
17839 hardcode_into_libs=yes
17840 ;;
17841 freebsd*) # from 4.6 on
17842 shlibpath_overrides_runpath=yes
17843 hardcode_into_libs=yes
17844 ;;
17845 esac
17846 ;;
17847
17848 gnu*)
17849 version_type=linux
17850 need_lib_prefix=no
17851 need_version=no
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 hardcode_into_libs=yes
17856 ;;
17857
17858 hpux9* | hpux10* | hpux11*)
17859 # Give a soname corresponding to the major version so that dld.sl refuses to
17860 # link against other versions.
17861 version_type=sunos
17862 need_lib_prefix=no
17863 need_version=no
17864 case $host_cpu in
17865 ia64*)
17866 shrext_cmds='.so'
17867 hardcode_into_libs=yes
17868 dynamic_linker="$host_os dld.so"
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872 soname_spec='${libname}${release}${shared_ext}$major'
17873 if test "X$HPUX_IA64_MODE" = X32; then
17874 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17875 else
17876 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17877 fi
17878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17879 ;;
17880 hppa*64*)
17881 shrext_cmds='.sl'
17882 hardcode_into_libs=yes
17883 dynamic_linker="$host_os dld.sl"
17884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17890 ;;
17891 *)
17892 shrext_cmds='.sl'
17893 dynamic_linker="$host_os dld.sl"
17894 shlibpath_var=SHLIB_PATH
17895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17897 soname_spec='${libname}${release}${shared_ext}$major'
17898 ;;
17899 esac
17900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17901 postinstall_cmds='chmod 555 $lib'
17902 ;;
17903
17904 interix3*)
17905 version_type=linux
17906 need_lib_prefix=no
17907 need_version=no
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17909 soname_spec='${libname}${release}${shared_ext}$major'
17910 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17911 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=no
17913 hardcode_into_libs=yes
17914 ;;
17915
17916 irix5* | irix6* | nonstopux*)
17917 case $host_os in
17918 nonstopux*) version_type=nonstopux ;;
17919 *)
17920 if test "$lt_cv_prog_gnu_ld" = yes; then
17921 version_type=linux
17922 else
17923 version_type=irix
17924 fi ;;
17925 esac
17926 need_lib_prefix=no
17927 need_version=no
17928 soname_spec='${libname}${release}${shared_ext}$major'
17929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17930 case $host_os in
17931 irix5* | nonstopux*)
17932 libsuff= shlibsuff=
17933 ;;
17934 *)
17935 case $LD in # libtool.m4 will add one of these switches to LD
17936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17937 libsuff= shlibsuff= libmagic=32-bit;;
17938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17939 libsuff=32 shlibsuff=N32 libmagic=N32;;
17940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17942 *) libsuff= shlibsuff= libmagic=never-match;;
17943 esac
17944 ;;
17945 esac
17946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17947 shlibpath_overrides_runpath=no
17948 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17949 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17950 hardcode_into_libs=yes
17951 ;;
17952
17953 # No shared lib support for Linux oldld, aout, or coff.
17954 linux*oldld* | linux*aout* | linux*coff*)
17955 dynamic_linker=no
17956 ;;
17957
17958 # This must be Linux ELF.
17959 linux* | k*bsd*-gnu)
17960 version_type=linux
17961 need_lib_prefix=no
17962 need_version=no
17963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964 soname_spec='${libname}${release}${shared_ext}$major'
17965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=no
17968 # This implies no fast_install, which is unacceptable.
17969 # Some rework will be needed to allow for fast_install
17970 # before this can be enabled.
17971 hardcode_into_libs=yes
17972
17973 # Append ld.so.conf contents to the search path
17974 if test -f /etc/ld.so.conf; then
17975 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17976 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17977 fi
17978
17979 # We used to test for /lib/ld.so.1 and disable shared libraries on
17980 # powerpc, because MkLinux only supported shared libraries with the
17981 # GNU dynamic linker. Since this was broken with cross compilers,
17982 # most powerpc-linux boxes support dynamic linking these days and
17983 # people can always --disable-shared, the test was removed, and we
17984 # assume the GNU/Linux dynamic linker is in use.
17985 dynamic_linker='GNU/Linux ld.so'
17986 ;;
17987
17988 netbsdelf*-gnu)
17989 version_type=linux
17990 need_lib_prefix=no
17991 need_version=no
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17993 soname_spec='${libname}${release}${shared_ext}$major'
17994 shlibpath_var=LD_LIBRARY_PATH
17995 shlibpath_overrides_runpath=no
17996 hardcode_into_libs=yes
17997 dynamic_linker='NetBSD ld.elf_so'
17998 ;;
17999
18000 netbsd*)
18001 version_type=sunos
18002 need_lib_prefix=no
18003 need_version=no
18004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18007 dynamic_linker='NetBSD (a.out) ld.so'
18008 else
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18010 soname_spec='${libname}${release}${shared_ext}$major'
18011 dynamic_linker='NetBSD ld.elf_so'
18012 fi
18013 shlibpath_var=LD_LIBRARY_PATH
18014 shlibpath_overrides_runpath=yes
18015 hardcode_into_libs=yes
18016 ;;
18017
18018 newsos6)
18019 version_type=linux
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 shlibpath_var=LD_LIBRARY_PATH
18022 shlibpath_overrides_runpath=yes
18023 ;;
18024
18025 nto-qnx*)
18026 version_type=linux
18027 need_lib_prefix=no
18028 need_version=no
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030 soname_spec='${libname}${release}${shared_ext}$major'
18031 shlibpath_var=LD_LIBRARY_PATH
18032 shlibpath_overrides_runpath=yes
18033 ;;
18034
18035 openbsd*)
18036 version_type=sunos
18037 sys_lib_dlsearch_path_spec="/usr/lib"
18038 need_lib_prefix=no
18039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18040 case $host_os in
18041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18042 *) need_version=no ;;
18043 esac
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18048 case $host_os in
18049 openbsd2.[89] | openbsd2.[89].*)
18050 shlibpath_overrides_runpath=no
18051 ;;
18052 *)
18053 shlibpath_overrides_runpath=yes
18054 ;;
18055 esac
18056 else
18057 shlibpath_overrides_runpath=yes
18058 fi
18059 ;;
18060
18061 os2*)
18062 libname_spec='$name'
18063 shrext_cmds=".dll"
18064 need_lib_prefix=no
18065 library_names_spec='$libname${shared_ext} $libname.a'
18066 dynamic_linker='OS/2 ld.exe'
18067 shlibpath_var=LIBPATH
18068 ;;
18069
18070 osf3* | osf4* | osf5*)
18071 version_type=osf
18072 need_lib_prefix=no
18073 need_version=no
18074 soname_spec='${libname}${release}${shared_ext}$major'
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076 shlibpath_var=LD_LIBRARY_PATH
18077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18079 ;;
18080
18081 solaris*)
18082 version_type=linux
18083 need_lib_prefix=no
18084 need_version=no
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 shlibpath_overrides_runpath=yes
18089 hardcode_into_libs=yes
18090 # ldd complains unless libraries are executable
18091 postinstall_cmds='chmod +x $lib'
18092 ;;
18093
18094 sunos4*)
18095 version_type=sunos
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18097 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18098 shlibpath_var=LD_LIBRARY_PATH
18099 shlibpath_overrides_runpath=yes
18100 if test "$with_gnu_ld" = yes; then
18101 need_lib_prefix=no
18102 fi
18103 need_version=yes
18104 ;;
18105
18106 sysv4 | sysv4.3*)
18107 version_type=linux
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 case $host_vendor in
18112 sni)
18113 shlibpath_overrides_runpath=no
18114 need_lib_prefix=no
18115 export_dynamic_flag_spec='${wl}-Blargedynsym'
18116 runpath_var=LD_RUN_PATH
18117 ;;
18118 siemens)
18119 need_lib_prefix=no
18120 ;;
18121 motorola)
18122 need_lib_prefix=no
18123 need_version=no
18124 shlibpath_overrides_runpath=no
18125 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18126 ;;
18127 esac
18128 ;;
18129
18130 sysv4*MP*)
18131 if test -d /usr/nec ;then
18132 version_type=linux
18133 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18134 soname_spec='$libname${shared_ext}.$major'
18135 shlibpath_var=LD_LIBRARY_PATH
18136 fi
18137 ;;
18138
18139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18140 version_type=freebsd-elf
18141 need_lib_prefix=no
18142 need_version=no
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 shlibpath_var=LD_LIBRARY_PATH
18146 hardcode_into_libs=yes
18147 if test "$with_gnu_ld" = yes; then
18148 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18149 shlibpath_overrides_runpath=no
18150 else
18151 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18152 shlibpath_overrides_runpath=yes
18153 case $host_os in
18154 sco3.2v5*)
18155 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18156 ;;
18157 esac
18158 fi
18159 sys_lib_dlsearch_path_spec='/usr/lib'
18160 ;;
18161
18162 uts4*)
18163 version_type=linux
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 ;;
18168
18169 *)
18170 dynamic_linker=no
18171 ;;
18172 esac
18173 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18174 echo "${ECHO_T}$dynamic_linker" >&6; }
18175 test "$dynamic_linker" = no && can_build_shared=no
18176
18177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18178 if test "$GCC" = yes; then
18179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18180 fi
18181
18182 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18183 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18184 hardcode_action_GCJ=
18185 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18186 test -n "$runpath_var_GCJ" || \
18187 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18188
18189 # We can hardcode non-existant directories.
18190 if test "$hardcode_direct_GCJ" != no &&
18191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18192 # have to relink, otherwise we might link with an installed library
18193 # when we should be linking with a yet-to-be-installed one
18194 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18195 test "$hardcode_minus_L_GCJ" != no; then
18196 # Linking always hardcodes the temporary library directory.
18197 hardcode_action_GCJ=relink
18198 else
18199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18200 hardcode_action_GCJ=immediate
18201 fi
18202 else
18203 # We cannot hardcode anything, or else we can only hardcode existing
18204 # directories.
18205 hardcode_action_GCJ=unsupported
18206 fi
18207 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18208 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18209
18210 if test "$hardcode_action_GCJ" = relink; then
18211 # Fast installation is not supported
18212 enable_fast_install=no
18213 elif test "$shlibpath_overrides_runpath" = yes ||
18214 test "$enable_shared" = no; then
18215 # Fast installation is not necessary
18216 enable_fast_install=needless
18217 fi
18218
18219
18220 # The else clause should only fire when bootstrapping the
18221 # libtool distribution, otherwise you forgot to ship ltmain.sh
18222 # with your package, and you will get complaints that there are
18223 # no rules to generate ltmain.sh.
18224 if test -f "$ltmain"; then
18225 # See if we are running on zsh, and set the options which allow our commands through
18226 # without removal of \ escapes.
18227 if test -n "${ZSH_VERSION+set}" ; then
18228 setopt NO_GLOB_SUBST
18229 fi
18230 # Now quote all the things that may contain metacharacters while being
18231 # careful not to overquote the AC_SUBSTed values. We take copies of the
18232 # variables and quote the copies for generation of the libtool script.
18233 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18234 SED SHELL STRIP \
18235 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18236 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18237 deplibs_check_method reload_flag reload_cmds need_locks \
18238 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18239 lt_cv_sys_global_symbol_to_c_name_address \
18240 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18241 old_postinstall_cmds old_postuninstall_cmds \
18242 compiler_GCJ \
18243 CC_GCJ \
18244 LD_GCJ \
18245 lt_prog_compiler_wl_GCJ \
18246 lt_prog_compiler_pic_GCJ \
18247 lt_prog_compiler_static_GCJ \
18248 lt_prog_compiler_no_builtin_flag_GCJ \
18249 export_dynamic_flag_spec_GCJ \
18250 thread_safe_flag_spec_GCJ \
18251 whole_archive_flag_spec_GCJ \
18252 enable_shared_with_static_runtimes_GCJ \
18253 old_archive_cmds_GCJ \
18254 old_archive_from_new_cmds_GCJ \
18255 predep_objects_GCJ \
18256 postdep_objects_GCJ \
18257 predeps_GCJ \
18258 postdeps_GCJ \
18259 compiler_lib_search_path_GCJ \
18260 archive_cmds_GCJ \
18261 archive_expsym_cmds_GCJ \
18262 postinstall_cmds_GCJ \
18263 postuninstall_cmds_GCJ \
18264 old_archive_from_expsyms_cmds_GCJ \
18265 allow_undefined_flag_GCJ \
18266 no_undefined_flag_GCJ \
18267 export_symbols_cmds_GCJ \
18268 hardcode_libdir_flag_spec_GCJ \
18269 hardcode_libdir_flag_spec_ld_GCJ \
18270 hardcode_libdir_separator_GCJ \
18271 hardcode_automatic_GCJ \
18272 module_cmds_GCJ \
18273 module_expsym_cmds_GCJ \
18274 lt_cv_prog_compiler_c_o_GCJ \
18275 exclude_expsyms_GCJ \
18276 include_expsyms_GCJ; do
18277
18278 case $var in
18279 old_archive_cmds_GCJ | \
18280 old_archive_from_new_cmds_GCJ | \
18281 archive_cmds_GCJ | \
18282 archive_expsym_cmds_GCJ | \
18283 module_cmds_GCJ | \
18284 module_expsym_cmds_GCJ | \
18285 old_archive_from_expsyms_cmds_GCJ | \
18286 export_symbols_cmds_GCJ | \
18287 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18288 postinstall_cmds | postuninstall_cmds | \
18289 old_postinstall_cmds | old_postuninstall_cmds | \
18290 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18291 # Double-quote double-evaled strings.
18292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18293 ;;
18294 *)
18295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18296 ;;
18297 esac
18298 done
18299
18300 case $lt_echo in
18301 *'\$0 --fallback-echo"')
18302 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18303 ;;
18304 esac
18305
18306 cfgfile="$ofile"
18307
18308 cat <<__EOF__ >> "$cfgfile"
18309 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18310
18311 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18312
18313 # Shell to use when invoking shell scripts.
18314 SHELL=$lt_SHELL
18315
18316 # Whether or not to build shared libraries.
18317 build_libtool_libs=$enable_shared
18318
18319 # Whether or not to build static libraries.
18320 build_old_libs=$enable_static
18321
18322 # Whether or not to add -lc for building shared libraries.
18323 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18324
18325 # Whether or not to disallow shared libs when runtime libs are static
18326 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18327
18328 # Whether or not to optimize for fast installation.
18329 fast_install=$enable_fast_install
18330
18331 # The host system.
18332 host_alias=$host_alias
18333 host=$host
18334 host_os=$host_os
18335
18336 # The build system.
18337 build_alias=$build_alias
18338 build=$build
18339 build_os=$build_os
18340
18341 # An echo program that does not interpret backslashes.
18342 echo=$lt_echo
18343
18344 # The archiver.
18345 AR=$lt_AR
18346 AR_FLAGS=$lt_AR_FLAGS
18347
18348 # A C compiler.
18349 LTCC=$lt_LTCC
18350
18351 # LTCC compiler flags.
18352 LTCFLAGS=$lt_LTCFLAGS
18353
18354 # A language-specific compiler.
18355 CC=$lt_compiler_GCJ
18356
18357 # Is the compiler the GNU C compiler?
18358 with_gcc=$GCC_GCJ
18359
18360 # An ERE matcher.
18361 EGREP=$lt_EGREP
18362
18363 # The linker used to build libraries.
18364 LD=$lt_LD_GCJ
18365
18366 # Whether we need hard or soft links.
18367 LN_S=$lt_LN_S
18368
18369 # A BSD-compatible nm program.
18370 NM=$lt_NM
18371
18372 # A symbol stripping program
18373 STRIP=$lt_STRIP
18374
18375 # Used to examine libraries when file_magic_cmd begins "file"
18376 MAGIC_CMD=$MAGIC_CMD
18377
18378 # Used on cygwin: DLL creation program.
18379 DLLTOOL="$DLLTOOL"
18380
18381 # Used on cygwin: object dumper.
18382 OBJDUMP="$OBJDUMP"
18383
18384 # Used on cygwin: assembler.
18385 AS="$AS"
18386
18387 # The name of the directory that contains temporary libtool files.
18388 objdir=$objdir
18389
18390 # How to create reloadable object files.
18391 reload_flag=$lt_reload_flag
18392 reload_cmds=$lt_reload_cmds
18393
18394 # How to pass a linker flag through the compiler.
18395 wl=$lt_lt_prog_compiler_wl_GCJ
18396
18397 # Object file suffix (normally "o").
18398 objext="$ac_objext"
18399
18400 # Old archive suffix (normally "a").
18401 libext="$libext"
18402
18403 # Shared library suffix (normally ".so").
18404 shrext_cmds='$shrext_cmds'
18405
18406 # Executable file suffix (normally "").
18407 exeext="$exeext"
18408
18409 # Additional compiler flags for building library objects.
18410 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18411 pic_mode=$pic_mode
18412
18413 # What is the maximum length of a command?
18414 max_cmd_len=$lt_cv_sys_max_cmd_len
18415
18416 # Does compiler simultaneously support -c and -o options?
18417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18418
18419 # Must we lock files when doing compilation?
18420 need_locks=$lt_need_locks
18421
18422 # Do we need the lib prefix for modules?
18423 need_lib_prefix=$need_lib_prefix
18424
18425 # Do we need a version for libraries?
18426 need_version=$need_version
18427
18428 # Whether dlopen is supported.
18429 dlopen_support=$enable_dlopen
18430
18431 # Whether dlopen of programs is supported.
18432 dlopen_self=$enable_dlopen_self
18433
18434 # Whether dlopen of statically linked programs is supported.
18435 dlopen_self_static=$enable_dlopen_self_static
18436
18437 # Compiler flag to prevent dynamic linking.
18438 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18439
18440 # Compiler flag to turn off builtin functions.
18441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18442
18443 # Compiler flag to allow reflexive dlopens.
18444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18445
18446 # Compiler flag to generate shared objects directly from archives.
18447 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18448
18449 # Compiler flag to generate thread-safe objects.
18450 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18451
18452 # Library versioning type.
18453 version_type=$version_type
18454
18455 # Format of library name prefix.
18456 libname_spec=$lt_libname_spec
18457
18458 # List of archive names. First name is the real one, the rest are links.
18459 # The last name is the one that the linker finds with -lNAME.
18460 library_names_spec=$lt_library_names_spec
18461
18462 # The coded name of the library, if different from the real name.
18463 soname_spec=$lt_soname_spec
18464
18465 # Commands used to build and install an old-style archive.
18466 RANLIB=$lt_RANLIB
18467 old_archive_cmds=$lt_old_archive_cmds_GCJ
18468 old_postinstall_cmds=$lt_old_postinstall_cmds
18469 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18470
18471 # Create an old-style archive from a shared archive.
18472 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18473
18474 # Create a temporary old-style archive to link instead of a shared archive.
18475 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18476
18477 # Commands used to build and install a shared archive.
18478 archive_cmds=$lt_archive_cmds_GCJ
18479 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18480 postinstall_cmds=$lt_postinstall_cmds
18481 postuninstall_cmds=$lt_postuninstall_cmds
18482
18483 # Commands used to build a loadable module (assumed same as above if empty)
18484 module_cmds=$lt_module_cmds_GCJ
18485 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18486
18487 # Commands to strip libraries.
18488 old_striplib=$lt_old_striplib
18489 striplib=$lt_striplib
18490
18491 # Dependencies to place before the objects being linked to create a
18492 # shared library.
18493 predep_objects=$lt_predep_objects_GCJ
18494
18495 # Dependencies to place after the objects being linked to create a
18496 # shared library.
18497 postdep_objects=$lt_postdep_objects_GCJ
18498
18499 # Dependencies to place before the objects being linked to create a
18500 # shared library.
18501 predeps=$lt_predeps_GCJ
18502
18503 # Dependencies to place after the objects being linked to create a
18504 # shared library.
18505 postdeps=$lt_postdeps_GCJ
18506
18507 # The library search path used internally by the compiler when linking
18508 # a shared library.
18509 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18510
18511 # Method to check whether dependent libraries are shared objects.
18512 deplibs_check_method=$lt_deplibs_check_method
18513
18514 # Command to use when deplibs_check_method == file_magic.
18515 file_magic_cmd=$lt_file_magic_cmd
18516
18517 # Flag that allows shared libraries with undefined symbols to be built.
18518 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18519
18520 # Flag that forces no undefined symbols.
18521 no_undefined_flag=$lt_no_undefined_flag_GCJ
18522
18523 # Commands used to finish a libtool library installation in a directory.
18524 finish_cmds=$lt_finish_cmds
18525
18526 # Same as above, but a single script fragment to be evaled but not shown.
18527 finish_eval=$lt_finish_eval
18528
18529 # Take the output of nm and produce a listing of raw symbols and C names.
18530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18531
18532 # Transform the output of nm in a proper C declaration
18533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18534
18535 # Transform the output of nm in a C name address pair
18536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18537
18538 # This is the shared library runtime path variable.
18539 runpath_var=$runpath_var
18540
18541 # This is the shared library path variable.
18542 shlibpath_var=$shlibpath_var
18543
18544 # Is shlibpath searched before the hard-coded library search path?
18545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18546
18547 # How to hardcode a shared library path into an executable.
18548 hardcode_action=$hardcode_action_GCJ
18549
18550 # Whether we should hardcode library paths into libraries.
18551 hardcode_into_libs=$hardcode_into_libs
18552
18553 # Flag to hardcode \$libdir into a binary during linking.
18554 # This must work even if \$libdir does not exist.
18555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18556
18557 # If ld is used when linking, flag to hardcode \$libdir into
18558 # a binary during linking. This must work even if \$libdir does
18559 # not exist.
18560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18561
18562 # Whether we need a single -rpath flag with a separated argument.
18563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18564
18565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18566 # resulting binary.
18567 hardcode_direct=$hardcode_direct_GCJ
18568
18569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18570 # resulting binary.
18571 hardcode_minus_L=$hardcode_minus_L_GCJ
18572
18573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18574 # the resulting binary.
18575 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18576
18577 # Set to yes if building a shared library automatically hardcodes DIR into the library
18578 # and all subsequent libraries and executables linked against it.
18579 hardcode_automatic=$hardcode_automatic_GCJ
18580
18581 # Variables whose values should be saved in libtool wrapper scripts and
18582 # restored at relink time.
18583 variables_saved_for_relink="$variables_saved_for_relink"
18584
18585 # Whether libtool must link a program against all its dependency libraries.
18586 link_all_deplibs=$link_all_deplibs_GCJ
18587
18588 # Compile-time system search path for libraries
18589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18590
18591 # Run-time system search path for libraries
18592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18593
18594 # Fix the shell variable \$srcfile for the compiler.
18595 fix_srcfile_path="$fix_srcfile_path_GCJ"
18596
18597 # Set to yes if exported symbols are required.
18598 always_export_symbols=$always_export_symbols_GCJ
18599
18600 # The commands to list exported symbols.
18601 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18602
18603 # The commands to extract the exported symbol list from a shared archive.
18604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18605
18606 # Symbols that should not be listed in the preloaded symbols.
18607 exclude_expsyms=$lt_exclude_expsyms_GCJ
18608
18609 # Symbols that must always be exported.
18610 include_expsyms=$lt_include_expsyms_GCJ
18611
18612 # ### END LIBTOOL TAG CONFIG: $tagname
18613
18614 __EOF__
18615
18616
18617 else
18618 # If there is no Makefile yet, we rely on a make rule to execute
18619 # `config.status --recheck' to rerun these tests and create the
18620 # libtool script then.
18621 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18622 if test -f "$ltmain_in"; then
18623 test -f Makefile && make "$ltmain"
18624 fi
18625 fi
18626
18627
18628 ac_ext=c
18629 ac_cpp='$CPP $CPPFLAGS'
18630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18633
18634 CC="$lt_save_CC"
18635
18636 else
18637 tagname=""
18638 fi
18639 ;;
18640
18641 RC)
18642
18643
18644 # Source file extension for RC test sources.
18645 ac_ext=rc
18646
18647 # Object file extension for compiled RC test sources.
18648 objext=o
18649 objext_RC=$objext
18650
18651 # Code to be used in simple compile tests
18652 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18653
18654 # Code to be used in simple link tests
18655 lt_simple_link_test_code="$lt_simple_compile_test_code"
18656
18657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18658
18659 # If no C compiler was specified, use CC.
18660 LTCC=${LTCC-"$CC"}
18661
18662 # If no C compiler flags were specified, use CFLAGS.
18663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18664
18665 # Allow CC to be a program name with arguments.
18666 compiler=$CC
18667
18668
18669 # save warnings/boilerplate of simple test code
18670 ac_outfile=conftest.$ac_objext
18671 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18673 _lt_compiler_boilerplate=`cat conftest.err`
18674 $rm conftest*
18675
18676 ac_outfile=conftest.$ac_objext
18677 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18679 _lt_linker_boilerplate=`cat conftest.err`
18680 $rm conftest*
18681
18682
18683 # Allow CC to be a program name with arguments.
18684 lt_save_CC="$CC"
18685 CC=${RC-"windres"}
18686 compiler=$CC
18687 compiler_RC=$CC
18688 for cc_temp in $compiler""; do
18689 case $cc_temp in
18690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18692 \-*) ;;
18693 *) break;;
18694 esac
18695 done
18696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18697
18698 lt_cv_prog_compiler_c_o_RC=yes
18699
18700 # The else clause should only fire when bootstrapping the
18701 # libtool distribution, otherwise you forgot to ship ltmain.sh
18702 # with your package, and you will get complaints that there are
18703 # no rules to generate ltmain.sh.
18704 if test -f "$ltmain"; then
18705 # See if we are running on zsh, and set the options which allow our commands through
18706 # without removal of \ escapes.
18707 if test -n "${ZSH_VERSION+set}" ; then
18708 setopt NO_GLOB_SUBST
18709 fi
18710 # Now quote all the things that may contain metacharacters while being
18711 # careful not to overquote the AC_SUBSTed values. We take copies of the
18712 # variables and quote the copies for generation of the libtool script.
18713 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18714 SED SHELL STRIP \
18715 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18716 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18717 deplibs_check_method reload_flag reload_cmds need_locks \
18718 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18719 lt_cv_sys_global_symbol_to_c_name_address \
18720 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18721 old_postinstall_cmds old_postuninstall_cmds \
18722 compiler_RC \
18723 CC_RC \
18724 LD_RC \
18725 lt_prog_compiler_wl_RC \
18726 lt_prog_compiler_pic_RC \
18727 lt_prog_compiler_static_RC \
18728 lt_prog_compiler_no_builtin_flag_RC \
18729 export_dynamic_flag_spec_RC \
18730 thread_safe_flag_spec_RC \
18731 whole_archive_flag_spec_RC \
18732 enable_shared_with_static_runtimes_RC \
18733 old_archive_cmds_RC \
18734 old_archive_from_new_cmds_RC \
18735 predep_objects_RC \
18736 postdep_objects_RC \
18737 predeps_RC \
18738 postdeps_RC \
18739 compiler_lib_search_path_RC \
18740 archive_cmds_RC \
18741 archive_expsym_cmds_RC \
18742 postinstall_cmds_RC \
18743 postuninstall_cmds_RC \
18744 old_archive_from_expsyms_cmds_RC \
18745 allow_undefined_flag_RC \
18746 no_undefined_flag_RC \
18747 export_symbols_cmds_RC \
18748 hardcode_libdir_flag_spec_RC \
18749 hardcode_libdir_flag_spec_ld_RC \
18750 hardcode_libdir_separator_RC \
18751 hardcode_automatic_RC \
18752 module_cmds_RC \
18753 module_expsym_cmds_RC \
18754 lt_cv_prog_compiler_c_o_RC \
18755 exclude_expsyms_RC \
18756 include_expsyms_RC; do
18757
18758 case $var in
18759 old_archive_cmds_RC | \
18760 old_archive_from_new_cmds_RC | \
18761 archive_cmds_RC | \
18762 archive_expsym_cmds_RC | \
18763 module_cmds_RC | \
18764 module_expsym_cmds_RC | \
18765 old_archive_from_expsyms_cmds_RC | \
18766 export_symbols_cmds_RC | \
18767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18768 postinstall_cmds | postuninstall_cmds | \
18769 old_postinstall_cmds | old_postuninstall_cmds | \
18770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18771 # Double-quote double-evaled strings.
18772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18773 ;;
18774 *)
18775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18776 ;;
18777 esac
18778 done
18779
18780 case $lt_echo in
18781 *'\$0 --fallback-echo"')
18782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18783 ;;
18784 esac
18785
18786 cfgfile="$ofile"
18787
18788 cat <<__EOF__ >> "$cfgfile"
18789 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18790
18791 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18792
18793 # Shell to use when invoking shell scripts.
18794 SHELL=$lt_SHELL
18795
18796 # Whether or not to build shared libraries.
18797 build_libtool_libs=$enable_shared
18798
18799 # Whether or not to build static libraries.
18800 build_old_libs=$enable_static
18801
18802 # Whether or not to add -lc for building shared libraries.
18803 build_libtool_need_lc=$archive_cmds_need_lc_RC
18804
18805 # Whether or not to disallow shared libs when runtime libs are static
18806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18807
18808 # Whether or not to optimize for fast installation.
18809 fast_install=$enable_fast_install
18810
18811 # The host system.
18812 host_alias=$host_alias
18813 host=$host
18814 host_os=$host_os
18815
18816 # The build system.
18817 build_alias=$build_alias
18818 build=$build
18819 build_os=$build_os
18820
18821 # An echo program that does not interpret backslashes.
18822 echo=$lt_echo
18823
18824 # The archiver.
18825 AR=$lt_AR
18826 AR_FLAGS=$lt_AR_FLAGS
18827
18828 # A C compiler.
18829 LTCC=$lt_LTCC
18830
18831 # LTCC compiler flags.
18832 LTCFLAGS=$lt_LTCFLAGS
18833
18834 # A language-specific compiler.
18835 CC=$lt_compiler_RC
18836
18837 # Is the compiler the GNU C compiler?
18838 with_gcc=$GCC_RC
18839
18840 # An ERE matcher.
18841 EGREP=$lt_EGREP
18842
18843 # The linker used to build libraries.
18844 LD=$lt_LD_RC
18845
18846 # Whether we need hard or soft links.
18847 LN_S=$lt_LN_S
18848
18849 # A BSD-compatible nm program.
18850 NM=$lt_NM
18851
18852 # A symbol stripping program
18853 STRIP=$lt_STRIP
18854
18855 # Used to examine libraries when file_magic_cmd begins "file"
18856 MAGIC_CMD=$MAGIC_CMD
18857
18858 # Used on cygwin: DLL creation program.
18859 DLLTOOL="$DLLTOOL"
18860
18861 # Used on cygwin: object dumper.
18862 OBJDUMP="$OBJDUMP"
18863
18864 # Used on cygwin: assembler.
18865 AS="$AS"
18866
18867 # The name of the directory that contains temporary libtool files.
18868 objdir=$objdir
18869
18870 # How to create reloadable object files.
18871 reload_flag=$lt_reload_flag
18872 reload_cmds=$lt_reload_cmds
18873
18874 # How to pass a linker flag through the compiler.
18875 wl=$lt_lt_prog_compiler_wl_RC
18876
18877 # Object file suffix (normally "o").
18878 objext="$ac_objext"
18879
18880 # Old archive suffix (normally "a").
18881 libext="$libext"
18882
18883 # Shared library suffix (normally ".so").
18884 shrext_cmds='$shrext_cmds'
18885
18886 # Executable file suffix (normally "").
18887 exeext="$exeext"
18888
18889 # Additional compiler flags for building library objects.
18890 pic_flag=$lt_lt_prog_compiler_pic_RC
18891 pic_mode=$pic_mode
18892
18893 # What is the maximum length of a command?
18894 max_cmd_len=$lt_cv_sys_max_cmd_len
18895
18896 # Does compiler simultaneously support -c and -o options?
18897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18898
18899 # Must we lock files when doing compilation?
18900 need_locks=$lt_need_locks
18901
18902 # Do we need the lib prefix for modules?
18903 need_lib_prefix=$need_lib_prefix
18904
18905 # Do we need a version for libraries?
18906 need_version=$need_version
18907
18908 # Whether dlopen is supported.
18909 dlopen_support=$enable_dlopen
18910
18911 # Whether dlopen of programs is supported.
18912 dlopen_self=$enable_dlopen_self
18913
18914 # Whether dlopen of statically linked programs is supported.
18915 dlopen_self_static=$enable_dlopen_self_static
18916
18917 # Compiler flag to prevent dynamic linking.
18918 link_static_flag=$lt_lt_prog_compiler_static_RC
18919
18920 # Compiler flag to turn off builtin functions.
18921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18922
18923 # Compiler flag to allow reflexive dlopens.
18924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18925
18926 # Compiler flag to generate shared objects directly from archives.
18927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18928
18929 # Compiler flag to generate thread-safe objects.
18930 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18931
18932 # Library versioning type.
18933 version_type=$version_type
18934
18935 # Format of library name prefix.
18936 libname_spec=$lt_libname_spec
18937
18938 # List of archive names. First name is the real one, the rest are links.
18939 # The last name is the one that the linker finds with -lNAME.
18940 library_names_spec=$lt_library_names_spec
18941
18942 # The coded name of the library, if different from the real name.
18943 soname_spec=$lt_soname_spec
18944
18945 # Commands used to build and install an old-style archive.
18946 RANLIB=$lt_RANLIB
18947 old_archive_cmds=$lt_old_archive_cmds_RC
18948 old_postinstall_cmds=$lt_old_postinstall_cmds
18949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18950
18951 # Create an old-style archive from a shared archive.
18952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18953
18954 # Create a temporary old-style archive to link instead of a shared archive.
18955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18956
18957 # Commands used to build and install a shared archive.
18958 archive_cmds=$lt_archive_cmds_RC
18959 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18960 postinstall_cmds=$lt_postinstall_cmds
18961 postuninstall_cmds=$lt_postuninstall_cmds
18962
18963 # Commands used to build a loadable module (assumed same as above if empty)
18964 module_cmds=$lt_module_cmds_RC
18965 module_expsym_cmds=$lt_module_expsym_cmds_RC
18966
18967 # Commands to strip libraries.
18968 old_striplib=$lt_old_striplib
18969 striplib=$lt_striplib
18970
18971 # Dependencies to place before the objects being linked to create a
18972 # shared library.
18973 predep_objects=$lt_predep_objects_RC
18974
18975 # Dependencies to place after the objects being linked to create a
18976 # shared library.
18977 postdep_objects=$lt_postdep_objects_RC
18978
18979 # Dependencies to place before the objects being linked to create a
18980 # shared library.
18981 predeps=$lt_predeps_RC
18982
18983 # Dependencies to place after the objects being linked to create a
18984 # shared library.
18985 postdeps=$lt_postdeps_RC
18986
18987 # The library search path used internally by the compiler when linking
18988 # a shared library.
18989 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18990
18991 # Method to check whether dependent libraries are shared objects.
18992 deplibs_check_method=$lt_deplibs_check_method
18993
18994 # Command to use when deplibs_check_method == file_magic.
18995 file_magic_cmd=$lt_file_magic_cmd
18996
18997 # Flag that allows shared libraries with undefined symbols to be built.
18998 allow_undefined_flag=$lt_allow_undefined_flag_RC
18999
19000 # Flag that forces no undefined symbols.
19001 no_undefined_flag=$lt_no_undefined_flag_RC
19002
19003 # Commands used to finish a libtool library installation in a directory.
19004 finish_cmds=$lt_finish_cmds
19005
19006 # Same as above, but a single script fragment to be evaled but not shown.
19007 finish_eval=$lt_finish_eval
19008
19009 # Take the output of nm and produce a listing of raw symbols and C names.
19010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19011
19012 # Transform the output of nm in a proper C declaration
19013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19014
19015 # Transform the output of nm in a C name address pair
19016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19017
19018 # This is the shared library runtime path variable.
19019 runpath_var=$runpath_var
19020
19021 # This is the shared library path variable.
19022 shlibpath_var=$shlibpath_var
19023
19024 # Is shlibpath searched before the hard-coded library search path?
19025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19026
19027 # How to hardcode a shared library path into an executable.
19028 hardcode_action=$hardcode_action_RC
19029
19030 # Whether we should hardcode library paths into libraries.
19031 hardcode_into_libs=$hardcode_into_libs
19032
19033 # Flag to hardcode \$libdir into a binary during linking.
19034 # This must work even if \$libdir does not exist.
19035 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19036
19037 # If ld is used when linking, flag to hardcode \$libdir into
19038 # a binary during linking. This must work even if \$libdir does
19039 # not exist.
19040 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19041
19042 # Whether we need a single -rpath flag with a separated argument.
19043 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19044
19045 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19046 # resulting binary.
19047 hardcode_direct=$hardcode_direct_RC
19048
19049 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19050 # resulting binary.
19051 hardcode_minus_L=$hardcode_minus_L_RC
19052
19053 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19054 # the resulting binary.
19055 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19056
19057 # Set to yes if building a shared library automatically hardcodes DIR into the library
19058 # and all subsequent libraries and executables linked against it.
19059 hardcode_automatic=$hardcode_automatic_RC
19060
19061 # Variables whose values should be saved in libtool wrapper scripts and
19062 # restored at relink time.
19063 variables_saved_for_relink="$variables_saved_for_relink"
19064
19065 # Whether libtool must link a program against all its dependency libraries.
19066 link_all_deplibs=$link_all_deplibs_RC
19067
19068 # Compile-time system search path for libraries
19069 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19070
19071 # Run-time system search path for libraries
19072 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19073
19074 # Fix the shell variable \$srcfile for the compiler.
19075 fix_srcfile_path="$fix_srcfile_path_RC"
19076
19077 # Set to yes if exported symbols are required.
19078 always_export_symbols=$always_export_symbols_RC
19079
19080 # The commands to list exported symbols.
19081 export_symbols_cmds=$lt_export_symbols_cmds_RC
19082
19083 # The commands to extract the exported symbol list from a shared archive.
19084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19085
19086 # Symbols that should not be listed in the preloaded symbols.
19087 exclude_expsyms=$lt_exclude_expsyms_RC
19088
19089 # Symbols that must always be exported.
19090 include_expsyms=$lt_include_expsyms_RC
19091
19092 # ### END LIBTOOL TAG CONFIG: $tagname
19093
19094 __EOF__
19095
19096
19097 else
19098 # If there is no Makefile yet, we rely on a make rule to execute
19099 # `config.status --recheck' to rerun these tests and create the
19100 # libtool script then.
19101 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19102 if test -f "$ltmain_in"; then
19103 test -f Makefile && make "$ltmain"
19104 fi
19105 fi
19106
19107
19108 ac_ext=c
19109 ac_cpp='$CPP $CPPFLAGS'
19110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19113
19114 CC="$lt_save_CC"
19115
19116 ;;
19117
19118 *)
19119 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19120 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19121 { (exit 1); exit 1; }; }
19122 ;;
19123 esac
19124
19125 # Append the new tag name to the list of available tags.
19126 if test -n "$tagname" ; then
19127 available_tags="$available_tags $tagname"
19128 fi
19129 fi
19130 done
19131 IFS="$lt_save_ifs"
19132
19133 # Now substitute the updated list of available tags.
19134 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19135 mv "${ofile}T" "$ofile"
19136 chmod +x "$ofile"
19137 else
19138 rm -f "${ofile}T"
19139 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19140 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19141 { (exit 1); exit 1; }; }
19142 fi
19143 fi
19144
19145
19146
19147 # This can be used to rebuild libtool when needed
19148 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19149
19150 # Always use our own libtool.
19151 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19152
19153 # Prevent multiple expansion
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174 ac_ext=c
19175 ac_cpp='$CPP $CPPFLAGS'
19176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19179 if test -n "$ac_tool_prefix"; then
19180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19184 if test "${ac_cv_prog_CC+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187 if test -n "$CC"; then
19188 ac_cv_prog_CC="$CC" # Let the user override the test.
19189 else
19190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19191 for as_dir in $PATH
19192 do
19193 IFS=$as_save_IFS
19194 test -z "$as_dir" && as_dir=.
19195 for ac_exec_ext in '' $ac_executable_extensions; do
19196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19199 break 2
19200 fi
19201 done
19202 done
19203 IFS=$as_save_IFS
19204
19205 fi
19206 fi
19207 CC=$ac_cv_prog_CC
19208 if test -n "$CC"; then
19209 { echo "$as_me:$LINENO: result: $CC" >&5
19210 echo "${ECHO_T}$CC" >&6; }
19211 else
19212 { echo "$as_me:$LINENO: result: no" >&5
19213 echo "${ECHO_T}no" >&6; }
19214 fi
19215
19216
19217 fi
19218 if test -z "$ac_cv_prog_CC"; then
19219 ac_ct_CC=$CC
19220 # Extract the first word of "gcc", so it can be a program name with args.
19221 set dummy gcc; ac_word=$2
19222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227 if test -n "$ac_ct_CC"; then
19228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19229 else
19230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19231 for as_dir in $PATH
19232 do
19233 IFS=$as_save_IFS
19234 test -z "$as_dir" && as_dir=.
19235 for ac_exec_ext in '' $ac_executable_extensions; do
19236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19237 ac_cv_prog_ac_ct_CC="gcc"
19238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19239 break 2
19240 fi
19241 done
19242 done
19243 IFS=$as_save_IFS
19244
19245 fi
19246 fi
19247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19248 if test -n "$ac_ct_CC"; then
19249 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19250 echo "${ECHO_T}$ac_ct_CC" >&6; }
19251 else
19252 { echo "$as_me:$LINENO: result: no" >&5
19253 echo "${ECHO_T}no" >&6; }
19254 fi
19255
19256 if test "x$ac_ct_CC" = x; then
19257 CC=""
19258 else
19259 case $cross_compiling:$ac_tool_warned in
19260 yes:)
19261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19262 whose name does not start with the host triplet. If you think this
19263 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19265 whose name does not start with the host triplet. If you think this
19266 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19267 ac_tool_warned=yes ;;
19268 esac
19269 CC=$ac_ct_CC
19270 fi
19271 else
19272 CC="$ac_cv_prog_CC"
19273 fi
19274
19275 if test -z "$CC"; then
19276 if test -n "$ac_tool_prefix"; then
19277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19278 set dummy ${ac_tool_prefix}cc; ac_word=$2
19279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19281 if test "${ac_cv_prog_CC+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284 if test -n "$CC"; then
19285 ac_cv_prog_CC="$CC" # Let the user override the test.
19286 else
19287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19288 for as_dir in $PATH
19289 do
19290 IFS=$as_save_IFS
19291 test -z "$as_dir" && as_dir=.
19292 for ac_exec_ext in '' $ac_executable_extensions; do
19293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19294 ac_cv_prog_CC="${ac_tool_prefix}cc"
19295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19296 break 2
19297 fi
19298 done
19299 done
19300 IFS=$as_save_IFS
19301
19302 fi
19303 fi
19304 CC=$ac_cv_prog_CC
19305 if test -n "$CC"; then
19306 { echo "$as_me:$LINENO: result: $CC" >&5
19307 echo "${ECHO_T}$CC" >&6; }
19308 else
19309 { echo "$as_me:$LINENO: result: no" >&5
19310 echo "${ECHO_T}no" >&6; }
19311 fi
19312
19313
19314 fi
19315 fi
19316 if test -z "$CC"; then
19317 # Extract the first word of "cc", so it can be a program name with args.
19318 set dummy cc; ac_word=$2
19319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19321 if test "${ac_cv_prog_CC+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324 if test -n "$CC"; then
19325 ac_cv_prog_CC="$CC" # Let the user override the test.
19326 else
19327 ac_prog_rejected=no
19328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19329 for as_dir in $PATH
19330 do
19331 IFS=$as_save_IFS
19332 test -z "$as_dir" && as_dir=.
19333 for ac_exec_ext in '' $ac_executable_extensions; do
19334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19335 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19336 ac_prog_rejected=yes
19337 continue
19338 fi
19339 ac_cv_prog_CC="cc"
19340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19341 break 2
19342 fi
19343 done
19344 done
19345 IFS=$as_save_IFS
19346
19347 if test $ac_prog_rejected = yes; then
19348 # We found a bogon in the path, so make sure we never use it.
19349 set dummy $ac_cv_prog_CC
19350 shift
19351 if test $# != 0; then
19352 # We chose a different compiler from the bogus one.
19353 # However, it has the same basename, so the bogon will be chosen
19354 # first if we set CC to just the basename; use the full file name.
19355 shift
19356 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19357 fi
19358 fi
19359 fi
19360 fi
19361 CC=$ac_cv_prog_CC
19362 if test -n "$CC"; then
19363 { echo "$as_me:$LINENO: result: $CC" >&5
19364 echo "${ECHO_T}$CC" >&6; }
19365 else
19366 { echo "$as_me:$LINENO: result: no" >&5
19367 echo "${ECHO_T}no" >&6; }
19368 fi
19369
19370
19371 fi
19372 if test -z "$CC"; then
19373 if test -n "$ac_tool_prefix"; then
19374 for ac_prog in cl.exe
19375 do
19376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19380 if test "${ac_cv_prog_CC+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383 if test -n "$CC"; then
19384 ac_cv_prog_CC="$CC" # Let the user override the test.
19385 else
19386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19387 for as_dir in $PATH
19388 do
19389 IFS=$as_save_IFS
19390 test -z "$as_dir" && as_dir=.
19391 for ac_exec_ext in '' $ac_executable_extensions; do
19392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19395 break 2
19396 fi
19397 done
19398 done
19399 IFS=$as_save_IFS
19400
19401 fi
19402 fi
19403 CC=$ac_cv_prog_CC
19404 if test -n "$CC"; then
19405 { echo "$as_me:$LINENO: result: $CC" >&5
19406 echo "${ECHO_T}$CC" >&6; }
19407 else
19408 { echo "$as_me:$LINENO: result: no" >&5
19409 echo "${ECHO_T}no" >&6; }
19410 fi
19411
19412
19413 test -n "$CC" && break
19414 done
19415 fi
19416 if test -z "$CC"; then
19417 ac_ct_CC=$CC
19418 for ac_prog in cl.exe
19419 do
19420 # Extract the first word of "$ac_prog", so it can be a program name with args.
19421 set dummy $ac_prog; ac_word=$2
19422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427 if test -n "$ac_ct_CC"; then
19428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19429 else
19430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19431 for as_dir in $PATH
19432 do
19433 IFS=$as_save_IFS
19434 test -z "$as_dir" && as_dir=.
19435 for ac_exec_ext in '' $ac_executable_extensions; do
19436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19437 ac_cv_prog_ac_ct_CC="$ac_prog"
19438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19439 break 2
19440 fi
19441 done
19442 done
19443 IFS=$as_save_IFS
19444
19445 fi
19446 fi
19447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19448 if test -n "$ac_ct_CC"; then
19449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19450 echo "${ECHO_T}$ac_ct_CC" >&6; }
19451 else
19452 { echo "$as_me:$LINENO: result: no" >&5
19453 echo "${ECHO_T}no" >&6; }
19454 fi
19455
19456
19457 test -n "$ac_ct_CC" && break
19458 done
19459
19460 if test "x$ac_ct_CC" = x; then
19461 CC=""
19462 else
19463 case $cross_compiling:$ac_tool_warned in
19464 yes:)
19465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19466 whose name does not start with the host triplet. If you think this
19467 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19469 whose name does not start with the host triplet. If you think this
19470 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19471 ac_tool_warned=yes ;;
19472 esac
19473 CC=$ac_ct_CC
19474 fi
19475 fi
19476
19477 fi
19478
19479
19480 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19481 See \`config.log' for more details." >&5
19482 echo "$as_me: error: no acceptable C compiler found in \$PATH
19483 See \`config.log' for more details." >&2;}
19484 { (exit 1); exit 1; }; }
19485
19486 # Provide some information about the compiler.
19487 echo "$as_me:$LINENO: checking for C compiler version" >&5
19488 ac_compiler=`set X $ac_compile; echo $2`
19489 { (ac_try="$ac_compiler --version >&5"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_compiler --version >&5") 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }
19499 { (ac_try="$ac_compiler -v >&5"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_compiler -v >&5") 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }
19509 { (ac_try="$ac_compiler -V >&5"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_compiler -V >&5") 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }
19519
19520 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19521 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19522 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531
19532 int
19533 main ()
19534 {
19535 #ifndef __GNUC__
19536 choke me
19537 #endif
19538
19539 ;
19540 return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (ac_try="$ac_compile"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_compile") 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } && {
19557 test -z "$ac_c_werror_flag" ||
19558 test ! -s conftest.err
19559 } && test -s conftest.$ac_objext; then
19560 ac_compiler_gnu=yes
19561 else
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565 ac_compiler_gnu=no
19566 fi
19567
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19570
19571 fi
19572 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19573 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19574 GCC=`test $ac_compiler_gnu = yes && echo yes`
19575 ac_test_CFLAGS=${CFLAGS+set}
19576 ac_save_CFLAGS=$CFLAGS
19577 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19579 if test "${ac_cv_prog_cc_g+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582 ac_save_c_werror_flag=$ac_c_werror_flag
19583 ac_c_werror_flag=yes
19584 ac_cv_prog_cc_g=no
19585 CFLAGS="-g"
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592
19593 int
19594 main ()
19595 {
19596
19597 ;
19598 return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_cv_prog_cc_g=yes
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 CFLAGS=""
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630
19631 int
19632 main ()
19633 {
19634
19635 ;
19636 return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext
19640 if { (ac_try="$ac_compile"
19641 case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_compile") 2>conftest.er1
19647 ac_status=$?
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } && {
19653 test -z "$ac_c_werror_flag" ||
19654 test ! -s conftest.err
19655 } && test -s conftest.$ac_objext; then
19656 :
19657 else
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ac_c_werror_flag=$ac_save_c_werror_flag
19662 CFLAGS="-g"
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669
19670 int
19671 main ()
19672 {
19673
19674 ;
19675 return 0;
19676 }
19677 _ACEOF
19678 rm -f conftest.$ac_objext
19679 if { (ac_try="$ac_compile"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_compile") 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest.$ac_objext; then
19695 ac_cv_prog_cc_g=yes
19696 else
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700
19701 fi
19702
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704 fi
19705
19706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707 fi
19708
19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 ac_c_werror_flag=$ac_save_c_werror_flag
19711 fi
19712 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19714 if test "$ac_test_CFLAGS" = set; then
19715 CFLAGS=$ac_save_CFLAGS
19716 elif test $ac_cv_prog_cc_g = yes; then
19717 if test "$GCC" = yes; then
19718 CFLAGS="-g -O2"
19719 else
19720 CFLAGS="-g"
19721 fi
19722 else
19723 if test "$GCC" = yes; then
19724 CFLAGS="-O2"
19725 else
19726 CFLAGS=
19727 fi
19728 fi
19729 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19730 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19731 if test "${ac_cv_prog_cc_c89+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734 ac_cv_prog_cc_c89=no
19735 ac_save_CC=$CC
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 #include <stdarg.h>
19743 #include <stdio.h>
19744 #include <sys/types.h>
19745 #include <sys/stat.h>
19746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19747 struct buf { int x; };
19748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19749 static char *e (p, i)
19750 char **p;
19751 int i;
19752 {
19753 return p[i];
19754 }
19755 static char *f (char * (*g) (char **, int), char **p, ...)
19756 {
19757 char *s;
19758 va_list v;
19759 va_start (v,p);
19760 s = g (p, va_arg (v,int));
19761 va_end (v);
19762 return s;
19763 }
19764
19765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19766 function prototypes and stuff, but not '\xHH' hex character constants.
19767 These don't provoke an error unfortunately, instead are silently treated
19768 as 'x'. The following induces an error, until -std is added to get
19769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19770 array size at least. It's necessary to write '\x00'==0 to get something
19771 that's true only with -std. */
19772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19773
19774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19775 inside strings and character constants. */
19776 #define FOO(x) 'x'
19777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19778
19779 int test (int i, double x);
19780 struct s1 {int (*f) (int a);};
19781 struct s2 {int (*f) (double a);};
19782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19783 int argc;
19784 char **argv;
19785 int
19786 main ()
19787 {
19788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19789 ;
19790 return 0;
19791 }
19792 _ACEOF
19793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19795 do
19796 CC="$ac_save_CC $ac_arg"
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_compile") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } && {
19811 test -z "$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19813 } && test -s conftest.$ac_objext; then
19814 ac_cv_prog_cc_c89=$ac_arg
19815 else
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819
19820 fi
19821
19822 rm -f core conftest.err conftest.$ac_objext
19823 test "x$ac_cv_prog_cc_c89" != "xno" && break
19824 done
19825 rm -f conftest.$ac_ext
19826 CC=$ac_save_CC
19827
19828 fi
19829 # AC_CACHE_VAL
19830 case "x$ac_cv_prog_cc_c89" in
19831 x)
19832 { echo "$as_me:$LINENO: result: none needed" >&5
19833 echo "${ECHO_T}none needed" >&6; } ;;
19834 xno)
19835 { echo "$as_me:$LINENO: result: unsupported" >&5
19836 echo "${ECHO_T}unsupported" >&6; } ;;
19837 *)
19838 CC="$CC $ac_cv_prog_cc_c89"
19839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19840 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19841 esac
19842
19843
19844 ac_ext=c
19845 ac_cpp='$CPP $CPPFLAGS'
19846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849
19850 depcc="$CC" am_compiler_list=
19851
19852 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19853 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19854 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19858 # We make a subdir and do the tests there. Otherwise we can end up
19859 # making bogus files that we don't know about and never remove. For
19860 # instance it was reported that on HP-UX the gcc test will end up
19861 # making a dummy file named `D' -- because `-MD' means `put the output
19862 # in D'.
19863 mkdir conftest.dir
19864 # Copy depcomp to subdir because otherwise we won't find it if we're
19865 # using a relative directory.
19866 cp "$am_depcomp" conftest.dir
19867 cd conftest.dir
19868 # We will build objects and dependencies in a subdirectory because
19869 # it helps to detect inapplicable dependency modes. For instance
19870 # both Tru64's cc and ICC support -MD to output dependencies as a
19871 # side effect of compilation, but ICC will put the dependencies in
19872 # the current directory while Tru64 will put them in the object
19873 # directory.
19874 mkdir sub
19875
19876 am_cv_CC_dependencies_compiler_type=none
19877 if test "$am_compiler_list" = ""; then
19878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19879 fi
19880 for depmode in $am_compiler_list; do
19881 # Setup a source with many dependencies, because some compilers
19882 # like to wrap large dependency lists on column 80 (with \), and
19883 # we should not choose a depcomp mode which is confused by this.
19884 #
19885 # We need to recreate these files for each test, as the compiler may
19886 # overwrite some of them when testing with obscure command lines.
19887 # This happens at least with the AIX C compiler.
19888 : > sub/conftest.c
19889 for i in 1 2 3 4 5 6; do
19890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19892 # Solaris 8's {/usr,}/bin/sh.
19893 touch sub/conftst$i.h
19894 done
19895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19896
19897 case $depmode in
19898 nosideeffect)
19899 # after this tag, mechanisms are not by side-effect, so they'll
19900 # only be used when explicitly requested
19901 if test "x$enable_dependency_tracking" = xyes; then
19902 continue
19903 else
19904 break
19905 fi
19906 ;;
19907 none) break ;;
19908 esac
19909 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19910 # mode. It turns out that the SunPro C++ compiler does not properly
19911 # handle `-M -o', and we need to detect this.
19912 if depmode=$depmode \
19913 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19915 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19916 >/dev/null 2>conftest.err &&
19917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19918 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19920 # icc doesn't choke on unknown options, it will just issue warnings
19921 # or remarks (even with -Werror). So we grep stderr for any message
19922 # that says an option was ignored or not supported.
19923 # When given -MP, icc 7.0 and 7.1 complain thusly:
19924 # icc: Command line warning: ignoring option '-M'; no argument required
19925 # The diagnosis changed in icc 8.0:
19926 # icc: Command line remark: option '-MP' not supported
19927 if (grep 'ignoring option' conftest.err ||
19928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19929 am_cv_CC_dependencies_compiler_type=$depmode
19930 break
19931 fi
19932 fi
19933 done
19934
19935 cd ..
19936 rm -rf conftest.dir
19937 else
19938 am_cv_CC_dependencies_compiler_type=none
19939 fi
19940
19941 fi
19942 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19943 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19945
19946
19947
19948 if
19949 test "x$enable_dependency_tracking" != xno \
19950 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19951 am__fastdepCC_TRUE=
19952 am__fastdepCC_FALSE='#'
19953 else
19954 am__fastdepCC_TRUE='#'
19955 am__fastdepCC_FALSE=
19956 fi
19957
19958
19959
19960
19961
19962
19963
19964 # Check whether --with-xorg-module-dir was given.
19965 if test "${with_xorg_module_dir+set}" = set; then
19966 withval=$with_xorg_module_dir; moduledir="$withval"
19967 else
19968 moduledir="$libdir/xorg/modules"
19969 fi
19970
19971
19972 # Check whether --enable-dri was given.
19973 if test "${enable_dri+set}" = set; then
19974 enableval=$enable_dri; DRI="$enableval"
19975 else
19976 DRI=auto
19977 fi
19978
19979
19980 # Checks for extensions
19981
19982 SAVE_CFLAGS="$CFLAGS"
19983 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h. */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990
19991 #include "xorg-server.h"
19992 #if !defined RANDR
19993 #error RANDR not defined
19994 #endif
19995
19996 int
19997 main ()
19998 {
19999
20000 ;
20001 return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (ac_try="$ac_compile"
20006 case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_compile") 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } && {
20018 test -z "$ac_c_werror_flag" ||
20019 test ! -s conftest.err
20020 } && test -s conftest.$ac_objext; then
20021 _EXT_CHECK=yes
20022 else
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 _EXT_CHECK=no
20027 fi
20028
20029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030 CFLAGS="$SAVE_CFLAGS"
20031 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20032 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20033 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20034 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20035 if test "$_EXT_CHECK" != no; then
20036 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20037 fi
20038
20039
20040 SAVE_CFLAGS="$CFLAGS"
20041 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20042 cat >conftest.$ac_ext <<_ACEOF
20043 /* confdefs.h. */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048
20049 #include "xorg-server.h"
20050 #if !defined RENDER
20051 #error RENDER not defined
20052 #endif
20053
20054 int
20055 main ()
20056 {
20057
20058 ;
20059 return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (ac_try="$ac_compile"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_compile") 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest.$ac_objext; then
20079 _EXT_CHECK=yes
20080 else
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20083
20084 _EXT_CHECK=no
20085 fi
20086
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088 CFLAGS="$SAVE_CFLAGS"
20089 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20090 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20091 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20092 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20093 if test "$_EXT_CHECK" != no; then
20094 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20095 fi
20096
20097
20098 SAVE_CFLAGS="$CFLAGS"
20099 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20100 cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h. */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106
20107 #include "xorg-server.h"
20108 #if !defined XV
20109 #error XV not defined
20110 #endif
20111
20112 int
20113 main ()
20114 {
20115
20116 ;
20117 return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (ac_try="$ac_compile"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_compile") 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest.$ac_objext; then
20137 _EXT_CHECK=yes
20138 else
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 _EXT_CHECK=no
20143 fi
20144
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 CFLAGS="$SAVE_CFLAGS"
20147 { echo "$as_me:$LINENO: checking if XV is defined" >&5
20148 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20149 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20150 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20151 if test "$_EXT_CHECK" != no; then
20152 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20153 fi
20154
20155
20156 SAVE_CFLAGS="$CFLAGS"
20157 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164
20165 #include "xorg-server.h"
20166 #if !defined DPMSExtension
20167 #error DPMSExtension not defined
20168 #endif
20169
20170 int
20171 main ()
20172 {
20173
20174 ;
20175 return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (ac_try="$ac_compile"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_compile") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest.$ac_objext; then
20195 _EXT_CHECK=yes
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200 _EXT_CHECK=no
20201 fi
20202
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204 CFLAGS="$SAVE_CFLAGS"
20205 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20206 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20207 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20208 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20209 if test "$_EXT_CHECK" != no; then
20210 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20211 fi
20212
20213
20214 # Checks for pkg-config packages
20215
20216
20217 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20218 if test -n "$ac_tool_prefix"; then
20219 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20220 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20223 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226 case $PKG_CONFIG in
20227 [\\/]* | ?:[\\/]*)
20228 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20229 ;;
20230 *)
20231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20232 for as_dir in $PATH
20233 do
20234 IFS=$as_save_IFS
20235 test -z "$as_dir" && as_dir=.
20236 for ac_exec_ext in '' $ac_executable_extensions; do
20237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20238 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20240 break 2
20241 fi
20242 done
20243 done
20244 IFS=$as_save_IFS
20245
20246 ;;
20247 esac
20248 fi
20249 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20250 if test -n "$PKG_CONFIG"; then
20251 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20252 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20253 else
20254 { echo "$as_me:$LINENO: result: no" >&5
20255 echo "${ECHO_T}no" >&6; }
20256 fi
20257
20258
20259 fi
20260 if test -z "$ac_cv_path_PKG_CONFIG"; then
20261 ac_pt_PKG_CONFIG=$PKG_CONFIG
20262 # Extract the first word of "pkg-config", so it can be a program name with args.
20263 set dummy pkg-config; ac_word=$2
20264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20266 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269 case $ac_pt_PKG_CONFIG in
20270 [\\/]* | ?:[\\/]*)
20271 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20272 ;;
20273 *)
20274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20275 for as_dir in $PATH
20276 do
20277 IFS=$as_save_IFS
20278 test -z "$as_dir" && as_dir=.
20279 for ac_exec_ext in '' $ac_executable_extensions; do
20280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20281 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20283 break 2
20284 fi
20285 done
20286 done
20287 IFS=$as_save_IFS
20288
20289 ;;
20290 esac
20291 fi
20292 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20293 if test -n "$ac_pt_PKG_CONFIG"; then
20294 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20295 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20296 else
20297 { echo "$as_me:$LINENO: result: no" >&5
20298 echo "${ECHO_T}no" >&6; }
20299 fi
20300
20301 if test "x$ac_pt_PKG_CONFIG" = x; then
20302 PKG_CONFIG=""
20303 else
20304 case $cross_compiling:$ac_tool_warned in
20305 yes:)
20306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20307 whose name does not start with the host triplet. If you think this
20308 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20310 whose name does not start with the host triplet. If you think this
20311 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20312 ac_tool_warned=yes ;;
20313 esac
20314 PKG_CONFIG=$ac_pt_PKG_CONFIG
20315 fi
20316 else
20317 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20318 fi
20319
20320 fi
20321 if test -n "$PKG_CONFIG"; then
20322 _pkg_min_version=0.9.0
20323 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20324 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20325 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20326 { echo "$as_me:$LINENO: result: yes" >&5
20327 echo "${ECHO_T}yes" >&6; }
20328 else
20329 { echo "$as_me:$LINENO: result: no" >&5
20330 echo "${ECHO_T}no" >&6; }
20331 PKG_CONFIG=""
20332 fi
20333
20334 fi
20335
20336 pkg_failed=no
20337 { echo "$as_me:$LINENO: checking for XORG" >&5
20338 echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20339
20340 if test -n "$PKG_CONFIG"; then
20341 if test -n "$XORG_CFLAGS"; then
20342 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20343 else
20344 if test -n "$PKG_CONFIG" && \
20345 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20346 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; then
20350 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20351 else
20352 pkg_failed=yes
20353 fi
20354 fi
20355 else
20356 pkg_failed=untried
20357 fi
20358 if test -n "$PKG_CONFIG"; then
20359 if test -n "$XORG_LIBS"; then
20360 pkg_cv_XORG_LIBS="$XORG_LIBS"
20361 else
20362 if test -n "$PKG_CONFIG" && \
20363 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20364 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; then
20368 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20369 else
20370 pkg_failed=yes
20371 fi
20372 fi
20373 else
20374 pkg_failed=untried
20375 fi
20376
20377
20378
20379 if test $pkg_failed = yes; then
20380
20381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20382 _pkg_short_errors_supported=yes
20383 else
20384 _pkg_short_errors_supported=no
20385 fi
20386 if test $_pkg_short_errors_supported = yes; then
20387 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES"`
20388 else
20389 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES"`
20390 fi
20391 # Put the nasty error message in config.log where it belongs
20392 echo "$XORG_PKG_ERRORS" >&5
20393
20394 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
20395
20396 $XORG_PKG_ERRORS
20397
20398 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20399 installed software in a non-standard prefix.
20400
20401 Alternatively, you may set the environment variables XORG_CFLAGS
20402 and XORG_LIBS to avoid the need to call pkg-config.
20403 See the pkg-config man page for more details.
20404 " >&5
20405 echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
20406
20407 $XORG_PKG_ERRORS
20408
20409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20410 installed software in a non-standard prefix.
20411
20412 Alternatively, you may set the environment variables XORG_CFLAGS
20413 and XORG_LIBS to avoid the need to call pkg-config.
20414 See the pkg-config man page for more details.
20415 " >&2;}
20416 { (exit 1); exit 1; }; }
20417 elif test $pkg_failed = untried; then
20418 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20419 is in your PATH or set the PKG_CONFIG environment variable to the full
20420 path to pkg-config.
20421
20422 Alternatively, you may set the environment variables XORG_CFLAGS
20423 and XORG_LIBS to avoid the need to call pkg-config.
20424 See the pkg-config man page for more details.
20425
20426 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20427 See \`config.log' for more details." >&5
20428 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20429 is in your PATH or set the PKG_CONFIG environment variable to the full
20430 path to pkg-config.
20431
20432 Alternatively, you may set the environment variables XORG_CFLAGS
20433 and XORG_LIBS to avoid the need to call pkg-config.
20434 See the pkg-config man page for more details.
20435
20436 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20437 See \`config.log' for more details." >&2;}
20438 { (exit 1); exit 1; }; }
20439 else
20440 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20441 XORG_LIBS=$pkg_cv_XORG_LIBS
20442 { echo "$as_me:$LINENO: result: yes" >&5
20443 echo "${ECHO_T}yes" >&6; }
20444 :
20445 fi
20446 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20447
20448 # Checks for libraries.
20449
20450 # Checks for header files.
20451 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20453 if test "${ac_cv_header_stdc+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456 cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h. */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20462 #include <stdlib.h>
20463 #include <stdarg.h>
20464 #include <string.h>
20465 #include <float.h>
20466
20467 int
20468 main ()
20469 {
20470
20471 ;
20472 return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_cv_header_stdc=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_header_stdc=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501
20502 if test $ac_cv_header_stdc = yes; then
20503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 #include <string.h>
20511
20512 _ACEOF
20513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20514 $EGREP "memchr" >/dev/null 2>&1; then
20515 :
20516 else
20517 ac_cv_header_stdc=no
20518 fi
20519 rm -f conftest*
20520
20521 fi
20522
20523 if test $ac_cv_header_stdc = yes; then
20524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20525 cat >conftest.$ac_ext <<_ACEOF
20526 /* confdefs.h. */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20531 #include <stdlib.h>
20532
20533 _ACEOF
20534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20535 $EGREP "free" >/dev/null 2>&1; then
20536 :
20537 else
20538 ac_cv_header_stdc=no
20539 fi
20540 rm -f conftest*
20541
20542 fi
20543
20544 if test $ac_cv_header_stdc = yes; then
20545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20546 if test "$cross_compiling" = yes; then
20547 :
20548 else
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h. */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 #include <ctype.h>
20556 #include <stdlib.h>
20557 #if ((' ' & 0x0FF) == 0x020)
20558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20560 #else
20561 # define ISLOWER(c) \
20562 (('a' <= (c) && (c) <= 'i') \
20563 || ('j' <= (c) && (c) <= 'r') \
20564 || ('s' <= (c) && (c) <= 'z'))
20565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20566 #endif
20567
20568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20569 int
20570 main ()
20571 {
20572 int i;
20573 for (i = 0; i < 256; i++)
20574 if (XOR (islower (i), ISLOWER (i))
20575 || toupper (i) != TOUPPER (i))
20576 return 2;
20577 return 0;
20578 }
20579 _ACEOF
20580 rm -f conftest$ac_exeext
20581 if { (ac_try="$ac_link"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_link") 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20591 { (case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20594 esac
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_try") 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 :
20601 else
20602 echo "$as_me: program exited with status $ac_status" >&5
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606 ( exit $ac_status )
20607 ac_cv_header_stdc=no
20608 fi
20609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20610 fi
20611
20612
20613 fi
20614 fi
20615 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20616 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20617 if test $ac_cv_header_stdc = yes; then
20618
20619 cat >>confdefs.h <<\_ACEOF
20620 #define STDC_HEADERS 1
20621 _ACEOF
20622
20623 fi
20624
20625
20626 if test "$DRI" != no; then
20627 as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
20628 { echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
20629 echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6; }
20630 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633 test "$cross_compiling" = yes &&
20634 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20635 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20636 { (exit 1); exit 1; }; }
20637 if test -r "${sdkdir}/dri.h"; then
20638 eval "$as_ac_File=yes"
20639 else
20640 eval "$as_ac_File=no"
20641 fi
20642 fi
20643 ac_res=`eval echo '${'$as_ac_File'}'`
20644 { echo "$as_me:$LINENO: result: $ac_res" >&5
20645 echo "${ECHO_T}$ac_res" >&6; }
20646 if test `eval echo '${'$as_ac_File'}'` = yes; then
20647 have_dri_h="yes"
20648 else
20649 have_dri_h="no"
20650 fi
20651
20652 as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
20653 { echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
20654 echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6; }
20655 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658 test "$cross_compiling" = yes &&
20659 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20660 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20661 { (exit 1); exit 1; }; }
20662 if test -r "${sdkdir}/sarea.h"; then
20663 eval "$as_ac_File=yes"
20664 else
20665 eval "$as_ac_File=no"
20666 fi
20667 fi
20668 ac_res=`eval echo '${'$as_ac_File'}'`
20669 { echo "$as_me:$LINENO: result: $ac_res" >&5
20670 echo "${ECHO_T}$ac_res" >&6; }
20671 if test `eval echo '${'$as_ac_File'}'` = yes; then
20672 have_sarea_h="yes"
20673 else
20674 have_sarea_h="no"
20675 fi
20676
20677 as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
20678 { echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
20679 echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6; }
20680 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683 test "$cross_compiling" = yes &&
20684 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20685 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20686 { (exit 1); exit 1; }; }
20687 if test -r "${sdkdir}/dristruct.h"; then
20688 eval "$as_ac_File=yes"
20689 else
20690 eval "$as_ac_File=no"
20691 fi
20692 fi
20693 ac_res=`eval echo '${'$as_ac_File'}'`
20694 { echo "$as_me:$LINENO: result: $ac_res" >&5
20695 echo "${ECHO_T}$ac_res" >&6; }
20696 if test `eval echo '${'$as_ac_File'}'` = yes; then
20697 have_dristruct_h="yes"
20698 else
20699 have_dristruct_h="no"
20700 fi
20701
20702 fi
20703
20704 { echo "$as_me:$LINENO: checking whether to include DRI support" >&5
20705 echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; }
20706 if test x$DRI = xauto; then
20707 if test "$have_dri_h" = yes -a \
20708 "$have_sarea_h" = yes -a \
20709 "$have_dristruct_h" = yes; then
20710 DRI="yes"
20711 else
20712 DRI="no"
20713 fi
20714 fi
20715 { echo "$as_me:$LINENO: result: $DRI" >&5
20716 echo "${ECHO_T}$DRI" >&6; }
20717
20718
20719
20720 if test x$DRI = xyes; then
20721 DRI_TRUE=
20722 DRI_FALSE='#'
20723 else
20724 DRI_TRUE='#'
20725 DRI_FALSE=
20726 fi
20727
20728 if test "$DRI" = yes; then
20729
20730 pkg_failed=no
20731 { echo "$as_me:$LINENO: checking for DRI" >&5
20732 echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
20733
20734 if test -n "$PKG_CONFIG"; then
20735 if test -n "$DRI_CFLAGS"; then
20736 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
20737 else
20738 if test -n "$PKG_CONFIG" && \
20739 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
20740 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; then
20744 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
20745 else
20746 pkg_failed=yes
20747 fi
20748 fi
20749 else
20750 pkg_failed=untried
20751 fi
20752 if test -n "$PKG_CONFIG"; then
20753 if test -n "$DRI_LIBS"; then
20754 pkg_cv_DRI_LIBS="$DRI_LIBS"
20755 else
20756 if test -n "$PKG_CONFIG" && \
20757 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
20758 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; then
20762 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
20763 else
20764 pkg_failed=yes
20765 fi
20766 fi
20767 else
20768 pkg_failed=untried
20769 fi
20770
20771
20772
20773 if test $pkg_failed = yes; then
20774
20775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20776 _pkg_short_errors_supported=yes
20777 else
20778 _pkg_short_errors_supported=no
20779 fi
20780 if test $_pkg_short_errors_supported = yes; then
20781 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
20782 else
20783 DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
20784 fi
20785 # Put the nasty error message in config.log where it belongs
20786 echo "$DRI_PKG_ERRORS" >&5
20787
20788 { { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
20789
20790 $DRI_PKG_ERRORS
20791
20792 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20793 installed software in a non-standard prefix.
20794
20795 Alternatively, you may set the environment variables DRI_CFLAGS
20796 and DRI_LIBS to avoid the need to call pkg-config.
20797 See the pkg-config man page for more details.
20798 " >&5
20799 echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
20800
20801 $DRI_PKG_ERRORS
20802
20803 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20804 installed software in a non-standard prefix.
20805
20806 Alternatively, you may set the environment variables DRI_CFLAGS
20807 and DRI_LIBS to avoid the need to call pkg-config.
20808 See the pkg-config man page for more details.
20809 " >&2;}
20810 { (exit 1); exit 1; }; }
20811 elif test $pkg_failed = untried; then
20812 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20813 is in your PATH or set the PKG_CONFIG environment variable to the full
20814 path to pkg-config.
20815
20816 Alternatively, you may set the environment variables DRI_CFLAGS
20817 and DRI_LIBS to avoid the need to call pkg-config.
20818 See the pkg-config man page for more details.
20819
20820 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20821 See \`config.log' for more details." >&5
20822 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20823 is in your PATH or set the PKG_CONFIG environment variable to the full
20824 path to pkg-config.
20825
20826 Alternatively, you may set the environment variables DRI_CFLAGS
20827 and DRI_LIBS to avoid the need to call pkg-config.
20828 See the pkg-config man page for more details.
20829
20830 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20831 See \`config.log' for more details." >&2;}
20832 { (exit 1); exit 1; }; }
20833 else
20834 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
20835 DRI_LIBS=$pkg_cv_DRI_LIBS
20836 { echo "$as_me:$LINENO: result: yes" >&5
20837 echo "${ECHO_T}yes" >&6; }
20838 :
20839 fi
20840
20841 cat >>confdefs.h <<\_ACEOF
20842 #define XF86DRI 1
20843 _ACEOF
20844
20845
20846 cat >>confdefs.h <<\_ACEOF
20847 #define XF86DRI_DEVEL 1
20848 _ACEOF
20849
20850 fi
20851
20852
20853
20854
20855
20856 DRIVER_NAME=savage
20857
20858
20859
20860
20861
20862 if test x$APP_MAN_SUFFIX = x ; then
20863 APP_MAN_SUFFIX=1
20864 fi
20865 if test x$APP_MAN_DIR = x ; then
20866 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20867 fi
20868
20869 if test x$LIB_MAN_SUFFIX = x ; then
20870 LIB_MAN_SUFFIX=3
20871 fi
20872 if test x$LIB_MAN_DIR = x ; then
20873 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20874 fi
20875
20876 if test x$FILE_MAN_SUFFIX = x ; then
20877 case $host_os in
20878 solaris*) FILE_MAN_SUFFIX=4 ;;
20879 *) FILE_MAN_SUFFIX=5 ;;
20880 esac
20881 fi
20882 if test x$FILE_MAN_DIR = x ; then
20883 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20884 fi
20885
20886 if test x$MISC_MAN_SUFFIX = x ; then
20887 case $host_os in
20888 solaris*) MISC_MAN_SUFFIX=5 ;;
20889 *) MISC_MAN_SUFFIX=7 ;;
20890 esac
20891 fi
20892 if test x$MISC_MAN_DIR = x ; then
20893 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20894 fi
20895
20896 if test x$DRIVER_MAN_SUFFIX = x ; then
20897 case $host_os in
20898 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20899 *) DRIVER_MAN_SUFFIX=4 ;;
20900 esac
20901 fi
20902 if test x$DRIVER_MAN_DIR = x ; then
20903 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20904 fi
20905
20906 if test x$ADMIN_MAN_SUFFIX = x ; then
20907 case $host_os in
20908 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20909 *) ADMIN_MAN_SUFFIX=8 ;;
20910 esac
20911 fi
20912 if test x$ADMIN_MAN_DIR = x ; then
20913 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20914 fi
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932 # Check whether --with-release-version was given.
20933 if test "${with_release_version+set}" = set; then
20934 withval=$with_release_version; RELEASE_VERSION="$withval"
20935 else
20936 RELEASE_VERSION=""
20937 fi
20938
20939 if test "x$RELEASE_VERSION" != "x"; then
20940 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20941 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20942 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20943 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20944 fi
20945
20946 cat >>confdefs.h <<_ACEOF
20947 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20948 _ACEOF
20949
20950 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
20951 if test "x$PVM" = "x"; then
20952 PVM="0"
20953 fi
20954
20955 cat >>confdefs.h <<_ACEOF
20956 #define PACKAGE_VERSION_MINOR $PVM
20957 _ACEOF
20958
20959 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
20960 if test "x$PVP" = "x"; then
20961 PVP="0"
20962 fi
20963
20964 cat >>confdefs.h <<_ACEOF
20965 #define PACKAGE_VERSION_PATCHLEVEL $PVP
20966 _ACEOF
20967
20968
20969
20970 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20971
20972 cat >confcache <<\_ACEOF
20973 # This file is a shell script that caches the results of configure
20974 # tests run on this system so they can be shared between configure
20975 # scripts and configure runs, see configure's option --config-cache.
20976 # It is not useful on other systems. If it contains results you don't
20977 # want to keep, you may remove or edit it.
20978 #
20979 # config.status only pays attention to the cache file if you give it
20980 # the --recheck option to rerun configure.
20981 #
20982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20984 # following values.
20985
20986 _ACEOF
20987
20988 # The following way of writing the cache mishandles newlines in values,
20989 # but we know of no workaround that is simple, portable, and efficient.
20990 # So, we kill variables containing newlines.
20991 # Ultrix sh set writes to stderr and can't be redirected directly,
20992 # and sets the high bit in the cache file unless we assign to the vars.
20993 (
20994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20995 eval ac_val=\$$ac_var
20996 case $ac_val in #(
20997 *${as_nl}*)
20998 case $ac_var in #(
20999 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21000 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21001 esac
21002 case $ac_var in #(
21003 _ | IFS | as_nl) ;; #(
21004 *) $as_unset $ac_var ;;
21005 esac ;;
21006 esac
21007 done
21008
21009 (set) 2>&1 |
21010 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21011 *${as_nl}ac_space=\ *)
21012 # `set' does not quote correctly, so add quotes (double-quote
21013 # substitution turns \\\\ into \\, and sed turns \\ into \).
21014 sed -n \
21015 "s/'/'\\\\''/g;
21016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21017 ;; #(
21018 *)
21019 # `set' quotes correctly as required by POSIX, so do not add quotes.
21020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21021 ;;
21022 esac |
21023 sort
21024 ) |
21025 sed '
21026 /^ac_cv_env_/b end
21027 t clear
21028 :clear
21029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21030 t end
21031 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21032 :end' >>confcache
21033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21034 if test -w "$cache_file"; then
21035 test "x$cache_file" != "x/dev/null" &&
21036 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21037 echo "$as_me: updating cache $cache_file" >&6;}
21038 cat confcache >$cache_file
21039 else
21040 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21041 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21042 fi
21043 fi
21044 rm -f confcache
21045
21046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21047 # Let make expand exec_prefix.
21048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21049
21050 DEFS=-DHAVE_CONFIG_H
21051
21052 ac_libobjs=
21053 ac_ltlibobjs=
21054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21055 # 1. Remove the extension, and $U if already installed.
21056 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21057 ac_i=`echo "$ac_i" | sed "$ac_script"`
21058 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21059 # will be set to the directory where LIBOBJS objects are built.
21060 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21061 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21062 done
21063 LIBOBJS=$ac_libobjs
21064
21065 LTLIBOBJS=$ac_ltlibobjs
21066
21067
21068 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21069 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21070 Usually this means the macro was only invoked conditionally." >&5
21071 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21072 Usually this means the macro was only invoked conditionally." >&2;}
21073 { (exit 1); exit 1; }; }
21074 fi
21075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21076 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21077 Usually this means the macro was only invoked conditionally." >&5
21078 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21079 Usually this means the macro was only invoked conditionally." >&2;}
21080 { (exit 1); exit 1; }; }
21081 fi
21082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21083 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21084 Usually this means the macro was only invoked conditionally." >&5
21085 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21086 Usually this means the macro was only invoked conditionally." >&2;}
21087 { (exit 1); exit 1; }; }
21088 fi
21089 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21090 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21091 Usually this means the macro was only invoked conditionally." >&5
21092 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21093 Usually this means the macro was only invoked conditionally." >&2;}
21094 { (exit 1); exit 1; }; }
21095 fi
21096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21097 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21098 Usually this means the macro was only invoked conditionally." >&5
21099 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21100 Usually this means the macro was only invoked conditionally." >&2;}
21101 { (exit 1); exit 1; }; }
21102 fi
21103 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
21104 { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
21105 Usually this means the macro was only invoked conditionally." >&5
21106 echo "$as_me: error: conditional \"DRI\" was never defined.
21107 Usually this means the macro was only invoked conditionally." >&2;}
21108 { (exit 1); exit 1; }; }
21109 fi
21110
21111 : ${CONFIG_STATUS=./config.status}
21112 ac_clean_files_save=$ac_clean_files
21113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21114 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21115 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21116 cat >$CONFIG_STATUS <<_ACEOF
21117 #! $SHELL
21118 # Generated by $as_me.
21119 # Run this file to recreate the current configuration.
21120 # Compiler output produced by configure, useful for debugging
21121 # configure, is in config.log if it exists.
21122
21123 debug=false
21124 ac_cs_recheck=false
21125 ac_cs_silent=false
21126 SHELL=\${CONFIG_SHELL-$SHELL}
21127 _ACEOF
21128
21129 cat >>$CONFIG_STATUS <<\_ACEOF
21130 ## --------------------- ##
21131 ## M4sh Initialization. ##
21132 ## --------------------- ##
21133
21134 # Be more Bourne compatible
21135 DUALCASE=1; export DUALCASE # for MKS sh
21136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21137 emulate sh
21138 NULLCMD=:
21139 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21140 # is contrary to our usage. Disable this feature.
21141 alias -g '${1+"$@"}'='"$@"'
21142 setopt NO_GLOB_SUBST
21143 else
21144 case `(set -o) 2>/dev/null` in
21145 *posix*) set -o posix ;;
21146 esac
21147
21148 fi
21149
21150
21151
21152
21153 # PATH needs CR
21154 # Avoid depending upon Character Ranges.
21155 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21156 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21157 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21158 as_cr_digits='0123456789'
21159 as_cr_alnum=$as_cr_Letters$as_cr_digits
21160
21161 # The user is always right.
21162 if test "${PATH_SEPARATOR+set}" != set; then
21163 echo "#! /bin/sh" >conf$$.sh
21164 echo "exit 0" >>conf$$.sh
21165 chmod +x conf$$.sh
21166 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21167 PATH_SEPARATOR=';'
21168 else
21169 PATH_SEPARATOR=:
21170 fi
21171 rm -f conf$$.sh
21172 fi
21173
21174 # Support unset when possible.
21175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21176 as_unset=unset
21177 else
21178 as_unset=false
21179 fi
21180
21181
21182 # IFS
21183 # We need space, tab and new line, in precisely that order. Quoting is
21184 # there to prevent editors from complaining about space-tab.
21185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21186 # splitting by setting IFS to empty value.)
21187 as_nl='
21188 '
21189 IFS=" "" $as_nl"
21190
21191 # Find who we are. Look in the path if we contain no directory separator.
21192 case $0 in
21193 *[\\/]* ) as_myself=$0 ;;
21194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195 for as_dir in $PATH
21196 do
21197 IFS=$as_save_IFS
21198 test -z "$as_dir" && as_dir=.
21199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21200 done
21201 IFS=$as_save_IFS
21202
21203 ;;
21204 esac
21205 # We did not find ourselves, most probably we were run as `sh COMMAND'
21206 # in which case we are not to be found in the path.
21207 if test "x$as_myself" = x; then
21208 as_myself=$0
21209 fi
21210 if test ! -f "$as_myself"; then
21211 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21212 { (exit 1); exit 1; }
21213 fi
21214
21215 # Work around bugs in pre-3.0 UWIN ksh.
21216 for as_var in ENV MAIL MAILPATH
21217 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21218 done
21219 PS1='$ '
21220 PS2='> '
21221 PS4='+ '
21222
21223 # NLS nuisances.
21224 for as_var in \
21225 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21226 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21227 LC_TELEPHONE LC_TIME
21228 do
21229 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21230 eval $as_var=C; export $as_var
21231 else
21232 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21233 fi
21234 done
21235
21236 # Required to use basename.
21237 if expr a : '\(a\)' >/dev/null 2>&1 &&
21238 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21239 as_expr=expr
21240 else
21241 as_expr=false
21242 fi
21243
21244 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21245 as_basename=basename
21246 else
21247 as_basename=false
21248 fi
21249
21250
21251 # Name of the executable.
21252 as_me=`$as_basename -- "$0" ||
21253 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21254 X"$0" : 'X\(//\)$' \| \
21255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21256 echo X/"$0" |
21257 sed '/^.*\/\([^/][^/]*\)\/*$/{
21258 s//\1/
21259 q
21260 }
21261 /^X\/\(\/\/\)$/{
21262 s//\1/
21263 q
21264 }
21265 /^X\/\(\/\).*/{
21266 s//\1/
21267 q
21268 }
21269 s/.*/./; q'`
21270
21271 # CDPATH.
21272 $as_unset CDPATH
21273
21274
21275
21276 as_lineno_1=$LINENO
21277 as_lineno_2=$LINENO
21278 test "x$as_lineno_1" != "x$as_lineno_2" &&
21279 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21280
21281 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21282 # uniformly replaced by the line number. The first 'sed' inserts a
21283 # line-number line after each line using $LINENO; the second 'sed'
21284 # does the real work. The second script uses 'N' to pair each
21285 # line-number line with the line containing $LINENO, and appends
21286 # trailing '-' during substitution so that $LINENO is not a special
21287 # case at line end.
21288 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21289 # scripts with optimization help from Paolo Bonzini. Blame Lee
21290 # E. McMahon (1931-1989) for sed's syntax. :-)
21291 sed -n '
21292 p
21293 /[$]LINENO/=
21294 ' <$as_myself |
21295 sed '
21296 s/[$]LINENO.*/&-/
21297 t lineno
21298 b
21299 :lineno
21300 N
21301 :loop
21302 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21303 t loop
21304 s/-\n.*//
21305 ' >$as_me.lineno &&
21306 chmod +x "$as_me.lineno" ||
21307 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21308 { (exit 1); exit 1; }; }
21309
21310 # Don't try to exec as it changes $[0], causing all sort of problems
21311 # (the dirname of $[0] is not the place where we might find the
21312 # original and so on. Autoconf is especially sensitive to this).
21313 . "./$as_me.lineno"
21314 # Exit status is that of the last command.
21315 exit
21316 }
21317
21318
21319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21320 as_dirname=dirname
21321 else
21322 as_dirname=false
21323 fi
21324
21325 ECHO_C= ECHO_N= ECHO_T=
21326 case `echo -n x` in
21327 -n*)
21328 case `echo 'x\c'` in
21329 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21330 *) ECHO_C='\c';;
21331 esac;;
21332 *)
21333 ECHO_N='-n';;
21334 esac
21335
21336 if expr a : '\(a\)' >/dev/null 2>&1 &&
21337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21338 as_expr=expr
21339 else
21340 as_expr=false
21341 fi
21342
21343 rm -f conf$$ conf$$.exe conf$$.file
21344 if test -d conf$$.dir; then
21345 rm -f conf$$.dir/conf$$.file
21346 else
21347 rm -f conf$$.dir
21348 mkdir conf$$.dir
21349 fi
21350 echo >conf$$.file
21351 if ln -s conf$$.file conf$$ 2>/dev/null; then
21352 as_ln_s='ln -s'
21353 # ... but there are two gotchas:
21354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21356 # In both cases, we have to default to `cp -p'.
21357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21358 as_ln_s='cp -p'
21359 elif ln conf$$.file conf$$ 2>/dev/null; then
21360 as_ln_s=ln
21361 else
21362 as_ln_s='cp -p'
21363 fi
21364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21365 rmdir conf$$.dir 2>/dev/null
21366
21367 if mkdir -p . 2>/dev/null; then
21368 as_mkdir_p=:
21369 else
21370 test -d ./-p && rmdir ./-p
21371 as_mkdir_p=false
21372 fi
21373
21374 if test -x / >/dev/null 2>&1; then
21375 as_test_x='test -x'
21376 else
21377 if ls -dL / >/dev/null 2>&1; then
21378 as_ls_L_option=L
21379 else
21380 as_ls_L_option=
21381 fi
21382 as_test_x='
21383 eval sh -c '\''
21384 if test -d "$1"; then
21385 test -d "$1/.";
21386 else
21387 case $1 in
21388 -*)set "./$1";;
21389 esac;
21390 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21391 ???[sx]*):;;*)false;;esac;fi
21392 '\'' sh
21393 '
21394 fi
21395 as_executable_p=$as_test_x
21396
21397 # Sed expression to map a string onto a valid CPP name.
21398 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21399
21400 # Sed expression to map a string onto a valid variable name.
21401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21402
21403
21404 exec 6>&1
21405
21406 # Save the log message, to keep $[0] and so on meaningful, and to
21407 # report actual input values of CONFIG_FILES etc. instead of their
21408 # values after options handling.
21409 ac_log="
21410 This file was extended by xf86-video-savage $as_me 2.1.3, which was
21411 generated by GNU Autoconf 2.61. Invocation command line was
21412
21413 CONFIG_FILES = $CONFIG_FILES
21414 CONFIG_HEADERS = $CONFIG_HEADERS
21415 CONFIG_LINKS = $CONFIG_LINKS
21416 CONFIG_COMMANDS = $CONFIG_COMMANDS
21417 $ $0 $@
21418
21419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21420 "
21421
21422 _ACEOF
21423
21424 cat >>$CONFIG_STATUS <<_ACEOF
21425 # Files that config.status was made for.
21426 config_files="$ac_config_files"
21427 config_headers="$ac_config_headers"
21428 config_commands="$ac_config_commands"
21429
21430 _ACEOF
21431
21432 cat >>$CONFIG_STATUS <<\_ACEOF
21433 ac_cs_usage="\
21434 \`$as_me' instantiates files from templates according to the
21435 current configuration.
21436
21437 Usage: $0 [OPTIONS] [FILE]...
21438
21439 -h, --help print this help, then exit
21440 -V, --version print version number and configuration settings, then exit
21441 -q, --quiet do not print progress messages
21442 -d, --debug don't remove temporary files
21443 --recheck update $as_me by reconfiguring in the same conditions
21444 --file=FILE[:TEMPLATE]
21445 instantiate the configuration file FILE
21446 --header=FILE[:TEMPLATE]
21447 instantiate the configuration header FILE
21448
21449 Configuration files:
21450 $config_files
21451
21452 Configuration headers:
21453 $config_headers
21454
21455 Configuration commands:
21456 $config_commands
21457
21458 Report bugs to <bug-autoconf (at] gnu.org>."
21459
21460 _ACEOF
21461 cat >>$CONFIG_STATUS <<_ACEOF
21462 ac_cs_version="\\
21463 xf86-video-savage config.status 2.1.3
21464 configured by $0, generated by GNU Autoconf 2.61,
21465 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21466
21467 Copyright (C) 2006 Free Software Foundation, Inc.
21468 This config.status script is free software; the Free Software Foundation
21469 gives unlimited permission to copy, distribute and modify it."
21470
21471 ac_pwd='$ac_pwd'
21472 srcdir='$srcdir'
21473 INSTALL='$INSTALL'
21474 _ACEOF
21475
21476 cat >>$CONFIG_STATUS <<\_ACEOF
21477 # If no file are specified by the user, then we need to provide default
21478 # value. By we need to know if files were specified by the user.
21479 ac_need_defaults=:
21480 while test $# != 0
21481 do
21482 case $1 in
21483 --*=*)
21484 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21485 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21486 ac_shift=:
21487 ;;
21488 *)
21489 ac_option=$1
21490 ac_optarg=$2
21491 ac_shift=shift
21492 ;;
21493 esac
21494
21495 case $ac_option in
21496 # Handling of the options.
21497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21498 ac_cs_recheck=: ;;
21499 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21500 echo "$ac_cs_version"; exit ;;
21501 --debug | --debu | --deb | --de | --d | -d )
21502 debug=: ;;
21503 --file | --fil | --fi | --f )
21504 $ac_shift
21505 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21506 ac_need_defaults=false;;
21507 --header | --heade | --head | --hea )
21508 $ac_shift
21509 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21510 ac_need_defaults=false;;
21511 --he | --h)
21512 # Conflict between --help and --header
21513 { echo "$as_me: error: ambiguous option: $1
21514 Try \`$0 --help' for more information." >&2
21515 { (exit 1); exit 1; }; };;
21516 --help | --hel | -h )
21517 echo "$ac_cs_usage"; exit ;;
21518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21520 ac_cs_silent=: ;;
21521
21522 # This is an error.
21523 -*) { echo "$as_me: error: unrecognized option: $1
21524 Try \`$0 --help' for more information." >&2
21525 { (exit 1); exit 1; }; } ;;
21526
21527 *) ac_config_targets="$ac_config_targets $1"
21528 ac_need_defaults=false ;;
21529
21530 esac
21531 shift
21532 done
21533
21534 ac_configure_extra_args=
21535
21536 if $ac_cs_silent; then
21537 exec 6>/dev/null
21538 ac_configure_extra_args="$ac_configure_extra_args --silent"
21539 fi
21540
21541 _ACEOF
21542 cat >>$CONFIG_STATUS <<_ACEOF
21543 if \$ac_cs_recheck; then
21544 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21545 CONFIG_SHELL=$SHELL
21546 export CONFIG_SHELL
21547 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21548 fi
21549
21550 _ACEOF
21551 cat >>$CONFIG_STATUS <<\_ACEOF
21552 exec 5>>config.log
21553 {
21554 echo
21555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21556 ## Running $as_me. ##
21557 _ASBOX
21558 echo "$ac_log"
21559 } >&5
21560
21561 _ACEOF
21562 cat >>$CONFIG_STATUS <<_ACEOF
21563 #
21564 # INIT-COMMANDS
21565 #
21566 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21567
21568 _ACEOF
21569
21570 cat >>$CONFIG_STATUS <<\_ACEOF
21571
21572 # Handling of arguments.
21573 for ac_config_target in $ac_config_targets
21574 do
21575 case $ac_config_target in
21576 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21577 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21578 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21579 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21580 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21581
21582 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21583 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21584 { (exit 1); exit 1; }; };;
21585 esac
21586 done
21587
21588
21589 # If the user did not use the arguments to specify the items to instantiate,
21590 # then the envvar interface is used. Set only those that are not.
21591 # We use the long form for the default assignment because of an extremely
21592 # bizarre bug on SunOS 4.1.3.
21593 if $ac_need_defaults; then
21594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21597 fi
21598
21599 # Have a temporary directory for convenience. Make it in the build tree
21600 # simply because there is no reason against having it here, and in addition,
21601 # creating and moving files from /tmp can sometimes cause problems.
21602 # Hook for its removal unless debugging.
21603 # Note that there is a small window in which the directory will not be cleaned:
21604 # after its creation but before its name has been assigned to `$tmp'.
21605 $debug ||
21606 {
21607 tmp=
21608 trap 'exit_status=$?
21609 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21610 ' 0
21611 trap '{ (exit 1); exit 1; }' 1 2 13 15
21612 }
21613 # Create a (secure) tmp directory for tmp files.
21614
21615 {
21616 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21617 test -n "$tmp" && test -d "$tmp"
21618 } ||
21619 {
21620 tmp=./conf$$-$RANDOM
21621 (umask 077 && mkdir "$tmp")
21622 } ||
21623 {
21624 echo "$me: cannot create a temporary directory in ." >&2
21625 { (exit 1); exit 1; }
21626 }
21627
21628 #
21629 # Set up the sed scripts for CONFIG_FILES section.
21630 #
21631
21632 # No need to generate the scripts if there are no CONFIG_FILES.
21633 # This happens for instance when ./config.status config.h
21634 if test -n "$CONFIG_FILES"; then
21635
21636 _ACEOF
21637
21638
21639
21640 ac_delim='%!_!# '
21641 for ac_last_try in false false false false false :; do
21642 cat >conf$$subs.sed <<_ACEOF
21643 SHELL!$SHELL$ac_delim
21644 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21645 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21646 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21647 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21648 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21649 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21650 exec_prefix!$exec_prefix$ac_delim
21651 prefix!$prefix$ac_delim
21652 program_transform_name!$program_transform_name$ac_delim
21653 bindir!$bindir$ac_delim
21654 sbindir!$sbindir$ac_delim
21655 libexecdir!$libexecdir$ac_delim
21656 datarootdir!$datarootdir$ac_delim
21657 datadir!$datadir$ac_delim
21658 sysconfdir!$sysconfdir$ac_delim
21659 sharedstatedir!$sharedstatedir$ac_delim
21660 localstatedir!$localstatedir$ac_delim
21661 includedir!$includedir$ac_delim
21662 oldincludedir!$oldincludedir$ac_delim
21663 docdir!$docdir$ac_delim
21664 infodir!$infodir$ac_delim
21665 htmldir!$htmldir$ac_delim
21666 dvidir!$dvidir$ac_delim
21667 pdfdir!$pdfdir$ac_delim
21668 psdir!$psdir$ac_delim
21669 libdir!$libdir$ac_delim
21670 localedir!$localedir$ac_delim
21671 mandir!$mandir$ac_delim
21672 DEFS!$DEFS$ac_delim
21673 ECHO_C!$ECHO_C$ac_delim
21674 ECHO_N!$ECHO_N$ac_delim
21675 ECHO_T!$ECHO_T$ac_delim
21676 LIBS!$LIBS$ac_delim
21677 build_alias!$build_alias$ac_delim
21678 host_alias!$host_alias$ac_delim
21679 target_alias!$target_alias$ac_delim
21680 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21681 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21682 INSTALL_DATA!$INSTALL_DATA$ac_delim
21683 CYGPATH_W!$CYGPATH_W$ac_delim
21684 PACKAGE!$PACKAGE$ac_delim
21685 VERSION!$VERSION$ac_delim
21686 ACLOCAL!$ACLOCAL$ac_delim
21687 AUTOCONF!$AUTOCONF$ac_delim
21688 AUTOMAKE!$AUTOMAKE$ac_delim
21689 AUTOHEADER!$AUTOHEADER$ac_delim
21690 MAKEINFO!$MAKEINFO$ac_delim
21691 install_sh!$install_sh$ac_delim
21692 STRIP!$STRIP$ac_delim
21693 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21694 mkdir_p!$mkdir_p$ac_delim
21695 AWK!$AWK$ac_delim
21696 SET_MAKE!$SET_MAKE$ac_delim
21697 am__leading_dot!$am__leading_dot$ac_delim
21698 AMTAR!$AMTAR$ac_delim
21699 am__tar!$am__tar$ac_delim
21700 am__untar!$am__untar$ac_delim
21701 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21702 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21703 MAINT!$MAINT$ac_delim
21704 build!$build$ac_delim
21705 build_cpu!$build_cpu$ac_delim
21706 build_vendor!$build_vendor$ac_delim
21707 build_os!$build_os$ac_delim
21708 host!$host$ac_delim
21709 host_cpu!$host_cpu$ac_delim
21710 host_vendor!$host_vendor$ac_delim
21711 host_os!$host_os$ac_delim
21712 CC!$CC$ac_delim
21713 CFLAGS!$CFLAGS$ac_delim
21714 LDFLAGS!$LDFLAGS$ac_delim
21715 CPPFLAGS!$CPPFLAGS$ac_delim
21716 ac_ct_CC!$ac_ct_CC$ac_delim
21717 EXEEXT!$EXEEXT$ac_delim
21718 OBJEXT!$OBJEXT$ac_delim
21719 DEPDIR!$DEPDIR$ac_delim
21720 am__include!$am__include$ac_delim
21721 am__quote!$am__quote$ac_delim
21722 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21723 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21724 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21725 CCDEPMODE!$CCDEPMODE$ac_delim
21726 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21727 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21728 GREP!$GREP$ac_delim
21729 EGREP!$EGREP$ac_delim
21730 LN_S!$LN_S$ac_delim
21731 ECHO!$ECHO$ac_delim
21732 AR!$AR$ac_delim
21733 RANLIB!$RANLIB$ac_delim
21734 CPP!$CPP$ac_delim
21735 CXX!$CXX$ac_delim
21736 CXXFLAGS!$CXXFLAGS$ac_delim
21737 ac_ct_CXX!$ac_ct_CXX$ac_delim
21738 CXXDEPMODE!$CXXDEPMODE$ac_delim
21739 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21740 _ACEOF
21741
21742 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21743 break
21744 elif $ac_last_try; then
21745 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21746 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21747 { (exit 1); exit 1; }; }
21748 else
21749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21750 fi
21751 done
21752
21753 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21754 if test -n "$ac_eof"; then
21755 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21756 ac_eof=`expr $ac_eof + 1`
21757 fi
21758
21759 cat >>$CONFIG_STATUS <<_ACEOF
21760 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21762 _ACEOF
21763 sed '
21764 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21765 s/^/s,@/; s/!/@,|#_!!_#|/
21766 :n
21767 t n
21768 s/'"$ac_delim"'$/,g/; t
21769 s/$/\\/; p
21770 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21771 ' >>$CONFIG_STATUS <conf$$subs.sed
21772 rm -f conf$$subs.sed
21773 cat >>$CONFIG_STATUS <<_ACEOF
21774 CEOF$ac_eof
21775 _ACEOF
21776
21777
21778 ac_delim='%!_!# '
21779 for ac_last_try in false false false false false :; do
21780 cat >conf$$subs.sed <<_ACEOF
21781 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21782 CXXCPP!$CXXCPP$ac_delim
21783 F77!$F77$ac_delim
21784 FFLAGS!$FFLAGS$ac_delim
21785 ac_ct_F77!$ac_ct_F77$ac_delim
21786 LIBTOOL!$LIBTOOL$ac_delim
21787 PKG_CONFIG!$PKG_CONFIG$ac_delim
21788 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
21789 XORG_LIBS!$XORG_LIBS$ac_delim
21790 DRI_TRUE!$DRI_TRUE$ac_delim
21791 DRI_FALSE!$DRI_FALSE$ac_delim
21792 DRI_CFLAGS!$DRI_CFLAGS$ac_delim
21793 DRI_LIBS!$DRI_LIBS$ac_delim
21794 moduledir!$moduledir$ac_delim
21795 DRIVER_NAME!$DRIVER_NAME$ac_delim
21796 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21797 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21798 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21799 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21800 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21801 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21802 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21803 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21804 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21805 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21806 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21807 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21808 LIBOBJS!$LIBOBJS$ac_delim
21809 LTLIBOBJS!$LTLIBOBJS$ac_delim
21810 _ACEOF
21811
21812 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
21813 break
21814 elif $ac_last_try; then
21815 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21816 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21817 { (exit 1); exit 1; }; }
21818 else
21819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21820 fi
21821 done
21822
21823 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21824 if test -n "$ac_eof"; then
21825 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21826 ac_eof=`expr $ac_eof + 1`
21827 fi
21828
21829 cat >>$CONFIG_STATUS <<_ACEOF
21830 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21831 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21832 _ACEOF
21833 sed '
21834 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21835 s/^/s,@/; s/!/@,|#_!!_#|/
21836 :n
21837 t n
21838 s/'"$ac_delim"'$/,g/; t
21839 s/$/\\/; p
21840 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21841 ' >>$CONFIG_STATUS <conf$$subs.sed
21842 rm -f conf$$subs.sed
21843 cat >>$CONFIG_STATUS <<_ACEOF
21844 :end
21845 s/|#_!!_#|//g
21846 CEOF$ac_eof
21847 _ACEOF
21848
21849
21850 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21851 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21852 # trailing colons and then remove the whole line if VPATH becomes empty
21853 # (actually we leave an empty line to preserve line numbers).
21854 if test "x$srcdir" = x.; then
21855 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21856 s/:*\$(srcdir):*/:/
21857 s/:*\${srcdir}:*/:/
21858 s/:*@srcdir@:*/:/
21859 s/^\([^=]*=[ ]*\):*/\1/
21860 s/:*$//
21861 s/^[^=]*=[ ]*$//
21862 }'
21863 fi
21864
21865 cat >>$CONFIG_STATUS <<\_ACEOF
21866 fi # test -n "$CONFIG_FILES"
21867
21868
21869 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21870 do
21871 case $ac_tag in
21872 :[FHLC]) ac_mode=$ac_tag; continue;;
21873 esac
21874 case $ac_mode$ac_tag in
21875 :[FHL]*:*);;
21876 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21877 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21878 { (exit 1); exit 1; }; };;
21879 :[FH]-) ac_tag=-:-;;
21880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21881 esac
21882 ac_save_IFS=$IFS
21883 IFS=:
21884 set x $ac_tag
21885 IFS=$ac_save_IFS
21886 shift
21887 ac_file=$1
21888 shift
21889
21890 case $ac_mode in
21891 :L) ac_source=$1;;
21892 :[FH])
21893 ac_file_inputs=
21894 for ac_f
21895 do
21896 case $ac_f in
21897 -) ac_f="$tmp/stdin";;
21898 *) # Look for the file first in the build tree, then in the source tree
21899 # (if the path is not absolute). The absolute path cannot be DOS-style,
21900 # because $ac_f cannot contain `:'.
21901 test -f "$ac_f" ||
21902 case $ac_f in
21903 [\\/$]*) false;;
21904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21905 esac ||
21906 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21907 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21908 { (exit 1); exit 1; }; };;
21909 esac
21910 ac_file_inputs="$ac_file_inputs $ac_f"
21911 done
21912
21913 # Let's still pretend it is `configure' which instantiates (i.e., don't
21914 # use $as_me), people would be surprised to read:
21915 # /* config.h. Generated by config.status. */
21916 configure_input="Generated from "`IFS=:
21917 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21918 if test x"$ac_file" != x-; then
21919 configure_input="$ac_file. $configure_input"
21920 { echo "$as_me:$LINENO: creating $ac_file" >&5
21921 echo "$as_me: creating $ac_file" >&6;}
21922 fi
21923
21924 case $ac_tag in
21925 *:-:* | *:-) cat >"$tmp/stdin";;
21926 esac
21927 ;;
21928 esac
21929
21930 ac_dir=`$as_dirname -- "$ac_file" ||
21931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21932 X"$ac_file" : 'X\(//\)[^/]' \| \
21933 X"$ac_file" : 'X\(//\)$' \| \
21934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21935 echo X"$ac_file" |
21936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21937 s//\1/
21938 q
21939 }
21940 /^X\(\/\/\)[^/].*/{
21941 s//\1/
21942 q
21943 }
21944 /^X\(\/\/\)$/{
21945 s//\1/
21946 q
21947 }
21948 /^X\(\/\).*/{
21949 s//\1/
21950 q
21951 }
21952 s/.*/./; q'`
21953 { as_dir="$ac_dir"
21954 case $as_dir in #(
21955 -*) as_dir=./$as_dir;;
21956 esac
21957 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21958 as_dirs=
21959 while :; do
21960 case $as_dir in #(
21961 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21962 *) as_qdir=$as_dir;;
21963 esac
21964 as_dirs="'$as_qdir' $as_dirs"
21965 as_dir=`$as_dirname -- "$as_dir" ||
21966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21967 X"$as_dir" : 'X\(//\)[^/]' \| \
21968 X"$as_dir" : 'X\(//\)$' \| \
21969 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21970 echo X"$as_dir" |
21971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21972 s//\1/
21973 q
21974 }
21975 /^X\(\/\/\)[^/].*/{
21976 s//\1/
21977 q
21978 }
21979 /^X\(\/\/\)$/{
21980 s//\1/
21981 q
21982 }
21983 /^X\(\/\).*/{
21984 s//\1/
21985 q
21986 }
21987 s/.*/./; q'`
21988 test -d "$as_dir" && break
21989 done
21990 test -z "$as_dirs" || eval "mkdir $as_dirs"
21991 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21992 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21993 { (exit 1); exit 1; }; }; }
21994 ac_builddir=.
21995
21996 case "$ac_dir" in
21997 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21998 *)
21999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22000 # A ".." for each directory in $ac_dir_suffix.
22001 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22002 case $ac_top_builddir_sub in
22003 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22004 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22005 esac ;;
22006 esac
22007 ac_abs_top_builddir=$ac_pwd
22008 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22009 # for backward compatibility:
22010 ac_top_builddir=$ac_top_build_prefix
22011
22012 case $srcdir in
22013 .) # We are building in place.
22014 ac_srcdir=.
22015 ac_top_srcdir=$ac_top_builddir_sub
22016 ac_abs_top_srcdir=$ac_pwd ;;
22017 [\\/]* | ?:[\\/]* ) # Absolute name.
22018 ac_srcdir=$srcdir$ac_dir_suffix;
22019 ac_top_srcdir=$srcdir
22020 ac_abs_top_srcdir=$srcdir ;;
22021 *) # Relative name.
22022 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22023 ac_top_srcdir=$ac_top_build_prefix$srcdir
22024 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22025 esac
22026 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22027
22028
22029 case $ac_mode in
22030 :F)
22031 #
22032 # CONFIG_FILE
22033 #
22034
22035 case $INSTALL in
22036 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22037 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22038 esac
22039 _ACEOF
22040
22041 cat >>$CONFIG_STATUS <<\_ACEOF
22042 # If the template does not know about datarootdir, expand it.
22043 # FIXME: This hack should be removed a few years after 2.60.
22044 ac_datarootdir_hack=; ac_datarootdir_seen=
22045
22046 case `sed -n '/datarootdir/ {
22047 p
22048 q
22049 }
22050 /@datadir@/p
22051 /@docdir@/p
22052 /@infodir@/p
22053 /@localedir@/p
22054 /@mandir@/p
22055 ' $ac_file_inputs` in
22056 *datarootdir*) ac_datarootdir_seen=yes;;
22057 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22058 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22059 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22060 _ACEOF
22061 cat >>$CONFIG_STATUS <<_ACEOF
22062 ac_datarootdir_hack='
22063 s&@datadir@&$datadir&g
22064 s&@docdir@&$docdir&g
22065 s&@infodir@&$infodir&g
22066 s&@localedir@&$localedir&g
22067 s&@mandir@&$mandir&g
22068 s&\\\${datarootdir}&$datarootdir&g' ;;
22069 esac
22070 _ACEOF
22071
22072 # Neutralize VPATH when `$srcdir' = `.'.
22073 # Shell code in configure.ac might set extrasub.
22074 # FIXME: do we really want to maintain this feature?
22075 cat >>$CONFIG_STATUS <<_ACEOF
22076 sed "$ac_vpsub
22077 $extrasub
22078 _ACEOF
22079 cat >>$CONFIG_STATUS <<\_ACEOF
22080 :t
22081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22082 s&@configure_input@&$configure_input&;t t
22083 s&@top_builddir@&$ac_top_builddir_sub&;t t
22084 s&@srcdir@&$ac_srcdir&;t t
22085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22086 s&@top_srcdir@&$ac_top_srcdir&;t t
22087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22088 s&@builddir@&$ac_builddir&;t t
22089 s&@abs_builddir@&$ac_abs_builddir&;t t
22090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22091 s&@INSTALL@&$ac_INSTALL&;t t
22092 $ac_datarootdir_hack
22093 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22094
22095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22096 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22098 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22099 which seems to be undefined. Please make sure it is defined." >&5
22100 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22101 which seems to be undefined. Please make sure it is defined." >&2;}
22102
22103 rm -f "$tmp/stdin"
22104 case $ac_file in
22105 -) cat "$tmp/out"; rm -f "$tmp/out";;
22106 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22107 esac
22108 ;;
22109 :H)
22110 #
22111 # CONFIG_HEADER
22112 #
22113 _ACEOF
22114
22115 # Transform confdefs.h into a sed script `conftest.defines', that
22116 # substitutes the proper values into config.h.in to produce config.h.
22117 rm -f conftest.defines conftest.tail
22118 # First, append a space to every undef/define line, to ease matching.
22119 echo 's/$/ /' >conftest.defines
22120 # Then, protect against being on the right side of a sed subst, or in
22121 # an unquoted here document, in config.status. If some macros were
22122 # called several times there might be several #defines for the same
22123 # symbol, which is useless. But do not sort them, since the last
22124 # AC_DEFINE must be honored.
22125 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22126 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22127 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22128 # PARAMS is the parameter list in the macro definition--in most cases, it's
22129 # just an empty string.
22130 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22131 ac_dB='\\)[ (].*,\\1define\\2'
22132 ac_dC=' '
22133 ac_dD=' ,'
22134
22135 uniq confdefs.h |
22136 sed -n '
22137 t rset
22138 :rset
22139 s/^[ ]*#[ ]*define[ ][ ]*//
22140 t ok
22141 d
22142 :ok
22143 s/[\\&,]/\\&/g
22144 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22145 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22146 ' >>conftest.defines
22147
22148 # Remove the space that was appended to ease matching.
22149 # Then replace #undef with comments. This is necessary, for
22150 # example, in the case of _POSIX_SOURCE, which is predefined and required
22151 # on some systems where configure will not decide to define it.
22152 # (The regexp can be short, since the line contains either #define or #undef.)
22153 echo 's/ $//
22154 s,^[ #]*u.*,/* & */,' >>conftest.defines
22155
22156 # Break up conftest.defines:
22157 ac_max_sed_lines=50
22158
22159 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22160 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22161 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22162 # et cetera.
22163 ac_in='$ac_file_inputs'
22164 ac_out='"$tmp/out1"'
22165 ac_nxt='"$tmp/out2"'
22166
22167 while :
22168 do
22169 # Write a here document:
22170 cat >>$CONFIG_STATUS <<_ACEOF
22171 # First, check the format of the line:
22172 cat >"\$tmp/defines.sed" <<\\CEOF
22173 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22174 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22175 b
22176 :def
22177 _ACEOF
22178 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22179 echo 'CEOF
22180 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22181 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22182 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22183 grep . conftest.tail >/dev/null || break
22184 rm -f conftest.defines
22185 mv conftest.tail conftest.defines
22186 done
22187 rm -f conftest.defines conftest.tail
22188
22189 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22190 cat >>$CONFIG_STATUS <<\_ACEOF
22191 if test x"$ac_file" != x-; then
22192 echo "/* $configure_input */" >"$tmp/config.h"
22193 cat "$ac_result" >>"$tmp/config.h"
22194 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22195 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22196 echo "$as_me: $ac_file is unchanged" >&6;}
22197 else
22198 rm -f $ac_file
22199 mv "$tmp/config.h" $ac_file
22200 fi
22201 else
22202 echo "/* $configure_input */"
22203 cat "$ac_result"
22204 fi
22205 rm -f "$tmp/out12"
22206 # Compute $ac_file's index in $config_headers.
22207 _am_stamp_count=1
22208 for _am_header in $config_headers :; do
22209 case $_am_header in
22210 $ac_file | $ac_file:* )
22211 break ;;
22212 * )
22213 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22214 esac
22215 done
22216 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22217 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218 X$ac_file : 'X\(//\)[^/]' \| \
22219 X$ac_file : 'X\(//\)$' \| \
22220 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22221 echo X$ac_file |
22222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22223 s//\1/
22224 q
22225 }
22226 /^X\(\/\/\)[^/].*/{
22227 s//\1/
22228 q
22229 }
22230 /^X\(\/\/\)$/{
22231 s//\1/
22232 q
22233 }
22234 /^X\(\/\).*/{
22235 s//\1/
22236 q
22237 }
22238 s/.*/./; q'`/stamp-h$_am_stamp_count
22239 ;;
22240
22241 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22242 echo "$as_me: executing $ac_file commands" >&6;}
22243 ;;
22244 esac
22245
22246
22247 case $ac_file$ac_mode in
22248 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22249 # Strip MF so we end up with the name of the file.
22250 mf=`echo "$mf" | sed -e 's/:.*$//'`
22251 # Check whether this is an Automake generated Makefile or not.
22252 # We used to match only the files named `Makefile.in', but
22253 # some people rename them; so instead we look at the file content.
22254 # Grep'ing the first line is not enough: some people post-process
22255 # each Makefile.in and add a new line on top of each file to say so.
22256 # So let's grep whole file.
22257 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22258 dirpart=`$as_dirname -- "$mf" ||
22259 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260 X"$mf" : 'X\(//\)[^/]' \| \
22261 X"$mf" : 'X\(//\)$' \| \
22262 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22263 echo X"$mf" |
22264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22265 s//\1/
22266 q
22267 }
22268 /^X\(\/\/\)[^/].*/{
22269 s//\1/
22270 q
22271 }
22272 /^X\(\/\/\)$/{
22273 s//\1/
22274 q
22275 }
22276 /^X\(\/\).*/{
22277 s//\1/
22278 q
22279 }
22280 s/.*/./; q'`
22281 else
22282 continue
22283 fi
22284 # Extract the definition of DEPDIR, am__include, and am__quote
22285 # from the Makefile without running `make'.
22286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22287 test -z "$DEPDIR" && continue
22288 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22289 test -z "am__include" && continue
22290 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22291 # When using ansi2knr, U may be empty or an underscore; expand it
22292 U=`sed -n 's/^U = //p' < "$mf"`
22293 # Find all dependency output files, they are included files with
22294 # $(DEPDIR) in their names. We invoke sed twice because it is the
22295 # simplest approach to changing $(DEPDIR) to its actual value in the
22296 # expansion.
22297 for file in `sed -n "
22298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22300 # Make sure the directory exists.
22301 test -f "$dirpart/$file" && continue
22302 fdir=`$as_dirname -- "$file" ||
22303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22304 X"$file" : 'X\(//\)[^/]' \| \
22305 X"$file" : 'X\(//\)$' \| \
22306 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22307 echo X"$file" |
22308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22309 s//\1/
22310 q
22311 }
22312 /^X\(\/\/\)[^/].*/{
22313 s//\1/
22314 q
22315 }
22316 /^X\(\/\/\)$/{
22317 s//\1/
22318 q
22319 }
22320 /^X\(\/\).*/{
22321 s//\1/
22322 q
22323 }
22324 s/.*/./; q'`
22325 { as_dir=$dirpart/$fdir
22326 case $as_dir in #(
22327 -*) as_dir=./$as_dir;;
22328 esac
22329 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22330 as_dirs=
22331 while :; do
22332 case $as_dir in #(
22333 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22334 *) as_qdir=$as_dir;;
22335 esac
22336 as_dirs="'$as_qdir' $as_dirs"
22337 as_dir=`$as_dirname -- "$as_dir" ||
22338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22339 X"$as_dir" : 'X\(//\)[^/]' \| \
22340 X"$as_dir" : 'X\(//\)$' \| \
22341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22342 echo X"$as_dir" |
22343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22344 s//\1/
22345 q
22346 }
22347 /^X\(\/\/\)[^/].*/{
22348 s//\1/
22349 q
22350 }
22351 /^X\(\/\/\)$/{
22352 s//\1/
22353 q
22354 }
22355 /^X\(\/\).*/{
22356 s//\1/
22357 q
22358 }
22359 s/.*/./; q'`
22360 test -d "$as_dir" && break
22361 done
22362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22363 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22364 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22365 { (exit 1); exit 1; }; }; }
22366 # echo "creating $dirpart/$file"
22367 echo '# dummy' > "$dirpart/$file"
22368 done
22369 done
22370 ;;
22371
22372 esac
22373 done # for ac_tag
22374
22375
22376 { (exit 0); exit 0; }
22377 _ACEOF
22378 chmod +x $CONFIG_STATUS
22379 ac_clean_files=$ac_clean_files_save
22380
22381
22382 # configure is writing to config.log, and then calls config.status.
22383 # config.status does its own redirection, appending to config.log.
22384 # Unfortunately, on DOS this fails, as config.log is still kept open
22385 # by configure, so config.status won't be able to write to it; its
22386 # output is simply discarded. So we exec the FD to /dev/null,
22387 # effectively closing config.log, so it can be properly (re)opened and
22388 # appended to by config.status. When coming back to configure, we
22389 # need to make the FD available again.
22390 if test "$no_create" != yes; then
22391 ac_cs_success=:
22392 ac_config_status_args=
22393 test "$silent" = yes &&
22394 ac_config_status_args="$ac_config_status_args --quiet"
22395 exec 5>/dev/null
22396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22397 exec 5>>config.log
22398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22399 # would make configure fail if this is the last instruction.
22400 $ac_cs_success || { (exit 1); exit 1; }
22401 fi
22402
22403