configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-siliconmotion 1.7.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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='xf86-video-siliconmotion'
752 PACKAGE_TARNAME='xf86-video-siliconmotion'
753 PACKAGE_VERSION='1.7.3'
754 PACKAGE_STRING='xf86-video-siliconmotion 1.7.3'
755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757 ac_unique_file="Makefile.am"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='am__EXEEXT_FALSE
795 am__EXEEXT_TRUE
796 LTLIBOBJS
797 LIBOBJS
798 distcleancheck_listfiles
799 CHANGELOG_CMD
800 ADMIN_MAN_DIR
801 DRIVER_MAN_DIR
802 MISC_MAN_DIR
803 FILE_MAN_DIR
804 LIB_MAN_DIR
805 APP_MAN_DIR
806 ADMIN_MAN_SUFFIX
807 DRIVER_MAN_SUFFIX
808 MISC_MAN_SUFFIX
809 FILE_MAN_SUFFIX
810 LIB_MAN_SUFFIX
811 APP_MAN_SUFFIX
812 DRIVER_NAME
813 moduledir
814 CWARNFLAGS
815 XMODES_FALSE
816 XMODES_TRUE
817 XSERVER_LIBPCIACCESS_FALSE
818 XSERVER_LIBPCIACCESS_TRUE
819 PCIACCESS_LIBS
820 PCIACCESS_CFLAGS
821 HAVE_XEXTPROTO_71_FALSE
822 HAVE_XEXTPROTO_71_TRUE
823 XEXT_LIBS
824 XEXT_CFLAGS
825 XORG_LIBS
826 XORG_CFLAGS
827 PKG_CONFIG
828 LIBTOOL
829 ac_ct_F77
830 FFLAGS
831 F77
832 CXXCPP
833 am__fastdepCXX_FALSE
834 am__fastdepCXX_TRUE
835 CXXDEPMODE
836 ac_ct_CXX
837 CXXFLAGS
838 CXX
839 CPP
840 NMEDIT
841 DSYMUTIL
842 RANLIB
843 AR
844 ECHO
845 LN_S
846 EGREP
847 GREP
848 SED
849 am__fastdepCC_FALSE
850 am__fastdepCC_TRUE
851 CCDEPMODE
852 AMDEPBACKSLASH
853 AMDEP_FALSE
854 AMDEP_TRUE
855 am__quote
856 am__include
857 DEPDIR
858 OBJEXT
859 EXEEXT
860 ac_ct_CC
861 CPPFLAGS
862 LDFLAGS
863 CFLAGS
864 CC
865 host_os
866 host_vendor
867 host_cpu
868 host
869 build_os
870 build_vendor
871 build_cpu
872 build
873 MAINT
874 MAINTAINER_MODE_FALSE
875 MAINTAINER_MODE_TRUE
876 am__untar
877 am__tar
878 AMTAR
879 am__leading_dot
880 SET_MAKE
881 AWK
882 mkdir_p
883 MKDIR_P
884 INSTALL_STRIP_PROGRAM
885 STRIP
886 install_sh
887 MAKEINFO
888 AUTOHEADER
889 AUTOMAKE
890 AUTOCONF
891 ACLOCAL
892 VERSION
893 PACKAGE
894 CYGPATH_W
895 am__isrc
896 INSTALL_DATA
897 INSTALL_SCRIPT
898 INSTALL_PROGRAM
899 target_alias
900 host_alias
901 build_alias
902 LIBS
903 ECHO_T
904 ECHO_N
905 ECHO_C
906 DEFS
907 mandir
908 localedir
909 libdir
910 psdir
911 pdfdir
912 dvidir
913 htmldir
914 infodir
915 docdir
916 oldincludedir
917 includedir
918 localstatedir
919 sharedstatedir
920 sysconfdir
921 datadir
922 datarootdir
923 libexecdir
924 sbindir
925 bindir
926 program_transform_name
927 prefix
928 exec_prefix
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files=''
937 ac_user_opts='
938 enable_option_checking
939 enable_maintainer_mode
940 enable_static
941 enable_shared
942 enable_fast_install
943 enable_dependency_tracking
944 with_gnu_ld
945 enable_libtool_lock
946 with_pic
947 with_tags
948 with_xorg_module_dir
949 with_release_version
950 '
951 ac_precious_vars='build_alias
952 host_alias
953 target_alias
954 CC
955 CFLAGS
956 LDFLAGS
957 LIBS
958 CPPFLAGS
959 CPP
960 CXX
961 CXXFLAGS
962 CCC
963 CXXCPP
964 F77
965 FFLAGS
966 PKG_CONFIG
967 XORG_CFLAGS
968 XORG_LIBS
969 XEXT_CFLAGS
970 XEXT_LIBS
971 PCIACCESS_CFLAGS
972 PCIACCESS_LIBS'
973
974
975 # Initialize some variables set by options.
976 ac_init_help=
977 ac_init_version=false
978 ac_unrecognized_opts=
979 ac_unrecognized_sep=
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
996
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014 infodir='${datarootdir}/info'
1015 htmldir='${docdir}'
1016 dvidir='${docdir}'
1017 pdfdir='${docdir}'
1018 psdir='${docdir}'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1022
1023 ac_prev=
1024 ac_dashdash=
1025 for ac_option
1026 do
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
1029 eval $ac_prev=\$ac_option
1030 ac_prev=
1031 continue
1032 fi
1033
1034 case $ac_option in
1035 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 *) ac_optarg=yes ;;
1037 esac
1038
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
1044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
1065 -datadir | --datadir | --datadi | --datad)
1066 ac_prev=datadir ;;
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1069
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
1077 -disable-* | --disable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=no ;;
1093
1094 -docdir | --docdir | --docdi | --doc | --do)
1095 ac_prev=docdir ;;
1096 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1097 docdir=$ac_optarg ;;
1098
1099 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1100 ac_prev=dvidir ;;
1101 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1102 dvidir=$ac_optarg ;;
1103
1104 -enable-* | --enable-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1120
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1129
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1132 with_gas=yes ;;
1133
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1140
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1145
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147 ac_prev=htmldir ;;
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149 | --ht=*)
1150 htmldir=$ac_optarg ;;
1151
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1158
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1160 ac_prev=infodir ;;
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1163
1164 -libdir | --libdir | --libdi | --libd)
1165 ac_prev=libdir ;;
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1168
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1175
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1180
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1187
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189 ac_prev=mandir ;;
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1192
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1195 with_fp=no ;;
1196
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1199 no_create=yes ;;
1200
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203 no_recursion=yes ;;
1204
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1213
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215 ac_prev=prefix ;;
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1218
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1225
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1232
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1249
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251 ac_prev=pdfdir ;;
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1254
1255 -psdir | --psdir | --psdi | --psd | --ps)
1256 ac_prev=psdir ;;
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258 psdir=$ac_optarg ;;
1259
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1262 silent=yes ;;
1263
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265 ac_prev=sbindir ;;
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267 | --sbi=* | --sb=*)
1268 sbindir=$ac_optarg ;;
1269
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1273 | --sha | --sh)
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278 | --sha=* | --sh=*)
1279 sharedstatedir=$ac_optarg ;;
1280
1281 -site | --site | --sit)
1282 ac_prev=site ;;
1283 -site=* | --site=* | --sit=*)
1284 site=$ac_optarg ;;
1285
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287 ac_prev=srcdir ;;
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1290
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1297
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1302
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 verbose=yes ;;
1305
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1308
1309 -with-* | --with-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1314 { (exit 1); exit 1; }; }
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=\$ac_optarg ;;
1325
1326 -without-* | --without-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1331 { (exit 1); exit 1; }; }
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=no ;;
1342
1343 --x)
1344 # Obsolete; use --with-x.
1345 with_x=yes ;;
1346
1347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1348 | --x-incl | --x-inc | --x-in | --x-i)
1349 ac_prev=x_includes ;;
1350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1352 x_includes=$ac_optarg ;;
1353
1354 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1356 ac_prev=x_libraries ;;
1357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1359 x_libraries=$ac_optarg ;;
1360
1361 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1362 Try \`$0 --help' for more information." >&2
1363 { (exit 1); exit 1; }; }
1364 ;;
1365
1366 *=*)
1367 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1370 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1371 { (exit 1); exit 1; }; }
1372 eval $ac_envvar=\$ac_optarg
1373 export $ac_envvar ;;
1374
1375 *)
1376 # FIXME: should be removed in autoconf 3.0.
1377 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1378 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1380 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 ;;
1382
1383 esac
1384 done
1385
1386 if test -n "$ac_prev"; then
1387 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1388 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1389 { (exit 1); exit 1; }; }
1390 fi
1391
1392 if test -n "$ac_unrecognized_opts"; then
1393 case $enable_option_checking in
1394 no) ;;
1395 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1396 { (exit 1); exit 1; }; } ;;
1397 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1398 esac
1399 fi
1400
1401 # Check all directory arguments for consistency.
1402 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 datadir sysconfdir sharedstatedir localstatedir includedir \
1404 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405 libdir localedir mandir
1406 do
1407 eval ac_val=\$$ac_var
1408 # Remove trailing slashes.
1409 case $ac_val in
1410 */ )
1411 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1412 eval $ac_var=\$ac_val;;
1413 esac
1414 # Be sure to have absolute directory names.
1415 case $ac_val in
1416 [\\/$]* | ?:[\\/]* ) continue;;
1417 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1418 esac
1419 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1420 { (exit 1); exit 1; }; }
1421 done
1422
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1426 build=$build_alias
1427 host=$host_alias
1428 target=$target_alias
1429
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x; then
1432 if test "x$build_alias" = x; then
1433 cross_compiling=maybe
1434 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1435 If a cross compiler is detected then cross compile mode will be used." >&2
1436 elif test "x$build_alias" != "x$host_alias"; then
1437 cross_compiling=yes
1438 fi
1439 fi
1440
1441 ac_tool_prefix=
1442 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443
1444 test "$silent" = yes && exec 6>/dev/null
1445
1446
1447 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1448 ac_ls_di=`ls -di .` &&
1449 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1450 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1451 { (exit 1); exit 1; }; }
1452 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1453 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1454 { (exit 1); exit 1; }; }
1455
1456
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted=yes
1460 # Try the directory containing this script, then the parent directory.
1461 ac_confdir=`$as_dirname -- "$as_myself" ||
1462 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 X"$as_myself" : 'X\(//\)[^/]' \| \
1464 X"$as_myself" : 'X\(//\)$' \| \
1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466 $as_echo X"$as_myself" |
1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 s//\1/
1469 q
1470 }
1471 /^X\(\/\/\)[^/].*/{
1472 s//\1/
1473 q
1474 }
1475 /^X\(\/\/\)$/{
1476 s//\1/
1477 q
1478 }
1479 /^X\(\/\).*/{
1480 s//\1/
1481 q
1482 }
1483 s/.*/./; q'`
1484 srcdir=$ac_confdir
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 srcdir=..
1487 fi
1488 else
1489 ac_srcdir_defaulted=no
1490 fi
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1494 { (exit 1); exit 1; }; }
1495 fi
1496 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1497 ac_abs_confdir=`(
1498 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1499 { (exit 1); exit 1; }; }
1500 pwd)`
1501 # When building in place, set srcdir=.
1502 if test "$ac_abs_confdir" = "$ac_pwd"; then
1503 srcdir=.
1504 fi
1505 # Remove unnecessary trailing slashes from srcdir.
1506 # Double slashes in file names in object file debugging info
1507 # mess up M-x gdb in Emacs.
1508 case $srcdir in
1509 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1510 esac
1511 for ac_var in $ac_precious_vars; do
1512 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_env_${ac_var}_value=\$${ac_var}
1514 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1515 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1516 done
1517
1518 #
1519 # Report the --help message.
1520 #
1521 if test "$ac_init_help" = "long"; then
1522 # Omit some internal or obsolete options to make the list less imposing.
1523 # This message is too long to be a string in the A/UX 3.1 sh.
1524 cat <<_ACEOF
1525 \`configure' configures xf86-video-siliconmotion 1.7.3 to adapt to many kinds of systems.
1526
1527 Usage: $0 [OPTION]... [VAR=VALUE]...
1528
1529 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1530 VAR=VALUE. See below for descriptions of some of the useful variables.
1531
1532 Defaults for the options are specified in brackets.
1533
1534 Configuration:
1535 -h, --help display this help and exit
1536 --help=short display options specific to this package
1537 --help=recursive display the short help of all the included packages
1538 -V, --version display version information and exit
1539 -q, --quiet, --silent do not print \`checking...' messages
1540 --cache-file=FILE cache test results in FILE [disabled]
1541 -C, --config-cache alias for \`--cache-file=config.cache'
1542 -n, --no-create do not create output files
1543 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1544
1545 Installation directories:
1546 --prefix=PREFIX install architecture-independent files in PREFIX
1547 [$ac_default_prefix]
1548 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1549 [PREFIX]
1550
1551 By default, \`make install' will install all the files in
1552 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1553 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1554 for instance \`--prefix=\$HOME'.
1555
1556 For better control, use the options below.
1557
1558 Fine tuning of the installation directories:
1559 --bindir=DIR user executables [EPREFIX/bin]
1560 --sbindir=DIR system admin executables [EPREFIX/sbin]
1561 --libexecdir=DIR program executables [EPREFIX/libexec]
1562 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1563 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1564 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1565 --libdir=DIR object code libraries [EPREFIX/lib]
1566 --includedir=DIR C header files [PREFIX/include]
1567 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1568 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1569 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1570 --infodir=DIR info documentation [DATAROOTDIR/info]
1571 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1572 --mandir=DIR man documentation [DATAROOTDIR/man]
1573 --docdir=DIR documentation root
1574 [DATAROOTDIR/doc/xf86-video-siliconmotion]
1575 --htmldir=DIR html documentation [DOCDIR]
1576 --dvidir=DIR dvi documentation [DOCDIR]
1577 --pdfdir=DIR pdf documentation [DOCDIR]
1578 --psdir=DIR ps documentation [DOCDIR]
1579 _ACEOF
1580
1581 cat <<\_ACEOF
1582
1583 Program names:
1584 --program-prefix=PREFIX prepend PREFIX to installed program names
1585 --program-suffix=SUFFIX append SUFFIX to installed program names
1586 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1587
1588 System types:
1589 --build=BUILD configure for building on BUILD [guessed]
1590 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1591 _ACEOF
1592 fi
1593
1594 if test -n "$ac_init_help"; then
1595 case $ac_init_help in
1596 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.3:";;
1597 esac
1598 cat <<\_ACEOF
1599
1600 Optional Features:
1601 --disable-option-checking ignore unrecognized --enable/--with options
1602 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1603 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1604 --enable-maintainer-mode enable make rules and dependencies not useful
1605 (and sometimes confusing) to the casual installer
1606 --enable-static[=PKGS] build static libraries [default=no]
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-fast-install[=PKGS]
1609 optimize for fast installation [default=yes]
1610 --disable-dependency-tracking speeds up one-time build
1611 --enable-dependency-tracking do not reject slow dependency extractors
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1613
1614 Optional Packages:
1615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1618 --with-pic try to use only PIC/non-PIC objects [default=use
1619 both]
1620 --with-tags[=TAGS] include additional configurations [automatic]
1621 --with-xorg-module-dir=DIR
1622 Default xorg module directory
1623 [default=$libdir/xorg/modules]
1624 --with-release-version=STRING
1625 Use release version string in package name
1626
1627 Some influential environment variables:
1628 CC C compiler command
1629 CFLAGS C compiler flags
1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1631 nonstandard directory <lib dir>
1632 LIBS libraries to pass to the linker, e.g. -l<library>
1633 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1634 you have headers in a nonstandard directory <include dir>
1635 CPP C preprocessor
1636 CXX C++ compiler command
1637 CXXFLAGS C++ compiler flags
1638 CXXCPP C++ preprocessor
1639 F77 Fortran 77 compiler command
1640 FFLAGS Fortran 77 compiler flags
1641 PKG_CONFIG path to pkg-config utility
1642 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1643 XORG_LIBS linker flags for XORG, overriding pkg-config
1644 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1645 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1646 PCIACCESS_CFLAGS
1647 C compiler flags for PCIACCESS, overriding pkg-config
1648 PCIACCESS_LIBS
1649 linker flags for PCIACCESS, overriding pkg-config
1650
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1653
1654 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1655 _ACEOF
1656 ac_status=$?
1657 fi
1658
1659 if test "$ac_init_help" = "recursive"; then
1660 # If there are subdirs, report their specific --help.
1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662 test -d "$ac_dir" ||
1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1664 continue
1665 ac_builddir=.
1666
1667 case "$ac_dir" in
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *)
1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671 # A ".." for each directory in $ac_dir_suffix.
1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673 case $ac_top_builddir_sub in
1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676 esac ;;
1677 esac
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1682
1683 case $srcdir in
1684 .) # We are building in place.
1685 ac_srcdir=.
1686 ac_top_srcdir=$ac_top_builddir_sub
1687 ac_abs_top_srcdir=$ac_pwd ;;
1688 [\\/]* | ?:[\\/]* ) # Absolute name.
1689 ac_srcdir=$srcdir$ac_dir_suffix;
1690 ac_top_srcdir=$srcdir
1691 ac_abs_top_srcdir=$srcdir ;;
1692 *) # Relative name.
1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694 ac_top_srcdir=$ac_top_build_prefix$srcdir
1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 esac
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698
1699 cd "$ac_dir" || { ac_status=$?; continue; }
1700 # Check for guested configure.
1701 if test -f "$ac_srcdir/configure.gnu"; then
1702 echo &&
1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704 elif test -f "$ac_srcdir/configure"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure" --help=recursive
1707 else
1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709 fi || ac_status=$?
1710 cd "$ac_pwd" || { ac_status=$?; break; }
1711 done
1712 fi
1713
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1716 cat <<\_ACEOF
1717 xf86-video-siliconmotion configure 1.7.3
1718 generated by GNU Autoconf 2.63
1719
1720 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1721 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1722 This configure script is free software; the Free Software Foundation
1723 gives unlimited permission to copy, distribute and modify it.
1724 _ACEOF
1725 exit
1726 fi
1727 cat >config.log <<_ACEOF
1728 This file contains any messages produced by compilers while
1729 running configure, to aid debugging if configure makes a mistake.
1730
1731 It was created by xf86-video-siliconmotion $as_me 1.7.3, which was
1732 generated by GNU Autoconf 2.63. Invocation command line was
1733
1734 $ $0 $@
1735
1736 _ACEOF
1737 exec 5>>config.log
1738 {
1739 cat <<_ASUNAME
1740 ## --------- ##
1741 ## Platform. ##
1742 ## --------- ##
1743
1744 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1745 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1746 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1747 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1748 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1749
1750 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1751 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1752
1753 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1754 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1755 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1756 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1757 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1758 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1759 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1760
1761 _ASUNAME
1762
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 $as_echo "PATH: $as_dir"
1769 done
1770 IFS=$as_save_IFS
1771
1772 } >&5
1773
1774 cat >&5 <<_ACEOF
1775
1776
1777 ## ----------- ##
1778 ## Core tests. ##
1779 ## ----------- ##
1780
1781 _ACEOF
1782
1783
1784 # Keep a trace of the command line.
1785 # Strip out --no-create and --no-recursion so they do not pile up.
1786 # Strip out --silent because we don't want to record it for future runs.
1787 # Also quote any args containing shell meta-characters.
1788 # Make two passes to allow for proper duplicate-argument suppression.
1789 ac_configure_args=
1790 ac_configure_args0=
1791 ac_configure_args1=
1792 ac_must_keep_next=false
1793 for ac_pass in 1 2
1794 do
1795 for ac_arg
1796 do
1797 case $ac_arg in
1798 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1800 | -silent | --silent | --silen | --sile | --sil)
1801 continue ;;
1802 *\'*)
1803 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1804 esac
1805 case $ac_pass in
1806 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1807 2)
1808 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1809 if test $ac_must_keep_next = true; then
1810 ac_must_keep_next=false # Got value, back to normal.
1811 else
1812 case $ac_arg in
1813 *=* | --config-cache | -C | -disable-* | --disable-* \
1814 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1815 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1816 | -with-* | --with-* | -without-* | --without-* | --x)
1817 case "$ac_configure_args0 " in
1818 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1819 esac
1820 ;;
1821 -* ) ac_must_keep_next=true ;;
1822 esac
1823 fi
1824 ac_configure_args="$ac_configure_args '$ac_arg'"
1825 ;;
1826 esac
1827 done
1828 done
1829 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1830 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1831
1832 # When interrupted or exit'd, cleanup temporary files, and complete
1833 # config.log. We remove comments because anyway the quotes in there
1834 # would cause problems or look ugly.
1835 # WARNING: Use '\'' to represent an apostrophe within the trap.
1836 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1837 trap 'exit_status=$?
1838 # Save into config.log some information that might help in debugging.
1839 {
1840 echo
1841
1842 cat <<\_ASBOX
1843 ## ---------------- ##
1844 ## Cache variables. ##
1845 ## ---------------- ##
1846 _ASBOX
1847 echo
1848 # The following way of writing the cache mishandles newlines in values,
1849 (
1850 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1851 eval ac_val=\$$ac_var
1852 case $ac_val in #(
1853 *${as_nl}*)
1854 case $ac_var in #(
1855 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1857 esac
1858 case $ac_var in #(
1859 _ | IFS | as_nl) ;; #(
1860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1861 *) $as_unset $ac_var ;;
1862 esac ;;
1863 esac
1864 done
1865 (set) 2>&1 |
1866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1867 *${as_nl}ac_space=\ *)
1868 sed -n \
1869 "s/'\''/'\''\\\\'\'''\''/g;
1870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1871 ;; #(
1872 *)
1873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1874 ;;
1875 esac |
1876 sort
1877 )
1878 echo
1879
1880 cat <<\_ASBOX
1881 ## ----------------- ##
1882 ## Output variables. ##
1883 ## ----------------- ##
1884 _ASBOX
1885 echo
1886 for ac_var in $ac_subst_vars
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 $as_echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895
1896 if test -n "$ac_subst_files"; then
1897 cat <<\_ASBOX
1898 ## ------------------- ##
1899 ## File substitutions. ##
1900 ## ------------------- ##
1901 _ASBOX
1902 echo
1903 for ac_var in $ac_subst_files
1904 do
1905 eval ac_val=\$$ac_var
1906 case $ac_val in
1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 esac
1909 $as_echo "$ac_var='\''$ac_val'\''"
1910 done | sort
1911 echo
1912 fi
1913
1914 if test -s confdefs.h; then
1915 cat <<\_ASBOX
1916 ## ----------- ##
1917 ## confdefs.h. ##
1918 ## ----------- ##
1919 _ASBOX
1920 echo
1921 cat confdefs.h
1922 echo
1923 fi
1924 test "$ac_signal" != 0 &&
1925 $as_echo "$as_me: caught signal $ac_signal"
1926 $as_echo "$as_me: exit $exit_status"
1927 } >&5
1928 rm -f core *.core core.conftest.* &&
1929 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930 exit $exit_status
1931 ' 0
1932 for ac_signal in 1 2 13 15; do
1933 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1934 done
1935 ac_signal=0
1936
1937 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1938 rm -f -r conftest* confdefs.h
1939
1940 # Predefined preprocessor variables.
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_NAME "$PACKAGE_NAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 _ACEOF
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1964 _ACEOF
1965
1966
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer an explicitly selected file to automatically selected ones.
1969 ac_site_file1=NONE
1970 ac_site_file2=NONE
1971 if test -n "$CONFIG_SITE"; then
1972 ac_site_file1=$CONFIG_SITE
1973 elif test "x$prefix" != xNONE; then
1974 ac_site_file1=$prefix/share/config.site
1975 ac_site_file2=$prefix/etc/config.site
1976 else
1977 ac_site_file1=$ac_default_prefix/share/config.site
1978 ac_site_file2=$ac_default_prefix/etc/config.site
1979 fi
1980 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1981 do
1982 test "x$ac_site_file" = xNONE && continue
1983 if test -r "$ac_site_file"; then
1984 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1985 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1986 sed 's/^/| /' "$ac_site_file" >&5
1987 . "$ac_site_file"
1988 fi
1989 done
1990
1991 if test -r "$cache_file"; then
1992 # Some versions of bash will fail to source /dev/null (special
1993 # files actually), so we avoid doing that.
1994 if test -f "$cache_file"; then
1995 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1996 $as_echo "$as_me: loading cache $cache_file" >&6;}
1997 case $cache_file in
1998 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1999 *) . "./$cache_file";;
2000 esac
2001 fi
2002 else
2003 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2004 $as_echo "$as_me: creating cache $cache_file" >&6;}
2005 >$cache_file
2006 fi
2007
2008 # Check that the precious variables saved in the cache have kept the same
2009 # value.
2010 ac_cache_corrupted=false
2011 for ac_var in $ac_precious_vars; do
2012 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2013 eval ac_new_set=\$ac_env_${ac_var}_set
2014 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2015 eval ac_new_val=\$ac_env_${ac_var}_value
2016 case $ac_old_set,$ac_new_set in
2017 set,)
2018 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2019 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2020 ac_cache_corrupted=: ;;
2021 ,set)
2022 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2023 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2024 ac_cache_corrupted=: ;;
2025 ,);;
2026 *)
2027 if test "x$ac_old_val" != "x$ac_new_val"; then
2028 # differences in whitespace do not lead to failure.
2029 ac_old_val_w=`echo x $ac_old_val`
2030 ac_new_val_w=`echo x $ac_new_val`
2031 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2032 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2033 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2034 ac_cache_corrupted=:
2035 else
2036 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2037 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2038 eval $ac_var=\$ac_old_val
2039 fi
2040 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2041 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2042 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2043 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2044 fi;;
2045 esac
2046 # Pass precious variables to config.status.
2047 if test "$ac_new_set" = set; then
2048 case $ac_new_val in
2049 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 *) ac_arg=$ac_var=$ac_new_val ;;
2051 esac
2052 case " $ac_configure_args " in
2053 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2054 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2055 esac
2056 fi
2057 done
2058 if $ac_cache_corrupted; then
2059 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2061 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2062 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2063 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2064 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092 ac_ext=c
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097
2098
2099
2100 # Require xorg-macros version 1.2 or newer for XORG_CWARNFLAGS and
2101 # XORG_CHANGELOG macros
2102
2103
2104 XORG_MACROS_needed_version=1.2.1
2105 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2106 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2107 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2108 $as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2109 XORG_MACROS_version=1.2.1
2110 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2111 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2112 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2113 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2114 $as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2115 { (exit 1); exit 1; }; }
2116 fi
2117 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2118 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2119 $as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2120 { (exit 1); exit 1; }; }
2121 fi
2122 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2123 $as_echo "yes, $XORG_MACROS_version" >&6; }
2124
2125
2126
2127 ac_config_headers="$ac_config_headers config.h"
2128
2129 ac_aux_dir=
2130 for ac_dir in . "$srcdir"/.; do
2131 if test -f "$ac_dir/install-sh"; then
2132 ac_aux_dir=$ac_dir
2133 ac_install_sh="$ac_aux_dir/install-sh -c"
2134 break
2135 elif test -f "$ac_dir/install.sh"; then
2136 ac_aux_dir=$ac_dir
2137 ac_install_sh="$ac_aux_dir/install.sh -c"
2138 break
2139 elif test -f "$ac_dir/shtool"; then
2140 ac_aux_dir=$ac_dir
2141 ac_install_sh="$ac_aux_dir/shtool install -c"
2142 break
2143 fi
2144 done
2145 if test -z "$ac_aux_dir"; then
2146 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2147 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2148 { (exit 1); exit 1; }; }
2149 fi
2150
2151 # These three variables are undocumented and unsupported,
2152 # and are intended to be withdrawn in a future Autoconf release.
2153 # They can cause serious problems if a builder's source tree is in a directory
2154 # whose full name contains unusual characters.
2155 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2156 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2157 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2158
2159
2160
2161 am__api_version='1.11'
2162
2163 # Find a good install program. We prefer a C program (faster),
2164 # so one script is as good as another. But avoid the broken or
2165 # incompatible versions:
2166 # SysV /etc/install, /usr/sbin/install
2167 # SunOS /usr/etc/install
2168 # IRIX /sbin/install
2169 # AIX /bin/install
2170 # AmigaOS /C/install, which installs bootblocks on floppy discs
2171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2174 # OS/2's system install, which has a completely different semantic
2175 # ./install, which can be erroneously created by make from ./install.sh.
2176 # Reject install programs that cannot install multiple files.
2177 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2178 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2179 if test -z "$INSTALL"; then
2180 if test "${ac_cv_path_install+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 # Account for people who put trailing slashes in PATH elements.
2189 case $as_dir/ in
2190 ./ | .// | /cC/* | \
2191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2193 /usr/ucb/* ) ;;
2194 *)
2195 # OSF1 and SCO ODT 3.0 have their own names for install.
2196 # Don't use installbsd from OSF since it installs stuff as root
2197 # by default.
2198 for ac_prog in ginstall scoinst install; do
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2201 if test $ac_prog = install &&
2202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # AIX install. It has an incompatible calling convention.
2204 :
2205 elif test $ac_prog = install &&
2206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # program-specific install script used by HP pwplus--don't use.
2208 :
2209 else
2210 rm -rf conftest.one conftest.two conftest.dir
2211 echo one > conftest.one
2212 echo two > conftest.two
2213 mkdir conftest.dir
2214 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2215 test -s conftest.one && test -s conftest.two &&
2216 test -s conftest.dir/conftest.one &&
2217 test -s conftest.dir/conftest.two
2218 then
2219 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2220 break 3
2221 fi
2222 fi
2223 fi
2224 done
2225 done
2226 ;;
2227 esac
2228
2229 done
2230 IFS=$as_save_IFS
2231
2232 rm -rf conftest.one conftest.two conftest.dir
2233
2234 fi
2235 if test "${ac_cv_path_install+set}" = set; then
2236 INSTALL=$ac_cv_path_install
2237 else
2238 # As a last resort, use the slow shell script. Don't cache a
2239 # value for INSTALL within a source directory, because that will
2240 # break other packages using the cache if that directory is
2241 # removed, or if the value is a relative name.
2242 INSTALL=$ac_install_sh
2243 fi
2244 fi
2245 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2246 $as_echo "$INSTALL" >&6; }
2247
2248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2249 # It thinks the first close brace ends the variable substitution.
2250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2251
2252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2253
2254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2255
2256 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2257 $as_echo_n "checking whether build environment is sane... " >&6; }
2258 # Just in case
2259 sleep 1
2260 echo timestamp > conftest.file
2261 # Reject unsafe characters in $srcdir or the absolute working directory
2262 # name. Accept space and tab only in the latter.
2263 am_lf='
2264 '
2265 case `pwd` in
2266 *[\\\"\#\$\&\'\`$am_lf]*)
2267 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2268 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2269 { (exit 1); exit 1; }; };;
2270 esac
2271 case $srcdir in
2272 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2273 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2274 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2275 { (exit 1); exit 1; }; };;
2276 esac
2277
2278 # Do `set' in a subshell so we don't clobber the current shell's
2279 # arguments. Must try -L first in case configure is actually a
2280 # symlink; some systems play weird games with the mod time of symlinks
2281 # (eg FreeBSD returns the mod time of the symlink's containing
2282 # directory).
2283 if (
2284 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2285 if test "$*" = "X"; then
2286 # -L didn't work.
2287 set X `ls -t "$srcdir/configure" conftest.file`
2288 fi
2289 rm -f conftest.file
2290 if test "$*" != "X $srcdir/configure conftest.file" \
2291 && test "$*" != "X conftest.file $srcdir/configure"; then
2292
2293 # If neither matched, then we have a broken ls. This can happen
2294 # if, for instance, CONFIG_SHELL is bash and it inherits a
2295 # broken ls alias from the environment. This has actually
2296 # happened. Such a system could not be considered "sane".
2297 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2298 alias in your environment" >&5
2299 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2300 alias in your environment" >&2;}
2301 { (exit 1); exit 1; }; }
2302 fi
2303
2304 test "$2" = conftest.file
2305 )
2306 then
2307 # Ok.
2308 :
2309 else
2310 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2311 Check your system clock" >&5
2312 $as_echo "$as_me: error: newly created file is older than distributed files!
2313 Check your system clock" >&2;}
2314 { (exit 1); exit 1; }; }
2315 fi
2316 { $as_echo "$as_me:$LINENO: result: yes" >&5
2317 $as_echo "yes" >&6; }
2318 test "$program_prefix" != NONE &&
2319 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2320 # Use a double $ so make ignores it.
2321 test "$program_suffix" != NONE &&
2322 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2323 # Double any \ or $.
2324 # By default was `s,x,x', remove it if useless.
2325 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2326 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2327
2328 # expand $ac_aux_dir to an absolute path
2329 am_aux_dir=`cd $ac_aux_dir && pwd`
2330
2331 if test x"${MISSING+set}" != xset; then
2332 case $am_aux_dir in
2333 *\ * | *\ *)
2334 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2335 *)
2336 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2337 esac
2338 fi
2339 # Use eval to expand $SHELL
2340 if eval "$MISSING --run true"; then
2341 am_missing_run="$MISSING --run "
2342 else
2343 am_missing_run=
2344 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2345 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2346 fi
2347
2348 if test x"${install_sh}" != xset; then
2349 case $am_aux_dir in
2350 *\ * | *\ *)
2351 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2352 *)
2353 install_sh="\${SHELL} $am_aux_dir/install-sh"
2354 esac
2355 fi
2356
2357 # Installed binaries are usually stripped using `strip' when the user
2358 # run `make install-strip'. However `strip' might not be the right
2359 # tool to use in cross-compilation environments, therefore Automake
2360 # will honor the `STRIP' environment variable to overrule this program.
2361 if test "$cross_compiling" != no; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}strip; ac_word=$2
2365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if test "${ac_cv_prog_STRIP+set}" = set; then
2368 $as_echo_n "(cached) " >&6
2369 else
2370 if test -n "$STRIP"; then
2371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 STRIP=$ac_cv_prog_STRIP
2391 if test -n "$STRIP"; then
2392 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2393 $as_echo "$STRIP" >&6; }
2394 else
2395 { $as_echo "$as_me:$LINENO: result: no" >&5
2396 $as_echo "no" >&6; }
2397 fi
2398
2399
2400 fi
2401 if test -z "$ac_cv_prog_STRIP"; then
2402 ac_ct_STRIP=$STRIP
2403 # Extract the first word of "strip", so it can be a program name with args.
2404 set dummy strip; ac_word=$2
2405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2408 $as_echo_n "(cached) " >&6
2409 else
2410 if test -n "$ac_ct_STRIP"; then
2411 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_STRIP="strip"
2421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2431 if test -n "$ac_ct_STRIP"; then
2432 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2433 $as_echo "$ac_ct_STRIP" >&6; }
2434 else
2435 { $as_echo "$as_me:$LINENO: result: no" >&5
2436 $as_echo "no" >&6; }
2437 fi
2438
2439 if test "x$ac_ct_STRIP" = x; then
2440 STRIP=":"
2441 else
2442 case $cross_compiling:$ac_tool_warned in
2443 yes:)
2444 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2446 ac_tool_warned=yes ;;
2447 esac
2448 STRIP=$ac_ct_STRIP
2449 fi
2450 else
2451 STRIP="$ac_cv_prog_STRIP"
2452 fi
2453
2454 fi
2455 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2456
2457 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2458 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2459 if test -z "$MKDIR_P"; then
2460 if test "${ac_cv_path_mkdir+set}" = set; then
2461 $as_echo_n "(cached) " >&6
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_prog in mkdir gmkdir; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2471 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2472 'mkdir (GNU coreutils) '* | \
2473 'mkdir (coreutils) '* | \
2474 'mkdir (fileutils) '4.1*)
2475 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2476 break 3;;
2477 esac
2478 done
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484
2485 if test "${ac_cv_path_mkdir+set}" = set; then
2486 MKDIR_P="$ac_cv_path_mkdir -p"
2487 else
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for MKDIR_P within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 test -d ./--version && rmdir ./--version
2493 MKDIR_P="$ac_install_sh -d"
2494 fi
2495 fi
2496 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2497 $as_echo "$MKDIR_P" >&6; }
2498
2499 mkdir_p="$MKDIR_P"
2500 case $mkdir_p in
2501 [\\/$]* | ?:[\\/]*) ;;
2502 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2503 esac
2504
2505 for ac_prog in gawk mawk nawk awk
2506 do
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if test "${ac_cv_prog_AWK+set}" = set; then
2512 $as_echo_n "(cached) " >&6
2513 else
2514 if test -n "$AWK"; then
2515 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_AWK="$ac_prog"
2525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 AWK=$ac_cv_prog_AWK
2535 if test -n "$AWK"; then
2536 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2537 $as_echo "$AWK" >&6; }
2538 else
2539 { $as_echo "$as_me:$LINENO: result: no" >&5
2540 $as_echo "no" >&6; }
2541 fi
2542
2543
2544 test -n "$AWK" && break
2545 done
2546
2547 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2548 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2549 set x ${MAKE-make}
2550 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2551 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat >conftest.make <<\_ACEOF
2555 SHELL = /bin/sh
2556 all:
2557 @echo '@@@%%%=$(MAKE)=@@@%%%'
2558 _ACEOF
2559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2560 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2561 *@@@%%%=?*=@@@%%%*)
2562 eval ac_cv_prog_make_${ac_make}_set=yes;;
2563 *)
2564 eval ac_cv_prog_make_${ac_make}_set=no;;
2565 esac
2566 rm -f conftest.make
2567 fi
2568 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2569 { $as_echo "$as_me:$LINENO: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 SET_MAKE=
2572 else
2573 { $as_echo "$as_me:$LINENO: result: no" >&5
2574 $as_echo "no" >&6; }
2575 SET_MAKE="MAKE=${MAKE-make}"
2576 fi
2577
2578 rm -rf .tst 2>/dev/null
2579 mkdir .tst 2>/dev/null
2580 if test -d .tst; then
2581 am__leading_dot=.
2582 else
2583 am__leading_dot=_
2584 fi
2585 rmdir .tst 2>/dev/null
2586
2587 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2588 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2589 # is not polluted with repeated "-I."
2590 am__isrc=' -I$(srcdir)'
2591 # test to see if srcdir already configured
2592 if test -f $srcdir/config.status; then
2593 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2594 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2595 { (exit 1); exit 1; }; }
2596 fi
2597 fi
2598
2599 # test whether we have cygpath
2600 if test -z "$CYGPATH_W"; then
2601 if (cygpath --version) >/dev/null 2>/dev/null; then
2602 CYGPATH_W='cygpath -w'
2603 else
2604 CYGPATH_W=echo
2605 fi
2606 fi
2607
2608
2609 # Define the identity of the package.
2610 PACKAGE='xf86-video-siliconmotion'
2611 VERSION='1.7.3'
2612
2613
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE "$PACKAGE"
2616 _ACEOF
2617
2618
2619 cat >>confdefs.h <<_ACEOF
2620 #define VERSION "$VERSION"
2621 _ACEOF
2622
2623 # Some tools Automake needs.
2624
2625 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2626
2627
2628 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2629
2630
2631 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2632
2633
2634 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2635
2636
2637 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2638
2639 # We need awk for the "check" target. The system "awk" is bad on
2640 # some platforms.
2641 # Always define AMTAR for backward compatibility.
2642
2643 AMTAR=${AMTAR-"${am_missing_run}tar"}
2644
2645 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2646
2647
2648
2649
2650
2651
2652
2653 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2654 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2655 # Check whether --enable-maintainer-mode was given.
2656 if test "${enable_maintainer_mode+set}" = set; then
2657 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2658 else
2659 USE_MAINTAINER_MODE=no
2660 fi
2661
2662 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2663 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2664 if test $USE_MAINTAINER_MODE = yes; then
2665 MAINTAINER_MODE_TRUE=
2666 MAINTAINER_MODE_FALSE='#'
2667 else
2668 MAINTAINER_MODE_TRUE='#'
2669 MAINTAINER_MODE_FALSE=
2670 fi
2671
2672 MAINT=$MAINTAINER_MODE_TRUE
2673
2674
2675
2676 # Checks for programs.
2677 # Check whether --enable-static was given.
2678 if test "${enable_static+set}" = set; then
2679 enableval=$enable_static; p=${PACKAGE-default}
2680 case $enableval in
2681 yes) enable_static=yes ;;
2682 no) enable_static=no ;;
2683 *)
2684 enable_static=no
2685 # Look at the argument we got. We use all the common list separators.
2686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2687 for pkg in $enableval; do
2688 IFS="$lt_save_ifs"
2689 if test "X$pkg" = "X$p"; then
2690 enable_static=yes
2691 fi
2692 done
2693 IFS="$lt_save_ifs"
2694 ;;
2695 esac
2696 else
2697 enable_static=no
2698 fi
2699
2700
2701
2702 # Check whether --enable-shared was given.
2703 if test "${enable_shared+set}" = set; then
2704 enableval=$enable_shared; p=${PACKAGE-default}
2705 case $enableval in
2706 yes) enable_shared=yes ;;
2707 no) enable_shared=no ;;
2708 *)
2709 enable_shared=no
2710 # Look at the argument we got. We use all the common list separators.
2711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2712 for pkg in $enableval; do
2713 IFS="$lt_save_ifs"
2714 if test "X$pkg" = "X$p"; then
2715 enable_shared=yes
2716 fi
2717 done
2718 IFS="$lt_save_ifs"
2719 ;;
2720 esac
2721 else
2722 enable_shared=yes
2723 fi
2724
2725
2726 # Check whether --enable-fast-install was given.
2727 if test "${enable_fast_install+set}" = set; then
2728 enableval=$enable_fast_install; p=${PACKAGE-default}
2729 case $enableval in
2730 yes) enable_fast_install=yes ;;
2731 no) enable_fast_install=no ;;
2732 *)
2733 enable_fast_install=no
2734 # Look at the argument we got. We use all the common list separators.
2735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2736 for pkg in $enableval; do
2737 IFS="$lt_save_ifs"
2738 if test "X$pkg" = "X$p"; then
2739 enable_fast_install=yes
2740 fi
2741 done
2742 IFS="$lt_save_ifs"
2743 ;;
2744 esac
2745 else
2746 enable_fast_install=yes
2747 fi
2748
2749
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2753 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2754 { (exit 1); exit 1; }; }
2755
2756 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2757 $as_echo_n "checking build system type... " >&6; }
2758 if test "${ac_cv_build+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2760 else
2761 ac_build_alias=$build_alias
2762 test "x$ac_build_alias" = x &&
2763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2764 test "x$ac_build_alias" = x &&
2765 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2766 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2767 { (exit 1); exit 1; }; }
2768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2769 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2770 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2771 { (exit 1); exit 1; }; }
2772
2773 fi
2774 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2775 $as_echo "$ac_cv_build" >&6; }
2776 case $ac_cv_build in
2777 *-*-*) ;;
2778 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2779 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2780 { (exit 1); exit 1; }; };;
2781 esac
2782 build=$ac_cv_build
2783 ac_save_IFS=$IFS; IFS='-'
2784 set x $ac_cv_build
2785 shift
2786 build_cpu=$1
2787 build_vendor=$2
2788 shift; shift
2789 # Remember, the first character of IFS is used to create $*,
2790 # except with old shells:
2791 build_os=$*
2792 IFS=$ac_save_IFS
2793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2794
2795
2796 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2797 $as_echo_n "checking host system type... " >&6; }
2798 if test "${ac_cv_host+set}" = set; then
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test "x$host_alias" = x; then
2802 ac_cv_host=$ac_cv_build
2803 else
2804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2805 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2806 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2807 { (exit 1); exit 1; }; }
2808 fi
2809
2810 fi
2811 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2812 $as_echo "$ac_cv_host" >&6; }
2813 case $ac_cv_host in
2814 *-*-*) ;;
2815 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2816 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2817 { (exit 1); exit 1; }; };;
2818 esac
2819 host=$ac_cv_host
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_host
2822 shift
2823 host_cpu=$1
2824 host_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 host_os=$*
2829 IFS=$ac_save_IFS
2830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831
2832
2833 DEPDIR="${am__leading_dot}deps"
2834
2835 ac_config_commands="$ac_config_commands depfiles"
2836
2837
2838 am_make=${MAKE-make}
2839 cat > confinc << 'END'
2840 am__doit:
2841 @echo this is the am__doit target
2842 .PHONY: am__doit
2843 END
2844 # If we don't find an include directive, just comment out the code.
2845 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2846 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2847 am__include="#"
2848 am__quote=
2849 _am_result=none
2850 # First try GNU make style include.
2851 echo "include confinc" > confmf
2852 # Ignore all kinds of additional output from `make'.
2853 case `$am_make -s -f confmf 2> /dev/null` in #(
2854 *the\ am__doit\ target*)
2855 am__include=include
2856 am__quote=
2857 _am_result=GNU
2858 ;;
2859 esac
2860 # Now try BSD make style include.
2861 if test "$am__include" = "#"; then
2862 echo '.include "confinc"' > confmf
2863 case `$am_make -s -f confmf 2> /dev/null` in #(
2864 *the\ am__doit\ target*)
2865 am__include=.include
2866 am__quote="\""
2867 _am_result=BSD
2868 ;;
2869 esac
2870 fi
2871
2872
2873 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2874 $as_echo "$_am_result" >&6; }
2875 rm -f confinc confmf
2876
2877 # Check whether --enable-dependency-tracking was given.
2878 if test "${enable_dependency_tracking+set}" = set; then
2879 enableval=$enable_dependency_tracking;
2880 fi
2881
2882 if test "x$enable_dependency_tracking" != xno; then
2883 am_depcomp="$ac_aux_dir/depcomp"
2884 AMDEPBACKSLASH='\'
2885 fi
2886 if test "x$enable_dependency_tracking" != xno; then
2887 AMDEP_TRUE=
2888 AMDEP_FALSE='#'
2889 else
2890 AMDEP_TRUE='#'
2891 AMDEP_FALSE=
2892 fi
2893
2894
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_CC+set}" = set; then
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:$LINENO: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$ac_cv_prog_CC"; then
2940 ac_ct_CC=$CC
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942 set dummy gcc; ac_word=$2
2943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_ac_ct_CC="gcc"
2959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2971 $as_echo "$ac_ct_CC" >&6; }
2972 else
2973 { $as_echo "$as_me:$LINENO: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986 CC=$ac_ct_CC
2987 fi
2988 else
2989 CC="$ac_cv_prog_CC"
2990 fi
2991
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}cc; ac_word=$2
2996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_CC+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_CC="${ac_tool_prefix}cc"
3012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026 { $as_echo "$as_me:$LINENO: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 fi
3033 if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035 set dummy cc; ac_word=$2
3036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_CC+set}" = set; then
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 ac_prog_rejected=no
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3053 ac_prog_rejected=yes
3054 continue
3055 fi
3056 ac_cv_prog_CC="cc"
3057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 if test $ac_prog_rejected = yes; then
3065 # We found a bogon in the path, so make sure we never use it.
3066 set dummy $ac_cv_prog_CC
3067 shift
3068 if test $# != 0; then
3069 # We chose a different compiler from the bogus one.
3070 # However, it has the same basename, so the bogon will be chosen
3071 # first if we set CC to just the basename; use the full file name.
3072 shift
3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3074 fi
3075 fi
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3091 for ac_prog in cl.exe
3092 do
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_CC+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:$LINENO: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 test -n "$CC" && break
3131 done
3132 fi
3133 if test -z "$CC"; then
3134 ac_ct_CC=$CC
3135 for ac_prog in cl.exe
3136 do
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_ac_ct_CC="$ac_prog"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3168 else
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 test -n "$ac_ct_CC" && break
3175 done
3176
3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186 CC=$ac_ct_CC
3187 fi
3188 fi
3189
3190 fi
3191
3192
3193 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details." >&5
3197 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }; }
3200
3201 # Provide some information about the compiler.
3202 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3203 set X $ac_compile
3204 ac_compiler=$2
3205 { (ac_try="$ac_compiler --version >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3211 $as_echo "$ac_try_echo") >&5
3212 (eval "$ac_compiler --version >&5") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }
3216 { (ac_try="$ac_compiler -v >&5"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3222 $as_echo "$ac_try_echo") >&5
3223 (eval "$ac_compiler -v >&5") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }
3227 { (ac_try="$ac_compiler -V >&5"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3233 $as_echo "$ac_try_echo") >&5
3234 (eval "$ac_compiler -V >&5") 2>&5
3235 ac_status=$?
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h. */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245
3246 int
3247 main ()
3248 {
3249
3250 ;
3251 return 0;
3252 }
3253 _ACEOF
3254 ac_clean_files_save=$ac_clean_files
3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3256 # Try to create an executable without -o first, disregard a.out.
3257 # It will help us diagnose broken compilers, and finding out an intuition
3258 # of exeext.
3259 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3260 $as_echo_n "checking for C compiler default output file name... " >&6; }
3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3262
3263 # The possible output files:
3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3265
3266 ac_rmfiles=
3267 for ac_file in $ac_files
3268 do
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272 esac
3273 done
3274 rm -f $ac_rmfiles
3275
3276 if { (ac_try="$ac_link_default"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_link_default") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; then
3287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3290 # so that the user can short-circuit this test for compilers unknown to
3291 # Autoconf.
3292 for ac_file in $ac_files ''
3293 do
3294 test -f "$ac_file" || continue
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3297 ;;
3298 [ab].out )
3299 # We found the default executable, but exeext='' is most
3300 # certainly right.
3301 break;;
3302 *.* )
3303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3304 then :; else
3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 fi
3307 # We set ac_cv_exeext here because the later test for it is not
3308 # safe: cross compilers may not add the suffix if given an `-o'
3309 # argument, so we may need to know it at that point already.
3310 # Even if this section looks crufty: it has the advantage of
3311 # actually working.
3312 break;;
3313 * )
3314 break;;
3315 esac
3316 done
3317 test "$ac_cv_exeext" = no && ac_cv_exeext=
3318
3319 else
3320 ac_file=''
3321 fi
3322
3323 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3324 $as_echo "$ac_file" >&6; }
3325 if test -z "$ac_file"; then
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3332 See \`config.log' for more details." >&5
3333 $as_echo "$as_me: error: C compiler cannot create executables
3334 See \`config.log' for more details." >&2;}
3335 { (exit 77); exit 77; }; }; }
3336 fi
3337
3338 ac_exeext=$ac_cv_exeext
3339
3340 # Check that the compiler produces executables we can run. If not, either
3341 # the compiler is broken, or we cross compile.
3342 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3343 $as_echo_n "checking whether the C compiler works... " >&6; }
3344 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3345 # If not cross compiling, check that we can run a simple program.
3346 if test "$cross_compiling" != yes; then
3347 if { ac_try='./$ac_file'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_try") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 cross_compiling=no
3359 else
3360 if test "$cross_compiling" = maybe; then
3361 cross_compiling=yes
3362 else
3363 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details." >&5
3368 $as_echo "$as_me: error: cannot run C compiled programs.
3369 If you meant to cross compile, use \`--host'.
3370 See \`config.log' for more details." >&2;}
3371 { (exit 1); exit 1; }; }; }
3372 fi
3373 fi
3374 fi
3375 { $as_echo "$as_me:$LINENO: result: yes" >&5
3376 $as_echo "yes" >&6; }
3377
3378 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3379 ac_clean_files=$ac_clean_files_save
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3383 $as_echo_n "checking whether we are cross compiling... " >&6; }
3384 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3385 $as_echo "$cross_compiling" >&6; }
3386
3387 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3388 $as_echo_n "checking for suffix of executables... " >&6; }
3389 if { (ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; then
3400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3402 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 # `rm'.
3404 for ac_file in conftest.exe conftest conftest.*; do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 break;;
3410 * ) break;;
3411 esac
3412 done
3413 else
3414 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3417 See \`config.log' for more details." >&5
3418 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3419 See \`config.log' for more details." >&2;}
3420 { (exit 1); exit 1; }; }; }
3421 fi
3422
3423 rm -f conftest$ac_cv_exeext
3424 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3425 $as_echo "$ac_cv_exeext" >&6; }
3426
3427 rm -f conftest.$ac_ext
3428 EXEEXT=$ac_cv_exeext
3429 ac_exeext=$EXEEXT
3430 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3431 $as_echo_n "checking for suffix of object files... " >&6; }
3432 if test "${ac_cv_objext+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3434 else
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441
3442 int
3443 main ()
3444 {
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 rm -f conftest.o conftest.obj
3451 if { (ac_try="$ac_compile"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3457 $as_echo "$ac_try_echo") >&5
3458 (eval "$ac_compile") 2>&5
3459 ac_status=$?
3460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; then
3462 for ac_file in conftest.o conftest.obj conftest.*; do
3463 test -f "$ac_file" || continue;
3464 case $ac_file in
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3467 break;;
3468 esac
3469 done
3470 else
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3477 See \`config.log' for more details." >&5
3478 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3479 See \`config.log' for more details." >&2;}
3480 { (exit 1); exit 1; }; }; }
3481 fi
3482
3483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3484 fi
3485 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3486 $as_echo "$ac_cv_objext" >&6; }
3487 OBJEXT=$ac_cv_objext
3488 ac_objext=$OBJEXT
3489 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3490 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3491 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3492 $as_echo_n "(cached) " >&6
3493 else
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
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505 choke me
3506 #endif
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } && {
3527 test -z "$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 } && test -s conftest.$ac_objext; then
3530 ac_compiler_gnu=yes
3531 else
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_compiler_gnu=no
3536 fi
3537
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
3541 fi
3542 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3544 if test $ac_compiler_gnu = yes; then
3545 GCC=yes
3546 else
3547 GCC=
3548 fi
3549 ac_test_CFLAGS=${CFLAGS+set}
3550 ac_save_CFLAGS=$CFLAGS
3551 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3553 if test "${ac_cv_prog_cc_g+set}" = set; then
3554 $as_echo_n "(cached) " >&6
3555 else
3556 ac_save_c_werror_flag=$ac_c_werror_flag
3557 ac_c_werror_flag=yes
3558 ac_cv_prog_cc_g=no
3559 CFLAGS="-g"
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cc_g=yes
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 CFLAGS=""
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 :
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3638 CFLAGS="-g"
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645
3646 int
3647 main ()
3648 {
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 rm -f conftest.$ac_objext
3655 if { (ac_try="$ac_compile"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3661 $as_echo "$ac_try_echo") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && {
3669 test -z "$ac_c_werror_flag" ||
3670 test ! -s conftest.err
3671 } && test -s conftest.$ac_objext; then
3672 ac_cv_prog_cc_g=yes
3673 else
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677
3678 fi
3679
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 fi
3682
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 fi
3685
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_c_werror_flag=$ac_save_c_werror_flag
3688 fi
3689 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3690 $as_echo "$ac_cv_prog_cc_g" >&6; }
3691 if test "$ac_test_CFLAGS" = set; then
3692 CFLAGS=$ac_save_CFLAGS
3693 elif test $ac_cv_prog_cc_g = yes; then
3694 if test "$GCC" = yes; then
3695 CFLAGS="-g -O2"
3696 else
3697 CFLAGS="-g"
3698 fi
3699 else
3700 if test "$GCC" = yes; then
3701 CFLAGS="-O2"
3702 else
3703 CFLAGS=
3704 fi
3705 fi
3706 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3708 if test "${ac_cv_prog_cc_c89+set}" = set; then
3709 $as_echo_n "(cached) " >&6
3710 else
3711 ac_cv_prog_cc_c89=no
3712 ac_save_CC=$CC
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #include <stdarg.h>
3720 #include <stdio.h>
3721 #include <sys/types.h>
3722 #include <sys/stat.h>
3723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3724 struct buf { int x; };
3725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3726 static char *e (p, i)
3727 char **p;
3728 int i;
3729 {
3730 return p[i];
3731 }
3732 static char *f (char * (*g) (char **, int), char **p, ...)
3733 {
3734 char *s;
3735 va_list v;
3736 va_start (v,p);
3737 s = g (p, va_arg (v,int));
3738 va_end (v);
3739 return s;
3740 }
3741
3742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3743 function prototypes and stuff, but not '\xHH' hex character constants.
3744 These don't provoke an error unfortunately, instead are silently treated
3745 as 'x'. The following induces an error, until -std is added to get
3746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3747 array size at least. It's necessary to write '\x00'==0 to get something
3748 that's true only with -std. */
3749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3750
3751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3752 inside strings and character constants. */
3753 #define FOO(x) 'x'
3754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3755
3756 int test (int i, double x);
3757 struct s1 {int (*f) (int a);};
3758 struct s2 {int (*f) (double a);};
3759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3760 int argc;
3761 char **argv;
3762 int
3763 main ()
3764 {
3765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3772 do
3773 CC="$ac_save_CC $ac_arg"
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3781 $as_echo "$ac_try_echo") >&5
3782 (eval "$ac_compile") 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } && {
3789 test -z "$ac_c_werror_flag" ||
3790 test ! -s conftest.err
3791 } && test -s conftest.$ac_objext; then
3792 ac_cv_prog_cc_c89=$ac_arg
3793 else
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797
3798 fi
3799
3800 rm -f core conftest.err conftest.$ac_objext
3801 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 done
3803 rm -f conftest.$ac_ext
3804 CC=$ac_save_CC
3805
3806 fi
3807 # AC_CACHE_VAL
3808 case "x$ac_cv_prog_cc_c89" in
3809 x)
3810 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3811 $as_echo "none needed" >&6; } ;;
3812 xno)
3813 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3814 $as_echo "unsupported" >&6; } ;;
3815 *)
3816 CC="$CC $ac_cv_prog_cc_c89"
3817 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 esac
3820
3821
3822 ac_ext=c
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
3828 depcc="$CC" am_compiler_list=
3829
3830 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3831 $as_echo_n "checking dependency style of $depcc... " >&6; }
3832 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836 # We make a subdir and do the tests there. Otherwise we can end up
3837 # making bogus files that we don't know about and never remove. For
3838 # instance it was reported that on HP-UX the gcc test will end up
3839 # making a dummy file named `D' -- because `-MD' means `put the output
3840 # in D'.
3841 mkdir conftest.dir
3842 # Copy depcomp to subdir because otherwise we won't find it if we're
3843 # using a relative directory.
3844 cp "$am_depcomp" conftest.dir
3845 cd conftest.dir
3846 # We will build objects and dependencies in a subdirectory because
3847 # it helps to detect inapplicable dependency modes. For instance
3848 # both Tru64's cc and ICC support -MD to output dependencies as a
3849 # side effect of compilation, but ICC will put the dependencies in
3850 # the current directory while Tru64 will put them in the object
3851 # directory.
3852 mkdir sub
3853
3854 am_cv_CC_dependencies_compiler_type=none
3855 if test "$am_compiler_list" = ""; then
3856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3857 fi
3858 am__universal=false
3859 case " $depcc " in #(
3860 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3861 esac
3862
3863 for depmode in $am_compiler_list; do
3864 # Setup a source with many dependencies, because some compilers
3865 # like to wrap large dependency lists on column 80 (with \), and
3866 # we should not choose a depcomp mode which is confused by this.
3867 #
3868 # We need to recreate these files for each test, as the compiler may
3869 # overwrite some of them when testing with obscure command lines.
3870 # This happens at least with the AIX C compiler.
3871 : > sub/conftest.c
3872 for i in 1 2 3 4 5 6; do
3873 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3874 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3875 # Solaris 8's {/usr,}/bin/sh.
3876 touch sub/conftst$i.h
3877 done
3878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3879
3880 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3881 # mode. It turns out that the SunPro C++ compiler does not properly
3882 # handle `-M -o', and we need to detect this. Also, some Intel
3883 # versions had trouble with output in subdirs
3884 am__obj=sub/conftest.${OBJEXT-o}
3885 am__minus_obj="-o $am__obj"
3886 case $depmode in
3887 gcc)
3888 # This depmode causes a compiler race in universal mode.
3889 test "$am__universal" = false || continue
3890 ;;
3891 nosideeffect)
3892 # after this tag, mechanisms are not by side-effect, so they'll
3893 # only be used when explicitly requested
3894 if test "x$enable_dependency_tracking" = xyes; then
3895 continue
3896 else
3897 break
3898 fi
3899 ;;
3900 msvisualcpp | msvcmsys)
3901 # This compiler won't grok `-c -o', but also, the minuso test has
3902 # not run yet. These depmodes are late enough in the game, and
3903 # so weak that their functioning should not be impacted.
3904 am__obj=conftest.${OBJEXT-o}
3905 am__minus_obj=
3906 ;;
3907 none) break ;;
3908 esac
3909 if depmode=$depmode \
3910 source=sub/conftest.c object=$am__obj \
3911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3912 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3913 >/dev/null 2>conftest.err &&
3914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918 # icc doesn't choke on unknown options, it will just issue warnings
3919 # or remarks (even with -Werror). So we grep stderr for any message
3920 # that says an option was ignored or not supported.
3921 # When given -MP, icc 7.0 and 7.1 complain thusly:
3922 # icc: Command line warning: ignoring option '-M'; no argument required
3923 # The diagnosis changed in icc 8.0:
3924 # icc: Command line remark: option '-MP' not supported
3925 if (grep 'ignoring option' conftest.err ||
3926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927 am_cv_CC_dependencies_compiler_type=$depmode
3928 break
3929 fi
3930 fi
3931 done
3932
3933 cd ..
3934 rm -rf conftest.dir
3935 else
3936 am_cv_CC_dependencies_compiler_type=none
3937 fi
3938
3939 fi
3940 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3942 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3943
3944 if
3945 test "x$enable_dependency_tracking" != xno \
3946 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947 am__fastdepCC_TRUE=
3948 am__fastdepCC_FALSE='#'
3949 else
3950 am__fastdepCC_TRUE='#'
3951 am__fastdepCC_FALSE=
3952 fi
3953
3954
3955 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3956 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3957 if test "${lt_cv_path_SED+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3959 else
3960 # Loop through the user's path and test for sed and gsed.
3961 # Then use that list of sed's as ones to test for truncation.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for lt_ac_prog in sed gsed; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3970 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3971 fi
3972 done
3973 done
3974 done
3975 IFS=$as_save_IFS
3976 lt_ac_max=0
3977 lt_ac_count=0
3978 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3979 # along with /bin/sed that truncates output.
3980 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3981 test ! -f $lt_ac_sed && continue
3982 cat /dev/null > conftest.in
3983 lt_ac_count=0
3984 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3985 # Check for GNU sed and select it if it is found.
3986 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3987 lt_cv_path_SED=$lt_ac_sed
3988 break
3989 fi
3990 while true; do
3991 cat conftest.in conftest.in >conftest.tmp
3992 mv conftest.tmp conftest.in
3993 cp conftest.in conftest.nl
3994 echo >>conftest.nl
3995 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3996 cmp -s conftest.out conftest.nl || break
3997 # 10000 chars as input seems more than enough
3998 test $lt_ac_count -gt 10 && break
3999 lt_ac_count=`expr $lt_ac_count + 1`
4000 if test $lt_ac_count -gt $lt_ac_max; then
4001 lt_ac_max=$lt_ac_count
4002 lt_cv_path_SED=$lt_ac_sed
4003 fi
4004 done
4005 done
4006
4007 fi
4008
4009 SED=$lt_cv_path_SED
4010
4011 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4012 $as_echo "$SED" >&6; }
4013
4014 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4016 if test "${ac_cv_path_GREP+set}" = set; then
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -z "$GREP"; then
4020 ac_path_GREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in grep ggrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4031 # Check for GNU ac_path_GREP and select it if it is found.
4032 # Check for GNU $ac_path_GREP
4033 case `"$ac_path_GREP" --version 2>&1` in
4034 *GNU*)
4035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036 *)
4037 ac_count=0
4038 $as_echo_n 0123456789 >"conftest.in"
4039 while :
4040 do
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 $as_echo 'GREP' >> "conftest.nl"
4045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 ac_count=`expr $ac_count + 1`
4048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_GREP="$ac_path_GREP"
4051 ac_path_GREP_max=$ac_count
4052 fi
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 esac
4058
4059 $ac_path_GREP_found && break 3
4060 done
4061 done
4062 done
4063 IFS=$as_save_IFS
4064 if test -z "$ac_cv_path_GREP"; then
4065 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4066 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4067 { (exit 1); exit 1; }; }
4068 fi
4069 else
4070 ac_cv_path_GREP=$GREP
4071 fi
4072
4073 fi
4074 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4075 $as_echo "$ac_cv_path_GREP" >&6; }
4076 GREP="$ac_cv_path_GREP"
4077
4078
4079 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4080 $as_echo_n "checking for egrep... " >&6; }
4081 if test "${ac_cv_path_EGREP+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4085 then ac_cv_path_EGREP="$GREP -E"
4086 else
4087 if test -z "$EGREP"; then
4088 ac_path_EGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in egrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4099 # Check for GNU ac_path_EGREP and select it if it is found.
4100 # Check for GNU $ac_path_EGREP
4101 case `"$ac_path_EGREP" --version 2>&1` in
4102 *GNU*)
4103 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4104 *)
4105 ac_count=0
4106 $as_echo_n 0123456789 >"conftest.in"
4107 while :
4108 do
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'EGREP' >> "conftest.nl"
4113 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 ac_count=`expr $ac_count + 1`
4116 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_EGREP="$ac_path_EGREP"
4119 ac_path_EGREP_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127 $ac_path_EGREP_found && break 3
4128 done
4129 done
4130 done
4131 IFS=$as_save_IFS
4132 if test -z "$ac_cv_path_EGREP"; then
4133 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4134 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4135 { (exit 1); exit 1; }; }
4136 fi
4137 else
4138 ac_cv_path_EGREP=$EGREP
4139 fi
4140
4141 fi
4142 fi
4143 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4144 $as_echo "$ac_cv_path_EGREP" >&6; }
4145 EGREP="$ac_cv_path_EGREP"
4146
4147
4148
4149 # Check whether --with-gnu-ld was given.
4150 if test "${with_gnu_ld+set}" = set; then
4151 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4152 else
4153 with_gnu_ld=no
4154 fi
4155
4156 ac_prog=ld
4157 if test "$GCC" = yes; then
4158 # Check if gcc -print-prog-name=ld gives a path.
4159 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4160 $as_echo_n "checking for ld used by $CC... " >&6; }
4161 case $host in
4162 *-*-mingw*)
4163 # gcc leaves a trailing carriage return which upsets mingw
4164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4165 *)
4166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4167 esac
4168 case $ac_prog in
4169 # Accept absolute paths.
4170 [\\/]* | ?:[\\/]*)
4171 re_direlt='/[^/][^/]*/\.\./'
4172 # Canonicalize the pathname of ld
4173 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4174 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4175 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4176 done
4177 test -z "$LD" && LD="$ac_prog"
4178 ;;
4179 "")
4180 # If it fails, then pretend we aren't using GCC.
4181 ac_prog=ld
4182 ;;
4183 *)
4184 # If it is relative, then search for the first ld in PATH.
4185 with_gnu_ld=unknown
4186 ;;
4187 esac
4188 elif test "$with_gnu_ld" = yes; then
4189 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4190 $as_echo_n "checking for GNU ld... " >&6; }
4191 else
4192 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4193 $as_echo_n "checking for non-GNU ld... " >&6; }
4194 fi
4195 if test "${lt_cv_path_LD+set}" = set; then
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -z "$LD"; then
4199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4200 for ac_dir in $PATH; do
4201 IFS="$lt_save_ifs"
4202 test -z "$ac_dir" && ac_dir=.
4203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4204 lt_cv_path_LD="$ac_dir/$ac_prog"
4205 # Check to see if the program is GNU ld. I'd rather use --version,
4206 # but apparently some variants of GNU ld only accept -v.
4207 # Break only if it was the GNU/non-GNU ld that we prefer.
4208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4209 *GNU* | *'with BFD'*)
4210 test "$with_gnu_ld" != no && break
4211 ;;
4212 *)
4213 test "$with_gnu_ld" != yes && break
4214 ;;
4215 esac
4216 fi
4217 done
4218 IFS="$lt_save_ifs"
4219 else
4220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4221 fi
4222 fi
4223
4224 LD="$lt_cv_path_LD"
4225 if test -n "$LD"; then
4226 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4227 $as_echo "$LD" >&6; }
4228 else
4229 { $as_echo "$as_me:$LINENO: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4233 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4234 { (exit 1); exit 1; }; }
4235 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4236 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4238 $as_echo_n "(cached) " >&6
4239 else
4240 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4241 case `$LD -v 2>&1 </dev/null` in
4242 *GNU* | *'with BFD'*)
4243 lt_cv_prog_gnu_ld=yes
4244 ;;
4245 *)
4246 lt_cv_prog_gnu_ld=no
4247 ;;
4248 esac
4249 fi
4250 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4251 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4252 with_gnu_ld=$lt_cv_prog_gnu_ld
4253
4254
4255 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4256 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4257 if test "${lt_cv_ld_reload_flag+set}" = set; then
4258 $as_echo_n "(cached) " >&6
4259 else
4260 lt_cv_ld_reload_flag='-r'
4261 fi
4262 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4263 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4264 reload_flag=$lt_cv_ld_reload_flag
4265 case $reload_flag in
4266 "" | " "*) ;;
4267 *) reload_flag=" $reload_flag" ;;
4268 esac
4269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4270 case $host_os in
4271 darwin*)
4272 if test "$GCC" = yes; then
4273 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4274 else
4275 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4276 fi
4277 ;;
4278 esac
4279
4280 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4281 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4282 if test "${lt_cv_path_NM+set}" = set; then
4283 $as_echo_n "(cached) " >&6
4284 else
4285 if test -n "$NM"; then
4286 # Let the user override the test.
4287 lt_cv_path_NM="$NM"
4288 else
4289 lt_nm_to_check="${ac_tool_prefix}nm"
4290 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4291 lt_nm_to_check="$lt_nm_to_check nm"
4292 fi
4293 for lt_tmp_nm in $lt_nm_to_check; do
4294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4296 IFS="$lt_save_ifs"
4297 test -z "$ac_dir" && ac_dir=.
4298 tmp_nm="$ac_dir/$lt_tmp_nm"
4299 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4300 # Check to see if the nm accepts a BSD-compat flag.
4301 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4302 # nm: unknown option "B" ignored
4303 # Tru64's nm complains that /dev/null is an invalid object file
4304 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4305 */dev/null* | *'Invalid file or object type'*)
4306 lt_cv_path_NM="$tmp_nm -B"
4307 break
4308 ;;
4309 *)
4310 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4311 */dev/null*)
4312 lt_cv_path_NM="$tmp_nm -p"
4313 break
4314 ;;
4315 *)
4316 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4317 continue # so that we can try to find one that supports BSD flags
4318 ;;
4319 esac
4320 ;;
4321 esac
4322 fi
4323 done
4324 IFS="$lt_save_ifs"
4325 done
4326 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4327 fi
4328 fi
4329 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4330 $as_echo "$lt_cv_path_NM" >&6; }
4331 NM="$lt_cv_path_NM"
4332
4333 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4334 $as_echo_n "checking whether ln -s works... " >&6; }
4335 LN_S=$as_ln_s
4336 if test "$LN_S" = "ln -s"; then
4337 { $as_echo "$as_me:$LINENO: result: yes" >&5
4338 $as_echo "yes" >&6; }
4339 else
4340 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4341 $as_echo "no, using $LN_S" >&6; }
4342 fi
4343
4344 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4345 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4346 if test "${lt_cv_deplibs_check_method+set}" = set; then
4347 $as_echo_n "(cached) " >&6
4348 else
4349 lt_cv_file_magic_cmd='$MAGIC_CMD'
4350 lt_cv_file_magic_test_file=
4351 lt_cv_deplibs_check_method='unknown'
4352 # Need to set the preceding variable on all platforms that support
4353 # interlibrary dependencies.
4354 # 'none' -- dependencies not supported.
4355 # `unknown' -- same as none, but documents that we really don't know.
4356 # 'pass_all' -- all dependencies passed with no checks.
4357 # 'test_compile' -- check by making test program.
4358 # 'file_magic [[regex]]' -- check by looking for files in library path
4359 # which responds to the $file_magic_cmd with a given extended regex.
4360 # If you have `file' or equivalent on your system and you're not sure
4361 # whether `pass_all' will *always* work, you probably want this one.
4362
4363 case $host_os in
4364 aix[4-9]*)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367
4368 beos*)
4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
4371
4372 bsdi[45]*)
4373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4374 lt_cv_file_magic_cmd='/usr/bin/file -L'
4375 lt_cv_file_magic_test_file=/shlib/libc.so
4376 ;;
4377
4378 cygwin*)
4379 # func_win32_libid is a shell function defined in ltmain.sh
4380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4381 lt_cv_file_magic_cmd='func_win32_libid'
4382 ;;
4383
4384 mingw* | pw32*)
4385 # Base MSYS/MinGW do not provide the 'file' command needed by
4386 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4387 # unless we find 'file', for example because we are cross-compiling.
4388 if ( file / ) >/dev/null 2>&1; then
4389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4390 lt_cv_file_magic_cmd='func_win32_libid'
4391 else
4392 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4393 lt_cv_file_magic_cmd='$OBJDUMP -f'
4394 fi
4395 ;;
4396
4397 darwin* | rhapsody*)
4398 lt_cv_deplibs_check_method=pass_all
4399 ;;
4400
4401 freebsd* | dragonfly*)
4402 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4403 case $host_cpu in
4404 i*86 )
4405 # Not sure whether the presence of OpenBSD here was a mistake.
4406 # Let's accept both of them until this is cleared up.
4407 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4408 lt_cv_file_magic_cmd=/usr/bin/file
4409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4410 ;;
4411 esac
4412 else
4413 lt_cv_deplibs_check_method=pass_all
4414 fi
4415 ;;
4416
4417 gnu*)
4418 lt_cv_deplibs_check_method=pass_all
4419 ;;
4420
4421 hpux10.20* | hpux11*)
4422 lt_cv_file_magic_cmd=/usr/bin/file
4423 case $host_cpu in
4424 ia64*)
4425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4426 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4427 ;;
4428 hppa*64*)
4429 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]'
4430 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4431 ;;
4432 *)
4433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4434 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4435 ;;
4436 esac
4437 ;;
4438
4439 interix[3-9]*)
4440 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4442 ;;
4443
4444 irix5* | irix6* | nonstopux*)
4445 case $LD in
4446 *-32|*"-32 ") libmagic=32-bit;;
4447 *-n32|*"-n32 ") libmagic=N32;;
4448 *-64|*"-64 ") libmagic=64-bit;;
4449 *) libmagic=never-match;;
4450 esac
4451 lt_cv_deplibs_check_method=pass_all
4452 ;;
4453
4454 # This must be Linux ELF.
4455 linux* | k*bsd*-gnu)
4456 lt_cv_deplibs_check_method=pass_all
4457 ;;
4458
4459 netbsd*)
4460 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4462 else
4463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4464 fi
4465 ;;
4466
4467 newos6*)
4468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4469 lt_cv_file_magic_cmd=/usr/bin/file
4470 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4471 ;;
4472
4473 nto-qnx*)
4474 lt_cv_deplibs_check_method=unknown
4475 ;;
4476
4477 openbsd*)
4478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4480 else
4481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4482 fi
4483 ;;
4484
4485 osf3* | osf4* | osf5*)
4486 lt_cv_deplibs_check_method=pass_all
4487 ;;
4488
4489 rdos*)
4490 lt_cv_deplibs_check_method=pass_all
4491 ;;
4492
4493 solaris*)
4494 lt_cv_deplibs_check_method=pass_all
4495 ;;
4496
4497 sysv4 | sysv4.3*)
4498 case $host_vendor in
4499 motorola)
4500 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]'
4501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4502 ;;
4503 ncr)
4504 lt_cv_deplibs_check_method=pass_all
4505 ;;
4506 sequent)
4507 lt_cv_file_magic_cmd='/bin/file'
4508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4509 ;;
4510 sni)
4511 lt_cv_file_magic_cmd='/bin/file'
4512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4513 lt_cv_file_magic_test_file=/lib/libc.so
4514 ;;
4515 siemens)
4516 lt_cv_deplibs_check_method=pass_all
4517 ;;
4518 pc)
4519 lt_cv_deplibs_check_method=pass_all
4520 ;;
4521 esac
4522 ;;
4523
4524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4525 lt_cv_deplibs_check_method=pass_all
4526 ;;
4527 esac
4528
4529 fi
4530 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4531 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4532 file_magic_cmd=$lt_cv_file_magic_cmd
4533 deplibs_check_method=$lt_cv_deplibs_check_method
4534 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4535
4536
4537
4538
4539 # If no C compiler was specified, use CC.
4540 LTCC=${LTCC-"$CC"}
4541
4542 # If no C compiler flags were specified, use CFLAGS.
4543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4544
4545 # Allow CC to be a program name with arguments.
4546 compiler=$CC
4547
4548
4549 # Check whether --enable-libtool-lock was given.
4550 if test "${enable_libtool_lock+set}" = set; then
4551 enableval=$enable_libtool_lock;
4552 fi
4553
4554 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4555
4556 # Some flags need to be propagated to the compiler or linker for good
4557 # libtool support.
4558 case $host in
4559 ia64-*-hpux*)
4560 # Find out which ABI we are using.
4561 echo 'int i;' > conftest.$ac_ext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; then
4567 case `/usr/bin/file conftest.$ac_objext` in
4568 *ELF-32*)
4569 HPUX_IA64_MODE="32"
4570 ;;
4571 *ELF-64*)
4572 HPUX_IA64_MODE="64"
4573 ;;
4574 esac
4575 fi
4576 rm -rf conftest*
4577 ;;
4578 *-*-irix6*)
4579 # Find out which ABI we are using.
4580 echo '#line 4580 "configure"' > conftest.$ac_ext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
4583 ac_status=$?
4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; then
4586 if test "$lt_cv_prog_gnu_ld" = yes; then
4587 case `/usr/bin/file conftest.$ac_objext` in
4588 *32-bit*)
4589 LD="${LD-ld} -melf32bsmip"
4590 ;;
4591 *N32*)
4592 LD="${LD-ld} -melf32bmipn32"
4593 ;;
4594 *64-bit*)
4595 LD="${LD-ld} -melf64bmip"
4596 ;;
4597 esac
4598 else
4599 case `/usr/bin/file conftest.$ac_objext` in
4600 *32-bit*)
4601 LD="${LD-ld} -32"
4602 ;;
4603 *N32*)
4604 LD="${LD-ld} -n32"
4605 ;;
4606 *64-bit*)
4607 LD="${LD-ld} -64"
4608 ;;
4609 esac
4610 fi
4611 fi
4612 rm -rf conftest*
4613 ;;
4614
4615 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4616 s390*-*linux*|sparc*-*linux*)
4617 # Find out which ABI we are using.
4618 echo 'int i;' > conftest.$ac_ext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; then
4624 case `/usr/bin/file conftest.o` in
4625 *32-bit*)
4626 case $host in
4627 x86_64-*kfreebsd*-gnu)
4628 LD="${LD-ld} -m elf_i386_fbsd"
4629 ;;
4630 x86_64-*linux*)
4631 LD="${LD-ld} -m elf_i386"
4632 ;;
4633 ppc64-*linux*|powerpc64-*linux*)
4634 LD="${LD-ld} -m elf32ppclinux"
4635 ;;
4636 s390x-*linux*)
4637 LD="${LD-ld} -m elf_s390"
4638 ;;
4639 sparc64-*linux*)
4640 LD="${LD-ld} -m elf32_sparc"
4641 ;;
4642 esac
4643 ;;
4644 *64-bit*)
4645 libsuff=64
4646 case $host in
4647 x86_64-*kfreebsd*-gnu)
4648 LD="${LD-ld} -m elf_x86_64_fbsd"
4649 ;;
4650 x86_64-*linux*)
4651 LD="${LD-ld} -m elf_x86_64"
4652 ;;
4653 ppc*-*linux*|powerpc*-*linux*)
4654 LD="${LD-ld} -m elf64ppc"
4655 ;;
4656 s390*-*linux*)
4657 LD="${LD-ld} -m elf64_s390"
4658 ;;
4659 sparc*-*linux*)
4660 LD="${LD-ld} -m elf64_sparc"
4661 ;;
4662 esac
4663 ;;
4664 esac
4665 fi
4666 rm -rf conftest*
4667 ;;
4668
4669 *-*-sco3.2v5*)
4670 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4671 SAVE_CFLAGS="$CFLAGS"
4672 CFLAGS="$CFLAGS -belf"
4673 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4674 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4675 if test "${lt_cv_cc_needs_belf+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4677 else
4678 ac_ext=c
4679 ac_cpp='$CPP $CPPFLAGS'
4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (ac_try="$ac_link"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_link") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest$ac_exeext && {
4717 test "$cross_compiling" = yes ||
4718 $as_test_x conftest$ac_exeext
4719 }; then
4720 lt_cv_cc_needs_belf=yes
4721 else
4722 $as_echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 lt_cv_cc_needs_belf=no
4726 fi
4727
4728 rm -rf conftest.dSYM
4729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4730 conftest$ac_exeext conftest.$ac_ext
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737 fi
4738 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4739 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4740 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4741 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4742 CFLAGS="$SAVE_CFLAGS"
4743 fi
4744 ;;
4745 sparc*-*solaris*)
4746 # Find out which ABI we are using.
4747 echo 'int i;' > conftest.$ac_ext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>&5
4750 ac_status=$?
4751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; then
4753 case `/usr/bin/file conftest.o` in
4754 *64-bit*)
4755 case $lt_cv_prog_gnu_ld in
4756 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4757 *)
4758 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4759 LD="${LD-ld} -64"
4760 fi
4761 ;;
4762 esac
4763 ;;
4764 esac
4765 fi
4766 rm -rf conftest*
4767 ;;
4768
4769
4770 esac
4771
4772 need_locks="$enable_libtool_lock"
4773
4774
4775 ac_ext=c
4776 ac_cpp='$CPP $CPPFLAGS'
4777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4781 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4782 # On Suns, sometimes $CPP names a directory.
4783 if test -n "$CPP" && test -d "$CPP"; then
4784 CPP=
4785 fi
4786 if test -z "$CPP"; then
4787 if test "${ac_cv_prog_CPP+set}" = set; then
4788 $as_echo_n "(cached) " >&6
4789 else
4790 # Double quotes because CPP needs to be expanded
4791 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4792 do
4793 ac_preproc_ok=false
4794 for ac_c_preproc_warn_flag in '' yes
4795 do
4796 # Use a header file that comes with gcc, so configuring glibc
4797 # with a fresh cross-compiler works.
4798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799 # <limits.h> exists even on freestanding compilers.
4800 # On the NeXT, cc -E runs the code through the compiler's parser,
4801 # not just through cpp. "Syntax error" is here to catch this case.
4802 cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #ifdef __STDC__
4809 # include <limits.h>
4810 #else
4811 # include <assert.h>
4812 #endif
4813 Syntax error
4814 _ACEOF
4815 if { (ac_try="$ac_cpp conftest.$ac_ext"
4816 case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4819 esac
4820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4821 $as_echo "$ac_try_echo") >&5
4822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } >/dev/null && {
4829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 }; then
4832 :
4833 else
4834 $as_echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 # Broken: fails on valid input.
4838 continue
4839 fi
4840
4841 rm -f conftest.err conftest.$ac_ext
4842
4843 # OK, works on sane cases. Now check whether nonexistent headers
4844 # can be detected and how.
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <ac_nonexistent.h>
4852 _ACEOF
4853 if { (ac_try="$ac_cpp conftest.$ac_ext"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4859 $as_echo "$ac_try_echo") >&5
4860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } >/dev/null && {
4867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 }; then
4870 # Broken: success on invalid input.
4871 continue
4872 else
4873 $as_echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 # Passes both tests.
4877 ac_preproc_ok=:
4878 break
4879 fi
4880
4881 rm -f conftest.err conftest.$ac_ext
4882
4883 done
4884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4885 rm -f conftest.err conftest.$ac_ext
4886 if $ac_preproc_ok; then
4887 break
4888 fi
4889
4890 done
4891 ac_cv_prog_CPP=$CPP
4892
4893 fi
4894 CPP=$ac_cv_prog_CPP
4895 else
4896 ac_cv_prog_CPP=$CPP
4897 fi
4898 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4899 $as_echo "$CPP" >&6; }
4900 ac_preproc_ok=false
4901 for ac_c_preproc_warn_flag in '' yes
4902 do
4903 # Use a header file that comes with gcc, so configuring glibc
4904 # with a fresh cross-compiler works.
4905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906 # <limits.h> exists even on freestanding compilers.
4907 # On the NeXT, cc -E runs the code through the compiler's parser,
4908 # not just through cpp. "Syntax error" is here to catch this case.
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #ifdef __STDC__
4916 # include <limits.h>
4917 #else
4918 # include <assert.h>
4919 #endif
4920 Syntax error
4921 _ACEOF
4922 if { (ac_try="$ac_cpp conftest.$ac_ext"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } >/dev/null && {
4936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 }; then
4939 :
4940 else
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 # Broken: fails on valid input.
4945 continue
4946 fi
4947
4948 rm -f conftest.err conftest.$ac_ext
4949
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #include <ac_nonexistent.h>
4959 _ACEOF
4960 if { (ac_try="$ac_cpp conftest.$ac_ext"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4966 $as_echo "$ac_try_echo") >&5
4967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null && {
4974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 }; then
4977 # Broken: success on invalid input.
4978 continue
4979 else
4980 $as_echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 # Passes both tests.
4984 ac_preproc_ok=:
4985 break
4986 fi
4987
4988 rm -f conftest.err conftest.$ac_ext
4989
4990 done
4991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4992 rm -f conftest.err conftest.$ac_ext
4993 if $ac_preproc_ok; then
4994 :
4995 else
4996 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4998 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&5
5000 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5001 See \`config.log' for more details." >&2;}
5002 { (exit 1); exit 1; }; }; }
5003 fi
5004
5005 ac_ext=c
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011
5012 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5013 $as_echo_n "checking for ANSI C header files... " >&6; }
5014 if test "${ac_cv_header_stdc+set}" = set; then
5015 $as_echo_n "(cached) " >&6
5016 else
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 #include <stdlib.h>
5024 #include <stdarg.h>
5025 #include <string.h>
5026 #include <float.h>
5027
5028 int
5029 main ()
5030 {
5031
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (ac_try="$ac_compile"
5038 case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5043 $as_echo "$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 $as_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_cv_header_stdc=yes
5055 else
5056 $as_echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 ac_cv_header_stdc=no
5060 fi
5061
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063
5064 if test $ac_cv_header_stdc = yes; then
5065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <string.h>
5073
5074 _ACEOF
5075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5076 $EGREP "memchr" >/dev/null 2>&1; then
5077 :
5078 else
5079 ac_cv_header_stdc=no
5080 fi
5081 rm -f conftest*
5082
5083 fi
5084
5085 if test $ac_cv_header_stdc = yes; then
5086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <stdlib.h>
5094
5095 _ACEOF
5096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5097 $EGREP "free" >/dev/null 2>&1; then
5098 :
5099 else
5100 ac_cv_header_stdc=no
5101 fi
5102 rm -f conftest*
5103
5104 fi
5105
5106 if test $ac_cv_header_stdc = yes; then
5107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5108 if test "$cross_compiling" = yes; then
5109 :
5110 else
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #include <ctype.h>
5118 #include <stdlib.h>
5119 #if ((' ' & 0x0FF) == 0x020)
5120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5122 #else
5123 # define ISLOWER(c) \
5124 (('a' <= (c) && (c) <= 'i') \
5125 || ('j' <= (c) && (c) <= 'r') \
5126 || ('s' <= (c) && (c) <= 'z'))
5127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5128 #endif
5129
5130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5131 int
5132 main ()
5133 {
5134 int i;
5135 for (i = 0; i < 256; i++)
5136 if (XOR (islower (i), ISLOWER (i))
5137 || toupper (i) != TOUPPER (i))
5138 return 2;
5139 return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest$ac_exeext
5143 if { (ac_try="$ac_link"
5144 case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147 esac
5148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5149 $as_echo "$ac_try_echo") >&5
5150 (eval "$ac_link") 2>&5
5151 ac_status=$?
5152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5154 { (case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5159 $as_echo "$ac_try_echo") >&5
5160 (eval "$ac_try") 2>&5
5161 ac_status=$?
5162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 :
5165 else
5166 $as_echo "$as_me: program exited with status $ac_status" >&5
5167 $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170 ( exit $ac_status )
5171 ac_cv_header_stdc=no
5172 fi
5173 rm -rf conftest.dSYM
5174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5175 fi
5176
5177
5178 fi
5179 fi
5180 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5181 $as_echo "$ac_cv_header_stdc" >&6; }
5182 if test $ac_cv_header_stdc = yes; then
5183
5184 cat >>confdefs.h <<\_ACEOF
5185 #define STDC_HEADERS 1
5186 _ACEOF
5187
5188 fi
5189
5190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5201 inttypes.h stdint.h unistd.h
5202 do
5203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5205 $as_echo_n "checking for $ac_header... " >&6; }
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207 $as_echo_n "(cached) " >&6
5208 else
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 $ac_includes_default
5216
5217 #include <$ac_header>
5218 _ACEOF
5219 rm -f conftest.$ac_objext
5220 if { (ac_try="$ac_compile"
5221 case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224 esac
5225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5226 $as_echo "$ac_try_echo") >&5
5227 (eval "$ac_compile") 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && {
5234 test -z "$ac_c_werror_flag" ||
5235 test ! -s conftest.err
5236 } && test -s conftest.$ac_objext; then
5237 eval "$as_ac_Header=yes"
5238 else
5239 $as_echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 eval "$as_ac_Header=no"
5243 fi
5244
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 fi
5247 ac_res=`eval 'as_val=${'$as_ac_Header'}
5248 $as_echo "$as_val"'`
5249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5250 $as_echo "$ac_res" >&6; }
5251 as_val=`eval 'as_val=${'$as_ac_Header'}
5252 $as_echo "$as_val"'`
5253 if test "x$as_val" = x""yes; then
5254 cat >>confdefs.h <<_ACEOF
5255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5256 _ACEOF
5257
5258 fi
5259
5260 done
5261
5262
5263
5264 for ac_header in dlfcn.h
5265 do
5266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5269 $as_echo_n "checking for $ac_header... " >&6; }
5270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5271 $as_echo_n "(cached) " >&6
5272 fi
5273 ac_res=`eval 'as_val=${'$as_ac_Header'}
5274 $as_echo "$as_val"'`
5275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5276 $as_echo "$ac_res" >&6; }
5277 else
5278 # Is the header compilable?
5279 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5280 $as_echo_n "checking $ac_header usability... " >&6; }
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5288 #include <$ac_header>
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (ac_try="$ac_compile"
5292 case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5297 $as_echo "$ac_try_echo") >&5
5298 (eval "$ac_compile") 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && {
5305 test -z "$ac_c_werror_flag" ||
5306 test ! -s conftest.err
5307 } && test -s conftest.$ac_objext; then
5308 ac_header_compiler=yes
5309 else
5310 $as_echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ac_header_compiler=no
5314 fi
5315
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5318 $as_echo "$ac_header_compiler" >&6; }
5319
5320 # Is the header present?
5321 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5322 $as_echo_n "checking $ac_header presence... " >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <$ac_header>
5330 _ACEOF
5331 if { (ac_try="$ac_cpp conftest.$ac_ext"
5332 case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335 esac
5336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5337 $as_echo "$ac_try_echo") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null && {
5345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 }; then
5348 ac_header_preproc=yes
5349 else
5350 $as_echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_header_preproc=no
5354 fi
5355
5356 rm -f conftest.err conftest.$ac_ext
5357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5358 $as_echo "$ac_header_preproc" >&6; }
5359
5360 # So? What about this header?
5361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5362 yes:no: )
5363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5364 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5367 ac_header_preproc=yes
5368 ;;
5369 no:yes:* )
5370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5371 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5373 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5375 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5377 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5381 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5382 ( cat <<\_ASBOX
5383 ## ---------------------------------------------------------------------- ##
5384 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5385 ## ---------------------------------------------------------------------- ##
5386 _ASBOX
5387 ) | sed "s/^/$as_me: WARNING: /" >&2
5388 ;;
5389 esac
5390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5391 $as_echo_n "checking for $ac_header... " >&6; }
5392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5393 $as_echo_n "(cached) " >&6
5394 else
5395 eval "$as_ac_Header=\$ac_header_preproc"
5396 fi
5397 ac_res=`eval 'as_val=${'$as_ac_Header'}
5398 $as_echo "$as_val"'`
5399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5400 $as_echo "$ac_res" >&6; }
5401
5402 fi
5403 as_val=`eval 'as_val=${'$as_ac_Header'}
5404 $as_echo "$as_val"'`
5405 if test "x$as_val" = x""yes; then
5406 cat >>confdefs.h <<_ACEOF
5407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5408 _ACEOF
5409
5410 fi
5411
5412 done
5413
5414 ac_ext=cpp
5415 ac_cpp='$CXXCPP $CPPFLAGS'
5416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5419 if test -z "$CXX"; then
5420 if test -n "$CCC"; then
5421 CXX=$CCC
5422 else
5423 if test -n "$ac_tool_prefix"; then
5424 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5425 do
5426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_CXX+set}" = set; then
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$CXX"; then
5434 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447 done
5448 done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 CXX=$ac_cv_prog_CXX
5454 if test -n "$CXX"; then
5455 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5456 $as_echo "$CXX" >&6; }
5457 else
5458 { $as_echo "$as_me:$LINENO: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462
5463 test -n "$CXX" && break
5464 done
5465 fi
5466 if test -z "$CXX"; then
5467 ac_ct_CXX=$CXX
5468 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5469 do
5470 # Extract the first word of "$ac_prog", so it can be a program name with args.
5471 set dummy $ac_prog; ac_word=$2
5472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5475 $as_echo_n "(cached) " >&6
5476 else
5477 if test -n "$ac_ct_CXX"; then
5478 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_prog_ac_ct_CXX="$ac_prog"
5488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5490 fi
5491 done
5492 done
5493 IFS=$as_save_IFS
5494
5495 fi
5496 fi
5497 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5498 if test -n "$ac_ct_CXX"; then
5499 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5500 $as_echo "$ac_ct_CXX" >&6; }
5501 else
5502 { $as_echo "$as_me:$LINENO: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507 test -n "$ac_ct_CXX" && break
5508 done
5509
5510 if test "x$ac_ct_CXX" = x; then
5511 CXX="g++"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514 yes:)
5515 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517 ac_tool_warned=yes ;;
5518 esac
5519 CXX=$ac_ct_CXX
5520 fi
5521 fi
5522
5523 fi
5524 fi
5525 # Provide some information about the compiler.
5526 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5527 set X $ac_compile
5528 ac_compiler=$2
5529 { (ac_try="$ac_compiler --version >&5"
5530 case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5535 $as_echo "$ac_try_echo") >&5
5536 (eval "$ac_compiler --version >&5") 2>&5
5537 ac_status=$?
5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }
5540 { (ac_try="$ac_compiler -v >&5"
5541 case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544 esac
5545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5546 $as_echo "$ac_try_echo") >&5
5547 (eval "$ac_compiler -v >&5") 2>&5
5548 ac_status=$?
5549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }
5551 { (ac_try="$ac_compiler -V >&5"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557 $as_echo "$ac_try_echo") >&5
5558 (eval "$ac_compiler -V >&5") 2>&5
5559 ac_status=$?
5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }
5562
5563 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5564 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5566 $as_echo_n "(cached) " >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574
5575 int
5576 main ()
5577 {
5578 #ifndef __GNUC__
5579 choke me
5580 #endif
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_cxx_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 ac_compiler_gnu=yes
5605 else
5606 $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ac_compiler_gnu=no
5610 fi
5611
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5614
5615 fi
5616 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5617 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5618 if test $ac_compiler_gnu = yes; then
5619 GXX=yes
5620 else
5621 GXX=
5622 fi
5623 ac_test_CXXFLAGS=${CXXFLAGS+set}
5624 ac_save_CXXFLAGS=$CXXFLAGS
5625 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5626 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5627 if test "${ac_cv_prog_cxx_g+set}" = set; then
5628 $as_echo_n "(cached) " >&6
5629 else
5630 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5631 ac_cxx_werror_flag=yes
5632 ac_cv_prog_cxx_g=no
5633 CXXFLAGS="-g"
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640
5641 int
5642 main ()
5643 {
5644
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5651 case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5656 $as_echo "$ac_try_echo") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_cxx_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_cv_prog_cxx_g=yes
5668 else
5669 $as_echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 CXXFLAGS=""
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679
5680 int
5681 main ()
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5690 case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5695 $as_echo "$ac_try_echo") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_cxx_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
5706 :
5707 else
5708 $as_echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5712 CXXFLAGS="-g"
5713 cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h. */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719
5720 int
5721 main ()
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (ac_try="$ac_compile"
5730 case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5735 $as_echo "$ac_try_echo") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && {
5743 test -z "$ac_cxx_werror_flag" ||
5744 test ! -s conftest.err
5745 } && test -s conftest.$ac_objext; then
5746 ac_cv_prog_cxx_g=yes
5747 else
5748 $as_echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751
5752 fi
5753
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 fi
5756
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5762 fi
5763 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5764 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5765 if test "$ac_test_CXXFLAGS" = set; then
5766 CXXFLAGS=$ac_save_CXXFLAGS
5767 elif test $ac_cv_prog_cxx_g = yes; then
5768 if test "$GXX" = yes; then
5769 CXXFLAGS="-g -O2"
5770 else
5771 CXXFLAGS="-g"
5772 fi
5773 else
5774 if test "$GXX" = yes; then
5775 CXXFLAGS="-O2"
5776 else
5777 CXXFLAGS=
5778 fi
5779 fi
5780 ac_ext=cpp
5781 ac_cpp='$CXXCPP $CPPFLAGS'
5782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5785
5786 depcc="$CXX" am_compiler_list=
5787
5788 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5789 $as_echo_n "checking dependency style of $depcc... " >&6; }
5790 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5794 # We make a subdir and do the tests there. Otherwise we can end up
5795 # making bogus files that we don't know about and never remove. For
5796 # instance it was reported that on HP-UX the gcc test will end up
5797 # making a dummy file named `D' -- because `-MD' means `put the output
5798 # in D'.
5799 mkdir conftest.dir
5800 # Copy depcomp to subdir because otherwise we won't find it if we're
5801 # using a relative directory.
5802 cp "$am_depcomp" conftest.dir
5803 cd conftest.dir
5804 # We will build objects and dependencies in a subdirectory because
5805 # it helps to detect inapplicable dependency modes. For instance
5806 # both Tru64's cc and ICC support -MD to output dependencies as a
5807 # side effect of compilation, but ICC will put the dependencies in
5808 # the current directory while Tru64 will put them in the object
5809 # directory.
5810 mkdir sub
5811
5812 am_cv_CXX_dependencies_compiler_type=none
5813 if test "$am_compiler_list" = ""; then
5814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5815 fi
5816 am__universal=false
5817 case " $depcc " in #(
5818 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5819 esac
5820
5821 for depmode in $am_compiler_list; do
5822 # Setup a source with many dependencies, because some compilers
5823 # like to wrap large dependency lists on column 80 (with \), and
5824 # we should not choose a depcomp mode which is confused by this.
5825 #
5826 # We need to recreate these files for each test, as the compiler may
5827 # overwrite some of them when testing with obscure command lines.
5828 # This happens at least with the AIX C compiler.
5829 : > sub/conftest.c
5830 for i in 1 2 3 4 5 6; do
5831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5833 # Solaris 8's {/usr,}/bin/sh.
5834 touch sub/conftst$i.h
5835 done
5836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5837
5838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5839 # mode. It turns out that the SunPro C++ compiler does not properly
5840 # handle `-M -o', and we need to detect this. Also, some Intel
5841 # versions had trouble with output in subdirs
5842 am__obj=sub/conftest.${OBJEXT-o}
5843 am__minus_obj="-o $am__obj"
5844 case $depmode in
5845 gcc)
5846 # This depmode causes a compiler race in universal mode.
5847 test "$am__universal" = false || continue
5848 ;;
5849 nosideeffect)
5850 # after this tag, mechanisms are not by side-effect, so they'll
5851 # only be used when explicitly requested
5852 if test "x$enable_dependency_tracking" = xyes; then
5853 continue
5854 else
5855 break
5856 fi
5857 ;;
5858 msvisualcpp | msvcmsys)
5859 # This compiler won't grok `-c -o', but also, the minuso test has
5860 # not run yet. These depmodes are late enough in the game, and
5861 # so weak that their functioning should not be impacted.
5862 am__obj=conftest.${OBJEXT-o}
5863 am__minus_obj=
5864 ;;
5865 none) break ;;
5866 esac
5867 if depmode=$depmode \
5868 source=sub/conftest.c object=$am__obj \
5869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5871 >/dev/null 2>conftest.err &&
5872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5876 # icc doesn't choke on unknown options, it will just issue warnings
5877 # or remarks (even with -Werror). So we grep stderr for any message
5878 # that says an option was ignored or not supported.
5879 # When given -MP, icc 7.0 and 7.1 complain thusly:
5880 # icc: Command line warning: ignoring option '-M'; no argument required
5881 # The diagnosis changed in icc 8.0:
5882 # icc: Command line remark: option '-MP' not supported
5883 if (grep 'ignoring option' conftest.err ||
5884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5885 am_cv_CXX_dependencies_compiler_type=$depmode
5886 break
5887 fi
5888 fi
5889 done
5890
5891 cd ..
5892 rm -rf conftest.dir
5893 else
5894 am_cv_CXX_dependencies_compiler_type=none
5895 fi
5896
5897 fi
5898 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5899 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5900 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5901
5902 if
5903 test "x$enable_dependency_tracking" != xno \
5904 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5905 am__fastdepCXX_TRUE=
5906 am__fastdepCXX_FALSE='#'
5907 else
5908 am__fastdepCXX_TRUE='#'
5909 am__fastdepCXX_FALSE=
5910 fi
5911
5912
5913
5914
5915 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5916 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5917 (test "X$CXX" != "Xg++"))) ; then
5918 ac_ext=cpp
5919 ac_cpp='$CXXCPP $CPPFLAGS'
5920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5923 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5924 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5925 if test -z "$CXXCPP"; then
5926 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5927 $as_echo_n "(cached) " >&6
5928 else
5929 # Double quotes because CXXCPP needs to be expanded
5930 for CXXCPP in "$CXX -E" "/lib/cpp"
5931 do
5932 ac_preproc_ok=false
5933 for ac_cxx_preproc_warn_flag in '' yes
5934 do
5935 # Use a header file that comes with gcc, so configuring glibc
5936 # with a fresh cross-compiler works.
5937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5938 # <limits.h> exists even on freestanding compilers.
5939 # On the NeXT, cc -E runs the code through the compiler's parser,
5940 # not just through cpp. "Syntax error" is here to catch this case.
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 #ifdef __STDC__
5948 # include <limits.h>
5949 #else
5950 # include <assert.h>
5951 #endif
5952 Syntax error
5953 _ACEOF
5954 if { (ac_try="$ac_cpp conftest.$ac_ext"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960 $as_echo "$ac_try_echo") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 :
5972 else
5973 $as_echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 # Broken: fails on valid input.
5977 continue
5978 fi
5979
5980 rm -f conftest.err conftest.$ac_ext
5981
5982 # OK, works on sane cases. Now check whether nonexistent headers
5983 # can be detected and how.
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <ac_nonexistent.h>
5991 _ACEOF
5992 if { (ac_try="$ac_cpp conftest.$ac_ext"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998 $as_echo "$ac_try_echo") >&5
5999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } >/dev/null && {
6006 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6007 test ! -s conftest.err
6008 }; then
6009 # Broken: success on invalid input.
6010 continue
6011 else
6012 $as_echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 # Passes both tests.
6016 ac_preproc_ok=:
6017 break
6018 fi
6019
6020 rm -f conftest.err conftest.$ac_ext
6021
6022 done
6023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6024 rm -f conftest.err conftest.$ac_ext
6025 if $ac_preproc_ok; then
6026 break
6027 fi
6028
6029 done
6030 ac_cv_prog_CXXCPP=$CXXCPP
6031
6032 fi
6033 CXXCPP=$ac_cv_prog_CXXCPP
6034 else
6035 ac_cv_prog_CXXCPP=$CXXCPP
6036 fi
6037 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6038 $as_echo "$CXXCPP" >&6; }
6039 ac_preproc_ok=false
6040 for ac_cxx_preproc_warn_flag in '' yes
6041 do
6042 # Use a header file that comes with gcc, so configuring glibc
6043 # with a fresh cross-compiler works.
6044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6045 # <limits.h> exists even on freestanding compilers.
6046 # On the NeXT, cc -E runs the code through the compiler's parser,
6047 # not just through cpp. "Syntax error" is here to catch this case.
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #ifdef __STDC__
6055 # include <limits.h>
6056 #else
6057 # include <assert.h>
6058 #endif
6059 Syntax error
6060 _ACEOF
6061 if { (ac_try="$ac_cpp conftest.$ac_ext"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6067 $as_echo "$ac_try_echo") >&5
6068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } >/dev/null && {
6075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6076 test ! -s conftest.err
6077 }; then
6078 :
6079 else
6080 $as_echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 # Broken: fails on valid input.
6084 continue
6085 fi
6086
6087 rm -f conftest.err conftest.$ac_ext
6088
6089 # OK, works on sane cases. Now check whether nonexistent headers
6090 # can be detected and how.
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 #include <ac_nonexistent.h>
6098 _ACEOF
6099 if { (ac_try="$ac_cpp conftest.$ac_ext"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } >/dev/null && {
6113 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6114 test ! -s conftest.err
6115 }; then
6116 # Broken: success on invalid input.
6117 continue
6118 else
6119 $as_echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 # Passes both tests.
6123 ac_preproc_ok=:
6124 break
6125 fi
6126
6127 rm -f conftest.err conftest.$ac_ext
6128
6129 done
6130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6131 rm -f conftest.err conftest.$ac_ext
6132 if $ac_preproc_ok; then
6133 :
6134 else
6135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6137 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6138 See \`config.log' for more details." >&5
6139 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6140 See \`config.log' for more details." >&2;}
6141 { (exit 1); exit 1; }; }; }
6142 fi
6143
6144 ac_ext=cpp
6145 ac_cpp='$CXXCPP $CPPFLAGS'
6146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6149
6150 fi
6151
6152
6153 ac_ext=f
6154 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6155 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6157 if test -n "$ac_tool_prefix"; then
6158 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
6159 do
6160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_F77+set}" = set; then
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$F77"; then
6168 ac_cv_prog_F77="$F77" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 F77=$ac_cv_prog_F77
6188 if test -n "$F77"; then
6189 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6190 $as_echo "$F77" >&6; }
6191 else
6192 { $as_echo "$as_me:$LINENO: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196
6197 test -n "$F77" && break
6198 done
6199 fi
6200 if test -z "$F77"; then
6201 ac_ct_F77=$F77
6202 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
6203 do
6204 # Extract the first word of "$ac_prog", so it can be a program name with args.
6205 set dummy $ac_prog; ac_word=$2
6206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$ac_ct_F77"; then
6212 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_ac_ct_F77="$ac_prog"
6222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6232 if test -n "$ac_ct_F77"; then
6233 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6234 $as_echo "$ac_ct_F77" >&6; }
6235 else
6236 { $as_echo "$as_me:$LINENO: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240
6241 test -n "$ac_ct_F77" && break
6242 done
6243
6244 if test "x$ac_ct_F77" = x; then
6245 F77=""
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253 F77=$ac_ct_F77
6254 fi
6255 fi
6256
6257
6258 # Provide some information about the compiler.
6259 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6260 set X $ac_compile
6261 ac_compiler=$2
6262 { (ac_try="$ac_compiler --version >&5"
6263 case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266 esac
6267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6268 $as_echo "$ac_try_echo") >&5
6269 (eval "$ac_compiler --version >&5") 2>&5
6270 ac_status=$?
6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }
6273 { (ac_try="$ac_compiler -v >&5"
6274 case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277 esac
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280 (eval "$ac_compiler -v >&5") 2>&5
6281 ac_status=$?
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }
6284 { (ac_try="$ac_compiler -V >&5"
6285 case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288 esac
6289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6290 $as_echo "$ac_try_echo") >&5
6291 (eval "$ac_compiler -V >&5") 2>&5
6292 ac_status=$?
6293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }
6295 rm -f a.out
6296
6297 # If we don't use `.F' as extension, the preprocessor is not run on the
6298 # input file. (Note that this only needs to work for GNU compilers.)
6299 ac_save_ext=$ac_ext
6300 ac_ext=F
6301 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6302 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6303 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6304 $as_echo_n "(cached) " >&6
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 program main
6308 #ifndef __GNUC__
6309 choke me
6310 #endif
6311
6312 end
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319 esac
6320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6321 $as_echo "$ac_try_echo") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_f77_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest.$ac_objext; then
6332 ac_compiler_gnu=yes
6333 else
6334 $as_echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_compiler_gnu=no
6338 fi
6339
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6342
6343 fi
6344 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6345 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6346 ac_ext=$ac_save_ext
6347 ac_test_FFLAGS=${FFLAGS+set}
6348 ac_save_FFLAGS=$FFLAGS
6349 FFLAGS=
6350 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6351 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6352 if test "${ac_cv_prog_f77_g+set}" = set; then
6353 $as_echo_n "(cached) " >&6
6354 else
6355 FFLAGS=-g
6356 cat >conftest.$ac_ext <<_ACEOF
6357 program main
6358
6359 end
6360 _ACEOF
6361 rm -f conftest.$ac_objext
6362 if { (ac_try="$ac_compile"
6363 case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366 esac
6367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6368 $as_echo "$ac_try_echo") >&5
6369 (eval "$ac_compile") 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && {
6376 test -z "$ac_f77_werror_flag" ||
6377 test ! -s conftest.err
6378 } && test -s conftest.$ac_objext; then
6379 ac_cv_prog_f77_g=yes
6380 else
6381 $as_echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6383
6384 ac_cv_prog_f77_g=no
6385 fi
6386
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388
6389 fi
6390 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6391 $as_echo "$ac_cv_prog_f77_g" >&6; }
6392 if test "$ac_test_FFLAGS" = set; then
6393 FFLAGS=$ac_save_FFLAGS
6394 elif test $ac_cv_prog_f77_g = yes; then
6395 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6396 FFLAGS="-g -O2"
6397 else
6398 FFLAGS="-g"
6399 fi
6400 else
6401 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6402 FFLAGS="-O2"
6403 else
6404 FFLAGS=
6405 fi
6406 fi
6407
6408 if test $ac_compiler_gnu = yes; then
6409 G77=yes
6410 else
6411 G77=
6412 fi
6413 ac_ext=c
6414 ac_cpp='$CPP $CPPFLAGS'
6415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418
6419
6420
6421 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6422 # find the maximum length of command line arguments
6423 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6424 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6425 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6426 $as_echo_n "(cached) " >&6
6427 else
6428 i=0
6429 teststring="ABCD"
6430
6431 case $build_os in
6432 msdosdjgpp*)
6433 # On DJGPP, this test can blow up pretty badly due to problems in libc
6434 # (any single argument exceeding 2000 bytes causes a buffer overrun
6435 # during glob expansion). Even if it were fixed, the result of this
6436 # check would be larger than it should be.
6437 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6438 ;;
6439
6440 gnu*)
6441 # Under GNU Hurd, this test is not required because there is
6442 # no limit to the length of command line arguments.
6443 # Libtool will interpret -1 as no limit whatsoever
6444 lt_cv_sys_max_cmd_len=-1;
6445 ;;
6446
6447 cygwin* | mingw*)
6448 # On Win9x/ME, this test blows up -- it succeeds, but takes
6449 # about 5 minutes as the teststring grows exponentially.
6450 # Worse, since 9x/ME are not pre-emptively multitasking,
6451 # you end up with a "frozen" computer, even though with patience
6452 # the test eventually succeeds (with a max line length of 256k).
6453 # Instead, let's just punt: use the minimum linelength reported by
6454 # all of the supported platforms: 8192 (on NT/2K/XP).
6455 lt_cv_sys_max_cmd_len=8192;
6456 ;;
6457
6458 amigaos*)
6459 # On AmigaOS with pdksh, this test takes hours, literally.
6460 # So we just punt and use a minimum line length of 8192.
6461 lt_cv_sys_max_cmd_len=8192;
6462 ;;
6463
6464 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6465 # This has been around since 386BSD, at least. Likely further.
6466 if test -x /sbin/sysctl; then
6467 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6468 elif test -x /usr/sbin/sysctl; then
6469 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6470 else
6471 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6472 fi
6473 # And add a safety zone
6474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6476 ;;
6477
6478 interix*)
6479 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6480 lt_cv_sys_max_cmd_len=196608
6481 ;;
6482
6483 osf*)
6484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6486 # nice to cause kernel panics so lets avoid the loop below.
6487 # First set a reasonable default.
6488 lt_cv_sys_max_cmd_len=16384
6489 #
6490 if test -x /sbin/sysconfig; then
6491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6492 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6493 esac
6494 fi
6495 ;;
6496 sco3.2v5*)
6497 lt_cv_sys_max_cmd_len=102400
6498 ;;
6499 sysv5* | sco5v6* | sysv4.2uw2*)
6500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6501 if test -n "$kargmax"; then
6502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6503 else
6504 lt_cv_sys_max_cmd_len=32768
6505 fi
6506 ;;
6507 *)
6508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6509 if test -n "$lt_cv_sys_max_cmd_len"; then
6510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6512 else
6513 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6514 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6515 = "XX$teststring") >/dev/null 2>&1 &&
6516 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6517 lt_cv_sys_max_cmd_len=$new_result &&
6518 test $i != 17 # 1/2 MB should be enough
6519 do
6520 i=`expr $i + 1`
6521 teststring=$teststring$teststring
6522 done
6523 teststring=
6524 # Add a significant safety factor because C++ compilers can tack on massive
6525 # amounts of additional arguments before passing them to the linker.
6526 # It appears as though 1/2 is a usable value.
6527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6528 fi
6529 ;;
6530 esac
6531
6532 fi
6533
6534 if test -n $lt_cv_sys_max_cmd_len ; then
6535 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6536 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6537 else
6538 { $as_echo "$as_me:$LINENO: result: none" >&5
6539 $as_echo "none" >&6; }
6540 fi
6541
6542
6543
6544
6545
6546 # Check for command to grab the raw symbol name followed by C symbol from nm.
6547 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6550 $as_echo_n "(cached) " >&6
6551 else
6552
6553 # These are sane defaults that work on at least a few old systems.
6554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6555
6556 # Character class describing NM global symbol codes.
6557 symcode='[BCDEGRST]'
6558
6559 # Regexp to match symbols that can be accessed directly from C.
6560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6561
6562 # Transform an extracted symbol line into a proper C declaration
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6564
6565 # Transform an extracted symbol line into symbol name and symbol address
6566 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'"
6567
6568 # Define system-specific variables.
6569 case $host_os in
6570 aix*)
6571 symcode='[BCDT]'
6572 ;;
6573 cygwin* | mingw* | pw32*)
6574 symcode='[ABCDGISTW]'
6575 ;;
6576 hpux*) # Its linker distinguishes data from code symbols
6577 if test "$host_cpu" = ia64; then
6578 symcode='[ABCDEGRST]'
6579 fi
6580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6581 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'"
6582 ;;
6583 linux* | k*bsd*-gnu)
6584 if test "$host_cpu" = ia64; then
6585 symcode='[ABCDGIRSTW]'
6586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6587 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'"
6588 fi
6589 ;;
6590 irix* | nonstopux*)
6591 symcode='[BCDEGRST]'
6592 ;;
6593 osf*)
6594 symcode='[BCDEGQRST]'
6595 ;;
6596 solaris*)
6597 symcode='[BDRT]'
6598 ;;
6599 sco3.2v5*)
6600 symcode='[DT]'
6601 ;;
6602 sysv4.2uw2*)
6603 symcode='[DT]'
6604 ;;
6605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6606 symcode='[ABDT]'
6607 ;;
6608 sysv4)
6609 symcode='[DFNSTU]'
6610 ;;
6611 esac
6612
6613 # Handle CRLF in mingw tool chain
6614 opt_cr=
6615 case $build_os in
6616 mingw*)
6617 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6618 ;;
6619 esac
6620
6621 # If we're using GNU nm, then use its standard symbol codes.
6622 case `$NM -V 2>&1` in
6623 *GNU* | *'with BFD'*)
6624 symcode='[ABCDGIRSTW]' ;;
6625 esac
6626
6627 # Try without a prefix undercore, then with it.
6628 for ac_symprfx in "" "_"; do
6629
6630 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6631 symxfrm="\\1 $ac_symprfx\\2 \\2"
6632
6633 # Write the raw and C identifiers.
6634 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6635
6636 # Check to see that the pipe works correctly.
6637 pipe_works=no
6638
6639 rm -f conftest*
6640 cat > conftest.$ac_ext <<EOF
6641 #ifdef __cplusplus
6642 extern "C" {
6643 #endif
6644 char nm_test_var;
6645 void nm_test_func(){}
6646 #ifdef __cplusplus
6647 }
6648 #endif
6649 int main(){nm_test_var='a';nm_test_func();return(0);}
6650 EOF
6651
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 # Now try to grab the symbols.
6658 nlist=conftest.nm
6659 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6660 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6661 ac_status=$?
6662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && test -s "$nlist"; then
6664 # Try sorting and uniquifying the output.
6665 if sort "$nlist" | uniq > "$nlist"T; then
6666 mv -f "$nlist"T "$nlist"
6667 else
6668 rm -f "$nlist"T
6669 fi
6670
6671 # Make sure that we snagged all the symbols we need.
6672 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6673 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6674 cat <<EOF > conftest.$ac_ext
6675 #ifdef __cplusplus
6676 extern "C" {
6677 #endif
6678
6679 EOF
6680 # Now generate the symbol file.
6681 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6682
6683 cat <<EOF >> conftest.$ac_ext
6684 #if defined (__STDC__) && __STDC__
6685 # define lt_ptr_t void *
6686 #else
6687 # define lt_ptr_t char *
6688 # define const
6689 #endif
6690
6691 /* The mapping between symbol names and symbols. */
6692 const struct {
6693 const char *name;
6694 lt_ptr_t address;
6695 }
6696 lt_preloaded_symbols[] =
6697 {
6698 EOF
6699 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6700 cat <<\EOF >> conftest.$ac_ext
6701 {0, (lt_ptr_t) 0}
6702 };
6703
6704 #ifdef __cplusplus
6705 }
6706 #endif
6707 EOF
6708 # Now try linking the two files.
6709 mv conftest.$ac_objext conftstm.$ac_objext
6710 lt_save_LIBS="$LIBS"
6711 lt_save_CFLAGS="$CFLAGS"
6712 LIBS="conftstm.$ac_objext"
6713 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715 (eval $ac_link) 2>&5
6716 ac_status=$?
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6719 pipe_works=yes
6720 fi
6721 LIBS="$lt_save_LIBS"
6722 CFLAGS="$lt_save_CFLAGS"
6723 else
6724 echo "cannot find nm_test_func in $nlist" >&5
6725 fi
6726 else
6727 echo "cannot find nm_test_var in $nlist" >&5
6728 fi
6729 else
6730 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6731 fi
6732 else
6733 echo "$progname: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6735 fi
6736 rm -rf conftest* conftst*
6737
6738 # Do not use the global_symbol_pipe unless it works.
6739 if test "$pipe_works" = yes; then
6740 break
6741 else
6742 lt_cv_sys_global_symbol_pipe=
6743 fi
6744 done
6745
6746 fi
6747
6748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6749 lt_cv_sys_global_symbol_to_cdecl=
6750 fi
6751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6752 { $as_echo "$as_me:$LINENO: result: failed" >&5
6753 $as_echo "failed" >&6; }
6754 else
6755 { $as_echo "$as_me:$LINENO: result: ok" >&5
6756 $as_echo "ok" >&6; }
6757 fi
6758
6759 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6760 $as_echo_n "checking for objdir... " >&6; }
6761 if test "${lt_cv_objdir+set}" = set; then
6762 $as_echo_n "(cached) " >&6
6763 else
6764 rm -f .libs 2>/dev/null
6765 mkdir .libs 2>/dev/null
6766 if test -d .libs; then
6767 lt_cv_objdir=.libs
6768 else
6769 # MS-DOS does not allow filenames that begin with a dot.
6770 lt_cv_objdir=_libs
6771 fi
6772 rmdir .libs 2>/dev/null
6773 fi
6774 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6775 $as_echo "$lt_cv_objdir" >&6; }
6776 objdir=$lt_cv_objdir
6777
6778
6779
6780
6781
6782 case $host_os in
6783 aix3*)
6784 # AIX sometimes has problems with the GCC collect2 program. For some
6785 # reason, if we set the COLLECT_NAMES environment variable, the problems
6786 # vanish in a puff of smoke.
6787 if test "X${COLLECT_NAMES+set}" != Xset; then
6788 COLLECT_NAMES=
6789 export COLLECT_NAMES
6790 fi
6791 ;;
6792 esac
6793
6794 # Sed substitution that helps us do robust quoting. It backslashifies
6795 # metacharacters that are still active within double-quoted strings.
6796 Xsed='sed -e 1s/^X//'
6797 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6798
6799 # Same as above, but do not quote variable references.
6800 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6801
6802 # Sed substitution to delay expansion of an escaped shell variable in a
6803 # double_quote_subst'ed string.
6804 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6805
6806 # Sed substitution to avoid accidental globbing in evaled expressions
6807 no_glob_subst='s/\*/\\\*/g'
6808
6809 # Constants:
6810 rm="rm -f"
6811
6812 # Global variables:
6813 default_ofile=libtool
6814 can_build_shared=yes
6815
6816 # All known linkers require a `.a' archive for static linking (except MSVC,
6817 # which needs '.lib').
6818 libext=a
6819 ltmain="$ac_aux_dir/ltmain.sh"
6820 ofile="$default_ofile"
6821 with_gnu_ld="$lt_cv_prog_gnu_ld"
6822
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}ar; ac_word=$2
6826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_AR+set}" = set; then
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$AR"; then
6832 ac_cv_prog_AR="$AR" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_AR="${ac_tool_prefix}ar"
6842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 AR=$ac_cv_prog_AR
6852 if test -n "$AR"; then
6853 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6854 $as_echo "$AR" >&6; }
6855 else
6856 { $as_echo "$as_me:$LINENO: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860
6861 fi
6862 if test -z "$ac_cv_prog_AR"; then
6863 ac_ct_AR=$AR
6864 # Extract the first word of "ar", so it can be a program name with args.
6865 set dummy ar; ac_word=$2
6866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$ac_ct_AR"; then
6872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_ac_ct_AR="ar"
6882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6892 if test -n "$ac_ct_AR"; then
6893 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6894 $as_echo "$ac_ct_AR" >&6; }
6895 else
6896 { $as_echo "$as_me:$LINENO: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900 if test "x$ac_ct_AR" = x; then
6901 AR="false"
6902 else
6903 case $cross_compiling:$ac_tool_warned in
6904 yes:)
6905 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907 ac_tool_warned=yes ;;
6908 esac
6909 AR=$ac_ct_AR
6910 fi
6911 else
6912 AR="$ac_cv_prog_AR"
6913 fi
6914
6915 if test -n "$ac_tool_prefix"; then
6916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_RANLIB+set}" = set; then
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$RANLIB"; then
6924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 RANLIB=$ac_cv_prog_RANLIB
6944 if test -n "$RANLIB"; then
6945 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6946 $as_echo "$RANLIB" >&6; }
6947 else
6948 { $as_echo "$as_me:$LINENO: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951
6952
6953 fi
6954 if test -z "$ac_cv_prog_RANLIB"; then
6955 ac_ct_RANLIB=$RANLIB
6956 # Extract the first word of "ranlib", so it can be a program name with args.
6957 set dummy ranlib; ac_word=$2
6958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$ac_ct_RANLIB"; then
6964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_ac_ct_RANLIB="ranlib"
6974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6984 if test -n "$ac_ct_RANLIB"; then
6985 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6986 $as_echo "$ac_ct_RANLIB" >&6; }
6987 else
6988 { $as_echo "$as_me:$LINENO: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992 if test "x$ac_ct_RANLIB" = x; then
6993 RANLIB=":"
6994 else
6995 case $cross_compiling:$ac_tool_warned in
6996 yes:)
6997 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999 ac_tool_warned=yes ;;
7000 esac
7001 RANLIB=$ac_ct_RANLIB
7002 fi
7003 else
7004 RANLIB="$ac_cv_prog_RANLIB"
7005 fi
7006
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}strip; ac_word=$2
7010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_STRIP+set}" = set; then
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$STRIP"; then
7016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 STRIP=$ac_cv_prog_STRIP
7036 if test -n "$STRIP"; then
7037 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7038 $as_echo "$STRIP" >&6; }
7039 else
7040 { $as_echo "$as_me:$LINENO: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044
7045 fi
7046 if test -z "$ac_cv_prog_STRIP"; then
7047 ac_ct_STRIP=$STRIP
7048 # Extract the first word of "strip", so it can be a program name with args.
7049 set dummy strip; ac_word=$2
7050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$ac_ct_STRIP"; then
7056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_ac_ct_STRIP="strip"
7066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7076 if test -n "$ac_ct_STRIP"; then
7077 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7078 $as_echo "$ac_ct_STRIP" >&6; }
7079 else
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084 if test "x$ac_ct_STRIP" = x; then
7085 STRIP=":"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088 yes:)
7089 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 STRIP=$ac_ct_STRIP
7094 fi
7095 else
7096 STRIP="$ac_cv_prog_STRIP"
7097 fi
7098
7099
7100 old_CC="$CC"
7101 old_CFLAGS="$CFLAGS"
7102
7103 # Set sane defaults for various variables
7104 test -z "$AR" && AR=ar
7105 test -z "$AR_FLAGS" && AR_FLAGS=cru
7106 test -z "$AS" && AS=as
7107 test -z "$CC" && CC=cc
7108 test -z "$LTCC" && LTCC=$CC
7109 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7110 test -z "$DLLTOOL" && DLLTOOL=dlltool
7111 test -z "$LD" && LD=ld
7112 test -z "$LN_S" && LN_S="ln -s"
7113 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7114 test -z "$NM" && NM=nm
7115 test -z "$SED" && SED=sed
7116 test -z "$OBJDUMP" && OBJDUMP=objdump
7117 test -z "$RANLIB" && RANLIB=:
7118 test -z "$STRIP" && STRIP=:
7119 test -z "$ac_objext" && ac_objext=o
7120
7121 # Determine commands to create old-style static archives.
7122 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7123 old_postinstall_cmds='chmod 644 $oldlib'
7124 old_postuninstall_cmds=
7125
7126 if test -n "$RANLIB"; then
7127 case $host_os in
7128 openbsd*)
7129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7130 ;;
7131 *)
7132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7133 ;;
7134 esac
7135 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7136 fi
7137
7138 for cc_temp in $compiler""; do
7139 case $cc_temp in
7140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7142 \-*) ;;
7143 *) break;;
7144 esac
7145 done
7146 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7147
7148
7149 # Only perform the check for file, if the check method requires it
7150 case $deplibs_check_method in
7151 file_magic*)
7152 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7153 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7154 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7155 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7156 $as_echo_n "(cached) " >&6
7157 else
7158 case $MAGIC_CMD in
7159 [\\/*] | ?:[\\/]*)
7160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7161 ;;
7162 *)
7163 lt_save_MAGIC_CMD="$MAGIC_CMD"
7164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7166 for ac_dir in $ac_dummy; do
7167 IFS="$lt_save_ifs"
7168 test -z "$ac_dir" && ac_dir=.
7169 if test -f $ac_dir/${ac_tool_prefix}file; then
7170 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7171 if test -n "$file_magic_test_file"; then
7172 case $deplibs_check_method in
7173 "file_magic "*)
7174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7177 $EGREP "$file_magic_regex" > /dev/null; then
7178 :
7179 else
7180 cat <<EOF 1>&2
7181
7182 *** Warning: the command libtool uses to detect shared libraries,
7183 *** $file_magic_cmd, produces output that libtool cannot recognize.
7184 *** The result is that libtool may fail to recognize shared libraries
7185 *** as such. This will affect the creation of libtool libraries that
7186 *** depend on shared libraries, but programs linked with such libtool
7187 *** libraries will work regardless of this problem. Nevertheless, you
7188 *** may want to report the problem to your system manager and/or to
7189 *** bug-libtool@gnu.org
7190
7191 EOF
7192 fi ;;
7193 esac
7194 fi
7195 break
7196 fi
7197 done
7198 IFS="$lt_save_ifs"
7199 MAGIC_CMD="$lt_save_MAGIC_CMD"
7200 ;;
7201 esac
7202 fi
7203
7204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205 if test -n "$MAGIC_CMD"; then
7206 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7207 $as_echo "$MAGIC_CMD" >&6; }
7208 else
7209 { $as_echo "$as_me:$LINENO: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213 if test -z "$lt_cv_path_MAGIC_CMD"; then
7214 if test -n "$ac_tool_prefix"; then
7215 { $as_echo "$as_me:$LINENO: checking for file" >&5
7216 $as_echo_n "checking for file... " >&6; }
7217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7218 $as_echo_n "(cached) " >&6
7219 else
7220 case $MAGIC_CMD in
7221 [\\/*] | ?:[\\/]*)
7222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7223 ;;
7224 *)
7225 lt_save_MAGIC_CMD="$MAGIC_CMD"
7226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7228 for ac_dir in $ac_dummy; do
7229 IFS="$lt_save_ifs"
7230 test -z "$ac_dir" && ac_dir=.
7231 if test -f $ac_dir/file; then
7232 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7233 if test -n "$file_magic_test_file"; then
7234 case $deplibs_check_method in
7235 "file_magic "*)
7236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7239 $EGREP "$file_magic_regex" > /dev/null; then
7240 :
7241 else
7242 cat <<EOF 1>&2
7243
7244 *** Warning: the command libtool uses to detect shared libraries,
7245 *** $file_magic_cmd, produces output that libtool cannot recognize.
7246 *** The result is that libtool may fail to recognize shared libraries
7247 *** as such. This will affect the creation of libtool libraries that
7248 *** depend on shared libraries, but programs linked with such libtool
7249 *** libraries will work regardless of this problem. Nevertheless, you
7250 *** may want to report the problem to your system manager and/or to
7251 *** bug-libtool@gnu.org
7252
7253 EOF
7254 fi ;;
7255 esac
7256 fi
7257 break
7258 fi
7259 done
7260 IFS="$lt_save_ifs"
7261 MAGIC_CMD="$lt_save_MAGIC_CMD"
7262 ;;
7263 esac
7264 fi
7265
7266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7267 if test -n "$MAGIC_CMD"; then
7268 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7269 $as_echo "$MAGIC_CMD" >&6; }
7270 else
7271 { $as_echo "$as_me:$LINENO: result: no" >&5
7272 $as_echo "no" >&6; }
7273 fi
7274
7275 else
7276 MAGIC_CMD=:
7277 fi
7278 fi
7279
7280 fi
7281 ;;
7282 esac
7283
7284
7285 case $host_os in
7286 rhapsody* | darwin*)
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7293 $as_echo_n "(cached) " >&6
7294 else
7295 if test -n "$DSYMUTIL"; then
7296 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7308 fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7316 if test -n "$DSYMUTIL"; then
7317 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7318 $as_echo "$DSYMUTIL" >&6; }
7319 else
7320 { $as_echo "$as_me:$LINENO: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_DSYMUTIL"; then
7327 ac_ct_DSYMUTIL=$DSYMUTIL
7328 # Extract the first word of "dsymutil", so it can be a program name with args.
7329 set dummy dsymutil; ac_word=$2
7330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7333 $as_echo_n "(cached) " >&6
7334 else
7335 if test -n "$ac_ct_DSYMUTIL"; then
7336 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7356 if test -n "$ac_ct_DSYMUTIL"; then
7357 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7358 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7359 else
7360 { $as_echo "$as_me:$LINENO: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364 if test "x$ac_ct_DSYMUTIL" = x; then
7365 DSYMUTIL=":"
7366 else
7367 case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7372 esac
7373 DSYMUTIL=$ac_ct_DSYMUTIL
7374 fi
7375 else
7376 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7377 fi
7378
7379 if test -n "$ac_tool_prefix"; then
7380 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7385 $as_echo_n "(cached) " >&6
7386 else
7387 if test -n "$NMEDIT"; then
7388 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403 IFS=$as_save_IFS
7404
7405 fi
7406 fi
7407 NMEDIT=$ac_cv_prog_NMEDIT
7408 if test -n "$NMEDIT"; then
7409 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7410 $as_echo "$NMEDIT" >&6; }
7411 else
7412 { $as_echo "$as_me:$LINENO: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415
7416
7417 fi
7418 if test -z "$ac_cv_prog_NMEDIT"; then
7419 ac_ct_NMEDIT=$NMEDIT
7420 # Extract the first word of "nmedit", so it can be a program name with args.
7421 set dummy nmedit; ac_word=$2
7422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$ac_ct_NMEDIT"; then
7428 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7448 if test -n "$ac_ct_NMEDIT"; then
7449 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7450 $as_echo "$ac_ct_NMEDIT" >&6; }
7451 else
7452 { $as_echo "$as_me:$LINENO: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456 if test "x$ac_ct_NMEDIT" = x; then
7457 NMEDIT=":"
7458 else
7459 case $cross_compiling:$ac_tool_warned in
7460 yes:)
7461 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7463 ac_tool_warned=yes ;;
7464 esac
7465 NMEDIT=$ac_ct_NMEDIT
7466 fi
7467 else
7468 NMEDIT="$ac_cv_prog_NMEDIT"
7469 fi
7470
7471
7472 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7473 $as_echo_n "checking for -single_module linker flag... " >&6; }
7474 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7475 $as_echo_n "(cached) " >&6
7476 else
7477 lt_cv_apple_cc_single_mod=no
7478 if test -z "${LT_MULTI_MODULE}"; then
7479 # By default we will add the -single_module flag. You can override
7480 # by either setting the environment variable LT_MULTI_MODULE
7481 # non-empty at configure time, or by adding -multi_module to the
7482 # link flags.
7483 echo "int foo(void){return 1;}" > conftest.c
7484 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7485 -dynamiclib ${wl}-single_module conftest.c
7486 if test -f libconftest.dylib; then
7487 lt_cv_apple_cc_single_mod=yes
7488 rm -rf libconftest.dylib*
7489 fi
7490 rm conftest.c
7491 fi
7492 fi
7493 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7494 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7495 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7496 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7497 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7498 $as_echo_n "(cached) " >&6
7499 else
7500 lt_cv_ld_exported_symbols_list=no
7501 save_LDFLAGS=$LDFLAGS
7502 echo "_main" > conftest.sym
7503 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510
7511 int
7512 main ()
7513 {
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (ac_try="$ac_link"
7521 case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524 esac
7525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7526 $as_echo "$ac_try_echo") >&5
7527 (eval "$ac_link") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest$ac_exeext && {
7537 test "$cross_compiling" = yes ||
7538 $as_test_x conftest$ac_exeext
7539 }; then
7540 lt_cv_ld_exported_symbols_list=yes
7541 else
7542 $as_echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7544
7545 lt_cv_ld_exported_symbols_list=no
7546 fi
7547
7548 rm -rf conftest.dSYM
7549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7550 conftest$ac_exeext conftest.$ac_ext
7551 LDFLAGS="$save_LDFLAGS"
7552
7553 fi
7554 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7555 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7556 case $host_os in
7557 rhapsody* | darwin1.[0123])
7558 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7559 darwin1.*)
7560 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7561 darwin*)
7562 # if running on 10.5 or later, the deployment target defaults
7563 # to the OS version, if on x86, and 10.4, the deployment
7564 # target defaults to 10.4. Don't you love it?
7565 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7566 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7567 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7568 10.[012]*)
7569 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7570 10.*)
7571 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7572 esac
7573 ;;
7574 esac
7575 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7576 _lt_dar_single_mod='$single_module'
7577 fi
7578 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7579 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7580 else
7581 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7582 fi
7583 if test "$DSYMUTIL" != ":"; then
7584 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7585 else
7586 _lt_dsymutil=
7587 fi
7588 ;;
7589 esac
7590
7591
7592 enable_dlopen=no
7593 enable_win32_dll=no
7594
7595 # Check whether --enable-libtool-lock was given.
7596 if test "${enable_libtool_lock+set}" = set; then
7597 enableval=$enable_libtool_lock;
7598 fi
7599
7600 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7601
7602
7603 # Check whether --with-pic was given.
7604 if test "${with_pic+set}" = set; then
7605 withval=$with_pic; pic_mode="$withval"
7606 else
7607 pic_mode=default
7608 fi
7609
7610 test -z "$pic_mode" && pic_mode=default
7611
7612 # Use C for the default configuration in the libtool script
7613 tagname=
7614 lt_save_CC="$CC"
7615 ac_ext=c
7616 ac_cpp='$CPP $CPPFLAGS'
7617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7620
7621
7622 # Source file extension for C test sources.
7623 ac_ext=c
7624
7625 # Object file extension for compiled C test sources.
7626 objext=o
7627 objext=$objext
7628
7629 # Code to be used in simple compile tests
7630 lt_simple_compile_test_code="int some_variable = 0;"
7631
7632 # Code to be used in simple link tests
7633 lt_simple_link_test_code='int main(){return(0);}'
7634
7635
7636 # If no C compiler was specified, use CC.
7637 LTCC=${LTCC-"$CC"}
7638
7639 # If no C compiler flags were specified, use CFLAGS.
7640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7641
7642 # Allow CC to be a program name with arguments.
7643 compiler=$CC
7644
7645
7646 # save warnings/boilerplate of simple test code
7647 ac_outfile=conftest.$ac_objext
7648 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7650 _lt_compiler_boilerplate=`cat conftest.err`
7651 $rm conftest*
7652
7653 ac_outfile=conftest.$ac_objext
7654 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7656 _lt_linker_boilerplate=`cat conftest.err`
7657 $rm -r conftest*
7658
7659
7660
7661 lt_prog_compiler_no_builtin_flag=
7662
7663 if test "$GCC" = yes; then
7664 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7665
7666
7667 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7668 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7669 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7670 $as_echo_n "(cached) " >&6
7671 else
7672 lt_cv_prog_compiler_rtti_exceptions=no
7673 ac_outfile=conftest.$ac_objext
7674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7675 lt_compiler_flag="-fno-rtti -fno-exceptions"
7676 # Insert the option either (1) after the last *FLAGS variable, or
7677 # (2) before a word containing "conftest.", or (3) at the end.
7678 # Note that $ac_compile itself does not contain backslashes and begins
7679 # with a dollar sign (not a hyphen), so the echo should work correctly.
7680 # The option is referenced via a variable to avoid confusing sed.
7681 lt_compile=`echo "$ac_compile" | $SED \
7682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7684 -e 's:$: $lt_compiler_flag:'`
7685 (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
7686 (eval "$lt_compile" 2>conftest.err)
7687 ac_status=$?
7688 cat conftest.err >&5
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 if (exit $ac_status) && test -s "$ac_outfile"; then
7691 # The compiler can only warn and ignore the option if not recognized
7692 # So say no if there are warnings other than the usual output.
7693 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7696 lt_cv_prog_compiler_rtti_exceptions=yes
7697 fi
7698 fi
7699 $rm conftest*
7700
7701 fi
7702 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7703 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7704
7705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7707 else
7708 :
7709 fi
7710
7711 fi
7712
7713 lt_prog_compiler_wl=
7714 lt_prog_compiler_pic=
7715 lt_prog_compiler_static=
7716
7717 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7719
7720 if test "$GCC" = yes; then
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_static='-static'
7723
7724 case $host_os in
7725 aix*)
7726 # All AIX code is PIC.
7727 if test "$host_cpu" = ia64; then
7728 # AIX 5 now supports IA64 processor
7729 lt_prog_compiler_static='-Bstatic'
7730 fi
7731 ;;
7732
7733 amigaos*)
7734 # FIXME: we need at least 68020 code to build shared libraries, but
7735 # adding the `-m68020' flag to GCC prevents building anything better,
7736 # like `-m68040'.
7737 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7738 ;;
7739
7740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7741 # PIC is the default for these OSes.
7742 ;;
7743
7744 mingw* | cygwin* | pw32* | os2*)
7745 # This hack is so that the source file can tell whether it is being
7746 # built for inclusion in a dll (and should export symbols for example).
7747 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7748 # (--disable-auto-import) libraries
7749 lt_prog_compiler_pic='-DDLL_EXPORT'
7750 ;;
7751
7752 darwin* | rhapsody*)
7753 # PIC is the default on this platform
7754 # Common symbols not allowed in MH_DYLIB files
7755 lt_prog_compiler_pic='-fno-common'
7756 ;;
7757
7758 interix[3-9]*)
7759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7760 # Instead, we relocate shared libraries at runtime.
7761 ;;
7762
7763 msdosdjgpp*)
7764 # Just because we use GCC doesn't mean we suddenly get shared libraries
7765 # on systems that don't support them.
7766 lt_prog_compiler_can_build_shared=no
7767 enable_shared=no
7768 ;;
7769
7770 sysv4*MP*)
7771 if test -d /usr/nec; then
7772 lt_prog_compiler_pic=-Kconform_pic
7773 fi
7774 ;;
7775
7776 hpux*)
7777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7778 # not for PA HP-UX.
7779 case $host_cpu in
7780 hppa*64*|ia64*)
7781 # +Z the default
7782 ;;
7783 *)
7784 lt_prog_compiler_pic='-fPIC'
7785 ;;
7786 esac
7787 ;;
7788
7789 *)
7790 lt_prog_compiler_pic='-fPIC'
7791 ;;
7792 esac
7793 else
7794 # PORTME Check for flag to pass linker flags through the system compiler.
7795 case $host_os in
7796 aix*)
7797 lt_prog_compiler_wl='-Wl,'
7798 if test "$host_cpu" = ia64; then
7799 # AIX 5 now supports IA64 processor
7800 lt_prog_compiler_static='-Bstatic'
7801 else
7802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7803 fi
7804 ;;
7805 darwin*)
7806 # PIC is the default on this platform
7807 # Common symbols not allowed in MH_DYLIB files
7808 case $cc_basename in
7809 xlc*)
7810 lt_prog_compiler_pic='-qnocommon'
7811 lt_prog_compiler_wl='-Wl,'
7812 ;;
7813 esac
7814 ;;
7815
7816 mingw* | cygwin* | pw32* | os2*)
7817 # This hack is so that the source file can tell whether it is being
7818 # built for inclusion in a dll (and should export symbols for example).
7819 lt_prog_compiler_pic='-DDLL_EXPORT'
7820 ;;
7821
7822 hpux9* | hpux10* | hpux11*)
7823 lt_prog_compiler_wl='-Wl,'
7824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7825 # not for PA HP-UX.
7826 case $host_cpu in
7827 hppa*64*|ia64*)
7828 # +Z the default
7829 ;;
7830 *)
7831 lt_prog_compiler_pic='+Z'
7832 ;;
7833 esac
7834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7835 lt_prog_compiler_static='${wl}-a ${wl}archive'
7836 ;;
7837
7838 irix5* | irix6* | nonstopux*)
7839 lt_prog_compiler_wl='-Wl,'
7840 # PIC (with -KPIC) is the default.
7841 lt_prog_compiler_static='-non_shared'
7842 ;;
7843
7844 newsos6)
7845 lt_prog_compiler_pic='-KPIC'
7846 lt_prog_compiler_static='-Bstatic'
7847 ;;
7848
7849 linux* | k*bsd*-gnu)
7850 case $cc_basename in
7851 icc* | ecc*)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_pic='-KPIC'
7854 lt_prog_compiler_static='-static'
7855 ;;
7856 pgcc* | pgf77* | pgf90* | pgf95*)
7857 # Portland Group compilers (*not* the Pentium gcc compiler,
7858 # which looks to be a dead project)
7859 lt_prog_compiler_wl='-Wl,'
7860 lt_prog_compiler_pic='-fpic'
7861 lt_prog_compiler_static='-Bstatic'
7862 ;;
7863 ccc*)
7864 lt_prog_compiler_wl='-Wl,'
7865 # All Alpha code is PIC.
7866 lt_prog_compiler_static='-non_shared'
7867 ;;
7868 *)
7869 case `$CC -V 2>&1 | sed 5q` in
7870 *Sun\ C*)
7871 # Sun C 5.9
7872 lt_prog_compiler_pic='-KPIC'
7873 lt_prog_compiler_static='-Bstatic'
7874 lt_prog_compiler_wl='-Wl,'
7875 ;;
7876 *Sun\ F*)
7877 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7878 lt_prog_compiler_pic='-KPIC'
7879 lt_prog_compiler_static='-Bstatic'
7880 lt_prog_compiler_wl=''
7881 ;;
7882 esac
7883 ;;
7884 esac
7885 ;;
7886
7887 osf3* | osf4* | osf5*)
7888 lt_prog_compiler_wl='-Wl,'
7889 # All OSF/1 code is PIC.
7890 lt_prog_compiler_static='-non_shared'
7891 ;;
7892
7893 rdos*)
7894 lt_prog_compiler_static='-non_shared'
7895 ;;
7896
7897 solaris*)
7898 lt_prog_compiler_pic='-KPIC'
7899 lt_prog_compiler_static='-Bstatic'
7900 case $cc_basename in
7901 f77* | f90* | f95*)
7902 lt_prog_compiler_wl='-Qoption ld ';;
7903 *)
7904 lt_prog_compiler_wl='-Wl,';;
7905 esac
7906 ;;
7907
7908 sunos4*)
7909 lt_prog_compiler_wl='-Qoption ld '
7910 lt_prog_compiler_pic='-PIC'
7911 lt_prog_compiler_static='-Bstatic'
7912 ;;
7913
7914 sysv4 | sysv4.2uw2* | sysv4.3*)
7915 lt_prog_compiler_wl='-Wl,'
7916 lt_prog_compiler_pic='-KPIC'
7917 lt_prog_compiler_static='-Bstatic'
7918 ;;
7919
7920 sysv4*MP*)
7921 if test -d /usr/nec ;then
7922 lt_prog_compiler_pic='-Kconform_pic'
7923 lt_prog_compiler_static='-Bstatic'
7924 fi
7925 ;;
7926
7927 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7928 lt_prog_compiler_wl='-Wl,'
7929 lt_prog_compiler_pic='-KPIC'
7930 lt_prog_compiler_static='-Bstatic'
7931 ;;
7932
7933 unicos*)
7934 lt_prog_compiler_wl='-Wl,'
7935 lt_prog_compiler_can_build_shared=no
7936 ;;
7937
7938 uts4*)
7939 lt_prog_compiler_pic='-pic'
7940 lt_prog_compiler_static='-Bstatic'
7941 ;;
7942
7943 *)
7944 lt_prog_compiler_can_build_shared=no
7945 ;;
7946 esac
7947 fi
7948
7949 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7950 $as_echo "$lt_prog_compiler_pic" >&6; }
7951
7952 #
7953 # Check to make sure the PIC flag actually works.
7954 #
7955 if test -n "$lt_prog_compiler_pic"; then
7956
7957 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7958 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7959 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7960 $as_echo_n "(cached) " >&6
7961 else
7962 lt_cv_prog_compiler_pic_works=no
7963 ac_outfile=conftest.$ac_objext
7964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7965 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7966 # Insert the option either (1) after the last *FLAGS variable, or
7967 # (2) before a word containing "conftest.", or (3) at the end.
7968 # Note that $ac_compile itself does not contain backslashes and begins
7969 # with a dollar sign (not a hyphen), so the echo should work correctly.
7970 # The option is referenced via a variable to avoid confusing sed.
7971 lt_compile=`echo "$ac_compile" | $SED \
7972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7974 -e 's:$: $lt_compiler_flag:'`
7975 (eval echo "\"\$as_me:7975: $lt_compile\"" >&5)
7976 (eval "$lt_compile" 2>conftest.err)
7977 ac_status=$?
7978 cat conftest.err >&5
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 if (exit $ac_status) && test -s "$ac_outfile"; then
7981 # The compiler can only warn and ignore the option if not recognized
7982 # So say no if there are warnings other than the usual output.
7983 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_pic_works=yes
7987 fi
7988 fi
7989 $rm conftest*
7990
7991 fi
7992 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7993 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7994
7995 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7996 case $lt_prog_compiler_pic in
7997 "" | " "*) ;;
7998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7999 esac
8000 else
8001 lt_prog_compiler_pic=
8002 lt_prog_compiler_can_build_shared=no
8003 fi
8004
8005 fi
8006 case $host_os in
8007 # For platforms which do not support PIC, -DPIC is meaningless:
8008 *djgpp*)
8009 lt_prog_compiler_pic=
8010 ;;
8011 *)
8012 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8013 ;;
8014 esac
8015
8016 #
8017 # Check to make sure the static flag actually works.
8018 #
8019 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8020 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8021 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8022 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8023 $as_echo_n "(cached) " >&6
8024 else
8025 lt_cv_prog_compiler_static_works=no
8026 save_LDFLAGS="$LDFLAGS"
8027 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8028 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8029 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8030 # The linker can only warn and ignore the option if not recognized
8031 # So say no if there are warnings
8032 if test -s conftest.err; then
8033 # Append any errors to the config.log.
8034 cat conftest.err 1>&5
8035 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8037 if diff conftest.exp conftest.er2 >/dev/null; then
8038 lt_cv_prog_compiler_static_works=yes
8039 fi
8040 else
8041 lt_cv_prog_compiler_static_works=yes
8042 fi
8043 fi
8044 $rm -r conftest*
8045 LDFLAGS="$save_LDFLAGS"
8046
8047 fi
8048 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8049 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8050
8051 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8052 :
8053 else
8054 lt_prog_compiler_static=
8055 fi
8056
8057
8058 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8060 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8061 $as_echo_n "(cached) " >&6
8062 else
8063 lt_cv_prog_compiler_c_o=no
8064 $rm -r conftest 2>/dev/null
8065 mkdir conftest
8066 cd conftest
8067 mkdir out
8068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8069
8070 lt_compiler_flag="-o out/conftest2.$ac_objext"
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 lt_compile=`echo "$ac_compile" | $SED \
8076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8078 -e 's:$: $lt_compiler_flag:'`
8079 (eval echo "\"\$as_me:8079: $lt_compile\"" >&5)
8080 (eval "$lt_compile" 2>out/conftest.err)
8081 ac_status=$?
8082 cat out/conftest.err >&5
8083 echo "$as_me:8083: \$? = $ac_status" >&5
8084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8085 then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings
8088 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8091 lt_cv_prog_compiler_c_o=yes
8092 fi
8093 fi
8094 chmod u+w . 2>&5
8095 $rm conftest*
8096 # SGI C++ compiler will create directory out/ii_files/ for
8097 # template instantiation
8098 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8099 $rm out/* && rmdir out
8100 cd ..
8101 rmdir conftest
8102 $rm conftest*
8103
8104 fi
8105 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8106 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8107
8108
8109 hard_links="nottested"
8110 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8111 # do not overwrite the value of need_locks provided by the user
8112 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8113 $as_echo_n "checking if we can lock with hard links... " >&6; }
8114 hard_links=yes
8115 $rm conftest*
8116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8117 touch conftest.a
8118 ln conftest.a conftest.b 2>&5 || hard_links=no
8119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8120 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8121 $as_echo "$hard_links" >&6; }
8122 if test "$hard_links" = no; then
8123 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8124 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8125 need_locks=warn
8126 fi
8127 else
8128 need_locks=no
8129 fi
8130
8131 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8133
8134 runpath_var=
8135 allow_undefined_flag=
8136 enable_shared_with_static_runtimes=no
8137 archive_cmds=
8138 archive_expsym_cmds=
8139 old_archive_From_new_cmds=
8140 old_archive_from_expsyms_cmds=
8141 export_dynamic_flag_spec=
8142 whole_archive_flag_spec=
8143 thread_safe_flag_spec=
8144 hardcode_libdir_flag_spec=
8145 hardcode_libdir_flag_spec_ld=
8146 hardcode_libdir_separator=
8147 hardcode_direct=no
8148 hardcode_minus_L=no
8149 hardcode_shlibpath_var=unsupported
8150 link_all_deplibs=unknown
8151 hardcode_automatic=no
8152 module_cmds=
8153 module_expsym_cmds=
8154 always_export_symbols=no
8155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8156 # include_expsyms should be a list of space-separated symbols to be *always*
8157 # included in the symbol list
8158 include_expsyms=
8159 # exclude_expsyms can be an extended regexp of symbols to exclude
8160 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8161 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8162 # as well as any symbol that contains `d'.
8163 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8164 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8165 # platforms (ab)use it in PIC code, but their linkers get confused if
8166 # the symbol is explicitly referenced. Since portable code cannot
8167 # rely on this symbol name, it's probably fine to never include it in
8168 # preloaded symbol tables.
8169 # Exclude shared library initialization/finalization symbols.
8170 extract_expsyms_cmds=
8171 # Just being paranoid about ensuring that cc_basename is set.
8172 for cc_temp in $compiler""; do
8173 case $cc_temp in
8174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8176 \-*) ;;
8177 *) break;;
8178 esac
8179 done
8180 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8181
8182 case $host_os in
8183 cygwin* | mingw* | pw32*)
8184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8185 # When not using gcc, we currently assume that we are using
8186 # Microsoft Visual C++.
8187 if test "$GCC" != yes; then
8188 with_gnu_ld=no
8189 fi
8190 ;;
8191 interix*)
8192 # we just hope/assume this is gcc and not c89 (= MSVC++)
8193 with_gnu_ld=yes
8194 ;;
8195 openbsd*)
8196 with_gnu_ld=no
8197 ;;
8198 esac
8199
8200 ld_shlibs=yes
8201 if test "$with_gnu_ld" = yes; then
8202 # If archive_cmds runs LD, not CC, wlarc should be empty
8203 wlarc='${wl}'
8204
8205 # Set some defaults for GNU ld with shared library support. These
8206 # are reset later if shared libraries are not supported. Putting them
8207 # here allows them to be overridden if necessary.
8208 runpath_var=LD_RUN_PATH
8209 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8210 export_dynamic_flag_spec='${wl}--export-dynamic'
8211 # ancient GNU ld didn't support --whole-archive et. al.
8212 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8214 else
8215 whole_archive_flag_spec=
8216 fi
8217 supports_anon_versioning=no
8218 case `$LD -v 2>/dev/null` in
8219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8222 *\ 2.11.*) ;; # other 2.11 versions
8223 *) supports_anon_versioning=yes ;;
8224 esac
8225
8226 # See if GNU ld supports shared libraries.
8227 case $host_os in
8228 aix[3-9]*)
8229 # On AIX/PPC, the GNU linker is very broken
8230 if test "$host_cpu" != ia64; then
8231 ld_shlibs=no
8232 cat <<EOF 1>&2
8233
8234 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8235 *** to be unable to reliably create shared libraries on AIX.
8236 *** Therefore, libtool is disabling shared libraries support. If you
8237 *** really care for shared libraries, you may want to modify your PATH
8238 *** so that a non-GNU linker is found, and then restart.
8239
8240 EOF
8241 fi
8242 ;;
8243
8244 amigaos*)
8245 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)'
8246 hardcode_libdir_flag_spec='-L$libdir'
8247 hardcode_minus_L=yes
8248
8249 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8250 # that the semantics of dynamic libraries on AmigaOS, at least up
8251 # to version 4, is to share data among multiple programs linked
8252 # with the same dynamic library. Since this doesn't match the
8253 # behavior of shared libraries on other platforms, we can't use
8254 # them.
8255 ld_shlibs=no
8256 ;;
8257
8258 beos*)
8259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260 allow_undefined_flag=unsupported
8261 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8262 # support --undefined. This deserves some investigation. FIXME
8263 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 else
8265 ld_shlibs=no
8266 fi
8267 ;;
8268
8269 cygwin* | mingw* | pw32*)
8270 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8271 # as there is no search path for DLLs.
8272 hardcode_libdir_flag_spec='-L$libdir'
8273 allow_undefined_flag=unsupported
8274 always_export_symbols=no
8275 enable_shared_with_static_runtimes=yes
8276 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8277
8278 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8280 # If the export-symbols file already is a .def file (1st line
8281 # is EXPORTS), use it as is; otherwise, prepend...
8282 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8283 cp $export_symbols $output_objdir/$soname.def;
8284 else
8285 echo EXPORTS > $output_objdir/$soname.def;
8286 cat $export_symbols >> $output_objdir/$soname.def;
8287 fi~
8288 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8289 else
8290 ld_shlibs=no
8291 fi
8292 ;;
8293
8294 interix[3-9]*)
8295 hardcode_direct=no
8296 hardcode_shlibpath_var=no
8297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8298 export_dynamic_flag_spec='${wl}-E'
8299 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8300 # Instead, shared libraries are loaded at an image base (0x10000000 by
8301 # default) and relocated if they conflict, which is a slow very memory
8302 # consuming and fragmenting process. To avoid this, we pick a random,
8303 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8304 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8305 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8306 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'
8307 ;;
8308
8309 gnu* | linux* | k*bsd*-gnu)
8310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8311 tmp_addflag=
8312 case $cc_basename,$host_cpu in
8313 pgcc*) # Portland Group C compiler
8314 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'
8315 tmp_addflag=' $pic_flag'
8316 ;;
8317 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8318 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'
8319 tmp_addflag=' $pic_flag -Mnomain' ;;
8320 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8321 tmp_addflag=' -i_dynamic' ;;
8322 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8323 tmp_addflag=' -i_dynamic -nofor_main' ;;
8324 ifc* | ifort*) # Intel Fortran compiler
8325 tmp_addflag=' -nofor_main' ;;
8326 esac
8327 case `$CC -V 2>&1 | sed 5q` in
8328 *Sun\ C*) # Sun C 5.9
8329 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8330 tmp_sharedflag='-G' ;;
8331 *Sun\ F*) # Sun Fortran 8.3
8332 tmp_sharedflag='-G' ;;
8333 *)
8334 tmp_sharedflag='-shared' ;;
8335 esac
8336 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337
8338 if test $supports_anon_versioning = yes; then
8339 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8341 $echo "local: *; };" >> $output_objdir/$libname.ver~
8342 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8343 fi
8344 else
8345 ld_shlibs=no
8346 fi
8347 ;;
8348
8349 netbsd*)
8350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8351 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8352 wlarc=
8353 else
8354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8356 fi
8357 ;;
8358
8359 solaris*)
8360 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8361 ld_shlibs=no
8362 cat <<EOF 1>&2
8363
8364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8365 *** create shared libraries on Solaris systems. Therefore, libtool
8366 *** is disabling shared libraries support. We urge you to upgrade GNU
8367 *** binutils to release 2.9.1 or newer. Another option is to modify
8368 *** your PATH or compiler configuration so that the native linker is
8369 *** used, and then restart.
8370
8371 EOF
8372 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8375 else
8376 ld_shlibs=no
8377 fi
8378 ;;
8379
8380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8381 case `$LD -v 2>&1` in
8382 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8383 ld_shlibs=no
8384 cat <<_LT_EOF 1>&2
8385
8386 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8387 *** reliably create shared libraries on SCO systems. Therefore, libtool
8388 *** is disabling shared libraries support. We urge you to upgrade GNU
8389 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8390 *** your PATH or compiler configuration so that the native linker is
8391 *** used, and then restart.
8392
8393 _LT_EOF
8394 ;;
8395 *)
8396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8397 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8400 else
8401 ld_shlibs=no
8402 fi
8403 ;;
8404 esac
8405 ;;
8406
8407 sunos4*)
8408 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8409 wlarc=
8410 hardcode_direct=yes
8411 hardcode_shlibpath_var=no
8412 ;;
8413
8414 *)
8415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8418 else
8419 ld_shlibs=no
8420 fi
8421 ;;
8422 esac
8423
8424 if test "$ld_shlibs" = no; then
8425 runpath_var=
8426 hardcode_libdir_flag_spec=
8427 export_dynamic_flag_spec=
8428 whole_archive_flag_spec=
8429 fi
8430 else
8431 # PORTME fill in a description of your system's linker (not GNU ld)
8432 case $host_os in
8433 aix3*)
8434 allow_undefined_flag=unsupported
8435 always_export_symbols=yes
8436 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'
8437 # Note: this linker hardcodes the directories in LIBPATH if there
8438 # are no directories specified by -L.
8439 hardcode_minus_L=yes
8440 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8441 # Neither direct hardcoding nor static linking is supported with a
8442 # broken collect2.
8443 hardcode_direct=unsupported
8444 fi
8445 ;;
8446
8447 aix[4-9]*)
8448 if test "$host_cpu" = ia64; then
8449 # On IA64, the linker does run time linking by default, so we don't
8450 # have to do anything special.
8451 aix_use_runtimelinking=no
8452 exp_sym_flag='-Bexport'
8453 no_entry_flag=""
8454 else
8455 # If we're using GNU nm, then we don't want the "-C" option.
8456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8458 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'
8459 else
8460 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'
8461 fi
8462 aix_use_runtimelinking=no
8463
8464 # Test if we are trying to use run time linking or normal
8465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8466 # need to do runtime linking.
8467 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8468 for ld_flag in $LDFLAGS; do
8469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8470 aix_use_runtimelinking=yes
8471 break
8472 fi
8473 done
8474 ;;
8475 esac
8476
8477 exp_sym_flag='-bexport'
8478 no_entry_flag='-bnoentry'
8479 fi
8480
8481 # When large executables or shared objects are built, AIX ld can
8482 # have problems creating the table of contents. If linking a library
8483 # or program results in "error TOC overflow" add -mminimal-toc to
8484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8486
8487 archive_cmds=''
8488 hardcode_direct=yes
8489 hardcode_libdir_separator=':'
8490 link_all_deplibs=yes
8491
8492 if test "$GCC" = yes; then
8493 case $host_os in aix4.[012]|aix4.[012].*)
8494 # We only want to do this on AIX 4.2 and lower, the check
8495 # below for broken collect2 doesn't work under 4.3+
8496 collect2name=`${CC} -print-prog-name=collect2`
8497 if test -f "$collect2name" && \
8498 strings "$collect2name" | grep resolve_lib_name >/dev/null
8499 then
8500 # We have reworked collect2
8501 :
8502 else
8503 # We have old collect2
8504 hardcode_direct=unsupported
8505 # It fails to find uninstalled libraries when the uninstalled
8506 # path is not listed in the libpath. Setting hardcode_minus_L
8507 # to unsupported forces relinking
8508 hardcode_minus_L=yes
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 hardcode_libdir_separator=
8511 fi
8512 ;;
8513 esac
8514 shared_flag='-shared'
8515 if test "$aix_use_runtimelinking" = yes; then
8516 shared_flag="$shared_flag "'${wl}-G'
8517 fi
8518 else
8519 # not using gcc
8520 if test "$host_cpu" = ia64; then
8521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8522 # chokes on -Wl,-G. The following line is correct:
8523 shared_flag='-G'
8524 else
8525 if test "$aix_use_runtimelinking" = yes; then
8526 shared_flag='${wl}-G'
8527 else
8528 shared_flag='${wl}-bM:SRE'
8529 fi
8530 fi
8531 fi
8532
8533 # It seems that -bexpall does not export symbols beginning with
8534 # underscore (_), so it is better to generate a list of symbols to export.
8535 always_export_symbols=yes
8536 if test "$aix_use_runtimelinking" = yes; then
8537 # Warning - without using the other runtime loading flags (-brtl),
8538 # -berok will link without error, but may produce a broken library.
8539 allow_undefined_flag='-berok'
8540 # Determine the default libpath from the value encoded in an empty executable.
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547
8548 int
8549 main ()
8550 {
8551
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (ac_try="$ac_link"
8558 case "(($ac_try" in
8559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560 *) ac_try_echo=$ac_try;;
8561 esac
8562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8563 $as_echo "$ac_try_echo") >&5
8564 (eval "$ac_link") 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } && {
8571 test -z "$ac_c_werror_flag" ||
8572 test ! -s conftest.err
8573 } && test -s conftest$ac_exeext && {
8574 test "$cross_compiling" = yes ||
8575 $as_test_x conftest$ac_exeext
8576 }; then
8577
8578 lt_aix_libpath_sed='
8579 /Import File Strings/,/^$/ {
8580 /^0/ {
8581 s/^0 *\(.*\)$/\1/
8582 p
8583 }
8584 }'
8585 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8586 # Check for a 64-bit object if we didn't find anything.
8587 if test -z "$aix_libpath"; then
8588 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8589 fi
8590 else
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594
8595 fi
8596
8597 rm -rf conftest.dSYM
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8599 conftest$ac_exeext conftest.$ac_ext
8600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8601
8602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8603 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"
8604 else
8605 if test "$host_cpu" = ia64; then
8606 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8607 allow_undefined_flag="-z nodefs"
8608 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"
8609 else
8610 # Determine the default libpath from the value encoded in an empty executable.
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617
8618 int
8619 main ()
8620 {
8621
8622 ;
8623 return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (ac_try="$ac_link"
8628 case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8633 $as_echo "$ac_try_echo") >&5
8634 (eval "$ac_link") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest$ac_exeext && {
8644 test "$cross_compiling" = yes ||
8645 $as_test_x conftest$ac_exeext
8646 }; then
8647
8648 lt_aix_libpath_sed='
8649 /Import File Strings/,/^$/ {
8650 /^0/ {
8651 s/^0 *\(.*\)$/\1/
8652 p
8653 }
8654 }'
8655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8656 # Check for a 64-bit object if we didn't find anything.
8657 if test -z "$aix_libpath"; then
8658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8659 fi
8660 else
8661 $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664
8665 fi
8666
8667 rm -rf conftest.dSYM
8668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8669 conftest$ac_exeext conftest.$ac_ext
8670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8671
8672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8673 # Warning - without using the other run time loading flags,
8674 # -berok will link without error, but may produce a broken library.
8675 no_undefined_flag=' ${wl}-bernotok'
8676 allow_undefined_flag=' ${wl}-berok'
8677 # Exported symbols can be pulled into shared objects from archives
8678 whole_archive_flag_spec='$convenience'
8679 archive_cmds_need_lc=yes
8680 # This is similar to how AIX traditionally builds its shared libraries.
8681 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'
8682 fi
8683 fi
8684 ;;
8685
8686 amigaos*)
8687 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)'
8688 hardcode_libdir_flag_spec='-L$libdir'
8689 hardcode_minus_L=yes
8690 # see comment about different semantics on the GNU ld section
8691 ld_shlibs=no
8692 ;;
8693
8694 bsdi[45]*)
8695 export_dynamic_flag_spec=-rdynamic
8696 ;;
8697
8698 cygwin* | mingw* | pw32*)
8699 # When not using gcc, we currently assume that we are using
8700 # Microsoft Visual C++.
8701 # hardcode_libdir_flag_spec is actually meaningless, as there is
8702 # no search path for DLLs.
8703 hardcode_libdir_flag_spec=' '
8704 allow_undefined_flag=unsupported
8705 # Tell ltmain to make .lib files, not .a files.
8706 libext=lib
8707 # Tell ltmain to make .dll files, not .so files.
8708 shrext_cmds=".dll"
8709 # FIXME: Setting linknames here is a bad hack.
8710 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8711 # The linker will automatically build a .lib file if we build a DLL.
8712 old_archive_From_new_cmds='true'
8713 # FIXME: Should let the user specify the lib program.
8714 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8715 fix_srcfile_path='`cygpath -w "$srcfile"`'
8716 enable_shared_with_static_runtimes=yes
8717 ;;
8718
8719 darwin* | rhapsody*)
8720 case $host_os in
8721 rhapsody* | darwin1.[012])
8722 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8723 ;;
8724 *) # Darwin 1.3 on
8725 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8726 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8727 else
8728 case ${MACOSX_DEPLOYMENT_TARGET} in
8729 10.[012])
8730 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8731 ;;
8732 10.*)
8733 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8734 ;;
8735 esac
8736 fi
8737 ;;
8738 esac
8739 archive_cmds_need_lc=no
8740 hardcode_direct=no
8741 hardcode_automatic=yes
8742 hardcode_shlibpath_var=unsupported
8743 whole_archive_flag_spec=''
8744 link_all_deplibs=yes
8745 if test "$GCC" = yes ; then
8746 output_verbose_link_cmd='echo'
8747 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8748 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8749 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8750 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8751 else
8752 case $cc_basename in
8753 xlc*)
8754 output_verbose_link_cmd='echo'
8755 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8756 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8758 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8759 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}'
8760 ;;
8761 *)
8762 ld_shlibs=no
8763 ;;
8764 esac
8765 fi
8766 ;;
8767
8768 dgux*)
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_shlibpath_var=no
8772 ;;
8773
8774 freebsd1*)
8775 ld_shlibs=no
8776 ;;
8777
8778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8779 # support. Future versions do this automatically, but an explicit c++rt0.o
8780 # does not break anything, and helps significantly (at the cost of a little
8781 # extra space).
8782 freebsd2.2*)
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8784 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_direct=yes
8786 hardcode_shlibpath_var=no
8787 ;;
8788
8789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8790 freebsd2*)
8791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_direct=yes
8793 hardcode_minus_L=yes
8794 hardcode_shlibpath_var=no
8795 ;;
8796
8797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8798 freebsd* | dragonfly*)
8799 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8800 hardcode_libdir_flag_spec='-R$libdir'
8801 hardcode_direct=yes
8802 hardcode_shlibpath_var=no
8803 ;;
8804
8805 hpux9*)
8806 if test "$GCC" = yes; then
8807 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'
8808 else
8809 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'
8810 fi
8811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8812 hardcode_libdir_separator=:
8813 hardcode_direct=yes
8814
8815 # hardcode_minus_L: Not really in the search PATH,
8816 # but as the default location of the library.
8817 hardcode_minus_L=yes
8818 export_dynamic_flag_spec='${wl}-E'
8819 ;;
8820
8821 hpux10*)
8822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8824 else
8825 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8826 fi
8827 if test "$with_gnu_ld" = no; then
8828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8829 hardcode_libdir_separator=:
8830
8831 hardcode_direct=yes
8832 export_dynamic_flag_spec='${wl}-E'
8833
8834 # hardcode_minus_L: Not really in the search PATH,
8835 # but as the default location of the library.
8836 hardcode_minus_L=yes
8837 fi
8838 ;;
8839
8840 hpux11*)
8841 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8842 case $host_cpu in
8843 hppa*64*)
8844 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 ;;
8846 ia64*)
8847 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8848 ;;
8849 *)
8850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851 ;;
8852 esac
8853 else
8854 case $host_cpu in
8855 hppa*64*)
8856 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8857 ;;
8858 ia64*)
8859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8860 ;;
8861 *)
8862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8863 ;;
8864 esac
8865 fi
8866 if test "$with_gnu_ld" = no; then
8867 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8868 hardcode_libdir_separator=:
8869
8870 case $host_cpu in
8871 hppa*64*|ia64*)
8872 hardcode_libdir_flag_spec_ld='+b $libdir'
8873 hardcode_direct=no
8874 hardcode_shlibpath_var=no
8875 ;;
8876 *)
8877 hardcode_direct=yes
8878 export_dynamic_flag_spec='${wl}-E'
8879
8880 # hardcode_minus_L: Not really in the search PATH,
8881 # but as the default location of the library.
8882 hardcode_minus_L=yes
8883 ;;
8884 esac
8885 fi
8886 ;;
8887
8888 irix5* | irix6* | nonstopux*)
8889 if test "$GCC" = yes; then
8890 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'
8891 else
8892 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'
8893 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8894 fi
8895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896 hardcode_libdir_separator=:
8897 link_all_deplibs=yes
8898 ;;
8899
8900 netbsd*)
8901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8903 else
8904 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8905 fi
8906 hardcode_libdir_flag_spec='-R$libdir'
8907 hardcode_direct=yes
8908 hardcode_shlibpath_var=no
8909 ;;
8910
8911 newsos6)
8912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913 hardcode_direct=yes
8914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915 hardcode_libdir_separator=:
8916 hardcode_shlibpath_var=no
8917 ;;
8918
8919 openbsd*)
8920 if test -f /usr/libexec/ld.so; then
8921 hardcode_direct=yes
8922 hardcode_shlibpath_var=no
8923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8927 export_dynamic_flag_spec='${wl}-E'
8928 else
8929 case $host_os in
8930 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8932 hardcode_libdir_flag_spec='-R$libdir'
8933 ;;
8934 *)
8935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8937 ;;
8938 esac
8939 fi
8940 else
8941 ld_shlibs=no
8942 fi
8943 ;;
8944
8945 os2*)
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 hardcode_minus_L=yes
8948 allow_undefined_flag=unsupported
8949 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'
8950 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8951 ;;
8952
8953 osf3*)
8954 if test "$GCC" = yes; then
8955 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8956 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'
8957 else
8958 allow_undefined_flag=' -expect_unresolved \*'
8959 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'
8960 fi
8961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962 hardcode_libdir_separator=:
8963 ;;
8964
8965 osf4* | osf5*) # as osf3* with the addition of -msym flag
8966 if test "$GCC" = yes; then
8967 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8968 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'
8969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970 else
8971 allow_undefined_flag=' -expect_unresolved \*'
8972 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'
8973 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8974 $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'
8975
8976 # Both c and cxx compiler support -rpath directly
8977 hardcode_libdir_flag_spec='-rpath $libdir'
8978 fi
8979 hardcode_libdir_separator=:
8980 ;;
8981
8982 solaris*)
8983 no_undefined_flag=' -z text'
8984 if test "$GCC" = yes; then
8985 wlarc='${wl}'
8986 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8987 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8988 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8989 else
8990 wlarc=''
8991 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8993 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8994 fi
8995 hardcode_libdir_flag_spec='-R$libdir'
8996 hardcode_shlibpath_var=no
8997 case $host_os in
8998 solaris2.[0-5] | solaris2.[0-5].*) ;;
8999 *)
9000 # The compiler driver will combine and reorder linker options,
9001 # but understands `-z linker_flag'. GCC discards it without `$wl',
9002 # but is careful enough not to reorder.
9003 # Supported since Solaris 2.6 (maybe 2.5.1?)
9004 if test "$GCC" = yes; then
9005 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9006 else
9007 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9008 fi
9009 ;;
9010 esac
9011 link_all_deplibs=yes
9012 ;;
9013
9014 sunos4*)
9015 if test "x$host_vendor" = xsequent; then
9016 # Use $CC to link under sequent, because it throws in some extra .o
9017 # files that make .init and .fini sections work.
9018 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9019 else
9020 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9021 fi
9022 hardcode_libdir_flag_spec='-L$libdir'
9023 hardcode_direct=yes
9024 hardcode_minus_L=yes
9025 hardcode_shlibpath_var=no
9026 ;;
9027
9028 sysv4)
9029 case $host_vendor in
9030 sni)
9031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032 hardcode_direct=yes # is this really true???
9033 ;;
9034 siemens)
9035 ## LD is ld it makes a PLAMLIB
9036 ## CC just makes a GrossModule.
9037 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9038 reload_cmds='$CC -r -o $output$reload_objs'
9039 hardcode_direct=no
9040 ;;
9041 motorola)
9042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9044 ;;
9045 esac
9046 runpath_var='LD_RUN_PATH'
9047 hardcode_shlibpath_var=no
9048 ;;
9049
9050 sysv4.3*)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_shlibpath_var=no
9053 export_dynamic_flag_spec='-Bexport'
9054 ;;
9055
9056 sysv4*MP*)
9057 if test -d /usr/nec; then
9058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059 hardcode_shlibpath_var=no
9060 runpath_var=LD_RUN_PATH
9061 hardcode_runpath_var=yes
9062 ld_shlibs=yes
9063 fi
9064 ;;
9065
9066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9067 no_undefined_flag='${wl}-z,text'
9068 archive_cmds_need_lc=no
9069 hardcode_shlibpath_var=no
9070 runpath_var='LD_RUN_PATH'
9071
9072 if test "$GCC" = yes; then
9073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 else
9076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 fi
9079 ;;
9080
9081 sysv5* | sco3.2v5* | sco5v6*)
9082 # Note: We can NOT use -z defs as we might desire, because we do not
9083 # link with -lc, and that would cause any symbols used from libc to
9084 # always be unresolved, which means just about no library would
9085 # ever link correctly. If we're not using GNU ld we use -z text
9086 # though, which does catch some bad symbols but isn't as heavy-handed
9087 # as -z defs.
9088 no_undefined_flag='${wl}-z,text'
9089 allow_undefined_flag='${wl}-z,nodefs'
9090 archive_cmds_need_lc=no
9091 hardcode_shlibpath_var=no
9092 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9093 hardcode_libdir_separator=':'
9094 link_all_deplibs=yes
9095 export_dynamic_flag_spec='${wl}-Bexport'
9096 runpath_var='LD_RUN_PATH'
9097
9098 if test "$GCC" = yes; then
9099 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9100 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 else
9102 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 fi
9105 ;;
9106
9107 uts4*)
9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109 hardcode_libdir_flag_spec='-L$libdir'
9110 hardcode_shlibpath_var=no
9111 ;;
9112
9113 *)
9114 ld_shlibs=no
9115 ;;
9116 esac
9117 fi
9118
9119 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9120 $as_echo "$ld_shlibs" >&6; }
9121 test "$ld_shlibs" = no && can_build_shared=no
9122
9123 #
9124 # Do we need to explicitly link libc?
9125 #
9126 case "x$archive_cmds_need_lc" in
9127 x|xyes)
9128 # Assume -lc should be added
9129 archive_cmds_need_lc=yes
9130
9131 if test "$enable_shared" = yes && test "$GCC" = yes; then
9132 case $archive_cmds in
9133 *'~'*)
9134 # FIXME: we may have to deal with multi-command sequences.
9135 ;;
9136 '$CC '*)
9137 # Test whether the compiler implicitly links with -lc since on some
9138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9139 # to ld, don't add -lc before -lgcc.
9140 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9141 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9142 $rm conftest*
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144
9145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146 (eval $ac_compile) 2>&5
9147 ac_status=$?
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } 2>conftest.err; then
9150 soname=conftest
9151 lib=conftest
9152 libobjs=conftest.$ac_objext
9153 deplibs=
9154 wl=$lt_prog_compiler_wl
9155 pic_flag=$lt_prog_compiler_pic
9156 compiler_flags=-v
9157 linker_flags=-v
9158 verstring=
9159 output_objdir=.
9160 libname=conftest
9161 lt_save_allow_undefined_flag=$allow_undefined_flag
9162 allow_undefined_flag=
9163 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9164 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9165 ac_status=$?
9166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }
9168 then
9169 archive_cmds_need_lc=no
9170 else
9171 archive_cmds_need_lc=yes
9172 fi
9173 allow_undefined_flag=$lt_save_allow_undefined_flag
9174 else
9175 cat conftest.err 1>&5
9176 fi
9177 $rm conftest*
9178 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9179 $as_echo "$archive_cmds_need_lc" >&6; }
9180 ;;
9181 esac
9182 fi
9183 ;;
9184 esac
9185
9186 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9187 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9188 library_names_spec=
9189 libname_spec='lib$name'
9190 soname_spec=
9191 shrext_cmds=".so"
9192 postinstall_cmds=
9193 postuninstall_cmds=
9194 finish_cmds=
9195 finish_eval=
9196 shlibpath_var=
9197 shlibpath_overrides_runpath=unknown
9198 version_type=none
9199 dynamic_linker="$host_os ld.so"
9200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9201
9202 if test "$GCC" = yes; then
9203 case $host_os in
9204 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9205 *) lt_awk_arg="/^libraries:/" ;;
9206 esac
9207 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9208 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9209 # if the path contains ";" then we assume it to be the separator
9210 # otherwise default to the standard path separator (i.e. ":") - it is
9211 # assumed that no part of a normal pathname contains ";" but that should
9212 # okay in the real world where ";" in dirpaths is itself problematic.
9213 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9214 else
9215 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9216 fi
9217 # Ok, now we have the path, separated by spaces, we can step through it
9218 # and add multilib dir if necessary.
9219 lt_tmp_lt_search_path_spec=
9220 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9221 for lt_sys_path in $lt_search_path_spec; do
9222 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9223 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9224 else
9225 test -d "$lt_sys_path" && \
9226 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9227 fi
9228 done
9229 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9230 BEGIN {RS=" "; FS="/|\n";} {
9231 lt_foo="";
9232 lt_count=0;
9233 for (lt_i = NF; lt_i > 0; lt_i--) {
9234 if ($lt_i != "" && $lt_i != ".") {
9235 if ($lt_i == "..") {
9236 lt_count++;
9237 } else {
9238 if (lt_count == 0) {
9239 lt_foo="/" $lt_i lt_foo;
9240 } else {
9241 lt_count--;
9242 }
9243 }
9244 }
9245 }
9246 if (lt_foo != "") { lt_freq[lt_foo]++; }
9247 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9248 }'`
9249 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9250 else
9251 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9252 fi
9253 need_lib_prefix=unknown
9254 hardcode_into_libs=no
9255
9256 # when you set need_version to no, make sure it does not cause -set_version
9257 # flags to be left without arguments
9258 need_version=unknown
9259
9260 case $host_os in
9261 aix3*)
9262 version_type=linux
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9264 shlibpath_var=LIBPATH
9265
9266 # AIX 3 has no versioning support, so we append a major version to the name.
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 ;;
9269
9270 aix[4-9]*)
9271 version_type=linux
9272 need_lib_prefix=no
9273 need_version=no
9274 hardcode_into_libs=yes
9275 if test "$host_cpu" = ia64; then
9276 # AIX 5 supports IA64
9277 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 else
9280 # With GCC up to 2.95.x, collect2 would create an import file
9281 # for dependence libraries. The import file would start with
9282 # the line `#! .'. This would cause the generated library to
9283 # depend on `.', always an invalid library. This was fixed in
9284 # development snapshots of GCC prior to 3.0.
9285 case $host_os in
9286 aix4 | aix4.[01] | aix4.[01].*)
9287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9288 echo ' yes '
9289 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9290 :
9291 else
9292 can_build_shared=no
9293 fi
9294 ;;
9295 esac
9296 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9297 # soname into executable. Probably we can add versioning support to
9298 # collect2, so additional links can be useful in future.
9299 if test "$aix_use_runtimelinking" = yes; then
9300 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9301 # instead of lib<name>.a to let people know that these are not
9302 # typical AIX shared libraries.
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 else
9305 # We preserve .a as extension for shared libraries through AIX4.2
9306 # and later when we are not doing run time linking.
9307 library_names_spec='${libname}${release}.a $libname.a'
9308 soname_spec='${libname}${release}${shared_ext}$major'
9309 fi
9310 shlibpath_var=LIBPATH
9311 fi
9312 ;;
9313
9314 amigaos*)
9315 library_names_spec='$libname.ixlibrary $libname.a'
9316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9317 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'
9318 ;;
9319
9320 beos*)
9321 library_names_spec='${libname}${shared_ext}'
9322 dynamic_linker="$host_os ld.so"
9323 shlibpath_var=LIBRARY_PATH
9324 ;;
9325
9326 bsdi[45]*)
9327 version_type=linux
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9335 # the default ld.so.conf also contains /usr/contrib/lib and
9336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9337 # libtool to hard-code these into programs
9338 ;;
9339
9340 cygwin* | mingw* | pw32*)
9341 version_type=windows
9342 shrext_cmds=".dll"
9343 need_version=no
9344 need_lib_prefix=no
9345
9346 case $GCC,$host_os in
9347 yes,cygwin* | yes,mingw* | yes,pw32*)
9348 library_names_spec='$libname.dll.a'
9349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9350 postinstall_cmds='base_file=`basename \${file}`~
9351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9352 dldir=$destdir/`dirname \$dlpath`~
9353 test -d \$dldir || mkdir -p \$dldir~
9354 $install_prog $dir/$dlname \$dldir/$dlname~
9355 chmod a+x \$dldir/$dlname'
9356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9357 dlpath=$dir/\$dldll~
9358 $rm \$dlpath'
9359 shlibpath_overrides_runpath=yes
9360
9361 case $host_os in
9362 cygwin*)
9363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9365 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9366 ;;
9367 mingw*)
9368 # MinGW DLLs use traditional 'lib' prefix
9369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9371 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9372 # It is most probably a Windows format PATH printed by
9373 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9374 # path with ; separators, and with drive letters. We can handle the
9375 # drive letters (cygwin fileutils understands them), so leave them,
9376 # especially as we might pass files found there to a mingw objdump,
9377 # which wouldn't understand a cygwinified path. Ahh.
9378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9379 else
9380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9381 fi
9382 ;;
9383 pw32*)
9384 # pw32 DLLs use 'pw' prefix rather than 'lib'
9385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9386 ;;
9387 esac
9388 ;;
9389
9390 *)
9391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9392 ;;
9393 esac
9394 dynamic_linker='Win32 ld.exe'
9395 # FIXME: first we should search . and the directory the executable is in
9396 shlibpath_var=PATH
9397 ;;
9398
9399 darwin* | rhapsody*)
9400 dynamic_linker="$host_os dyld"
9401 version_type=darwin
9402 need_lib_prefix=no
9403 need_version=no
9404 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9405 soname_spec='${libname}${release}${major}$shared_ext'
9406 shlibpath_overrides_runpath=yes
9407 shlibpath_var=DYLD_LIBRARY_PATH
9408 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9409
9410 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9412 ;;
9413
9414 dgux*)
9415 version_type=linux
9416 need_lib_prefix=no
9417 need_version=no
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 ;;
9422
9423 freebsd1*)
9424 dynamic_linker=no
9425 ;;
9426
9427 freebsd* | dragonfly*)
9428 # DragonFly does not have aout. When/if they implement a new
9429 # versioning mechanism, adjust this.
9430 if test -x /usr/bin/objformat; then
9431 objformat=`/usr/bin/objformat`
9432 else
9433 case $host_os in
9434 freebsd[123]*) objformat=aout ;;
9435 *) objformat=elf ;;
9436 esac
9437 fi
9438 version_type=freebsd-$objformat
9439 case $version_type in
9440 freebsd-elf*)
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9442 need_version=no
9443 need_lib_prefix=no
9444 ;;
9445 freebsd-*)
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9447 need_version=yes
9448 ;;
9449 esac
9450 shlibpath_var=LD_LIBRARY_PATH
9451 case $host_os in
9452 freebsd2*)
9453 shlibpath_overrides_runpath=yes
9454 ;;
9455 freebsd3.[01]* | freebsdelf3.[01]*)
9456 shlibpath_overrides_runpath=yes
9457 hardcode_into_libs=yes
9458 ;;
9459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9461 shlibpath_overrides_runpath=no
9462 hardcode_into_libs=yes
9463 ;;
9464 *) # from 4.6 on, and DragonFly
9465 shlibpath_overrides_runpath=yes
9466 hardcode_into_libs=yes
9467 ;;
9468 esac
9469 ;;
9470
9471 gnu*)
9472 version_type=linux
9473 need_lib_prefix=no
9474 need_version=no
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 hardcode_into_libs=yes
9479 ;;
9480
9481 hpux9* | hpux10* | hpux11*)
9482 # Give a soname corresponding to the major version so that dld.sl refuses to
9483 # link against other versions.
9484 version_type=sunos
9485 need_lib_prefix=no
9486 need_version=no
9487 case $host_cpu in
9488 ia64*)
9489 shrext_cmds='.so'
9490 hardcode_into_libs=yes
9491 dynamic_linker="$host_os dld.so"
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 if test "X$HPUX_IA64_MODE" = X32; then
9497 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9498 else
9499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9500 fi
9501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9502 ;;
9503 hppa*64*)
9504 shrext_cmds='.sl'
9505 hardcode_into_libs=yes
9506 dynamic_linker="$host_os dld.sl"
9507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9513 ;;
9514 *)
9515 shrext_cmds='.sl'
9516 dynamic_linker="$host_os dld.sl"
9517 shlibpath_var=SHLIB_PATH
9518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 ;;
9522 esac
9523 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9524 postinstall_cmds='chmod 555 $lib'
9525 ;;
9526
9527 interix[3-9]*)
9528 version_type=linux
9529 need_lib_prefix=no
9530 need_version=no
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 shlibpath_overrides_runpath=no
9536 hardcode_into_libs=yes
9537 ;;
9538
9539 irix5* | irix6* | nonstopux*)
9540 case $host_os in
9541 nonstopux*) version_type=nonstopux ;;
9542 *)
9543 if test "$lt_cv_prog_gnu_ld" = yes; then
9544 version_type=linux
9545 else
9546 version_type=irix
9547 fi ;;
9548 esac
9549 need_lib_prefix=no
9550 need_version=no
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9553 case $host_os in
9554 irix5* | nonstopux*)
9555 libsuff= shlibsuff=
9556 ;;
9557 *)
9558 case $LD in # libtool.m4 will add one of these switches to LD
9559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9560 libsuff= shlibsuff= libmagic=32-bit;;
9561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9562 libsuff=32 shlibsuff=N32 libmagic=N32;;
9563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9565 *) libsuff= shlibsuff= libmagic=never-match;;
9566 esac
9567 ;;
9568 esac
9569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9570 shlibpath_overrides_runpath=no
9571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9573 hardcode_into_libs=yes
9574 ;;
9575
9576 # No shared lib support for Linux oldld, aout, or coff.
9577 linux*oldld* | linux*aout* | linux*coff*)
9578 dynamic_linker=no
9579 ;;
9580
9581 # This must be Linux ELF.
9582 linux* | k*bsd*-gnu)
9583 version_type=linux
9584 need_lib_prefix=no
9585 need_version=no
9586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587 soname_spec='${libname}${release}${shared_ext}$major'
9588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=no
9591 # This implies no fast_install, which is unacceptable.
9592 # Some rework will be needed to allow for fast_install
9593 # before this can be enabled.
9594 hardcode_into_libs=yes
9595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9597
9598 # Append ld.so.conf contents to the search path
9599 if test -f /etc/ld.so.conf; then
9600 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9601 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9602 fi
9603
9604 # We used to test for /lib/ld.so.1 and disable shared libraries on
9605 # powerpc, because MkLinux only supported shared libraries with the
9606 # GNU dynamic linker. Since this was broken with cross compilers,
9607 # most powerpc-linux boxes support dynamic linking these days and
9608 # people can always --disable-shared, the test was removed, and we
9609 # assume the GNU/Linux dynamic linker is in use.
9610 dynamic_linker='GNU/Linux ld.so'
9611 ;;
9612
9613 netbsd*)
9614 version_type=sunos
9615 need_lib_prefix=no
9616 need_version=no
9617 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9620 dynamic_linker='NetBSD (a.out) ld.so'
9621 else
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 dynamic_linker='NetBSD ld.elf_so'
9625 fi
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9629 ;;
9630
9631 newsos6)
9632 version_type=linux
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=yes
9636 ;;
9637
9638 nto-qnx*)
9639 version_type=linux
9640 need_lib_prefix=no
9641 need_version=no
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=yes
9646 ;;
9647
9648 openbsd*)
9649 version_type=sunos
9650 sys_lib_dlsearch_path_spec="/usr/lib"
9651 need_lib_prefix=no
9652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9653 case $host_os in
9654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9655 *) need_version=no ;;
9656 esac
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9661 case $host_os in
9662 openbsd2.[89] | openbsd2.[89].*)
9663 shlibpath_overrides_runpath=no
9664 ;;
9665 *)
9666 shlibpath_overrides_runpath=yes
9667 ;;
9668 esac
9669 else
9670 shlibpath_overrides_runpath=yes
9671 fi
9672 ;;
9673
9674 os2*)
9675 libname_spec='$name'
9676 shrext_cmds=".dll"
9677 need_lib_prefix=no
9678 library_names_spec='$libname${shared_ext} $libname.a'
9679 dynamic_linker='OS/2 ld.exe'
9680 shlibpath_var=LIBPATH
9681 ;;
9682
9683 osf3* | osf4* | osf5*)
9684 version_type=osf
9685 need_lib_prefix=no
9686 need_version=no
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9692 ;;
9693
9694 rdos*)
9695 dynamic_linker=no
9696 ;;
9697
9698 solaris*)
9699 version_type=linux
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=yes
9706 hardcode_into_libs=yes
9707 # ldd complains unless libraries are executable
9708 postinstall_cmds='chmod +x $lib'
9709 ;;
9710
9711 sunos4*)
9712 version_type=sunos
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9717 if test "$with_gnu_ld" = yes; then
9718 need_lib_prefix=no
9719 fi
9720 need_version=yes
9721 ;;
9722
9723 sysv4 | sysv4.3*)
9724 version_type=linux
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 case $host_vendor in
9729 sni)
9730 shlibpath_overrides_runpath=no
9731 need_lib_prefix=no
9732 export_dynamic_flag_spec='${wl}-Blargedynsym'
9733 runpath_var=LD_RUN_PATH
9734 ;;
9735 siemens)
9736 need_lib_prefix=no
9737 ;;
9738 motorola)
9739 need_lib_prefix=no
9740 need_version=no
9741 shlibpath_overrides_runpath=no
9742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9743 ;;
9744 esac
9745 ;;
9746
9747 sysv4*MP*)
9748 if test -d /usr/nec ;then
9749 version_type=linux
9750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9751 soname_spec='$libname${shared_ext}.$major'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 fi
9754 ;;
9755
9756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9757 version_type=freebsd-elf
9758 need_lib_prefix=no
9759 need_version=no
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9761 soname_spec='${libname}${release}${shared_ext}$major'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 hardcode_into_libs=yes
9764 if test "$with_gnu_ld" = yes; then
9765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9766 shlibpath_overrides_runpath=no
9767 else
9768 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9769 shlibpath_overrides_runpath=yes
9770 case $host_os in
9771 sco3.2v5*)
9772 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9773 ;;
9774 esac
9775 fi
9776 sys_lib_dlsearch_path_spec='/usr/lib'
9777 ;;
9778
9779 uts4*)
9780 version_type=linux
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 ;;
9785
9786 *)
9787 dynamic_linker=no
9788 ;;
9789 esac
9790 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9791 $as_echo "$dynamic_linker" >&6; }
9792 test "$dynamic_linker" = no && can_build_shared=no
9793
9794 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9795 $as_echo_n "(cached) " >&6
9796 else
9797 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9798 fi
9799
9800 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9801 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9802 $as_echo_n "(cached) " >&6
9803 else
9804 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9805 fi
9806
9807 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9808
9809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9810 if test "$GCC" = yes; then
9811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9812 fi
9813
9814 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9815 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9816 hardcode_action=
9817 if test -n "$hardcode_libdir_flag_spec" || \
9818 test -n "$runpath_var" || \
9819 test "X$hardcode_automatic" = "Xyes" ; then
9820
9821 # We can hardcode non-existant directories.
9822 if test "$hardcode_direct" != no &&
9823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9824 # have to relink, otherwise we might link with an installed library
9825 # when we should be linking with a yet-to-be-installed one
9826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9827 test "$hardcode_minus_L" != no; then
9828 # Linking always hardcodes the temporary library directory.
9829 hardcode_action=relink
9830 else
9831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9832 hardcode_action=immediate
9833 fi
9834 else
9835 # We cannot hardcode anything, or else we can only hardcode existing
9836 # directories.
9837 hardcode_action=unsupported
9838 fi
9839 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9840 $as_echo "$hardcode_action" >&6; }
9841
9842 if test "$hardcode_action" = relink; then
9843 # Fast installation is not supported
9844 enable_fast_install=no
9845 elif test "$shlibpath_overrides_runpath" = yes ||
9846 test "$enable_shared" = no; then
9847 # Fast installation is not necessary
9848 enable_fast_install=needless
9849 fi
9850
9851 striplib=
9852 old_striplib=
9853 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9854 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9855 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9856 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9857 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9858 { $as_echo "$as_me:$LINENO: result: yes" >&5
9859 $as_echo "yes" >&6; }
9860 else
9861 # FIXME - insert some real tests, host_os isn't really good enough
9862 case $host_os in
9863 darwin*)
9864 if test -n "$STRIP" ; then
9865 striplib="$STRIP -x"
9866 old_striplib="$STRIP -S"
9867 { $as_echo "$as_me:$LINENO: result: yes" >&5
9868 $as_echo "yes" >&6; }
9869 else
9870 { $as_echo "$as_me:$LINENO: result: no" >&5
9871 $as_echo "no" >&6; }
9872 fi
9873 ;;
9874 *)
9875 { $as_echo "$as_me:$LINENO: result: no" >&5
9876 $as_echo "no" >&6; }
9877 ;;
9878 esac
9879 fi
9880
9881 if test "x$enable_dlopen" != xyes; then
9882 enable_dlopen=unknown
9883 enable_dlopen_self=unknown
9884 enable_dlopen_self_static=unknown
9885 else
9886 lt_cv_dlopen=no
9887 lt_cv_dlopen_libs=
9888
9889 case $host_os in
9890 beos*)
9891 lt_cv_dlopen="load_add_on"
9892 lt_cv_dlopen_libs=
9893 lt_cv_dlopen_self=yes
9894 ;;
9895
9896 mingw* | pw32*)
9897 lt_cv_dlopen="LoadLibrary"
9898 lt_cv_dlopen_libs=
9899 ;;
9900
9901 cygwin*)
9902 lt_cv_dlopen="dlopen"
9903 lt_cv_dlopen_libs=
9904 ;;
9905
9906 darwin*)
9907 # if libdl is installed we need to link against it
9908 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9909 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9910 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9911 $as_echo_n "(cached) " >&6
9912 else
9913 ac_check_lib_save_LIBS=$LIBS
9914 LIBS="-ldl $LIBS"
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h. */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921
9922 /* Override any GCC internal prototype to avoid an error.
9923 Use char because int might match the return type of a GCC
9924 builtin and then its argument prototype would still apply. */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 char dlopen ();
9929 int
9930 main ()
9931 {
9932 return dlopen ();
9933 ;
9934 return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9939 case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942 esac
9943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944 $as_echo "$ac_try_echo") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext && {
9955 test "$cross_compiling" = yes ||
9956 $as_test_x conftest$ac_exeext
9957 }; then
9958 ac_cv_lib_dl_dlopen=yes
9959 else
9960 $as_echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 ac_cv_lib_dl_dlopen=no
9964 fi
9965
9966 rm -rf conftest.dSYM
9967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9968 conftest$ac_exeext conftest.$ac_ext
9969 LIBS=$ac_check_lib_save_LIBS
9970 fi
9971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9972 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9973 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9975 else
9976
9977 lt_cv_dlopen="dyld"
9978 lt_cv_dlopen_libs=
9979 lt_cv_dlopen_self=yes
9980
9981 fi
9982
9983 ;;
9984
9985 *)
9986 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9987 $as_echo_n "checking for shl_load... " >&6; }
9988 if test "${ac_cv_func_shl_load+set}" = set; then
9989 $as_echo_n "(cached) " >&6
9990 else
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9999 #define shl_load innocuous_shl_load
10000
10001 /* System header to define __stub macros and hopefully few prototypes,
10002 which can conflict with char shl_load (); below.
10003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10004 <limits.h> exists even on freestanding compilers. */
10005
10006 #ifdef __STDC__
10007 # include <limits.h>
10008 #else
10009 # include <assert.h>
10010 #endif
10011
10012 #undef shl_load
10013
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char shl_load ();
10021 /* The GNU C library defines this for functions which it implements
10022 to always fail with ENOSYS. Some functions are actually named
10023 something starting with __ and the normal name is an alias. */
10024 #if defined __stub_shl_load || defined __stub___shl_load
10025 choke me
10026 #endif
10027
10028 int
10029 main ()
10030 {
10031 return shl_load ();
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041 esac
10042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10043 $as_echo "$ac_try_echo") >&5
10044 (eval "$ac_link") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest$ac_exeext && {
10054 test "$cross_compiling" = yes ||
10055 $as_test_x conftest$ac_exeext
10056 }; then
10057 ac_cv_func_shl_load=yes
10058 else
10059 $as_echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 ac_cv_func_shl_load=no
10063 fi
10064
10065 rm -rf conftest.dSYM
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067 conftest$ac_exeext conftest.$ac_ext
10068 fi
10069 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10070 $as_echo "$ac_cv_func_shl_load" >&6; }
10071 if test "x$ac_cv_func_shl_load" = x""yes; then
10072 lt_cv_dlopen="shl_load"
10073 else
10074 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10075 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10076 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10077 $as_echo_n "(cached) " >&6
10078 else
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-ldld $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087
10088 /* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
10091 #ifdef __cplusplus
10092 extern "C"
10093 #endif
10094 char shl_load ();
10095 int
10096 main ()
10097 {
10098 return shl_load ();
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10110 $as_echo "$ac_try_echo") >&5
10111 (eval "$ac_link") 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 } && test -s conftest$ac_exeext && {
10121 test "$cross_compiling" = yes ||
10122 $as_test_x conftest$ac_exeext
10123 }; then
10124 ac_cv_lib_dld_shl_load=yes
10125 else
10126 $as_echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 ac_cv_lib_dld_shl_load=no
10130 fi
10131
10132 rm -rf conftest.dSYM
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10136 fi
10137 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10138 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10139 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10141 else
10142 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10143 $as_echo_n "checking for dlopen... " >&6; }
10144 if test "${ac_cv_func_dlopen+set}" = set; then
10145 $as_echo_n "(cached) " >&6
10146 else
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h. */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10155 #define dlopen innocuous_dlopen
10156
10157 /* System header to define __stub macros and hopefully few prototypes,
10158 which can conflict with char dlopen (); below.
10159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10160 <limits.h> exists even on freestanding compilers. */
10161
10162 #ifdef __STDC__
10163 # include <limits.h>
10164 #else
10165 # include <assert.h>
10166 #endif
10167
10168 #undef dlopen
10169
10170 /* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 char dlopen ();
10177 /* The GNU C library defines this for functions which it implements
10178 to always fail with ENOSYS. Some functions are actually named
10179 something starting with __ and the normal name is an alias. */
10180 #if defined __stub_dlopen || defined __stub___dlopen
10181 choke me
10182 #endif
10183
10184 int
10185 main ()
10186 {
10187 return dlopen ();
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (ac_try="$ac_link"
10194 case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10199 $as_echo "$ac_try_echo") >&5
10200 (eval "$ac_link") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest$ac_exeext && {
10210 test "$cross_compiling" = yes ||
10211 $as_test_x conftest$ac_exeext
10212 }; then
10213 ac_cv_func_dlopen=yes
10214 else
10215 $as_echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 ac_cv_func_dlopen=no
10219 fi
10220
10221 rm -rf conftest.dSYM
10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10224 fi
10225 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10226 $as_echo "$ac_cv_func_dlopen" >&6; }
10227 if test "x$ac_cv_func_dlopen" = x""yes; then
10228 lt_cv_dlopen="dlopen"
10229 else
10230 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10233 $as_echo_n "(cached) " >&6
10234 else
10235 ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-ldl $LIBS"
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char dlopen ();
10251 int
10252 main ()
10253 {
10254 return dlopen ();
10255 ;
10256 return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264 esac
10265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10266 $as_echo "$ac_try_echo") >&5
10267 (eval "$ac_link") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest$ac_exeext && {
10277 test "$cross_compiling" = yes ||
10278 $as_test_x conftest$ac_exeext
10279 }; then
10280 ac_cv_lib_dl_dlopen=yes
10281 else
10282 $as_echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285 ac_cv_lib_dl_dlopen=no
10286 fi
10287
10288 rm -rf conftest.dSYM
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10292 fi
10293 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10294 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10295 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10297 else
10298 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10299 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10301 $as_echo_n "(cached) " >&6
10302 else
10303 ac_check_lib_save_LIBS=$LIBS
10304 LIBS="-lsvld $LIBS"
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311
10312 /* Override any GCC internal prototype to avoid an error.
10313 Use char because int might match the return type of a GCC
10314 builtin and then its argument prototype would still apply. */
10315 #ifdef __cplusplus
10316 extern "C"
10317 #endif
10318 char dlopen ();
10319 int
10320 main ()
10321 {
10322 return dlopen ();
10323 ;
10324 return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10334 $as_echo "$ac_try_echo") >&5
10335 (eval "$ac_link") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest$ac_exeext && {
10345 test "$cross_compiling" = yes ||
10346 $as_test_x conftest$ac_exeext
10347 }; then
10348 ac_cv_lib_svld_dlopen=yes
10349 else
10350 $as_echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 ac_cv_lib_svld_dlopen=no
10354 fi
10355
10356 rm -rf conftest.dSYM
10357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10358 conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10360 fi
10361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10362 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10363 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10365 else
10366 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10367 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10368 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10369 $as_echo_n "(cached) " >&6
10370 else
10371 ac_check_lib_save_LIBS=$LIBS
10372 LIBS="-ldld $LIBS"
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379
10380 /* Override any GCC internal prototype to avoid an error.
10381 Use char because int might match the return type of a GCC
10382 builtin and then its argument prototype would still apply. */
10383 #ifdef __cplusplus
10384 extern "C"
10385 #endif
10386 char dld_link ();
10387 int
10388 main ()
10389 {
10390 return dld_link ();
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10402 $as_echo "$ac_try_echo") >&5
10403 (eval "$ac_link") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext && {
10413 test "$cross_compiling" = yes ||
10414 $as_test_x conftest$ac_exeext
10415 }; then
10416 ac_cv_lib_dld_dld_link=yes
10417 else
10418 $as_echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_cv_lib_dld_dld_link=no
10422 fi
10423
10424 rm -rf conftest.dSYM
10425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10428 fi
10429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10430 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10431 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10432 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10433 fi
10434
10435
10436 fi
10437
10438
10439 fi
10440
10441
10442 fi
10443
10444
10445 fi
10446
10447
10448 fi
10449
10450 ;;
10451 esac
10452
10453 if test "x$lt_cv_dlopen" != xno; then
10454 enable_dlopen=yes
10455 else
10456 enable_dlopen=no
10457 fi
10458
10459 case $lt_cv_dlopen in
10460 dlopen)
10461 save_CPPFLAGS="$CPPFLAGS"
10462 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10463
10464 save_LDFLAGS="$LDFLAGS"
10465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10466
10467 save_LIBS="$LIBS"
10468 LIBS="$lt_cv_dlopen_libs $LIBS"
10469
10470 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10471 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10472 if test "${lt_cv_dlopen_self+set}" = set; then
10473 $as_echo_n "(cached) " >&6
10474 else
10475 if test "$cross_compiling" = yes; then :
10476 lt_cv_dlopen_self=cross
10477 else
10478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10479 lt_status=$lt_dlunknown
10480 cat > conftest.$ac_ext <<EOF
10481 #line 10481 "configure"
10482 #include "confdefs.h"
10483
10484 #if HAVE_DLFCN_H
10485 #include <dlfcn.h>
10486 #endif
10487
10488 #include <stdio.h>
10489
10490 #ifdef RTLD_GLOBAL
10491 # define LT_DLGLOBAL RTLD_GLOBAL
10492 #else
10493 # ifdef DL_GLOBAL
10494 # define LT_DLGLOBAL DL_GLOBAL
10495 # else
10496 # define LT_DLGLOBAL 0
10497 # endif
10498 #endif
10499
10500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10501 find out it does not work in some platform. */
10502 #ifndef LT_DLLAZY_OR_NOW
10503 # ifdef RTLD_LAZY
10504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10505 # else
10506 # ifdef DL_LAZY
10507 # define LT_DLLAZY_OR_NOW DL_LAZY
10508 # else
10509 # ifdef RTLD_NOW
10510 # define LT_DLLAZY_OR_NOW RTLD_NOW
10511 # else
10512 # ifdef DL_NOW
10513 # define LT_DLLAZY_OR_NOW DL_NOW
10514 # else
10515 # define LT_DLLAZY_OR_NOW 0
10516 # endif
10517 # endif
10518 # endif
10519 # endif
10520 #endif
10521
10522 #ifdef __cplusplus
10523 extern "C" void exit (int);
10524 #endif
10525
10526 void fnord() { int i=42;}
10527 int main ()
10528 {
10529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10530 int status = $lt_dlunknown;
10531
10532 if (self)
10533 {
10534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10535 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10536 /* dlclose (self); */
10537 }
10538 else
10539 puts (dlerror ());
10540
10541 exit (status);
10542 }
10543 EOF
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>&5
10546 ac_status=$?
10547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10549 (./conftest; exit; ) >&5 2>/dev/null
10550 lt_status=$?
10551 case x$lt_status in
10552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10554 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10555 esac
10556 else :
10557 # compilation failed
10558 lt_cv_dlopen_self=no
10559 fi
10560 fi
10561 rm -fr conftest*
10562
10563
10564 fi
10565 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10566 $as_echo "$lt_cv_dlopen_self" >&6; }
10567
10568 if test "x$lt_cv_dlopen_self" = xyes; then
10569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10570 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10571 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10572 if test "${lt_cv_dlopen_self_static+set}" = set; then
10573 $as_echo_n "(cached) " >&6
10574 else
10575 if test "$cross_compiling" = yes; then :
10576 lt_cv_dlopen_self_static=cross
10577 else
10578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10579 lt_status=$lt_dlunknown
10580 cat > conftest.$ac_ext <<EOF
10581 #line 10581 "configure"
10582 #include "confdefs.h"
10583
10584 #if HAVE_DLFCN_H
10585 #include <dlfcn.h>
10586 #endif
10587
10588 #include <stdio.h>
10589
10590 #ifdef RTLD_GLOBAL
10591 # define LT_DLGLOBAL RTLD_GLOBAL
10592 #else
10593 # ifdef DL_GLOBAL
10594 # define LT_DLGLOBAL DL_GLOBAL
10595 # else
10596 # define LT_DLGLOBAL 0
10597 # endif
10598 #endif
10599
10600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10601 find out it does not work in some platform. */
10602 #ifndef LT_DLLAZY_OR_NOW
10603 # ifdef RTLD_LAZY
10604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10605 # else
10606 # ifdef DL_LAZY
10607 # define LT_DLLAZY_OR_NOW DL_LAZY
10608 # else
10609 # ifdef RTLD_NOW
10610 # define LT_DLLAZY_OR_NOW RTLD_NOW
10611 # else
10612 # ifdef DL_NOW
10613 # define LT_DLLAZY_OR_NOW DL_NOW
10614 # else
10615 # define LT_DLLAZY_OR_NOW 0
10616 # endif
10617 # endif
10618 # endif
10619 # endif
10620 #endif
10621
10622 #ifdef __cplusplus
10623 extern "C" void exit (int);
10624 #endif
10625
10626 void fnord() { int i=42;}
10627 int main ()
10628 {
10629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10630 int status = $lt_dlunknown;
10631
10632 if (self)
10633 {
10634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10636 /* dlclose (self); */
10637 }
10638 else
10639 puts (dlerror ());
10640
10641 exit (status);
10642 }
10643 EOF
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>&5
10646 ac_status=$?
10647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10649 (./conftest; exit; ) >&5 2>/dev/null
10650 lt_status=$?
10651 case x$lt_status in
10652 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10653 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10654 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10655 esac
10656 else :
10657 # compilation failed
10658 lt_cv_dlopen_self_static=no
10659 fi
10660 fi
10661 rm -fr conftest*
10662
10663
10664 fi
10665 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10666 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10667 fi
10668
10669 CPPFLAGS="$save_CPPFLAGS"
10670 LDFLAGS="$save_LDFLAGS"
10671 LIBS="$save_LIBS"
10672 ;;
10673 esac
10674
10675 case $lt_cv_dlopen_self in
10676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10677 *) enable_dlopen_self=unknown ;;
10678 esac
10679
10680 case $lt_cv_dlopen_self_static in
10681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10682 *) enable_dlopen_self_static=unknown ;;
10683 esac
10684 fi
10685
10686
10687 # Report which library types will actually be built
10688 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10690 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10691 $as_echo "$can_build_shared" >&6; }
10692
10693 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10694 $as_echo_n "checking whether to build shared libraries... " >&6; }
10695 test "$can_build_shared" = "no" && enable_shared=no
10696
10697 # On AIX, shared libraries and static libraries use the same namespace, and
10698 # are all built from PIC.
10699 case $host_os in
10700 aix3*)
10701 test "$enable_shared" = yes && enable_static=no
10702 if test -n "$RANLIB"; then
10703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10704 postinstall_cmds='$RANLIB $lib'
10705 fi
10706 ;;
10707
10708 aix[4-9]*)
10709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10710 test "$enable_shared" = yes && enable_static=no
10711 fi
10712 ;;
10713 esac
10714 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10715 $as_echo "$enable_shared" >&6; }
10716
10717 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10718 $as_echo_n "checking whether to build static libraries... " >&6; }
10719 # Make sure either enable_shared or enable_static is yes.
10720 test "$enable_shared" = yes || enable_static=yes
10721 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10722 $as_echo "$enable_static" >&6; }
10723
10724 # The else clause should only fire when bootstrapping the
10725 # libtool distribution, otherwise you forgot to ship ltmain.sh
10726 # with your package, and you will get complaints that there are
10727 # no rules to generate ltmain.sh.
10728 if test -f "$ltmain"; then
10729 # See if we are running on zsh, and set the options which allow our commands through
10730 # without removal of \ escapes.
10731 if test -n "${ZSH_VERSION+set}" ; then
10732 setopt NO_GLOB_SUBST
10733 fi
10734 # Now quote all the things that may contain metacharacters while being
10735 # careful not to overquote the AC_SUBSTed values. We take copies of the
10736 # variables and quote the copies for generation of the libtool script.
10737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10738 SED SHELL STRIP \
10739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10741 deplibs_check_method reload_flag reload_cmds need_locks \
10742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10743 lt_cv_sys_global_symbol_to_c_name_address \
10744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10745 old_postinstall_cmds old_postuninstall_cmds \
10746 compiler \
10747 CC \
10748 LD \
10749 lt_prog_compiler_wl \
10750 lt_prog_compiler_pic \
10751 lt_prog_compiler_static \
10752 lt_prog_compiler_no_builtin_flag \
10753 export_dynamic_flag_spec \
10754 thread_safe_flag_spec \
10755 whole_archive_flag_spec \
10756 enable_shared_with_static_runtimes \
10757 old_archive_cmds \
10758 old_archive_from_new_cmds \
10759 predep_objects \
10760 postdep_objects \
10761 predeps \
10762 postdeps \
10763 compiler_lib_search_path \
10764 compiler_lib_search_dirs \
10765 archive_cmds \
10766 archive_expsym_cmds \
10767 postinstall_cmds \
10768 postuninstall_cmds \
10769 old_archive_from_expsyms_cmds \
10770 allow_undefined_flag \
10771 no_undefined_flag \
10772 export_symbols_cmds \
10773 hardcode_libdir_flag_spec \
10774 hardcode_libdir_flag_spec_ld \
10775 hardcode_libdir_separator \
10776 hardcode_automatic \
10777 module_cmds \
10778 module_expsym_cmds \
10779 lt_cv_prog_compiler_c_o \
10780 fix_srcfile_path \
10781 exclude_expsyms \
10782 include_expsyms; do
10783
10784 case $var in
10785 old_archive_cmds | \
10786 old_archive_from_new_cmds | \
10787 archive_cmds | \
10788 archive_expsym_cmds | \
10789 module_cmds | \
10790 module_expsym_cmds | \
10791 old_archive_from_expsyms_cmds | \
10792 export_symbols_cmds | \
10793 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10794 postinstall_cmds | postuninstall_cmds | \
10795 old_postinstall_cmds | old_postuninstall_cmds | \
10796 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10797 # Double-quote double-evaled strings.
10798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10799 ;;
10800 *)
10801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10802 ;;
10803 esac
10804 done
10805
10806 case $lt_echo in
10807 *'\$0 --fallback-echo"')
10808 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10809 ;;
10810 esac
10811
10812 cfgfile="${ofile}T"
10813 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10814 $rm -f "$cfgfile"
10815 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10816 $as_echo "$as_me: creating $ofile" >&6;}
10817
10818 cat <<__EOF__ >> "$cfgfile"
10819 #! $SHELL
10820
10821 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10822 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10823 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10824 #
10825 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10826 # Free Software Foundation, Inc.
10827 #
10828 # This file is part of GNU Libtool:
10829 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10830 #
10831 # This program is free software; you can redistribute it and/or modify
10832 # it under the terms of the GNU General Public License as published by
10833 # the Free Software Foundation; either version 2 of the License, or
10834 # (at your option) any later version.
10835 #
10836 # This program is distributed in the hope that it will be useful, but
10837 # WITHOUT ANY WARRANTY; without even the implied warranty of
10838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10839 # General Public License for more details.
10840 #
10841 # You should have received a copy of the GNU General Public License
10842 # along with this program; if not, write to the Free Software
10843 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10844 #
10845 # As a special exception to the GNU General Public License, if you
10846 # distribute this file as part of a program that contains a
10847 # configuration script generated by Autoconf, you may include it under
10848 # the same distribution terms that you use for the rest of that program.
10849
10850 # A sed program that does not truncate output.
10851 SED=$lt_SED
10852
10853 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10854 Xsed="$SED -e 1s/^X//"
10855
10856 # The HP-UX ksh and POSIX shell print the target directory to stdout
10857 # if CDPATH is set.
10858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10859
10860 # The names of the tagged configurations supported by this script.
10861 available_tags=
10862
10863 # ### BEGIN LIBTOOL CONFIG
10864
10865 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10866
10867 # Shell to use when invoking shell scripts.
10868 SHELL=$lt_SHELL
10869
10870 # Whether or not to build shared libraries.
10871 build_libtool_libs=$enable_shared
10872
10873 # Whether or not to build static libraries.
10874 build_old_libs=$enable_static
10875
10876 # Whether or not to add -lc for building shared libraries.
10877 build_libtool_need_lc=$archive_cmds_need_lc
10878
10879 # Whether or not to disallow shared libs when runtime libs are static
10880 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10881
10882 # Whether or not to optimize for fast installation.
10883 fast_install=$enable_fast_install
10884
10885 # The host system.
10886 host_alias=$host_alias
10887 host=$host
10888 host_os=$host_os
10889
10890 # The build system.
10891 build_alias=$build_alias
10892 build=$build
10893 build_os=$build_os
10894
10895 # An echo program that does not interpret backslashes.
10896 echo=$lt_echo
10897
10898 # The archiver.
10899 AR=$lt_AR
10900 AR_FLAGS=$lt_AR_FLAGS
10901
10902 # A C compiler.
10903 LTCC=$lt_LTCC
10904
10905 # LTCC compiler flags.
10906 LTCFLAGS=$lt_LTCFLAGS
10907
10908 # A language-specific compiler.
10909 CC=$lt_compiler
10910
10911 # Is the compiler the GNU C compiler?
10912 with_gcc=$GCC
10913
10914 # An ERE matcher.
10915 EGREP=$lt_EGREP
10916
10917 # The linker used to build libraries.
10918 LD=$lt_LD
10919
10920 # Whether we need hard or soft links.
10921 LN_S=$lt_LN_S
10922
10923 # A BSD-compatible nm program.
10924 NM=$lt_NM
10925
10926 # A symbol stripping program
10927 STRIP=$lt_STRIP
10928
10929 # Used to examine libraries when file_magic_cmd begins "file"
10930 MAGIC_CMD=$MAGIC_CMD
10931
10932 # Used on cygwin: DLL creation program.
10933 DLLTOOL="$DLLTOOL"
10934
10935 # Used on cygwin: object dumper.
10936 OBJDUMP="$OBJDUMP"
10937
10938 # Used on cygwin: assembler.
10939 AS="$AS"
10940
10941 # The name of the directory that contains temporary libtool files.
10942 objdir=$objdir
10943
10944 # How to create reloadable object files.
10945 reload_flag=$lt_reload_flag
10946 reload_cmds=$lt_reload_cmds
10947
10948 # How to pass a linker flag through the compiler.
10949 wl=$lt_lt_prog_compiler_wl
10950
10951 # Object file suffix (normally "o").
10952 objext="$ac_objext"
10953
10954 # Old archive suffix (normally "a").
10955 libext="$libext"
10956
10957 # Shared library suffix (normally ".so").
10958 shrext_cmds='$shrext_cmds'
10959
10960 # Executable file suffix (normally "").
10961 exeext="$exeext"
10962
10963 # Additional compiler flags for building library objects.
10964 pic_flag=$lt_lt_prog_compiler_pic
10965 pic_mode=$pic_mode
10966
10967 # What is the maximum length of a command?
10968 max_cmd_len=$lt_cv_sys_max_cmd_len
10969
10970 # Does compiler simultaneously support -c and -o options?
10971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10972
10973 # Must we lock files when doing compilation?
10974 need_locks=$lt_need_locks
10975
10976 # Do we need the lib prefix for modules?
10977 need_lib_prefix=$need_lib_prefix
10978
10979 # Do we need a version for libraries?
10980 need_version=$need_version
10981
10982 # Whether dlopen is supported.
10983 dlopen_support=$enable_dlopen
10984
10985 # Whether dlopen of programs is supported.
10986 dlopen_self=$enable_dlopen_self
10987
10988 # Whether dlopen of statically linked programs is supported.
10989 dlopen_self_static=$enable_dlopen_self_static
10990
10991 # Compiler flag to prevent dynamic linking.
10992 link_static_flag=$lt_lt_prog_compiler_static
10993
10994 # Compiler flag to turn off builtin functions.
10995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10996
10997 # Compiler flag to allow reflexive dlopens.
10998 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10999
11000 # Compiler flag to generate shared objects directly from archives.
11001 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11002
11003 # Compiler flag to generate thread-safe objects.
11004 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11005
11006 # Library versioning type.
11007 version_type=$version_type
11008
11009 # Format of library name prefix.
11010 libname_spec=$lt_libname_spec
11011
11012 # List of archive names. First name is the real one, the rest are links.
11013 # The last name is the one that the linker finds with -lNAME.
11014 library_names_spec=$lt_library_names_spec
11015
11016 # The coded name of the library, if different from the real name.
11017 soname_spec=$lt_soname_spec
11018
11019 # Commands used to build and install an old-style archive.
11020 RANLIB=$lt_RANLIB
11021 old_archive_cmds=$lt_old_archive_cmds
11022 old_postinstall_cmds=$lt_old_postinstall_cmds
11023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11024
11025 # Create an old-style archive from a shared archive.
11026 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11027
11028 # Create a temporary old-style archive to link instead of a shared archive.
11029 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11030
11031 # Commands used to build and install a shared archive.
11032 archive_cmds=$lt_archive_cmds
11033 archive_expsym_cmds=$lt_archive_expsym_cmds
11034 postinstall_cmds=$lt_postinstall_cmds
11035 postuninstall_cmds=$lt_postuninstall_cmds
11036
11037 # Commands used to build a loadable module (assumed same as above if empty)
11038 module_cmds=$lt_module_cmds
11039 module_expsym_cmds=$lt_module_expsym_cmds
11040
11041 # Commands to strip libraries.
11042 old_striplib=$lt_old_striplib
11043 striplib=$lt_striplib
11044
11045 # Dependencies to place before the objects being linked to create a
11046 # shared library.
11047 predep_objects=$lt_predep_objects
11048
11049 # Dependencies to place after the objects being linked to create a
11050 # shared library.
11051 postdep_objects=$lt_postdep_objects
11052
11053 # Dependencies to place before the objects being linked to create a
11054 # shared library.
11055 predeps=$lt_predeps
11056
11057 # Dependencies to place after the objects being linked to create a
11058 # shared library.
11059 postdeps=$lt_postdeps
11060
11061 # The directories searched by this compiler when creating a shared
11062 # library
11063 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11064
11065 # The library search path used internally by the compiler when linking
11066 # a shared library.
11067 compiler_lib_search_path=$lt_compiler_lib_search_path
11068
11069 # Method to check whether dependent libraries are shared objects.
11070 deplibs_check_method=$lt_deplibs_check_method
11071
11072 # Command to use when deplibs_check_method == file_magic.
11073 file_magic_cmd=$lt_file_magic_cmd
11074
11075 # Flag that allows shared libraries with undefined symbols to be built.
11076 allow_undefined_flag=$lt_allow_undefined_flag
11077
11078 # Flag that forces no undefined symbols.
11079 no_undefined_flag=$lt_no_undefined_flag
11080
11081 # Commands used to finish a libtool library installation in a directory.
11082 finish_cmds=$lt_finish_cmds
11083
11084 # Same as above, but a single script fragment to be evaled but not shown.
11085 finish_eval=$lt_finish_eval
11086
11087 # Take the output of nm and produce a listing of raw symbols and C names.
11088 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11089
11090 # Transform the output of nm in a proper C declaration
11091 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11092
11093 # Transform the output of nm in a C name address pair
11094 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11095
11096 # This is the shared library runtime path variable.
11097 runpath_var=$runpath_var
11098
11099 # This is the shared library path variable.
11100 shlibpath_var=$shlibpath_var
11101
11102 # Is shlibpath searched before the hard-coded library search path?
11103 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11104
11105 # How to hardcode a shared library path into an executable.
11106 hardcode_action=$hardcode_action
11107
11108 # Whether we should hardcode library paths into libraries.
11109 hardcode_into_libs=$hardcode_into_libs
11110
11111 # Flag to hardcode \$libdir into a binary during linking.
11112 # This must work even if \$libdir does not exist.
11113 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11114
11115 # If ld is used when linking, flag to hardcode \$libdir into
11116 # a binary during linking. This must work even if \$libdir does
11117 # not exist.
11118 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11119
11120 # Whether we need a single -rpath flag with a separated argument.
11121 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11122
11123 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11124 # resulting binary.
11125 hardcode_direct=$hardcode_direct
11126
11127 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11128 # resulting binary.
11129 hardcode_minus_L=$hardcode_minus_L
11130
11131 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11132 # the resulting binary.
11133 hardcode_shlibpath_var=$hardcode_shlibpath_var
11134
11135 # Set to yes if building a shared library automatically hardcodes DIR into the library
11136 # and all subsequent libraries and executables linked against it.
11137 hardcode_automatic=$hardcode_automatic
11138
11139 # Variables whose values should be saved in libtool wrapper scripts and
11140 # restored at relink time.
11141 variables_saved_for_relink="$variables_saved_for_relink"
11142
11143 # Whether libtool must link a program against all its dependency libraries.
11144 link_all_deplibs=$link_all_deplibs
11145
11146 # Compile-time system search path for libraries
11147 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11148
11149 # Run-time system search path for libraries
11150 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11151
11152 # Fix the shell variable \$srcfile for the compiler.
11153 fix_srcfile_path=$lt_fix_srcfile_path
11154
11155 # Set to yes if exported symbols are required.
11156 always_export_symbols=$always_export_symbols
11157
11158 # The commands to list exported symbols.
11159 export_symbols_cmds=$lt_export_symbols_cmds
11160
11161 # The commands to extract the exported symbol list from a shared archive.
11162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11163
11164 # Symbols that should not be listed in the preloaded symbols.
11165 exclude_expsyms=$lt_exclude_expsyms
11166
11167 # Symbols that must always be exported.
11168 include_expsyms=$lt_include_expsyms
11169
11170 # ### END LIBTOOL CONFIG
11171
11172 __EOF__
11173
11174
11175 case $host_os in
11176 aix3*)
11177 cat <<\EOF >> "$cfgfile"
11178
11179 # AIX sometimes has problems with the GCC collect2 program. For some
11180 # reason, if we set the COLLECT_NAMES environment variable, the problems
11181 # vanish in a puff of smoke.
11182 if test "X${COLLECT_NAMES+set}" != Xset; then
11183 COLLECT_NAMES=
11184 export COLLECT_NAMES
11185 fi
11186 EOF
11187 ;;
11188 esac
11189
11190 # We use sed instead of cat because bash on DJGPP gets confused if
11191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11192 # text mode, it properly converts lines to CR/LF. This bash problem
11193 # is reportedly fixed, but why not run on old versions too?
11194 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11195
11196 mv -f "$cfgfile" "$ofile" || \
11197 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11198 chmod +x "$ofile"
11199
11200 else
11201 # If there is no Makefile yet, we rely on a make rule to execute
11202 # `config.status --recheck' to rerun these tests and create the
11203 # libtool script then.
11204 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11205 if test -f "$ltmain_in"; then
11206 test -f Makefile && make "$ltmain"
11207 fi
11208 fi
11209
11210
11211 ac_ext=c
11212 ac_cpp='$CPP $CPPFLAGS'
11213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11216
11217 CC="$lt_save_CC"
11218
11219
11220 # Check whether --with-tags was given.
11221 if test "${with_tags+set}" = set; then
11222 withval=$with_tags; tagnames="$withval"
11223 fi
11224
11225
11226 if test -f "$ltmain" && test -n "$tagnames"; then
11227 if test ! -f "${ofile}"; then
11228 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11229 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11230 fi
11231
11232 if test -z "$LTCC"; then
11233 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11234 if test -z "$LTCC"; then
11235 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11236 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11237 else
11238 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11239 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11240 fi
11241 fi
11242 if test -z "$LTCFLAGS"; then
11243 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11244 fi
11245
11246 # Extract list of available tagged configurations in $ofile.
11247 # Note that this assumes the entire list is on one line.
11248 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11249
11250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11251 for tagname in $tagnames; do
11252 IFS="$lt_save_ifs"
11253 # Check whether tagname contains only valid characters
11254 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11255 "") ;;
11256 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11257 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11258 { (exit 1); exit 1; }; }
11259 ;;
11260 esac
11261
11262 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11263 then
11264 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11265 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11266 { (exit 1); exit 1; }; }
11267 fi
11268
11269 # Update the list of available tags.
11270 if test -n "$tagname"; then
11271 echo appending configuration tag \"$tagname\" to $ofile
11272
11273 case $tagname in
11274 CXX)
11275 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11276 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11277 (test "X$CXX" != "Xg++"))) ; then
11278 ac_ext=cpp
11279 ac_cpp='$CXXCPP $CPPFLAGS'
11280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11283
11284
11285
11286
11287 archive_cmds_need_lc_CXX=no
11288 allow_undefined_flag_CXX=
11289 always_export_symbols_CXX=no
11290 archive_expsym_cmds_CXX=
11291 export_dynamic_flag_spec_CXX=
11292 hardcode_direct_CXX=no
11293 hardcode_libdir_flag_spec_CXX=
11294 hardcode_libdir_flag_spec_ld_CXX=
11295 hardcode_libdir_separator_CXX=
11296 hardcode_minus_L_CXX=no
11297 hardcode_shlibpath_var_CXX=unsupported
11298 hardcode_automatic_CXX=no
11299 module_cmds_CXX=
11300 module_expsym_cmds_CXX=
11301 link_all_deplibs_CXX=unknown
11302 old_archive_cmds_CXX=$old_archive_cmds
11303 no_undefined_flag_CXX=
11304 whole_archive_flag_spec_CXX=
11305 enable_shared_with_static_runtimes_CXX=no
11306
11307 # Dependencies to place before and after the object being linked:
11308 predep_objects_CXX=
11309 postdep_objects_CXX=
11310 predeps_CXX=
11311 postdeps_CXX=
11312 compiler_lib_search_path_CXX=
11313 compiler_lib_search_dirs_CXX=
11314
11315 # Source file extension for C++ test sources.
11316 ac_ext=cpp
11317
11318 # Object file extension for compiled C++ test sources.
11319 objext=o
11320 objext_CXX=$objext
11321
11322 # Code to be used in simple compile tests
11323 lt_simple_compile_test_code="int some_variable = 0;"
11324
11325 # Code to be used in simple link tests
11326 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11327
11328 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11329
11330 # If no C compiler was specified, use CC.
11331 LTCC=${LTCC-"$CC"}
11332
11333 # If no C compiler flags were specified, use CFLAGS.
11334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11335
11336 # Allow CC to be a program name with arguments.
11337 compiler=$CC
11338
11339
11340 # save warnings/boilerplate of simple test code
11341 ac_outfile=conftest.$ac_objext
11342 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11344 _lt_compiler_boilerplate=`cat conftest.err`
11345 $rm conftest*
11346
11347 ac_outfile=conftest.$ac_objext
11348 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11350 _lt_linker_boilerplate=`cat conftest.err`
11351 $rm -r conftest*
11352
11353
11354 # Allow CC to be a program name with arguments.
11355 lt_save_CC=$CC
11356 lt_save_LD=$LD
11357 lt_save_GCC=$GCC
11358 GCC=$GXX
11359 lt_save_with_gnu_ld=$with_gnu_ld
11360 lt_save_path_LD=$lt_cv_path_LD
11361 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11362 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11363 else
11364 $as_unset lt_cv_prog_gnu_ld
11365 fi
11366 if test -n "${lt_cv_path_LDCXX+set}"; then
11367 lt_cv_path_LD=$lt_cv_path_LDCXX
11368 else
11369 $as_unset lt_cv_path_LD
11370 fi
11371 test -z "${LDCXX+set}" || LD=$LDCXX
11372 CC=${CXX-"c++"}
11373 compiler=$CC
11374 compiler_CXX=$CC
11375 for cc_temp in $compiler""; do
11376 case $cc_temp in
11377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11379 \-*) ;;
11380 *) break;;
11381 esac
11382 done
11383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11384
11385
11386 # We don't want -fno-exception wen compiling C++ code, so set the
11387 # no_builtin_flag separately
11388 if test "$GXX" = yes; then
11389 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11390 else
11391 lt_prog_compiler_no_builtin_flag_CXX=
11392 fi
11393
11394 if test "$GXX" = yes; then
11395 # Set up default GNU C++ configuration
11396
11397
11398 # Check whether --with-gnu-ld was given.
11399 if test "${with_gnu_ld+set}" = set; then
11400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11401 else
11402 with_gnu_ld=no
11403 fi
11404
11405 ac_prog=ld
11406 if test "$GCC" = yes; then
11407 # Check if gcc -print-prog-name=ld gives a path.
11408 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11409 $as_echo_n "checking for ld used by $CC... " >&6; }
11410 case $host in
11411 *-*-mingw*)
11412 # gcc leaves a trailing carriage return which upsets mingw
11413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11414 *)
11415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11416 esac
11417 case $ac_prog in
11418 # Accept absolute paths.
11419 [\\/]* | ?:[\\/]*)
11420 re_direlt='/[^/][^/]*/\.\./'
11421 # Canonicalize the pathname of ld
11422 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11423 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11424 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11425 done
11426 test -z "$LD" && LD="$ac_prog"
11427 ;;
11428 "")
11429 # If it fails, then pretend we aren't using GCC.
11430 ac_prog=ld
11431 ;;
11432 *)
11433 # If it is relative, then search for the first ld in PATH.
11434 with_gnu_ld=unknown
11435 ;;
11436 esac
11437 elif test "$with_gnu_ld" = yes; then
11438 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11439 $as_echo_n "checking for GNU ld... " >&6; }
11440 else
11441 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11442 $as_echo_n "checking for non-GNU ld... " >&6; }
11443 fi
11444 if test "${lt_cv_path_LD+set}" = set; then
11445 $as_echo_n "(cached) " >&6
11446 else
11447 if test -z "$LD"; then
11448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11449 for ac_dir in $PATH; do
11450 IFS="$lt_save_ifs"
11451 test -z "$ac_dir" && ac_dir=.
11452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11453 lt_cv_path_LD="$ac_dir/$ac_prog"
11454 # Check to see if the program is GNU ld. I'd rather use --version,
11455 # but apparently some variants of GNU ld only accept -v.
11456 # Break only if it was the GNU/non-GNU ld that we prefer.
11457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11458 *GNU* | *'with BFD'*)
11459 test "$with_gnu_ld" != no && break
11460 ;;
11461 *)
11462 test "$with_gnu_ld" != yes && break
11463 ;;
11464 esac
11465 fi
11466 done
11467 IFS="$lt_save_ifs"
11468 else
11469 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11470 fi
11471 fi
11472
11473 LD="$lt_cv_path_LD"
11474 if test -n "$LD"; then
11475 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11476 $as_echo "$LD" >&6; }
11477 else
11478 { $as_echo "$as_me:$LINENO: result: no" >&5
11479 $as_echo "no" >&6; }
11480 fi
11481 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11482 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11483 { (exit 1); exit 1; }; }
11484 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11485 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11486 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11487 $as_echo_n "(cached) " >&6
11488 else
11489 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11490 case `$LD -v 2>&1 </dev/null` in
11491 *GNU* | *'with BFD'*)
11492 lt_cv_prog_gnu_ld=yes
11493 ;;
11494 *)
11495 lt_cv_prog_gnu_ld=no
11496 ;;
11497 esac
11498 fi
11499 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11500 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11501 with_gnu_ld=$lt_cv_prog_gnu_ld
11502
11503
11504
11505 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11506 # archiving commands below assume that GNU ld is being used.
11507 if test "$with_gnu_ld" = yes; then
11508 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11509 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'
11510
11511 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11513
11514 # If archive_cmds runs LD, not CC, wlarc should be empty
11515 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11516 # investigate it a little bit more. (MM)
11517 wlarc='${wl}'
11518
11519 # ancient GNU ld didn't support --whole-archive et. al.
11520 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11521 grep 'no-whole-archive' > /dev/null; then
11522 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11523 else
11524 whole_archive_flag_spec_CXX=
11525 fi
11526 else
11527 with_gnu_ld=no
11528 wlarc=
11529
11530 # A generic and very simple default shared library creation
11531 # command for GNU C++ for the case where it uses the native
11532 # linker, instead of GNU ld. If possible, this setting should
11533 # overridden to take advantage of the native linker features on
11534 # the platform it is being used on.
11535 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11536 fi
11537
11538 # Commands to make compiler produce verbose output that lists
11539 # what "hidden" libraries, object files and flags are used when
11540 # linking a shared library.
11541 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11542
11543 else
11544 GXX=no
11545 with_gnu_ld=no
11546 wlarc=
11547 fi
11548
11549 # PORTME: fill in a description of your system's C++ link characteristics
11550 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11551 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11552 ld_shlibs_CXX=yes
11553 case $host_os in
11554 aix3*)
11555 # FIXME: insert proper C++ library support
11556 ld_shlibs_CXX=no
11557 ;;
11558 aix[4-9]*)
11559 if test "$host_cpu" = ia64; then
11560 # On IA64, the linker does run time linking by default, so we don't
11561 # have to do anything special.
11562 aix_use_runtimelinking=no
11563 exp_sym_flag='-Bexport'
11564 no_entry_flag=""
11565 else
11566 aix_use_runtimelinking=no
11567
11568 # Test if we are trying to use run time linking or normal
11569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11570 # need to do runtime linking.
11571 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11572 for ld_flag in $LDFLAGS; do
11573 case $ld_flag in
11574 *-brtl*)
11575 aix_use_runtimelinking=yes
11576 break
11577 ;;
11578 esac
11579 done
11580 ;;
11581 esac
11582
11583 exp_sym_flag='-bexport'
11584 no_entry_flag='-bnoentry'
11585 fi
11586
11587 # When large executables or shared objects are built, AIX ld can
11588 # have problems creating the table of contents. If linking a library
11589 # or program results in "error TOC overflow" add -mminimal-toc to
11590 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11591 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11592
11593 archive_cmds_CXX=''
11594 hardcode_direct_CXX=yes
11595 hardcode_libdir_separator_CXX=':'
11596 link_all_deplibs_CXX=yes
11597
11598 if test "$GXX" = yes; then
11599 case $host_os in aix4.[012]|aix4.[012].*)
11600 # We only want to do this on AIX 4.2 and lower, the check
11601 # below for broken collect2 doesn't work under 4.3+
11602 collect2name=`${CC} -print-prog-name=collect2`
11603 if test -f "$collect2name" && \
11604 strings "$collect2name" | grep resolve_lib_name >/dev/null
11605 then
11606 # We have reworked collect2
11607 :
11608 else
11609 # We have old collect2
11610 hardcode_direct_CXX=unsupported
11611 # It fails to find uninstalled libraries when the uninstalled
11612 # path is not listed in the libpath. Setting hardcode_minus_L
11613 # to unsupported forces relinking
11614 hardcode_minus_L_CXX=yes
11615 hardcode_libdir_flag_spec_CXX='-L$libdir'
11616 hardcode_libdir_separator_CXX=
11617 fi
11618 ;;
11619 esac
11620 shared_flag='-shared'
11621 if test "$aix_use_runtimelinking" = yes; then
11622 shared_flag="$shared_flag "'${wl}-G'
11623 fi
11624 else
11625 # not using gcc
11626 if test "$host_cpu" = ia64; then
11627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11628 # chokes on -Wl,-G. The following line is correct:
11629 shared_flag='-G'
11630 else
11631 if test "$aix_use_runtimelinking" = yes; then
11632 shared_flag='${wl}-G'
11633 else
11634 shared_flag='${wl}-bM:SRE'
11635 fi
11636 fi
11637 fi
11638
11639 # It seems that -bexpall does not export symbols beginning with
11640 # underscore (_), so it is better to generate a list of symbols to export.
11641 always_export_symbols_CXX=yes
11642 if test "$aix_use_runtimelinking" = yes; then
11643 # Warning - without using the other runtime loading flags (-brtl),
11644 # -berok will link without error, but may produce a broken library.
11645 allow_undefined_flag_CXX='-berok'
11646 # Determine the default libpath from the value encoded in an empty executable.
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653
11654 int
11655 main ()
11656 {
11657
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (ac_try="$ac_link"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667 esac
11668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11669 $as_echo "$ac_try_echo") >&5
11670 (eval "$ac_link") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_cxx_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest$ac_exeext && {
11680 test "$cross_compiling" = yes ||
11681 $as_test_x conftest$ac_exeext
11682 }; then
11683
11684 lt_aix_libpath_sed='
11685 /Import File Strings/,/^$/ {
11686 /^0/ {
11687 s/^0 *\(.*\)$/\1/
11688 p
11689 }
11690 }'
11691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11692 # Check for a 64-bit object if we didn't find anything.
11693 if test -z "$aix_libpath"; then
11694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11695 fi
11696 else
11697 $as_echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700
11701 fi
11702
11703 rm -rf conftest.dSYM
11704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11705 conftest$ac_exeext conftest.$ac_ext
11706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11707
11708 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11709
11710 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"
11711 else
11712 if test "$host_cpu" = ia64; then
11713 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11714 allow_undefined_flag_CXX="-z nodefs"
11715 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"
11716 else
11717 # Determine the default libpath from the value encoded in an empty executable.
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724
11725 int
11726 main ()
11727 {
11728
11729 ;
11730 return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11738 esac
11739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11740 $as_echo "$ac_try_echo") >&5
11741 (eval "$ac_link") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_cxx_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest$ac_exeext && {
11751 test "$cross_compiling" = yes ||
11752 $as_test_x conftest$ac_exeext
11753 }; then
11754
11755 lt_aix_libpath_sed='
11756 /Import File Strings/,/^$/ {
11757 /^0/ {
11758 s/^0 *\(.*\)$/\1/
11759 p
11760 }
11761 }'
11762 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11763 # Check for a 64-bit object if we didn't find anything.
11764 if test -z "$aix_libpath"; then
11765 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766 fi
11767 else
11768 $as_echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771
11772 fi
11773
11774 rm -rf conftest.dSYM
11775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11776 conftest$ac_exeext conftest.$ac_ext
11777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11778
11779 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11780 # Warning - without using the other run time loading flags,
11781 # -berok will link without error, but may produce a broken library.
11782 no_undefined_flag_CXX=' ${wl}-bernotok'
11783 allow_undefined_flag_CXX=' ${wl}-berok'
11784 # Exported symbols can be pulled into shared objects from archives
11785 whole_archive_flag_spec_CXX='$convenience'
11786 archive_cmds_need_lc_CXX=yes
11787 # This is similar to how AIX traditionally builds its shared libraries.
11788 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'
11789 fi
11790 fi
11791 ;;
11792
11793 beos*)
11794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11795 allow_undefined_flag_CXX=unsupported
11796 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11797 # support --undefined. This deserves some investigation. FIXME
11798 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11799 else
11800 ld_shlibs_CXX=no
11801 fi
11802 ;;
11803
11804 chorus*)
11805 case $cc_basename in
11806 *)
11807 # FIXME: insert proper C++ library support
11808 ld_shlibs_CXX=no
11809 ;;
11810 esac
11811 ;;
11812
11813 cygwin* | mingw* | pw32*)
11814 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11815 # as there is no search path for DLLs.
11816 hardcode_libdir_flag_spec_CXX='-L$libdir'
11817 allow_undefined_flag_CXX=unsupported
11818 always_export_symbols_CXX=no
11819 enable_shared_with_static_runtimes_CXX=yes
11820
11821 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11822 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'
11823 # If the export-symbols file already is a .def file (1st line
11824 # is EXPORTS), use it as is; otherwise, prepend...
11825 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11826 cp $export_symbols $output_objdir/$soname.def;
11827 else
11828 echo EXPORTS > $output_objdir/$soname.def;
11829 cat $export_symbols >> $output_objdir/$soname.def;
11830 fi~
11831 $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'
11832 else
11833 ld_shlibs_CXX=no
11834 fi
11835 ;;
11836 darwin* | rhapsody*)
11837 archive_cmds_need_lc_CXX=no
11838 hardcode_direct_CXX=no
11839 hardcode_automatic_CXX=yes
11840 hardcode_shlibpath_var_CXX=unsupported
11841 whole_archive_flag_spec_CXX=''
11842 link_all_deplibs_CXX=yes
11843 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11844 if test "$GXX" = yes ; then
11845 output_verbose_link_cmd='echo'
11846 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11847 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11848 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11849 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11850 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11851 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${_lt_dsymutil}"
11852 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11853 fi
11854 else
11855 case $cc_basename in
11856 xlc*)
11857 output_verbose_link_cmd='echo'
11858 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11859 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11861 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11862 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}'
11863 ;;
11864 *)
11865 ld_shlibs_CXX=no
11866 ;;
11867 esac
11868 fi
11869 ;;
11870
11871 dgux*)
11872 case $cc_basename in
11873 ec++*)
11874 # FIXME: insert proper C++ library support
11875 ld_shlibs_CXX=no
11876 ;;
11877 ghcx*)
11878 # Green Hills C++ Compiler
11879 # FIXME: insert proper C++ library support
11880 ld_shlibs_CXX=no
11881 ;;
11882 *)
11883 # FIXME: insert proper C++ library support
11884 ld_shlibs_CXX=no
11885 ;;
11886 esac
11887 ;;
11888 freebsd[12]*)
11889 # C++ shared libraries reported to be fairly broken before switch to ELF
11890 ld_shlibs_CXX=no
11891 ;;
11892 freebsd-elf*)
11893 archive_cmds_need_lc_CXX=no
11894 ;;
11895 freebsd* | dragonfly*)
11896 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11897 # conventions
11898 ld_shlibs_CXX=yes
11899 ;;
11900 gnu*)
11901 ;;
11902 hpux9*)
11903 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11904 hardcode_libdir_separator_CXX=:
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11906 hardcode_direct_CXX=yes
11907 hardcode_minus_L_CXX=yes # Not in the search PATH,
11908 # but as the default
11909 # location of the library.
11910
11911 case $cc_basename in
11912 CC*)
11913 # FIXME: insert proper C++ library support
11914 ld_shlibs_CXX=no
11915 ;;
11916 aCC*)
11917 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'
11918 # Commands to make compiler produce verbose output that lists
11919 # what "hidden" libraries, object files and flags are used when
11920 # linking a shared library.
11921 #
11922 # There doesn't appear to be a way to prevent this compiler from
11923 # explicitly linking system object files so we need to strip them
11924 # from the output so that they don't get included in the library
11925 # dependencies.
11926 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'
11927 ;;
11928 *)
11929 if test "$GXX" = yes; then
11930 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'
11931 else
11932 # FIXME: insert proper C++ library support
11933 ld_shlibs_CXX=no
11934 fi
11935 ;;
11936 esac
11937 ;;
11938 hpux10*|hpux11*)
11939 if test $with_gnu_ld = no; then
11940 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11941 hardcode_libdir_separator_CXX=:
11942
11943 case $host_cpu in
11944 hppa*64*|ia64*) ;;
11945 *)
11946 export_dynamic_flag_spec_CXX='${wl}-E'
11947 ;;
11948 esac
11949 fi
11950 case $host_cpu in
11951 hppa*64*|ia64*)
11952 hardcode_direct_CXX=no
11953 hardcode_shlibpath_var_CXX=no
11954 ;;
11955 *)
11956 hardcode_direct_CXX=yes
11957 hardcode_minus_L_CXX=yes # Not in the search PATH,
11958 # but as the default
11959 # location of the library.
11960 ;;
11961 esac
11962
11963 case $cc_basename in
11964 CC*)
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 ;;
11968 aCC*)
11969 case $host_cpu in
11970 hppa*64*)
11971 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972 ;;
11973 ia64*)
11974 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11975 ;;
11976 *)
11977 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11978 ;;
11979 esac
11980 # Commands to make compiler produce verbose output that lists
11981 # what "hidden" libraries, object files and flags are used when
11982 # linking a shared library.
11983 #
11984 # There doesn't appear to be a way to prevent this compiler from
11985 # explicitly linking system object files so we need to strip them
11986 # from the output so that they don't get included in the library
11987 # dependencies.
11988 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'
11989 ;;
11990 *)
11991 if test "$GXX" = yes; then
11992 if test $with_gnu_ld = no; then
11993 case $host_cpu in
11994 hppa*64*)
11995 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11996 ;;
11997 ia64*)
11998 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11999 ;;
12000 *)
12001 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'
12002 ;;
12003 esac
12004 fi
12005 else
12006 # FIXME: insert proper C++ library support
12007 ld_shlibs_CXX=no
12008 fi
12009 ;;
12010 esac
12011 ;;
12012 interix[3-9]*)
12013 hardcode_direct_CXX=no
12014 hardcode_shlibpath_var_CXX=no
12015 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12016 export_dynamic_flag_spec_CXX='${wl}-E'
12017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12018 # Instead, shared libraries are loaded at an image base (0x10000000 by
12019 # default) and relocated if they conflict, which is a slow very memory
12020 # consuming and fragmenting process. To avoid this, we pick a random,
12021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12023 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'
12024 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'
12025 ;;
12026 irix5* | irix6*)
12027 case $cc_basename in
12028 CC*)
12029 # SGI C++
12030 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'
12031
12032 # Archives containing C++ object files must be created using
12033 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12034 # necessary to make sure instantiated templates are included
12035 # in the archive.
12036 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12037 ;;
12038 *)
12039 if test "$GXX" = yes; then
12040 if test "$with_gnu_ld" = no; then
12041 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'
12042 else
12043 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'
12044 fi
12045 fi
12046 link_all_deplibs_CXX=yes
12047 ;;
12048 esac
12049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12050 hardcode_libdir_separator_CXX=:
12051 ;;
12052 linux* | k*bsd*-gnu)
12053 case $cc_basename in
12054 KCC*)
12055 # Kuck and Associates, Inc. (KAI) C++ Compiler
12056
12057 # KCC will only create a shared library if the output file
12058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12059 # to its proper name (with version) after linking.
12060 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'
12061 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'
12062 # Commands to make compiler produce verbose output that lists
12063 # what "hidden" libraries, object files and flags are used when
12064 # linking a shared library.
12065 #
12066 # There doesn't appear to be a way to prevent this compiler from
12067 # explicitly linking system object files so we need to strip them
12068 # from the output so that they don't get included in the library
12069 # dependencies.
12070 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'
12071
12072 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12074
12075 # Archives containing C++ object files must be created using
12076 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12077 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12078 ;;
12079 icpc*)
12080 # Intel C++
12081 with_gnu_ld=yes
12082 # version 8.0 and above of icpc choke on multiply defined symbols
12083 # if we add $predep_objects and $postdep_objects, however 7.1 and
12084 # earlier do not add the objects themselves.
12085 case `$CC -V 2>&1` in
12086 *"Version 7."*)
12087 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12088 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'
12089 ;;
12090 *) # Version 8.0 or newer
12091 tmp_idyn=
12092 case $host_cpu in
12093 ia64*) tmp_idyn=' -i_dynamic';;
12094 esac
12095 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12096 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'
12097 ;;
12098 esac
12099 archive_cmds_need_lc_CXX=no
12100 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12101 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12102 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12103 ;;
12104 pgCC* | pgcpp*)
12105 # Portland Group C++ compiler
12106 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12107 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'
12108
12109 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12111 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'
12112 ;;
12113 cxx*)
12114 # Compaq C++
12115 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12116 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'
12117
12118 runpath_var=LD_RUN_PATH
12119 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12120 hardcode_libdir_separator_CXX=:
12121
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12125 #
12126 # There doesn't appear to be a way to prevent this compiler from
12127 # explicitly linking system object files so we need to strip them
12128 # from the output so that they don't get included in the library
12129 # dependencies.
12130 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'
12131 ;;
12132 *)
12133 case `$CC -V 2>&1 | sed 5q` in
12134 *Sun\ C*)
12135 # Sun C++ 5.9
12136 no_undefined_flag_CXX=' -zdefs'
12137 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12138 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12139 hardcode_libdir_flag_spec_CXX='-R$libdir'
12140 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12141
12142 # Not sure whether something based on
12143 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12144 # would be better.
12145 output_verbose_link_cmd='echo'
12146
12147 # Archives containing C++ object files must be created using
12148 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12149 # necessary to make sure instantiated templates are included
12150 # in the archive.
12151 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12152 ;;
12153 esac
12154 ;;
12155 esac
12156 ;;
12157 lynxos*)
12158 # FIXME: insert proper C++ library support
12159 ld_shlibs_CXX=no
12160 ;;
12161 m88k*)
12162 # FIXME: insert proper C++ library support
12163 ld_shlibs_CXX=no
12164 ;;
12165 mvs*)
12166 case $cc_basename in
12167 cxx*)
12168 # FIXME: insert proper C++ library support
12169 ld_shlibs_CXX=no
12170 ;;
12171 *)
12172 # FIXME: insert proper C++ library support
12173 ld_shlibs_CXX=no
12174 ;;
12175 esac
12176 ;;
12177 netbsd*)
12178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12179 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12180 wlarc=
12181 hardcode_libdir_flag_spec_CXX='-R$libdir'
12182 hardcode_direct_CXX=yes
12183 hardcode_shlibpath_var_CXX=no
12184 fi
12185 # Workaround some broken pre-1.5 toolchains
12186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12187 ;;
12188 openbsd2*)
12189 # C++ shared libraries are fairly broken
12190 ld_shlibs_CXX=no
12191 ;;
12192 openbsd*)
12193 if test -f /usr/libexec/ld.so; then
12194 hardcode_direct_CXX=yes
12195 hardcode_shlibpath_var_CXX=no
12196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12199 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12200 export_dynamic_flag_spec_CXX='${wl}-E'
12201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12202 fi
12203 output_verbose_link_cmd='echo'
12204 else
12205 ld_shlibs_CXX=no
12206 fi
12207 ;;
12208 osf3*)
12209 case $cc_basename in
12210 KCC*)
12211 # Kuck and Associates, Inc. (KAI) C++ Compiler
12212
12213 # KCC will only create a shared library if the output file
12214 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12215 # to its proper name (with version) after linking.
12216 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'
12217
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12219 hardcode_libdir_separator_CXX=:
12220
12221 # Archives containing C++ object files must be created using
12222 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12223 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12224
12225 ;;
12226 RCC*)
12227 # Rational C++ 2.4.1
12228 # FIXME: insert proper C++ library support
12229 ld_shlibs_CXX=no
12230 ;;
12231 cxx*)
12232 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12233 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'
12234
12235 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12236 hardcode_libdir_separator_CXX=:
12237
12238 # Commands to make compiler produce verbose output that lists
12239 # what "hidden" libraries, object files and flags are used when
12240 # linking a shared library.
12241 #
12242 # There doesn't appear to be a way to prevent this compiler from
12243 # explicitly linking system object files so we need to strip them
12244 # from the output so that they don't get included in the library
12245 # dependencies.
12246 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'
12247 ;;
12248 *)
12249 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12250 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12251 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'
12252
12253 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12254 hardcode_libdir_separator_CXX=:
12255
12256 # Commands to make compiler produce verbose output that lists
12257 # what "hidden" libraries, object files and flags are used when
12258 # linking a shared library.
12259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12260
12261 else
12262 # FIXME: insert proper C++ library support
12263 ld_shlibs_CXX=no
12264 fi
12265 ;;
12266 esac
12267 ;;
12268 osf4* | osf5*)
12269 case $cc_basename in
12270 KCC*)
12271 # Kuck and Associates, Inc. (KAI) C++ Compiler
12272
12273 # KCC will only create a shared library if the output file
12274 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12275 # to its proper name (with version) after linking.
12276 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'
12277
12278 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12279 hardcode_libdir_separator_CXX=:
12280
12281 # Archives containing C++ object files must be created using
12282 # the KAI C++ compiler.
12283 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12284 ;;
12285 RCC*)
12286 # Rational C++ 2.4.1
12287 # FIXME: insert proper C++ library support
12288 ld_shlibs_CXX=no
12289 ;;
12290 cxx*)
12291 allow_undefined_flag_CXX=' -expect_unresolved \*'
12292 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'
12293 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12294 echo "-hidden">> $lib.exp~
12295 $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~
12296 $rm $lib.exp'
12297
12298 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12299 hardcode_libdir_separator_CXX=:
12300
12301 # Commands to make compiler produce verbose output that lists
12302 # what "hidden" libraries, object files and flags are used when
12303 # linking a shared library.
12304 #
12305 # There doesn't appear to be a way to prevent this compiler from
12306 # explicitly linking system object files so we need to strip them
12307 # from the output so that they don't get included in the library
12308 # dependencies.
12309 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'
12310 ;;
12311 *)
12312 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12313 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12314 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'
12315
12316 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12317 hardcode_libdir_separator_CXX=:
12318
12319 # Commands to make compiler produce verbose output that lists
12320 # what "hidden" libraries, object files and flags are used when
12321 # linking a shared library.
12322 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12323
12324 else
12325 # FIXME: insert proper C++ library support
12326 ld_shlibs_CXX=no
12327 fi
12328 ;;
12329 esac
12330 ;;
12331 psos*)
12332 # FIXME: insert proper C++ library support
12333 ld_shlibs_CXX=no
12334 ;;
12335 sunos4*)
12336 case $cc_basename in
12337 CC*)
12338 # Sun C++ 4.x
12339 # FIXME: insert proper C++ library support
12340 ld_shlibs_CXX=no
12341 ;;
12342 lcc*)
12343 # Lucid
12344 # FIXME: insert proper C++ library support
12345 ld_shlibs_CXX=no
12346 ;;
12347 *)
12348 # FIXME: insert proper C++ library support
12349 ld_shlibs_CXX=no
12350 ;;
12351 esac
12352 ;;
12353 solaris*)
12354 case $cc_basename in
12355 CC*)
12356 # Sun C++ 4.2, 5.x and Centerline C++
12357 archive_cmds_need_lc_CXX=yes
12358 no_undefined_flag_CXX=' -zdefs'
12359 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12360 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12361 $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'
12362
12363 hardcode_libdir_flag_spec_CXX='-R$libdir'
12364 hardcode_shlibpath_var_CXX=no
12365 case $host_os in
12366 solaris2.[0-5] | solaris2.[0-5].*) ;;
12367 *)
12368 # The compiler driver will combine and reorder linker options,
12369 # but understands `-z linker_flag'.
12370 # Supported since Solaris 2.6 (maybe 2.5.1?)
12371 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12372 ;;
12373 esac
12374 link_all_deplibs_CXX=yes
12375
12376 output_verbose_link_cmd='echo'
12377
12378 # Archives containing C++ object files must be created using
12379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12380 # necessary to make sure instantiated templates are included
12381 # in the archive.
12382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12383 ;;
12384 gcx*)
12385 # Green Hills C++ Compiler
12386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12387
12388 # The C++ compiler must be used to create the archive.
12389 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12390 ;;
12391 *)
12392 # GNU C++ compiler with Solaris linker
12393 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12394 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12395 if $CC --version | grep -v '^2\.7' > /dev/null; then
12396 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12397 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12398 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12399
12400 # Commands to make compiler produce verbose output that lists
12401 # what "hidden" libraries, object files and flags are used when
12402 # linking a shared library.
12403 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12404 else
12405 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12406 # platform.
12407 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12408 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12409 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12410
12411 # Commands to make compiler produce verbose output that lists
12412 # what "hidden" libraries, object files and flags are used when
12413 # linking a shared library.
12414 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12415 fi
12416
12417 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12418 case $host_os in
12419 solaris2.[0-5] | solaris2.[0-5].*) ;;
12420 *)
12421 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12422 ;;
12423 esac
12424 fi
12425 ;;
12426 esac
12427 ;;
12428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12429 no_undefined_flag_CXX='${wl}-z,text'
12430 archive_cmds_need_lc_CXX=no
12431 hardcode_shlibpath_var_CXX=no
12432 runpath_var='LD_RUN_PATH'
12433
12434 case $cc_basename in
12435 CC*)
12436 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12438 ;;
12439 *)
12440 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12441 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12442 ;;
12443 esac
12444 ;;
12445 sysv5* | sco3.2v5* | sco5v6*)
12446 # Note: We can NOT use -z defs as we might desire, because we do not
12447 # link with -lc, and that would cause any symbols used from libc to
12448 # always be unresolved, which means just about no library would
12449 # ever link correctly. If we're not using GNU ld we use -z text
12450 # though, which does catch some bad symbols but isn't as heavy-handed
12451 # as -z defs.
12452 # For security reasons, it is highly recommended that you always
12453 # use absolute paths for naming shared libraries, and exclude the
12454 # DT_RUNPATH tag from executables and libraries. But doing so
12455 # requires that you compile everything twice, which is a pain.
12456 # So that behaviour is only enabled if SCOABSPATH is set to a
12457 # non-empty value in the environment. Most likely only useful for
12458 # creating official distributions of packages.
12459 # This is a hack until libtool officially supports absolute path
12460 # names for shared libraries.
12461 no_undefined_flag_CXX='${wl}-z,text'
12462 allow_undefined_flag_CXX='${wl}-z,nodefs'
12463 archive_cmds_need_lc_CXX=no
12464 hardcode_shlibpath_var_CXX=no
12465 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12466 hardcode_libdir_separator_CXX=':'
12467 link_all_deplibs_CXX=yes
12468 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12469 runpath_var='LD_RUN_PATH'
12470
12471 case $cc_basename in
12472 CC*)
12473 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12474 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12475 ;;
12476 *)
12477 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12478 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12479 ;;
12480 esac
12481 ;;
12482 tandem*)
12483 case $cc_basename in
12484 NCC*)
12485 # NonStop-UX NCC 3.20
12486 # FIXME: insert proper C++ library support
12487 ld_shlibs_CXX=no
12488 ;;
12489 *)
12490 # FIXME: insert proper C++ library support
12491 ld_shlibs_CXX=no
12492 ;;
12493 esac
12494 ;;
12495 vxworks*)
12496 # FIXME: insert proper C++ library support
12497 ld_shlibs_CXX=no
12498 ;;
12499 *)
12500 # FIXME: insert proper C++ library support
12501 ld_shlibs_CXX=no
12502 ;;
12503 esac
12504 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12505 $as_echo "$ld_shlibs_CXX" >&6; }
12506 test "$ld_shlibs_CXX" = no && can_build_shared=no
12507
12508 GCC_CXX="$GXX"
12509 LD_CXX="$LD"
12510
12511 cat > conftest.$ac_ext <<EOF
12512 class Foo
12513 {
12514 public:
12515 Foo (void) { a = 0; }
12516 private:
12517 int a;
12518 };
12519 EOF
12520
12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; then
12526 # Parse the compiler output and extract the necessary
12527 # objects, libraries and library flags.
12528
12529 # Sentinel used to keep track of whether or not we are before
12530 # the conftest object file.
12531 pre_test_object_deps_done=no
12532
12533 # The `*' in the case matches for architectures that use `case' in
12534 # $output_verbose_cmd can trigger glob expansion during the loop
12535 # eval without this substitution.
12536 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12537
12538 for p in `eval $output_verbose_link_cmd`; do
12539 case $p in
12540
12541 -L* | -R* | -l*)
12542 # Some compilers place space between "-{L,R}" and the path.
12543 # Remove the space.
12544 if test $p = "-L" \
12545 || test $p = "-R"; then
12546 prev=$p
12547 continue
12548 else
12549 prev=
12550 fi
12551
12552 if test "$pre_test_object_deps_done" = no; then
12553 case $p in
12554 -L* | -R*)
12555 # Internal compiler library paths should come after those
12556 # provided the user. The postdeps already come after the
12557 # user supplied libs so there is no need to process them.
12558 if test -z "$compiler_lib_search_path_CXX"; then
12559 compiler_lib_search_path_CXX="${prev}${p}"
12560 else
12561 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12562 fi
12563 ;;
12564 # The "-l" case would never come before the object being
12565 # linked, so don't bother handling this case.
12566 esac
12567 else
12568 if test -z "$postdeps_CXX"; then
12569 postdeps_CXX="${prev}${p}"
12570 else
12571 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12572 fi
12573 fi
12574 ;;
12575
12576 *.$objext)
12577 # This assumes that the test object file only shows up
12578 # once in the compiler output.
12579 if test "$p" = "conftest.$objext"; then
12580 pre_test_object_deps_done=yes
12581 continue
12582 fi
12583
12584 if test "$pre_test_object_deps_done" = no; then
12585 if test -z "$predep_objects_CXX"; then
12586 predep_objects_CXX="$p"
12587 else
12588 predep_objects_CXX="$predep_objects_CXX $p"
12589 fi
12590 else
12591 if test -z "$postdep_objects_CXX"; then
12592 postdep_objects_CXX="$p"
12593 else
12594 postdep_objects_CXX="$postdep_objects_CXX $p"
12595 fi
12596 fi
12597 ;;
12598
12599 *) ;; # Ignore the rest.
12600
12601 esac
12602 done
12603
12604 # Clean up.
12605 rm -f a.out a.exe
12606 else
12607 echo "libtool.m4: error: problem compiling CXX test program"
12608 fi
12609
12610 $rm -f confest.$objext
12611
12612 compiler_lib_search_dirs_CXX=
12613 if test -n "$compiler_lib_search_path_CXX"; then
12614 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12615 fi
12616
12617 # PORTME: override above test on systems where it is broken
12618 case $host_os in
12619 interix[3-9]*)
12620 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12621 # hack all around it, let's just trust "g++" to DTRT.
12622 predep_objects_CXX=
12623 postdep_objects_CXX=
12624 postdeps_CXX=
12625 ;;
12626
12627 linux*)
12628 case `$CC -V 2>&1 | sed 5q` in
12629 *Sun\ C*)
12630 # Sun C++ 5.9
12631 #
12632 # The more standards-conforming stlport4 library is
12633 # incompatible with the Cstd library. Avoid specifying
12634 # it if it's in CXXFLAGS. Ignore libCrun as
12635 # -library=stlport4 depends on it.
12636 case " $CXX $CXXFLAGS " in
12637 *" -library=stlport4 "*)
12638 solaris_use_stlport4=yes
12639 ;;
12640 esac
12641 if test "$solaris_use_stlport4" != yes; then
12642 postdeps_CXX='-library=Cstd -library=Crun'
12643 fi
12644 ;;
12645 esac
12646 ;;
12647
12648 solaris*)
12649 case $cc_basename in
12650 CC*)
12651 # The more standards-conforming stlport4 library is
12652 # incompatible with the Cstd library. Avoid specifying
12653 # it if it's in CXXFLAGS. Ignore libCrun as
12654 # -library=stlport4 depends on it.
12655 case " $CXX $CXXFLAGS " in
12656 *" -library=stlport4 "*)
12657 solaris_use_stlport4=yes
12658 ;;
12659 esac
12660
12661 # Adding this requires a known-good setup of shared libraries for
12662 # Sun compiler versions before 5.6, else PIC objects from an old
12663 # archive will be linked into the output, leading to subtle bugs.
12664 if test "$solaris_use_stlport4" != yes; then
12665 postdeps_CXX='-library=Cstd -library=Crun'
12666 fi
12667 ;;
12668 esac
12669 ;;
12670 esac
12671
12672 case " $postdeps_CXX " in
12673 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12674 esac
12675
12676 lt_prog_compiler_wl_CXX=
12677 lt_prog_compiler_pic_CXX=
12678 lt_prog_compiler_static_CXX=
12679
12680 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12681 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12682
12683 # C++ specific cases for pic, static, wl, etc.
12684 if test "$GXX" = yes; then
12685 lt_prog_compiler_wl_CXX='-Wl,'
12686 lt_prog_compiler_static_CXX='-static'
12687
12688 case $host_os in
12689 aix*)
12690 # All AIX code is PIC.
12691 if test "$host_cpu" = ia64; then
12692 # AIX 5 now supports IA64 processor
12693 lt_prog_compiler_static_CXX='-Bstatic'
12694 fi
12695 ;;
12696 amigaos*)
12697 # FIXME: we need at least 68020 code to build shared libraries, but
12698 # adding the `-m68020' flag to GCC prevents building anything better,
12699 # like `-m68040'.
12700 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12701 ;;
12702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12703 # PIC is the default for these OSes.
12704 ;;
12705 mingw* | cygwin* | os2* | pw32*)
12706 # This hack is so that the source file can tell whether it is being
12707 # built for inclusion in a dll (and should export symbols for example).
12708 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12709 # (--disable-auto-import) libraries
12710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12711 ;;
12712 darwin* | rhapsody*)
12713 # PIC is the default on this platform
12714 # Common symbols not allowed in MH_DYLIB files
12715 lt_prog_compiler_pic_CXX='-fno-common'
12716 ;;
12717 *djgpp*)
12718 # DJGPP does not support shared libraries at all
12719 lt_prog_compiler_pic_CXX=
12720 ;;
12721 interix[3-9]*)
12722 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12723 # Instead, we relocate shared libraries at runtime.
12724 ;;
12725 sysv4*MP*)
12726 if test -d /usr/nec; then
12727 lt_prog_compiler_pic_CXX=-Kconform_pic
12728 fi
12729 ;;
12730 hpux*)
12731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12732 # not for PA HP-UX.
12733 case $host_cpu in
12734 hppa*64*|ia64*)
12735 ;;
12736 *)
12737 lt_prog_compiler_pic_CXX='-fPIC'
12738 ;;
12739 esac
12740 ;;
12741 *)
12742 lt_prog_compiler_pic_CXX='-fPIC'
12743 ;;
12744 esac
12745 else
12746 case $host_os in
12747 aix[4-9]*)
12748 # All AIX code is PIC.
12749 if test "$host_cpu" = ia64; then
12750 # AIX 5 now supports IA64 processor
12751 lt_prog_compiler_static_CXX='-Bstatic'
12752 else
12753 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12754 fi
12755 ;;
12756 chorus*)
12757 case $cc_basename in
12758 cxch68*)
12759 # Green Hills C++ Compiler
12760 # _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"
12761 ;;
12762 esac
12763 ;;
12764 darwin*)
12765 # PIC is the default on this platform
12766 # Common symbols not allowed in MH_DYLIB files
12767 case $cc_basename in
12768 xlc*)
12769 lt_prog_compiler_pic_CXX='-qnocommon'
12770 lt_prog_compiler_wl_CXX='-Wl,'
12771 ;;
12772 esac
12773 ;;
12774 dgux*)
12775 case $cc_basename in
12776 ec++*)
12777 lt_prog_compiler_pic_CXX='-KPIC'
12778 ;;
12779 ghcx*)
12780 # Green Hills C++ Compiler
12781 lt_prog_compiler_pic_CXX='-pic'
12782 ;;
12783 *)
12784 ;;
12785 esac
12786 ;;
12787 freebsd* | dragonfly*)
12788 # FreeBSD uses GNU C++
12789 ;;
12790 hpux9* | hpux10* | hpux11*)
12791 case $cc_basename in
12792 CC*)
12793 lt_prog_compiler_wl_CXX='-Wl,'
12794 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12795 if test "$host_cpu" != ia64; then
12796 lt_prog_compiler_pic_CXX='+Z'
12797 fi
12798 ;;
12799 aCC*)
12800 lt_prog_compiler_wl_CXX='-Wl,'
12801 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12802 case $host_cpu in
12803 hppa*64*|ia64*)
12804 # +Z the default
12805 ;;
12806 *)
12807 lt_prog_compiler_pic_CXX='+Z'
12808 ;;
12809 esac
12810 ;;
12811 *)
12812 ;;
12813 esac
12814 ;;
12815 interix*)
12816 # This is c89, which is MS Visual C++ (no shared libs)
12817 # Anyone wants to do a port?
12818 ;;
12819 irix5* | irix6* | nonstopux*)
12820 case $cc_basename in
12821 CC*)
12822 lt_prog_compiler_wl_CXX='-Wl,'
12823 lt_prog_compiler_static_CXX='-non_shared'
12824 # CC pic flag -KPIC is the default.
12825 ;;
12826 *)
12827 ;;
12828 esac
12829 ;;
12830 linux* | k*bsd*-gnu)
12831 case $cc_basename in
12832 KCC*)
12833 # KAI C++ Compiler
12834 lt_prog_compiler_wl_CXX='--backend -Wl,'
12835 lt_prog_compiler_pic_CXX='-fPIC'
12836 ;;
12837 icpc* | ecpc*)
12838 # Intel C++
12839 lt_prog_compiler_wl_CXX='-Wl,'
12840 lt_prog_compiler_pic_CXX='-KPIC'
12841 lt_prog_compiler_static_CXX='-static'
12842 ;;
12843 pgCC* | pgcpp*)
12844 # Portland Group C++ compiler.
12845 lt_prog_compiler_wl_CXX='-Wl,'
12846 lt_prog_compiler_pic_CXX='-fpic'
12847 lt_prog_compiler_static_CXX='-Bstatic'
12848 ;;
12849 cxx*)
12850 # Compaq C++
12851 # Make sure the PIC flag is empty. It appears that all Alpha
12852 # Linux and Compaq Tru64 Unix objects are PIC.
12853 lt_prog_compiler_pic_CXX=
12854 lt_prog_compiler_static_CXX='-non_shared'
12855 ;;
12856 *)
12857 case `$CC -V 2>&1 | sed 5q` in
12858 *Sun\ C*)
12859 # Sun C++ 5.9
12860 lt_prog_compiler_pic_CXX='-KPIC'
12861 lt_prog_compiler_static_CXX='-Bstatic'
12862 lt_prog_compiler_wl_CXX='-Qoption ld '
12863 ;;
12864 esac
12865 ;;
12866 esac
12867 ;;
12868 lynxos*)
12869 ;;
12870 m88k*)
12871 ;;
12872 mvs*)
12873 case $cc_basename in
12874 cxx*)
12875 lt_prog_compiler_pic_CXX='-W c,exportall'
12876 ;;
12877 *)
12878 ;;
12879 esac
12880 ;;
12881 netbsd*)
12882 ;;
12883 osf3* | osf4* | osf5*)
12884 case $cc_basename in
12885 KCC*)
12886 lt_prog_compiler_wl_CXX='--backend -Wl,'
12887 ;;
12888 RCC*)
12889 # Rational C++ 2.4.1
12890 lt_prog_compiler_pic_CXX='-pic'
12891 ;;
12892 cxx*)
12893 # Digital/Compaq C++
12894 lt_prog_compiler_wl_CXX='-Wl,'
12895 # Make sure the PIC flag is empty. It appears that all Alpha
12896 # Linux and Compaq Tru64 Unix objects are PIC.
12897 lt_prog_compiler_pic_CXX=
12898 lt_prog_compiler_static_CXX='-non_shared'
12899 ;;
12900 *)
12901 ;;
12902 esac
12903 ;;
12904 psos*)
12905 ;;
12906 solaris*)
12907 case $cc_basename in
12908 CC*)
12909 # Sun C++ 4.2, 5.x and Centerline C++
12910 lt_prog_compiler_pic_CXX='-KPIC'
12911 lt_prog_compiler_static_CXX='-Bstatic'
12912 lt_prog_compiler_wl_CXX='-Qoption ld '
12913 ;;
12914 gcx*)
12915 # Green Hills C++ Compiler
12916 lt_prog_compiler_pic_CXX='-PIC'
12917 ;;
12918 *)
12919 ;;
12920 esac
12921 ;;
12922 sunos4*)
12923 case $cc_basename in
12924 CC*)
12925 # Sun C++ 4.x
12926 lt_prog_compiler_pic_CXX='-pic'
12927 lt_prog_compiler_static_CXX='-Bstatic'
12928 ;;
12929 lcc*)
12930 # Lucid
12931 lt_prog_compiler_pic_CXX='-pic'
12932 ;;
12933 *)
12934 ;;
12935 esac
12936 ;;
12937 tandem*)
12938 case $cc_basename in
12939 NCC*)
12940 # NonStop-UX NCC 3.20
12941 lt_prog_compiler_pic_CXX='-KPIC'
12942 ;;
12943 *)
12944 ;;
12945 esac
12946 ;;
12947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12948 case $cc_basename in
12949 CC*)
12950 lt_prog_compiler_wl_CXX='-Wl,'
12951 lt_prog_compiler_pic_CXX='-KPIC'
12952 lt_prog_compiler_static_CXX='-Bstatic'
12953 ;;
12954 esac
12955 ;;
12956 vxworks*)
12957 ;;
12958 *)
12959 lt_prog_compiler_can_build_shared_CXX=no
12960 ;;
12961 esac
12962 fi
12963
12964 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12965 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12966
12967 #
12968 # Check to make sure the PIC flag actually works.
12969 #
12970 if test -n "$lt_prog_compiler_pic_CXX"; then
12971
12972 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12974 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12975 $as_echo_n "(cached) " >&6
12976 else
12977 lt_cv_prog_compiler_pic_works_CXX=no
12978 ac_outfile=conftest.$ac_objext
12979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12980 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12981 # Insert the option either (1) after the last *FLAGS variable, or
12982 # (2) before a word containing "conftest.", or (3) at the end.
12983 # Note that $ac_compile itself does not contain backslashes and begins
12984 # with a dollar sign (not a hyphen), so the echo should work correctly.
12985 # The option is referenced via a variable to avoid confusing sed.
12986 lt_compile=`echo "$ac_compile" | $SED \
12987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12989 -e 's:$: $lt_compiler_flag:'`
12990 (eval echo "\"\$as_me:12990: $lt_compile\"" >&5)
12991 (eval "$lt_compile" 2>conftest.err)
12992 ac_status=$?
12993 cat conftest.err >&5
12994 echo "$as_me:12994: \$? = $ac_status" >&5
12995 if (exit $ac_status) && test -s "$ac_outfile"; then
12996 # The compiler can only warn and ignore the option if not recognized
12997 # So say no if there are warnings other than the usual output.
12998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13001 lt_cv_prog_compiler_pic_works_CXX=yes
13002 fi
13003 fi
13004 $rm conftest*
13005
13006 fi
13007 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13008 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13009
13010 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13011 case $lt_prog_compiler_pic_CXX in
13012 "" | " "*) ;;
13013 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13014 esac
13015 else
13016 lt_prog_compiler_pic_CXX=
13017 lt_prog_compiler_can_build_shared_CXX=no
13018 fi
13019
13020 fi
13021 case $host_os in
13022 # For platforms which do not support PIC, -DPIC is meaningless:
13023 *djgpp*)
13024 lt_prog_compiler_pic_CXX=
13025 ;;
13026 *)
13027 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13028 ;;
13029 esac
13030
13031 #
13032 # Check to make sure the static flag actually works.
13033 #
13034 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13035 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13036 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13037 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13038 $as_echo_n "(cached) " >&6
13039 else
13040 lt_cv_prog_compiler_static_works_CXX=no
13041 save_LDFLAGS="$LDFLAGS"
13042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13045 # The linker can only warn and ignore the option if not recognized
13046 # So say no if there are warnings
13047 if test -s conftest.err; then
13048 # Append any errors to the config.log.
13049 cat conftest.err 1>&5
13050 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13052 if diff conftest.exp conftest.er2 >/dev/null; then
13053 lt_cv_prog_compiler_static_works_CXX=yes
13054 fi
13055 else
13056 lt_cv_prog_compiler_static_works_CXX=yes
13057 fi
13058 fi
13059 $rm -r conftest*
13060 LDFLAGS="$save_LDFLAGS"
13061
13062 fi
13063 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13064 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13065
13066 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13067 :
13068 else
13069 lt_prog_compiler_static_CXX=
13070 fi
13071
13072
13073 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13074 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13075 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13076 $as_echo_n "(cached) " >&6
13077 else
13078 lt_cv_prog_compiler_c_o_CXX=no
13079 $rm -r conftest 2>/dev/null
13080 mkdir conftest
13081 cd conftest
13082 mkdir out
13083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13084
13085 lt_compiler_flag="-o out/conftest2.$ac_objext"
13086 # Insert the option either (1) after the last *FLAGS variable, or
13087 # (2) before a word containing "conftest.", or (3) at the end.
13088 # Note that $ac_compile itself does not contain backslashes and begins
13089 # with a dollar sign (not a hyphen), so the echo should work correctly.
13090 lt_compile=`echo "$ac_compile" | $SED \
13091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13093 -e 's:$: $lt_compiler_flag:'`
13094 (eval echo "\"\$as_me:13094: $lt_compile\"" >&5)
13095 (eval "$lt_compile" 2>out/conftest.err)
13096 ac_status=$?
13097 cat out/conftest.err >&5
13098 echo "$as_me:13098: \$? = $ac_status" >&5
13099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13100 then
13101 # The compiler can only warn and ignore the option if not recognized
13102 # So say no if there are warnings
13103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13106 lt_cv_prog_compiler_c_o_CXX=yes
13107 fi
13108 fi
13109 chmod u+w . 2>&5
13110 $rm conftest*
13111 # SGI C++ compiler will create directory out/ii_files/ for
13112 # template instantiation
13113 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13114 $rm out/* && rmdir out
13115 cd ..
13116 rmdir conftest
13117 $rm conftest*
13118
13119 fi
13120 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13121 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13122
13123
13124 hard_links="nottested"
13125 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13126 # do not overwrite the value of need_locks provided by the user
13127 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13128 $as_echo_n "checking if we can lock with hard links... " >&6; }
13129 hard_links=yes
13130 $rm conftest*
13131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13132 touch conftest.a
13133 ln conftest.a conftest.b 2>&5 || hard_links=no
13134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13135 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13136 $as_echo "$hard_links" >&6; }
13137 if test "$hard_links" = no; then
13138 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13139 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13140 need_locks=warn
13141 fi
13142 else
13143 need_locks=no
13144 fi
13145
13146 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13147 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13148
13149 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13150 case $host_os in
13151 aix[4-9]*)
13152 # If we're using GNU nm, then we don't want the "-C" option.
13153 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13154 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13155 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'
13156 else
13157 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'
13158 fi
13159 ;;
13160 pw32*)
13161 export_symbols_cmds_CXX="$ltdll_cmds"
13162 ;;
13163 cygwin* | mingw*)
13164 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'
13165 ;;
13166 *)
13167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13168 ;;
13169 esac
13170 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13171
13172 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13173 $as_echo "$ld_shlibs_CXX" >&6; }
13174 test "$ld_shlibs_CXX" = no && can_build_shared=no
13175
13176 #
13177 # Do we need to explicitly link libc?
13178 #
13179 case "x$archive_cmds_need_lc_CXX" in
13180 x|xyes)
13181 # Assume -lc should be added
13182 archive_cmds_need_lc_CXX=yes
13183
13184 if test "$enable_shared" = yes && test "$GCC" = yes; then
13185 case $archive_cmds_CXX in
13186 *'~'*)
13187 # FIXME: we may have to deal with multi-command sequences.
13188 ;;
13189 '$CC '*)
13190 # Test whether the compiler implicitly links with -lc since on some
13191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13192 # to ld, don't add -lc before -lgcc.
13193 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13195 $rm conftest*
13196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13197
13198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>&5
13200 ac_status=$?
13201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } 2>conftest.err; then
13203 soname=conftest
13204 lib=conftest
13205 libobjs=conftest.$ac_objext
13206 deplibs=
13207 wl=$lt_prog_compiler_wl_CXX
13208 pic_flag=$lt_prog_compiler_pic_CXX
13209 compiler_flags=-v
13210 linker_flags=-v
13211 verstring=
13212 output_objdir=.
13213 libname=conftest
13214 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13215 allow_undefined_flag_CXX=
13216 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13217 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13218 ac_status=$?
13219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }
13221 then
13222 archive_cmds_need_lc_CXX=no
13223 else
13224 archive_cmds_need_lc_CXX=yes
13225 fi
13226 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13227 else
13228 cat conftest.err 1>&5
13229 fi
13230 $rm conftest*
13231 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13232 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13233 ;;
13234 esac
13235 fi
13236 ;;
13237 esac
13238
13239 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13240 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13241 library_names_spec=
13242 libname_spec='lib$name'
13243 soname_spec=
13244 shrext_cmds=".so"
13245 postinstall_cmds=
13246 postuninstall_cmds=
13247 finish_cmds=
13248 finish_eval=
13249 shlibpath_var=
13250 shlibpath_overrides_runpath=unknown
13251 version_type=none
13252 dynamic_linker="$host_os ld.so"
13253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13254
13255 need_lib_prefix=unknown
13256 hardcode_into_libs=no
13257
13258 # when you set need_version to no, make sure it does not cause -set_version
13259 # flags to be left without arguments
13260 need_version=unknown
13261
13262 case $host_os in
13263 aix3*)
13264 version_type=linux
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13266 shlibpath_var=LIBPATH
13267
13268 # AIX 3 has no versioning support, so we append a major version to the name.
13269 soname_spec='${libname}${release}${shared_ext}$major'
13270 ;;
13271
13272 aix[4-9]*)
13273 version_type=linux
13274 need_lib_prefix=no
13275 need_version=no
13276 hardcode_into_libs=yes
13277 if test "$host_cpu" = ia64; then
13278 # AIX 5 supports IA64
13279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 else
13282 # With GCC up to 2.95.x, collect2 would create an import file
13283 # for dependence libraries. The import file would start with
13284 # the line `#! .'. This would cause the generated library to
13285 # depend on `.', always an invalid library. This was fixed in
13286 # development snapshots of GCC prior to 3.0.
13287 case $host_os in
13288 aix4 | aix4.[01] | aix4.[01].*)
13289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13290 echo ' yes '
13291 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13292 :
13293 else
13294 can_build_shared=no
13295 fi
13296 ;;
13297 esac
13298 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13299 # soname into executable. Probably we can add versioning support to
13300 # collect2, so additional links can be useful in future.
13301 if test "$aix_use_runtimelinking" = yes; then
13302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13303 # instead of lib<name>.a to let people know that these are not
13304 # typical AIX shared libraries.
13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306 else
13307 # We preserve .a as extension for shared libraries through AIX4.2
13308 # and later when we are not doing run time linking.
13309 library_names_spec='${libname}${release}.a $libname.a'
13310 soname_spec='${libname}${release}${shared_ext}$major'
13311 fi
13312 shlibpath_var=LIBPATH
13313 fi
13314 ;;
13315
13316 amigaos*)
13317 library_names_spec='$libname.ixlibrary $libname.a'
13318 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13319 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'
13320 ;;
13321
13322 beos*)
13323 library_names_spec='${libname}${shared_ext}'
13324 dynamic_linker="$host_os ld.so"
13325 shlibpath_var=LIBRARY_PATH
13326 ;;
13327
13328 bsdi[45]*)
13329 version_type=linux
13330 need_version=no
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13336 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13337 # the default ld.so.conf also contains /usr/contrib/lib and
13338 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13339 # libtool to hard-code these into programs
13340 ;;
13341
13342 cygwin* | mingw* | pw32*)
13343 version_type=windows
13344 shrext_cmds=".dll"
13345 need_version=no
13346 need_lib_prefix=no
13347
13348 case $GCC,$host_os in
13349 yes,cygwin* | yes,mingw* | yes,pw32*)
13350 library_names_spec='$libname.dll.a'
13351 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13352 postinstall_cmds='base_file=`basename \${file}`~
13353 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13354 dldir=$destdir/`dirname \$dlpath`~
13355 test -d \$dldir || mkdir -p \$dldir~
13356 $install_prog $dir/$dlname \$dldir/$dlname~
13357 chmod a+x \$dldir/$dlname'
13358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13359 dlpath=$dir/\$dldll~
13360 $rm \$dlpath'
13361 shlibpath_overrides_runpath=yes
13362
13363 case $host_os in
13364 cygwin*)
13365 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13366 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13367 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13368 ;;
13369 mingw*)
13370 # MinGW DLLs use traditional 'lib' prefix
13371 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13372 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13373 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13374 # It is most probably a Windows format PATH printed by
13375 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13376 # path with ; separators, and with drive letters. We can handle the
13377 # drive letters (cygwin fileutils understands them), so leave them,
13378 # especially as we might pass files found there to a mingw objdump,
13379 # which wouldn't understand a cygwinified path. Ahh.
13380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13381 else
13382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13383 fi
13384 ;;
13385 pw32*)
13386 # pw32 DLLs use 'pw' prefix rather than 'lib'
13387 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13388 ;;
13389 esac
13390 ;;
13391
13392 *)
13393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13394 ;;
13395 esac
13396 dynamic_linker='Win32 ld.exe'
13397 # FIXME: first we should search . and the directory the executable is in
13398 shlibpath_var=PATH
13399 ;;
13400
13401 darwin* | rhapsody*)
13402 dynamic_linker="$host_os dyld"
13403 version_type=darwin
13404 need_lib_prefix=no
13405 need_version=no
13406 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13407 soname_spec='${libname}${release}${major}$shared_ext'
13408 shlibpath_overrides_runpath=yes
13409 shlibpath_var=DYLD_LIBRARY_PATH
13410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13411
13412 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13413 ;;
13414
13415 dgux*)
13416 version_type=linux
13417 need_lib_prefix=no
13418 need_version=no
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13420 soname_spec='${libname}${release}${shared_ext}$major'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 ;;
13423
13424 freebsd1*)
13425 dynamic_linker=no
13426 ;;
13427
13428 freebsd* | dragonfly*)
13429 # DragonFly does not have aout. When/if they implement a new
13430 # versioning mechanism, adjust this.
13431 if test -x /usr/bin/objformat; then
13432 objformat=`/usr/bin/objformat`
13433 else
13434 case $host_os in
13435 freebsd[123]*) objformat=aout ;;
13436 *) objformat=elf ;;
13437 esac
13438 fi
13439 version_type=freebsd-$objformat
13440 case $version_type in
13441 freebsd-elf*)
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13443 need_version=no
13444 need_lib_prefix=no
13445 ;;
13446 freebsd-*)
13447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13448 need_version=yes
13449 ;;
13450 esac
13451 shlibpath_var=LD_LIBRARY_PATH
13452 case $host_os in
13453 freebsd2*)
13454 shlibpath_overrides_runpath=yes
13455 ;;
13456 freebsd3.[01]* | freebsdelf3.[01]*)
13457 shlibpath_overrides_runpath=yes
13458 hardcode_into_libs=yes
13459 ;;
13460 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13461 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13462 shlibpath_overrides_runpath=no
13463 hardcode_into_libs=yes
13464 ;;
13465 *) # from 4.6 on, and DragonFly
13466 shlibpath_overrides_runpath=yes
13467 hardcode_into_libs=yes
13468 ;;
13469 esac
13470 ;;
13471
13472 gnu*)
13473 version_type=linux
13474 need_lib_prefix=no
13475 need_version=no
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 hardcode_into_libs=yes
13480 ;;
13481
13482 hpux9* | hpux10* | hpux11*)
13483 # Give a soname corresponding to the major version so that dld.sl refuses to
13484 # link against other versions.
13485 version_type=sunos
13486 need_lib_prefix=no
13487 need_version=no
13488 case $host_cpu in
13489 ia64*)
13490 shrext_cmds='.so'
13491 hardcode_into_libs=yes
13492 dynamic_linker="$host_os dld.so"
13493 shlibpath_var=LD_LIBRARY_PATH
13494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13496 soname_spec='${libname}${release}${shared_ext}$major'
13497 if test "X$HPUX_IA64_MODE" = X32; then
13498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13499 else
13500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13501 fi
13502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13503 ;;
13504 hppa*64*)
13505 shrext_cmds='.sl'
13506 hardcode_into_libs=yes
13507 dynamic_linker="$host_os dld.sl"
13508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13511 soname_spec='${libname}${release}${shared_ext}$major'
13512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13514 ;;
13515 *)
13516 shrext_cmds='.sl'
13517 dynamic_linker="$host_os dld.sl"
13518 shlibpath_var=SHLIB_PATH
13519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 ;;
13523 esac
13524 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13525 postinstall_cmds='chmod 555 $lib'
13526 ;;
13527
13528 interix[3-9]*)
13529 version_type=linux
13530 need_lib_prefix=no
13531 need_version=no
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 shlibpath_overrides_runpath=no
13537 hardcode_into_libs=yes
13538 ;;
13539
13540 irix5* | irix6* | nonstopux*)
13541 case $host_os in
13542 nonstopux*) version_type=nonstopux ;;
13543 *)
13544 if test "$lt_cv_prog_gnu_ld" = yes; then
13545 version_type=linux
13546 else
13547 version_type=irix
13548 fi ;;
13549 esac
13550 need_lib_prefix=no
13551 need_version=no
13552 soname_spec='${libname}${release}${shared_ext}$major'
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13554 case $host_os in
13555 irix5* | nonstopux*)
13556 libsuff= shlibsuff=
13557 ;;
13558 *)
13559 case $LD in # libtool.m4 will add one of these switches to LD
13560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13561 libsuff= shlibsuff= libmagic=32-bit;;
13562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13563 libsuff=32 shlibsuff=N32 libmagic=N32;;
13564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13566 *) libsuff= shlibsuff= libmagic=never-match;;
13567 esac
13568 ;;
13569 esac
13570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13571 shlibpath_overrides_runpath=no
13572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13574 hardcode_into_libs=yes
13575 ;;
13576
13577 # No shared lib support for Linux oldld, aout, or coff.
13578 linux*oldld* | linux*aout* | linux*coff*)
13579 dynamic_linker=no
13580 ;;
13581
13582 # This must be Linux ELF.
13583 linux* | k*bsd*-gnu)
13584 version_type=linux
13585 need_lib_prefix=no
13586 need_version=no
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588 soname_spec='${libname}${release}${shared_ext}$major'
13589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=no
13592 # This implies no fast_install, which is unacceptable.
13593 # Some rework will be needed to allow for fast_install
13594 # before this can be enabled.
13595 hardcode_into_libs=yes
13596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13598
13599 # Append ld.so.conf contents to the search path
13600 if test -f /etc/ld.so.conf; then
13601 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13602 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13603 fi
13604
13605 # We used to test for /lib/ld.so.1 and disable shared libraries on
13606 # powerpc, because MkLinux only supported shared libraries with the
13607 # GNU dynamic linker. Since this was broken with cross compilers,
13608 # most powerpc-linux boxes support dynamic linking these days and
13609 # people can always --disable-shared, the test was removed, and we
13610 # assume the GNU/Linux dynamic linker is in use.
13611 dynamic_linker='GNU/Linux ld.so'
13612 ;;
13613
13614 netbsd*)
13615 version_type=sunos
13616 need_lib_prefix=no
13617 need_version=no
13618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13621 dynamic_linker='NetBSD (a.out) ld.so'
13622 else
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13624 soname_spec='${libname}${release}${shared_ext}$major'
13625 dynamic_linker='NetBSD ld.elf_so'
13626 fi
13627 shlibpath_var=LD_LIBRARY_PATH
13628 shlibpath_overrides_runpath=yes
13629 hardcode_into_libs=yes
13630 ;;
13631
13632 newsos6)
13633 version_type=linux
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13635 shlibpath_var=LD_LIBRARY_PATH
13636 shlibpath_overrides_runpath=yes
13637 ;;
13638
13639 nto-qnx*)
13640 version_type=linux
13641 need_lib_prefix=no
13642 need_version=no
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644 soname_spec='${libname}${release}${shared_ext}$major'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 shlibpath_overrides_runpath=yes
13647 ;;
13648
13649 openbsd*)
13650 version_type=sunos
13651 sys_lib_dlsearch_path_spec="/usr/lib"
13652 need_lib_prefix=no
13653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13654 case $host_os in
13655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13656 *) need_version=no ;;
13657 esac
13658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13660 shlibpath_var=LD_LIBRARY_PATH
13661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13662 case $host_os in
13663 openbsd2.[89] | openbsd2.[89].*)
13664 shlibpath_overrides_runpath=no
13665 ;;
13666 *)
13667 shlibpath_overrides_runpath=yes
13668 ;;
13669 esac
13670 else
13671 shlibpath_overrides_runpath=yes
13672 fi
13673 ;;
13674
13675 os2*)
13676 libname_spec='$name'
13677 shrext_cmds=".dll"
13678 need_lib_prefix=no
13679 library_names_spec='$libname${shared_ext} $libname.a'
13680 dynamic_linker='OS/2 ld.exe'
13681 shlibpath_var=LIBPATH
13682 ;;
13683
13684 osf3* | osf4* | osf5*)
13685 version_type=osf
13686 need_lib_prefix=no
13687 need_version=no
13688 soname_spec='${libname}${release}${shared_ext}$major'
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690 shlibpath_var=LD_LIBRARY_PATH
13691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13693 ;;
13694
13695 rdos*)
13696 dynamic_linker=no
13697 ;;
13698
13699 solaris*)
13700 version_type=linux
13701 need_lib_prefix=no
13702 need_version=no
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704 soname_spec='${libname}${release}${shared_ext}$major'
13705 shlibpath_var=LD_LIBRARY_PATH
13706 shlibpath_overrides_runpath=yes
13707 hardcode_into_libs=yes
13708 # ldd complains unless libraries are executable
13709 postinstall_cmds='chmod +x $lib'
13710 ;;
13711
13712 sunos4*)
13713 version_type=sunos
13714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13716 shlibpath_var=LD_LIBRARY_PATH
13717 shlibpath_overrides_runpath=yes
13718 if test "$with_gnu_ld" = yes; then
13719 need_lib_prefix=no
13720 fi
13721 need_version=yes
13722 ;;
13723
13724 sysv4 | sysv4.3*)
13725 version_type=linux
13726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13727 soname_spec='${libname}${release}${shared_ext}$major'
13728 shlibpath_var=LD_LIBRARY_PATH
13729 case $host_vendor in
13730 sni)
13731 shlibpath_overrides_runpath=no
13732 need_lib_prefix=no
13733 export_dynamic_flag_spec='${wl}-Blargedynsym'
13734 runpath_var=LD_RUN_PATH
13735 ;;
13736 siemens)
13737 need_lib_prefix=no
13738 ;;
13739 motorola)
13740 need_lib_prefix=no
13741 need_version=no
13742 shlibpath_overrides_runpath=no
13743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13744 ;;
13745 esac
13746 ;;
13747
13748 sysv4*MP*)
13749 if test -d /usr/nec ;then
13750 version_type=linux
13751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13752 soname_spec='$libname${shared_ext}.$major'
13753 shlibpath_var=LD_LIBRARY_PATH
13754 fi
13755 ;;
13756
13757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13758 version_type=freebsd-elf
13759 need_lib_prefix=no
13760 need_version=no
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 hardcode_into_libs=yes
13765 if test "$with_gnu_ld" = yes; then
13766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13767 shlibpath_overrides_runpath=no
13768 else
13769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13770 shlibpath_overrides_runpath=yes
13771 case $host_os in
13772 sco3.2v5*)
13773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13774 ;;
13775 esac
13776 fi
13777 sys_lib_dlsearch_path_spec='/usr/lib'
13778 ;;
13779
13780 uts4*)
13781 version_type=linux
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783 soname_spec='${libname}${release}${shared_ext}$major'
13784 shlibpath_var=LD_LIBRARY_PATH
13785 ;;
13786
13787 *)
13788 dynamic_linker=no
13789 ;;
13790 esac
13791 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13792 $as_echo "$dynamic_linker" >&6; }
13793 test "$dynamic_linker" = no && can_build_shared=no
13794
13795 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13796 $as_echo_n "(cached) " >&6
13797 else
13798 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13799 fi
13800
13801 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13802 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13803 $as_echo_n "(cached) " >&6
13804 else
13805 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13806 fi
13807
13808 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13809
13810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13811 if test "$GCC" = yes; then
13812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13813 fi
13814
13815 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13817 hardcode_action_CXX=
13818 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13819 test -n "$runpath_var_CXX" || \
13820 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13821
13822 # We can hardcode non-existant directories.
13823 if test "$hardcode_direct_CXX" != no &&
13824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13825 # have to relink, otherwise we might link with an installed library
13826 # when we should be linking with a yet-to-be-installed one
13827 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13828 test "$hardcode_minus_L_CXX" != no; then
13829 # Linking always hardcodes the temporary library directory.
13830 hardcode_action_CXX=relink
13831 else
13832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13833 hardcode_action_CXX=immediate
13834 fi
13835 else
13836 # We cannot hardcode anything, or else we can only hardcode existing
13837 # directories.
13838 hardcode_action_CXX=unsupported
13839 fi
13840 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13841 $as_echo "$hardcode_action_CXX" >&6; }
13842
13843 if test "$hardcode_action_CXX" = relink; then
13844 # Fast installation is not supported
13845 enable_fast_install=no
13846 elif test "$shlibpath_overrides_runpath" = yes ||
13847 test "$enable_shared" = no; then
13848 # Fast installation is not necessary
13849 enable_fast_install=needless
13850 fi
13851
13852
13853 # The else clause should only fire when bootstrapping the
13854 # libtool distribution, otherwise you forgot to ship ltmain.sh
13855 # with your package, and you will get complaints that there are
13856 # no rules to generate ltmain.sh.
13857 if test -f "$ltmain"; then
13858 # See if we are running on zsh, and set the options which allow our commands through
13859 # without removal of \ escapes.
13860 if test -n "${ZSH_VERSION+set}" ; then
13861 setopt NO_GLOB_SUBST
13862 fi
13863 # Now quote all the things that may contain metacharacters while being
13864 # careful not to overquote the AC_SUBSTed values. We take copies of the
13865 # variables and quote the copies for generation of the libtool script.
13866 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13867 SED SHELL STRIP \
13868 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13869 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13870 deplibs_check_method reload_flag reload_cmds need_locks \
13871 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13872 lt_cv_sys_global_symbol_to_c_name_address \
13873 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13874 old_postinstall_cmds old_postuninstall_cmds \
13875 compiler_CXX \
13876 CC_CXX \
13877 LD_CXX \
13878 lt_prog_compiler_wl_CXX \
13879 lt_prog_compiler_pic_CXX \
13880 lt_prog_compiler_static_CXX \
13881 lt_prog_compiler_no_builtin_flag_CXX \
13882 export_dynamic_flag_spec_CXX \
13883 thread_safe_flag_spec_CXX \
13884 whole_archive_flag_spec_CXX \
13885 enable_shared_with_static_runtimes_CXX \
13886 old_archive_cmds_CXX \
13887 old_archive_from_new_cmds_CXX \
13888 predep_objects_CXX \
13889 postdep_objects_CXX \
13890 predeps_CXX \
13891 postdeps_CXX \
13892 compiler_lib_search_path_CXX \
13893 compiler_lib_search_dirs_CXX \
13894 archive_cmds_CXX \
13895 archive_expsym_cmds_CXX \
13896 postinstall_cmds_CXX \
13897 postuninstall_cmds_CXX \
13898 old_archive_from_expsyms_cmds_CXX \
13899 allow_undefined_flag_CXX \
13900 no_undefined_flag_CXX \
13901 export_symbols_cmds_CXX \
13902 hardcode_libdir_flag_spec_CXX \
13903 hardcode_libdir_flag_spec_ld_CXX \
13904 hardcode_libdir_separator_CXX \
13905 hardcode_automatic_CXX \
13906 module_cmds_CXX \
13907 module_expsym_cmds_CXX \
13908 lt_cv_prog_compiler_c_o_CXX \
13909 fix_srcfile_path_CXX \
13910 exclude_expsyms_CXX \
13911 include_expsyms_CXX; do
13912
13913 case $var in
13914 old_archive_cmds_CXX | \
13915 old_archive_from_new_cmds_CXX | \
13916 archive_cmds_CXX | \
13917 archive_expsym_cmds_CXX | \
13918 module_cmds_CXX | \
13919 module_expsym_cmds_CXX | \
13920 old_archive_from_expsyms_cmds_CXX | \
13921 export_symbols_cmds_CXX | \
13922 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13923 postinstall_cmds | postuninstall_cmds | \
13924 old_postinstall_cmds | old_postuninstall_cmds | \
13925 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13926 # Double-quote double-evaled strings.
13927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13928 ;;
13929 *)
13930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13931 ;;
13932 esac
13933 done
13934
13935 case $lt_echo in
13936 *'\$0 --fallback-echo"')
13937 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13938 ;;
13939 esac
13940
13941 cfgfile="$ofile"
13942
13943 cat <<__EOF__ >> "$cfgfile"
13944 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13945
13946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13947
13948 # Shell to use when invoking shell scripts.
13949 SHELL=$lt_SHELL
13950
13951 # Whether or not to build shared libraries.
13952 build_libtool_libs=$enable_shared
13953
13954 # Whether or not to build static libraries.
13955 build_old_libs=$enable_static
13956
13957 # Whether or not to add -lc for building shared libraries.
13958 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13959
13960 # Whether or not to disallow shared libs when runtime libs are static
13961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13962
13963 # Whether or not to optimize for fast installation.
13964 fast_install=$enable_fast_install
13965
13966 # The host system.
13967 host_alias=$host_alias
13968 host=$host
13969 host_os=$host_os
13970
13971 # The build system.
13972 build_alias=$build_alias
13973 build=$build
13974 build_os=$build_os
13975
13976 # An echo program that does not interpret backslashes.
13977 echo=$lt_echo
13978
13979 # The archiver.
13980 AR=$lt_AR
13981 AR_FLAGS=$lt_AR_FLAGS
13982
13983 # A C compiler.
13984 LTCC=$lt_LTCC
13985
13986 # LTCC compiler flags.
13987 LTCFLAGS=$lt_LTCFLAGS
13988
13989 # A language-specific compiler.
13990 CC=$lt_compiler_CXX
13991
13992 # Is the compiler the GNU C compiler?
13993 with_gcc=$GCC_CXX
13994
13995 # An ERE matcher.
13996 EGREP=$lt_EGREP
13997
13998 # The linker used to build libraries.
13999 LD=$lt_LD_CXX
14000
14001 # Whether we need hard or soft links.
14002 LN_S=$lt_LN_S
14003
14004 # A BSD-compatible nm program.
14005 NM=$lt_NM
14006
14007 # A symbol stripping program
14008 STRIP=$lt_STRIP
14009
14010 # Used to examine libraries when file_magic_cmd begins "file"
14011 MAGIC_CMD=$MAGIC_CMD
14012
14013 # Used on cygwin: DLL creation program.
14014 DLLTOOL="$DLLTOOL"
14015
14016 # Used on cygwin: object dumper.
14017 OBJDUMP="$OBJDUMP"
14018
14019 # Used on cygwin: assembler.
14020 AS="$AS"
14021
14022 # The name of the directory that contains temporary libtool files.
14023 objdir=$objdir
14024
14025 # How to create reloadable object files.
14026 reload_flag=$lt_reload_flag
14027 reload_cmds=$lt_reload_cmds
14028
14029 # How to pass a linker flag through the compiler.
14030 wl=$lt_lt_prog_compiler_wl_CXX
14031
14032 # Object file suffix (normally "o").
14033 objext="$ac_objext"
14034
14035 # Old archive suffix (normally "a").
14036 libext="$libext"
14037
14038 # Shared library suffix (normally ".so").
14039 shrext_cmds='$shrext_cmds'
14040
14041 # Executable file suffix (normally "").
14042 exeext="$exeext"
14043
14044 # Additional compiler flags for building library objects.
14045 pic_flag=$lt_lt_prog_compiler_pic_CXX
14046 pic_mode=$pic_mode
14047
14048 # What is the maximum length of a command?
14049 max_cmd_len=$lt_cv_sys_max_cmd_len
14050
14051 # Does compiler simultaneously support -c and -o options?
14052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14053
14054 # Must we lock files when doing compilation?
14055 need_locks=$lt_need_locks
14056
14057 # Do we need the lib prefix for modules?
14058 need_lib_prefix=$need_lib_prefix
14059
14060 # Do we need a version for libraries?
14061 need_version=$need_version
14062
14063 # Whether dlopen is supported.
14064 dlopen_support=$enable_dlopen
14065
14066 # Whether dlopen of programs is supported.
14067 dlopen_self=$enable_dlopen_self
14068
14069 # Whether dlopen of statically linked programs is supported.
14070 dlopen_self_static=$enable_dlopen_self_static
14071
14072 # Compiler flag to prevent dynamic linking.
14073 link_static_flag=$lt_lt_prog_compiler_static_CXX
14074
14075 # Compiler flag to turn off builtin functions.
14076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14077
14078 # Compiler flag to allow reflexive dlopens.
14079 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14080
14081 # Compiler flag to generate shared objects directly from archives.
14082 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14083
14084 # Compiler flag to generate thread-safe objects.
14085 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14086
14087 # Library versioning type.
14088 version_type=$version_type
14089
14090 # Format of library name prefix.
14091 libname_spec=$lt_libname_spec
14092
14093 # List of archive names. First name is the real one, the rest are links.
14094 # The last name is the one that the linker finds with -lNAME.
14095 library_names_spec=$lt_library_names_spec
14096
14097 # The coded name of the library, if different from the real name.
14098 soname_spec=$lt_soname_spec
14099
14100 # Commands used to build and install an old-style archive.
14101 RANLIB=$lt_RANLIB
14102 old_archive_cmds=$lt_old_archive_cmds_CXX
14103 old_postinstall_cmds=$lt_old_postinstall_cmds
14104 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14105
14106 # Create an old-style archive from a shared archive.
14107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14108
14109 # Create a temporary old-style archive to link instead of a shared archive.
14110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14111
14112 # Commands used to build and install a shared archive.
14113 archive_cmds=$lt_archive_cmds_CXX
14114 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14115 postinstall_cmds=$lt_postinstall_cmds
14116 postuninstall_cmds=$lt_postuninstall_cmds
14117
14118 # Commands used to build a loadable module (assumed same as above if empty)
14119 module_cmds=$lt_module_cmds_CXX
14120 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14121
14122 # Commands to strip libraries.
14123 old_striplib=$lt_old_striplib
14124 striplib=$lt_striplib
14125
14126 # Dependencies to place before the objects being linked to create a
14127 # shared library.
14128 predep_objects=$lt_predep_objects_CXX
14129
14130 # Dependencies to place after the objects being linked to create a
14131 # shared library.
14132 postdep_objects=$lt_postdep_objects_CXX
14133
14134 # Dependencies to place before the objects being linked to create a
14135 # shared library.
14136 predeps=$lt_predeps_CXX
14137
14138 # Dependencies to place after the objects being linked to create a
14139 # shared library.
14140 postdeps=$lt_postdeps_CXX
14141
14142 # The directories searched by this compiler when creating a shared
14143 # library
14144 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14145
14146 # The library search path used internally by the compiler when linking
14147 # a shared library.
14148 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14149
14150 # Method to check whether dependent libraries are shared objects.
14151 deplibs_check_method=$lt_deplibs_check_method
14152
14153 # Command to use when deplibs_check_method == file_magic.
14154 file_magic_cmd=$lt_file_magic_cmd
14155
14156 # Flag that allows shared libraries with undefined symbols to be built.
14157 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14158
14159 # Flag that forces no undefined symbols.
14160 no_undefined_flag=$lt_no_undefined_flag_CXX
14161
14162 # Commands used to finish a libtool library installation in a directory.
14163 finish_cmds=$lt_finish_cmds
14164
14165 # Same as above, but a single script fragment to be evaled but not shown.
14166 finish_eval=$lt_finish_eval
14167
14168 # Take the output of nm and produce a listing of raw symbols and C names.
14169 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14170
14171 # Transform the output of nm in a proper C declaration
14172 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14173
14174 # Transform the output of nm in a C name address pair
14175 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14176
14177 # This is the shared library runtime path variable.
14178 runpath_var=$runpath_var
14179
14180 # This is the shared library path variable.
14181 shlibpath_var=$shlibpath_var
14182
14183 # Is shlibpath searched before the hard-coded library search path?
14184 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14185
14186 # How to hardcode a shared library path into an executable.
14187 hardcode_action=$hardcode_action_CXX
14188
14189 # Whether we should hardcode library paths into libraries.
14190 hardcode_into_libs=$hardcode_into_libs
14191
14192 # Flag to hardcode \$libdir into a binary during linking.
14193 # This must work even if \$libdir does not exist.
14194 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14195
14196 # If ld is used when linking, flag to hardcode \$libdir into
14197 # a binary during linking. This must work even if \$libdir does
14198 # not exist.
14199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14200
14201 # Whether we need a single -rpath flag with a separated argument.
14202 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14203
14204 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14205 # resulting binary.
14206 hardcode_direct=$hardcode_direct_CXX
14207
14208 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14209 # resulting binary.
14210 hardcode_minus_L=$hardcode_minus_L_CXX
14211
14212 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14213 # the resulting binary.
14214 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14215
14216 # Set to yes if building a shared library automatically hardcodes DIR into the library
14217 # and all subsequent libraries and executables linked against it.
14218 hardcode_automatic=$hardcode_automatic_CXX
14219
14220 # Variables whose values should be saved in libtool wrapper scripts and
14221 # restored at relink time.
14222 variables_saved_for_relink="$variables_saved_for_relink"
14223
14224 # Whether libtool must link a program against all its dependency libraries.
14225 link_all_deplibs=$link_all_deplibs_CXX
14226
14227 # Compile-time system search path for libraries
14228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14229
14230 # Run-time system search path for libraries
14231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14232
14233 # Fix the shell variable \$srcfile for the compiler.
14234 fix_srcfile_path=$lt_fix_srcfile_path
14235
14236 # Set to yes if exported symbols are required.
14237 always_export_symbols=$always_export_symbols_CXX
14238
14239 # The commands to list exported symbols.
14240 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14241
14242 # The commands to extract the exported symbol list from a shared archive.
14243 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14244
14245 # Symbols that should not be listed in the preloaded symbols.
14246 exclude_expsyms=$lt_exclude_expsyms_CXX
14247
14248 # Symbols that must always be exported.
14249 include_expsyms=$lt_include_expsyms_CXX
14250
14251 # ### END LIBTOOL TAG CONFIG: $tagname
14252
14253 __EOF__
14254
14255
14256 else
14257 # If there is no Makefile yet, we rely on a make rule to execute
14258 # `config.status --recheck' to rerun these tests and create the
14259 # libtool script then.
14260 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14261 if test -f "$ltmain_in"; then
14262 test -f Makefile && make "$ltmain"
14263 fi
14264 fi
14265
14266
14267 ac_ext=c
14268 ac_cpp='$CPP $CPPFLAGS'
14269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14272
14273 CC=$lt_save_CC
14274 LDCXX=$LD
14275 LD=$lt_save_LD
14276 GCC=$lt_save_GCC
14277 with_gnu_ldcxx=$with_gnu_ld
14278 with_gnu_ld=$lt_save_with_gnu_ld
14279 lt_cv_path_LDCXX=$lt_cv_path_LD
14280 lt_cv_path_LD=$lt_save_path_LD
14281 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14282 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14283
14284 else
14285 tagname=""
14286 fi
14287 ;;
14288
14289 F77)
14290 if test -n "$F77" && test "X$F77" != "Xno"; then
14291
14292 ac_ext=f
14293 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14294 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14295 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14296
14297
14298 archive_cmds_need_lc_F77=no
14299 allow_undefined_flag_F77=
14300 always_export_symbols_F77=no
14301 archive_expsym_cmds_F77=
14302 export_dynamic_flag_spec_F77=
14303 hardcode_direct_F77=no
14304 hardcode_libdir_flag_spec_F77=
14305 hardcode_libdir_flag_spec_ld_F77=
14306 hardcode_libdir_separator_F77=
14307 hardcode_minus_L_F77=no
14308 hardcode_automatic_F77=no
14309 module_cmds_F77=
14310 module_expsym_cmds_F77=
14311 link_all_deplibs_F77=unknown
14312 old_archive_cmds_F77=$old_archive_cmds
14313 no_undefined_flag_F77=
14314 whole_archive_flag_spec_F77=
14315 enable_shared_with_static_runtimes_F77=no
14316
14317 # Source file extension for f77 test sources.
14318 ac_ext=f
14319
14320 # Object file extension for compiled f77 test sources.
14321 objext=o
14322 objext_F77=$objext
14323
14324 # Code to be used in simple compile tests
14325 lt_simple_compile_test_code="\
14326 subroutine t
14327 return
14328 end
14329 "
14330
14331 # Code to be used in simple link tests
14332 lt_simple_link_test_code="\
14333 program t
14334 end
14335 "
14336
14337 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14338
14339 # If no C compiler was specified, use CC.
14340 LTCC=${LTCC-"$CC"}
14341
14342 # If no C compiler flags were specified, use CFLAGS.
14343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14344
14345 # Allow CC to be a program name with arguments.
14346 compiler=$CC
14347
14348
14349 # save warnings/boilerplate of simple test code
14350 ac_outfile=conftest.$ac_objext
14351 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14352 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14353 _lt_compiler_boilerplate=`cat conftest.err`
14354 $rm conftest*
14355
14356 ac_outfile=conftest.$ac_objext
14357 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14358 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14359 _lt_linker_boilerplate=`cat conftest.err`
14360 $rm -r conftest*
14361
14362
14363 # Allow CC to be a program name with arguments.
14364 lt_save_CC="$CC"
14365 CC=${F77-"f77"}
14366 compiler=$CC
14367 compiler_F77=$CC
14368 for cc_temp in $compiler""; do
14369 case $cc_temp in
14370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14372 \-*) ;;
14373 *) break;;
14374 esac
14375 done
14376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14377
14378
14379 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14381 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14382 $as_echo "$can_build_shared" >&6; }
14383
14384 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14385 $as_echo_n "checking whether to build shared libraries... " >&6; }
14386 test "$can_build_shared" = "no" && enable_shared=no
14387
14388 # On AIX, shared libraries and static libraries use the same namespace, and
14389 # are all built from PIC.
14390 case $host_os in
14391 aix3*)
14392 test "$enable_shared" = yes && enable_static=no
14393 if test -n "$RANLIB"; then
14394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14395 postinstall_cmds='$RANLIB $lib'
14396 fi
14397 ;;
14398 aix[4-9]*)
14399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14400 test "$enable_shared" = yes && enable_static=no
14401 fi
14402 ;;
14403 esac
14404 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14405 $as_echo "$enable_shared" >&6; }
14406
14407 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14408 $as_echo_n "checking whether to build static libraries... " >&6; }
14409 # Make sure either enable_shared or enable_static is yes.
14410 test "$enable_shared" = yes || enable_static=yes
14411 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14412 $as_echo "$enable_static" >&6; }
14413
14414 GCC_F77="$G77"
14415 LD_F77="$LD"
14416
14417 lt_prog_compiler_wl_F77=
14418 lt_prog_compiler_pic_F77=
14419 lt_prog_compiler_static_F77=
14420
14421 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14423
14424 if test "$GCC" = yes; then
14425 lt_prog_compiler_wl_F77='-Wl,'
14426 lt_prog_compiler_static_F77='-static'
14427
14428 case $host_os in
14429 aix*)
14430 # All AIX code is PIC.
14431 if test "$host_cpu" = ia64; then
14432 # AIX 5 now supports IA64 processor
14433 lt_prog_compiler_static_F77='-Bstatic'
14434 fi
14435 ;;
14436
14437 amigaos*)
14438 # FIXME: we need at least 68020 code to build shared libraries, but
14439 # adding the `-m68020' flag to GCC prevents building anything better,
14440 # like `-m68040'.
14441 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14442 ;;
14443
14444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14445 # PIC is the default for these OSes.
14446 ;;
14447
14448 mingw* | cygwin* | pw32* | os2*)
14449 # This hack is so that the source file can tell whether it is being
14450 # built for inclusion in a dll (and should export symbols for example).
14451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14452 # (--disable-auto-import) libraries
14453 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14454 ;;
14455
14456 darwin* | rhapsody*)
14457 # PIC is the default on this platform
14458 # Common symbols not allowed in MH_DYLIB files
14459 lt_prog_compiler_pic_F77='-fno-common'
14460 ;;
14461
14462 interix[3-9]*)
14463 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464 # Instead, we relocate shared libraries at runtime.
14465 ;;
14466
14467 msdosdjgpp*)
14468 # Just because we use GCC doesn't mean we suddenly get shared libraries
14469 # on systems that don't support them.
14470 lt_prog_compiler_can_build_shared_F77=no
14471 enable_shared=no
14472 ;;
14473
14474 sysv4*MP*)
14475 if test -d /usr/nec; then
14476 lt_prog_compiler_pic_F77=-Kconform_pic
14477 fi
14478 ;;
14479
14480 hpux*)
14481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14482 # not for PA HP-UX.
14483 case $host_cpu in
14484 hppa*64*|ia64*)
14485 # +Z the default
14486 ;;
14487 *)
14488 lt_prog_compiler_pic_F77='-fPIC'
14489 ;;
14490 esac
14491 ;;
14492
14493 *)
14494 lt_prog_compiler_pic_F77='-fPIC'
14495 ;;
14496 esac
14497 else
14498 # PORTME Check for flag to pass linker flags through the system compiler.
14499 case $host_os in
14500 aix*)
14501 lt_prog_compiler_wl_F77='-Wl,'
14502 if test "$host_cpu" = ia64; then
14503 # AIX 5 now supports IA64 processor
14504 lt_prog_compiler_static_F77='-Bstatic'
14505 else
14506 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14507 fi
14508 ;;
14509 darwin*)
14510 # PIC is the default on this platform
14511 # Common symbols not allowed in MH_DYLIB files
14512 case $cc_basename in
14513 xlc*)
14514 lt_prog_compiler_pic_F77='-qnocommon'
14515 lt_prog_compiler_wl_F77='-Wl,'
14516 ;;
14517 esac
14518 ;;
14519
14520 mingw* | cygwin* | pw32* | os2*)
14521 # This hack is so that the source file can tell whether it is being
14522 # built for inclusion in a dll (and should export symbols for example).
14523 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14524 ;;
14525
14526 hpux9* | hpux10* | hpux11*)
14527 lt_prog_compiler_wl_F77='-Wl,'
14528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14529 # not for PA HP-UX.
14530 case $host_cpu in
14531 hppa*64*|ia64*)
14532 # +Z the default
14533 ;;
14534 *)
14535 lt_prog_compiler_pic_F77='+Z'
14536 ;;
14537 esac
14538 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14539 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14540 ;;
14541
14542 irix5* | irix6* | nonstopux*)
14543 lt_prog_compiler_wl_F77='-Wl,'
14544 # PIC (with -KPIC) is the default.
14545 lt_prog_compiler_static_F77='-non_shared'
14546 ;;
14547
14548 newsos6)
14549 lt_prog_compiler_pic_F77='-KPIC'
14550 lt_prog_compiler_static_F77='-Bstatic'
14551 ;;
14552
14553 linux* | k*bsd*-gnu)
14554 case $cc_basename in
14555 icc* | ecc*)
14556 lt_prog_compiler_wl_F77='-Wl,'
14557 lt_prog_compiler_pic_F77='-KPIC'
14558 lt_prog_compiler_static_F77='-static'
14559 ;;
14560 pgcc* | pgf77* | pgf90* | pgf95*)
14561 # Portland Group compilers (*not* the Pentium gcc compiler,
14562 # which looks to be a dead project)
14563 lt_prog_compiler_wl_F77='-Wl,'
14564 lt_prog_compiler_pic_F77='-fpic'
14565 lt_prog_compiler_static_F77='-Bstatic'
14566 ;;
14567 ccc*)
14568 lt_prog_compiler_wl_F77='-Wl,'
14569 # All Alpha code is PIC.
14570 lt_prog_compiler_static_F77='-non_shared'
14571 ;;
14572 *)
14573 case `$CC -V 2>&1 | sed 5q` in
14574 *Sun\ C*)
14575 # Sun C 5.9
14576 lt_prog_compiler_pic_F77='-KPIC'
14577 lt_prog_compiler_static_F77='-Bstatic'
14578 lt_prog_compiler_wl_F77='-Wl,'
14579 ;;
14580 *Sun\ F*)
14581 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14582 lt_prog_compiler_pic_F77='-KPIC'
14583 lt_prog_compiler_static_F77='-Bstatic'
14584 lt_prog_compiler_wl_F77=''
14585 ;;
14586 esac
14587 ;;
14588 esac
14589 ;;
14590
14591 osf3* | osf4* | osf5*)
14592 lt_prog_compiler_wl_F77='-Wl,'
14593 # All OSF/1 code is PIC.
14594 lt_prog_compiler_static_F77='-non_shared'
14595 ;;
14596
14597 rdos*)
14598 lt_prog_compiler_static_F77='-non_shared'
14599 ;;
14600
14601 solaris*)
14602 lt_prog_compiler_pic_F77='-KPIC'
14603 lt_prog_compiler_static_F77='-Bstatic'
14604 case $cc_basename in
14605 f77* | f90* | f95*)
14606 lt_prog_compiler_wl_F77='-Qoption ld ';;
14607 *)
14608 lt_prog_compiler_wl_F77='-Wl,';;
14609 esac
14610 ;;
14611
14612 sunos4*)
14613 lt_prog_compiler_wl_F77='-Qoption ld '
14614 lt_prog_compiler_pic_F77='-PIC'
14615 lt_prog_compiler_static_F77='-Bstatic'
14616 ;;
14617
14618 sysv4 | sysv4.2uw2* | sysv4.3*)
14619 lt_prog_compiler_wl_F77='-Wl,'
14620 lt_prog_compiler_pic_F77='-KPIC'
14621 lt_prog_compiler_static_F77='-Bstatic'
14622 ;;
14623
14624 sysv4*MP*)
14625 if test -d /usr/nec ;then
14626 lt_prog_compiler_pic_F77='-Kconform_pic'
14627 lt_prog_compiler_static_F77='-Bstatic'
14628 fi
14629 ;;
14630
14631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14632 lt_prog_compiler_wl_F77='-Wl,'
14633 lt_prog_compiler_pic_F77='-KPIC'
14634 lt_prog_compiler_static_F77='-Bstatic'
14635 ;;
14636
14637 unicos*)
14638 lt_prog_compiler_wl_F77='-Wl,'
14639 lt_prog_compiler_can_build_shared_F77=no
14640 ;;
14641
14642 uts4*)
14643 lt_prog_compiler_pic_F77='-pic'
14644 lt_prog_compiler_static_F77='-Bstatic'
14645 ;;
14646
14647 *)
14648 lt_prog_compiler_can_build_shared_F77=no
14649 ;;
14650 esac
14651 fi
14652
14653 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14654 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14655
14656 #
14657 # Check to make sure the PIC flag actually works.
14658 #
14659 if test -n "$lt_prog_compiler_pic_F77"; then
14660
14661 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14662 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14663 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14664 $as_echo_n "(cached) " >&6
14665 else
14666 lt_cv_prog_compiler_pic_works_F77=no
14667 ac_outfile=conftest.$ac_objext
14668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14669 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14670 # Insert the option either (1) after the last *FLAGS variable, or
14671 # (2) before a word containing "conftest.", or (3) at the end.
14672 # Note that $ac_compile itself does not contain backslashes and begins
14673 # with a dollar sign (not a hyphen), so the echo should work correctly.
14674 # The option is referenced via a variable to avoid confusing sed.
14675 lt_compile=`echo "$ac_compile" | $SED \
14676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14678 -e 's:$: $lt_compiler_flag:'`
14679 (eval echo "\"\$as_me:14679: $lt_compile\"" >&5)
14680 (eval "$lt_compile" 2>conftest.err)
14681 ac_status=$?
14682 cat conftest.err >&5
14683 echo "$as_me:14683: \$? = $ac_status" >&5
14684 if (exit $ac_status) && test -s "$ac_outfile"; then
14685 # The compiler can only warn and ignore the option if not recognized
14686 # So say no if there are warnings other than the usual output.
14687 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14690 lt_cv_prog_compiler_pic_works_F77=yes
14691 fi
14692 fi
14693 $rm conftest*
14694
14695 fi
14696 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14697 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14698
14699 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14700 case $lt_prog_compiler_pic_F77 in
14701 "" | " "*) ;;
14702 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14703 esac
14704 else
14705 lt_prog_compiler_pic_F77=
14706 lt_prog_compiler_can_build_shared_F77=no
14707 fi
14708
14709 fi
14710 case $host_os in
14711 # For platforms which do not support PIC, -DPIC is meaningless:
14712 *djgpp*)
14713 lt_prog_compiler_pic_F77=
14714 ;;
14715 *)
14716 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14717 ;;
14718 esac
14719
14720 #
14721 # Check to make sure the static flag actually works.
14722 #
14723 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14724 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14725 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14726 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14727 $as_echo_n "(cached) " >&6
14728 else
14729 lt_cv_prog_compiler_static_works_F77=no
14730 save_LDFLAGS="$LDFLAGS"
14731 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14732 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14733 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14734 # The linker can only warn and ignore the option if not recognized
14735 # So say no if there are warnings
14736 if test -s conftest.err; then
14737 # Append any errors to the config.log.
14738 cat conftest.err 1>&5
14739 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14741 if diff conftest.exp conftest.er2 >/dev/null; then
14742 lt_cv_prog_compiler_static_works_F77=yes
14743 fi
14744 else
14745 lt_cv_prog_compiler_static_works_F77=yes
14746 fi
14747 fi
14748 $rm -r conftest*
14749 LDFLAGS="$save_LDFLAGS"
14750
14751 fi
14752 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14753 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14754
14755 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14756 :
14757 else
14758 lt_prog_compiler_static_F77=
14759 fi
14760
14761
14762 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14764 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14765 $as_echo_n "(cached) " >&6
14766 else
14767 lt_cv_prog_compiler_c_o_F77=no
14768 $rm -r conftest 2>/dev/null
14769 mkdir conftest
14770 cd conftest
14771 mkdir out
14772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14773
14774 lt_compiler_flag="-o out/conftest2.$ac_objext"
14775 # Insert the option either (1) after the last *FLAGS variable, or
14776 # (2) before a word containing "conftest.", or (3) at the end.
14777 # Note that $ac_compile itself does not contain backslashes and begins
14778 # with a dollar sign (not a hyphen), so the echo should work correctly.
14779 lt_compile=`echo "$ac_compile" | $SED \
14780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14782 -e 's:$: $lt_compiler_flag:'`
14783 (eval echo "\"\$as_me:14783: $lt_compile\"" >&5)
14784 (eval "$lt_compile" 2>out/conftest.err)
14785 ac_status=$?
14786 cat out/conftest.err >&5
14787 echo "$as_me:14787: \$? = $ac_status" >&5
14788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14789 then
14790 # The compiler can only warn and ignore the option if not recognized
14791 # So say no if there are warnings
14792 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14795 lt_cv_prog_compiler_c_o_F77=yes
14796 fi
14797 fi
14798 chmod u+w . 2>&5
14799 $rm conftest*
14800 # SGI C++ compiler will create directory out/ii_files/ for
14801 # template instantiation
14802 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14803 $rm out/* && rmdir out
14804 cd ..
14805 rmdir conftest
14806 $rm conftest*
14807
14808 fi
14809 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14810 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14811
14812
14813 hard_links="nottested"
14814 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14815 # do not overwrite the value of need_locks provided by the user
14816 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14817 $as_echo_n "checking if we can lock with hard links... " >&6; }
14818 hard_links=yes
14819 $rm conftest*
14820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14821 touch conftest.a
14822 ln conftest.a conftest.b 2>&5 || hard_links=no
14823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14824 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14825 $as_echo "$hard_links" >&6; }
14826 if test "$hard_links" = no; then
14827 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14828 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14829 need_locks=warn
14830 fi
14831 else
14832 need_locks=no
14833 fi
14834
14835 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14836 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14837
14838 runpath_var=
14839 allow_undefined_flag_F77=
14840 enable_shared_with_static_runtimes_F77=no
14841 archive_cmds_F77=
14842 archive_expsym_cmds_F77=
14843 old_archive_From_new_cmds_F77=
14844 old_archive_from_expsyms_cmds_F77=
14845 export_dynamic_flag_spec_F77=
14846 whole_archive_flag_spec_F77=
14847 thread_safe_flag_spec_F77=
14848 hardcode_libdir_flag_spec_F77=
14849 hardcode_libdir_flag_spec_ld_F77=
14850 hardcode_libdir_separator_F77=
14851 hardcode_direct_F77=no
14852 hardcode_minus_L_F77=no
14853 hardcode_shlibpath_var_F77=unsupported
14854 link_all_deplibs_F77=unknown
14855 hardcode_automatic_F77=no
14856 module_cmds_F77=
14857 module_expsym_cmds_F77=
14858 always_export_symbols_F77=no
14859 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14860 # include_expsyms should be a list of space-separated symbols to be *always*
14861 # included in the symbol list
14862 include_expsyms_F77=
14863 # exclude_expsyms can be an extended regexp of symbols to exclude
14864 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14866 # as well as any symbol that contains `d'.
14867 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14869 # platforms (ab)use it in PIC code, but their linkers get confused if
14870 # the symbol is explicitly referenced. Since portable code cannot
14871 # rely on this symbol name, it's probably fine to never include it in
14872 # preloaded symbol tables.
14873 # Exclude shared library initialization/finalization symbols.
14874 extract_expsyms_cmds=
14875 # Just being paranoid about ensuring that cc_basename is set.
14876 for cc_temp in $compiler""; do
14877 case $cc_temp in
14878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14880 \-*) ;;
14881 *) break;;
14882 esac
14883 done
14884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14885
14886 case $host_os in
14887 cygwin* | mingw* | pw32*)
14888 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14889 # When not using gcc, we currently assume that we are using
14890 # Microsoft Visual C++.
14891 if test "$GCC" != yes; then
14892 with_gnu_ld=no
14893 fi
14894 ;;
14895 interix*)
14896 # we just hope/assume this is gcc and not c89 (= MSVC++)
14897 with_gnu_ld=yes
14898 ;;
14899 openbsd*)
14900 with_gnu_ld=no
14901 ;;
14902 esac
14903
14904 ld_shlibs_F77=yes
14905 if test "$with_gnu_ld" = yes; then
14906 # If archive_cmds runs LD, not CC, wlarc should be empty
14907 wlarc='${wl}'
14908
14909 # Set some defaults for GNU ld with shared library support. These
14910 # are reset later if shared libraries are not supported. Putting them
14911 # here allows them to be overridden if necessary.
14912 runpath_var=LD_RUN_PATH
14913 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14914 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14915 # ancient GNU ld didn't support --whole-archive et. al.
14916 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14917 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14918 else
14919 whole_archive_flag_spec_F77=
14920 fi
14921 supports_anon_versioning=no
14922 case `$LD -v 2>/dev/null` in
14923 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14924 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14925 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14926 *\ 2.11.*) ;; # other 2.11 versions
14927 *) supports_anon_versioning=yes ;;
14928 esac
14929
14930 # See if GNU ld supports shared libraries.
14931 case $host_os in
14932 aix[3-9]*)
14933 # On AIX/PPC, the GNU linker is very broken
14934 if test "$host_cpu" != ia64; then
14935 ld_shlibs_F77=no
14936 cat <<EOF 1>&2
14937
14938 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14939 *** to be unable to reliably create shared libraries on AIX.
14940 *** Therefore, libtool is disabling shared libraries support. If you
14941 *** really care for shared libraries, you may want to modify your PATH
14942 *** so that a non-GNU linker is found, and then restart.
14943
14944 EOF
14945 fi
14946 ;;
14947
14948 amigaos*)
14949 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)'
14950 hardcode_libdir_flag_spec_F77='-L$libdir'
14951 hardcode_minus_L_F77=yes
14952
14953 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14954 # that the semantics of dynamic libraries on AmigaOS, at least up
14955 # to version 4, is to share data among multiple programs linked
14956 # with the same dynamic library. Since this doesn't match the
14957 # behavior of shared libraries on other platforms, we can't use
14958 # them.
14959 ld_shlibs_F77=no
14960 ;;
14961
14962 beos*)
14963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14964 allow_undefined_flag_F77=unsupported
14965 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14966 # support --undefined. This deserves some investigation. FIXME
14967 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14968 else
14969 ld_shlibs_F77=no
14970 fi
14971 ;;
14972
14973 cygwin* | mingw* | pw32*)
14974 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14975 # as there is no search path for DLLs.
14976 hardcode_libdir_flag_spec_F77='-L$libdir'
14977 allow_undefined_flag_F77=unsupported
14978 always_export_symbols_F77=no
14979 enable_shared_with_static_runtimes_F77=yes
14980 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14981
14982 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14983 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14984 # If the export-symbols file already is a .def file (1st line
14985 # is EXPORTS), use it as is; otherwise, prepend...
14986 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14987 cp $export_symbols $output_objdir/$soname.def;
14988 else
14989 echo EXPORTS > $output_objdir/$soname.def;
14990 cat $export_symbols >> $output_objdir/$soname.def;
14991 fi~
14992 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14993 else
14994 ld_shlibs_F77=no
14995 fi
14996 ;;
14997
14998 interix[3-9]*)
14999 hardcode_direct_F77=no
15000 hardcode_shlibpath_var_F77=no
15001 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15002 export_dynamic_flag_spec_F77='${wl}-E'
15003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15004 # Instead, shared libraries are loaded at an image base (0x10000000 by
15005 # default) and relocated if they conflict, which is a slow very memory
15006 # consuming and fragmenting process. To avoid this, we pick a random,
15007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15008 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15009 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'
15010 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'
15011 ;;
15012
15013 gnu* | linux* | k*bsd*-gnu)
15014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15015 tmp_addflag=
15016 case $cc_basename,$host_cpu in
15017 pgcc*) # Portland Group C compiler
15018 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'
15019 tmp_addflag=' $pic_flag'
15020 ;;
15021 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15022 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'
15023 tmp_addflag=' $pic_flag -Mnomain' ;;
15024 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15025 tmp_addflag=' -i_dynamic' ;;
15026 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15027 tmp_addflag=' -i_dynamic -nofor_main' ;;
15028 ifc* | ifort*) # Intel Fortran compiler
15029 tmp_addflag=' -nofor_main' ;;
15030 esac
15031 case `$CC -V 2>&1 | sed 5q` in
15032 *Sun\ C*) # Sun C 5.9
15033 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15034 tmp_sharedflag='-G' ;;
15035 *Sun\ F*) # Sun Fortran 8.3
15036 tmp_sharedflag='-G' ;;
15037 *)
15038 tmp_sharedflag='-shared' ;;
15039 esac
15040 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041
15042 if test $supports_anon_versioning = yes; then
15043 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15044 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15045 $echo "local: *; };" >> $output_objdir/$libname.ver~
15046 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15047 fi
15048 else
15049 ld_shlibs_F77=no
15050 fi
15051 ;;
15052
15053 netbsd*)
15054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15055 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15056 wlarc=
15057 else
15058 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15059 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15060 fi
15061 ;;
15062
15063 solaris*)
15064 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15065 ld_shlibs_F77=no
15066 cat <<EOF 1>&2
15067
15068 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15069 *** create shared libraries on Solaris systems. Therefore, libtool
15070 *** is disabling shared libraries support. We urge you to upgrade GNU
15071 *** binutils to release 2.9.1 or newer. Another option is to modify
15072 *** your PATH or compiler configuration so that the native linker is
15073 *** used, and then restart.
15074
15075 EOF
15076 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15077 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15078 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15079 else
15080 ld_shlibs_F77=no
15081 fi
15082 ;;
15083
15084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15085 case `$LD -v 2>&1` in
15086 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15087 ld_shlibs_F77=no
15088 cat <<_LT_EOF 1>&2
15089
15090 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15091 *** reliably create shared libraries on SCO systems. Therefore, libtool
15092 *** is disabling shared libraries support. We urge you to upgrade GNU
15093 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15094 *** your PATH or compiler configuration so that the native linker is
15095 *** used, and then restart.
15096
15097 _LT_EOF
15098 ;;
15099 *)
15100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15101 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15104 else
15105 ld_shlibs_F77=no
15106 fi
15107 ;;
15108 esac
15109 ;;
15110
15111 sunos4*)
15112 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15113 wlarc=
15114 hardcode_direct_F77=yes
15115 hardcode_shlibpath_var_F77=no
15116 ;;
15117
15118 *)
15119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15122 else
15123 ld_shlibs_F77=no
15124 fi
15125 ;;
15126 esac
15127
15128 if test "$ld_shlibs_F77" = no; then
15129 runpath_var=
15130 hardcode_libdir_flag_spec_F77=
15131 export_dynamic_flag_spec_F77=
15132 whole_archive_flag_spec_F77=
15133 fi
15134 else
15135 # PORTME fill in a description of your system's linker (not GNU ld)
15136 case $host_os in
15137 aix3*)
15138 allow_undefined_flag_F77=unsupported
15139 always_export_symbols_F77=yes
15140 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'
15141 # Note: this linker hardcodes the directories in LIBPATH if there
15142 # are no directories specified by -L.
15143 hardcode_minus_L_F77=yes
15144 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15145 # Neither direct hardcoding nor static linking is supported with a
15146 # broken collect2.
15147 hardcode_direct_F77=unsupported
15148 fi
15149 ;;
15150
15151 aix[4-9]*)
15152 if test "$host_cpu" = ia64; then
15153 # On IA64, the linker does run time linking by default, so we don't
15154 # have to do anything special.
15155 aix_use_runtimelinking=no
15156 exp_sym_flag='-Bexport'
15157 no_entry_flag=""
15158 else
15159 # If we're using GNU nm, then we don't want the "-C" option.
15160 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15161 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15162 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'
15163 else
15164 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'
15165 fi
15166 aix_use_runtimelinking=no
15167
15168 # Test if we are trying to use run time linking or normal
15169 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15170 # need to do runtime linking.
15171 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15172 for ld_flag in $LDFLAGS; do
15173 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15174 aix_use_runtimelinking=yes
15175 break
15176 fi
15177 done
15178 ;;
15179 esac
15180
15181 exp_sym_flag='-bexport'
15182 no_entry_flag='-bnoentry'
15183 fi
15184
15185 # When large executables or shared objects are built, AIX ld can
15186 # have problems creating the table of contents. If linking a library
15187 # or program results in "error TOC overflow" add -mminimal-toc to
15188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15190
15191 archive_cmds_F77=''
15192 hardcode_direct_F77=yes
15193 hardcode_libdir_separator_F77=':'
15194 link_all_deplibs_F77=yes
15195
15196 if test "$GCC" = yes; then
15197 case $host_os in aix4.[012]|aix4.[012].*)
15198 # We only want to do this on AIX 4.2 and lower, the check
15199 # below for broken collect2 doesn't work under 4.3+
15200 collect2name=`${CC} -print-prog-name=collect2`
15201 if test -f "$collect2name" && \
15202 strings "$collect2name" | grep resolve_lib_name >/dev/null
15203 then
15204 # We have reworked collect2
15205 :
15206 else
15207 # We have old collect2
15208 hardcode_direct_F77=unsupported
15209 # It fails to find uninstalled libraries when the uninstalled
15210 # path is not listed in the libpath. Setting hardcode_minus_L
15211 # to unsupported forces relinking
15212 hardcode_minus_L_F77=yes
15213 hardcode_libdir_flag_spec_F77='-L$libdir'
15214 hardcode_libdir_separator_F77=
15215 fi
15216 ;;
15217 esac
15218 shared_flag='-shared'
15219 if test "$aix_use_runtimelinking" = yes; then
15220 shared_flag="$shared_flag "'${wl}-G'
15221 fi
15222 else
15223 # not using gcc
15224 if test "$host_cpu" = ia64; then
15225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15226 # chokes on -Wl,-G. The following line is correct:
15227 shared_flag='-G'
15228 else
15229 if test "$aix_use_runtimelinking" = yes; then
15230 shared_flag='${wl}-G'
15231 else
15232 shared_flag='${wl}-bM:SRE'
15233 fi
15234 fi
15235 fi
15236
15237 # It seems that -bexpall does not export symbols beginning with
15238 # underscore (_), so it is better to generate a list of symbols to export.
15239 always_export_symbols_F77=yes
15240 if test "$aix_use_runtimelinking" = yes; then
15241 # Warning - without using the other runtime loading flags (-brtl),
15242 # -berok will link without error, but may produce a broken library.
15243 allow_undefined_flag_F77='-berok'
15244 # Determine the default libpath from the value encoded in an empty executable.
15245 cat >conftest.$ac_ext <<_ACEOF
15246 program main
15247
15248 end
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (ac_try="$ac_link"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255 esac
15256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15257 $as_echo "$ac_try_echo") >&5
15258 (eval "$ac_link") 2>conftest.er1
15259 ac_status=$?
15260 grep -v '^ *+' conftest.er1 >conftest.err
15261 rm -f conftest.er1
15262 cat conftest.err >&5
15263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } && {
15265 test -z "$ac_f77_werror_flag" ||
15266 test ! -s conftest.err
15267 } && test -s conftest$ac_exeext && {
15268 test "$cross_compiling" = yes ||
15269 $as_test_x conftest$ac_exeext
15270 }; then
15271
15272 lt_aix_libpath_sed='
15273 /Import File Strings/,/^$/ {
15274 /^0/ {
15275 s/^0 *\(.*\)$/\1/
15276 p
15277 }
15278 }'
15279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15280 # Check for a 64-bit object if we didn't find anything.
15281 if test -z "$aix_libpath"; then
15282 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15283 fi
15284 else
15285 $as_echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288
15289 fi
15290
15291 rm -rf conftest.dSYM
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293 conftest$ac_exeext conftest.$ac_ext
15294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15295
15296 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15297 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"
15298 else
15299 if test "$host_cpu" = ia64; then
15300 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15301 allow_undefined_flag_F77="-z nodefs"
15302 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"
15303 else
15304 # Determine the default libpath from the value encoded in an empty executable.
15305 cat >conftest.$ac_ext <<_ACEOF
15306 program main
15307
15308 end
15309 _ACEOF
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (ac_try="$ac_link"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15317 $as_echo "$ac_try_echo") >&5
15318 (eval "$ac_link") 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_f77_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest$ac_exeext && {
15328 test "$cross_compiling" = yes ||
15329 $as_test_x conftest$ac_exeext
15330 }; then
15331
15332 lt_aix_libpath_sed='
15333 /Import File Strings/,/^$/ {
15334 /^0/ {
15335 s/^0 *\(.*\)$/\1/
15336 p
15337 }
15338 }'
15339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15340 # Check for a 64-bit object if we didn't find anything.
15341 if test -z "$aix_libpath"; then
15342 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15343 fi
15344 else
15345 $as_echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348
15349 fi
15350
15351 rm -rf conftest.dSYM
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353 conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15355
15356 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15357 # Warning - without using the other run time loading flags,
15358 # -berok will link without error, but may produce a broken library.
15359 no_undefined_flag_F77=' ${wl}-bernotok'
15360 allow_undefined_flag_F77=' ${wl}-berok'
15361 # Exported symbols can be pulled into shared objects from archives
15362 whole_archive_flag_spec_F77='$convenience'
15363 archive_cmds_need_lc_F77=yes
15364 # This is similar to how AIX traditionally builds its shared libraries.
15365 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'
15366 fi
15367 fi
15368 ;;
15369
15370 amigaos*)
15371 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)'
15372 hardcode_libdir_flag_spec_F77='-L$libdir'
15373 hardcode_minus_L_F77=yes
15374 # see comment about different semantics on the GNU ld section
15375 ld_shlibs_F77=no
15376 ;;
15377
15378 bsdi[45]*)
15379 export_dynamic_flag_spec_F77=-rdynamic
15380 ;;
15381
15382 cygwin* | mingw* | pw32*)
15383 # When not using gcc, we currently assume that we are using
15384 # Microsoft Visual C++.
15385 # hardcode_libdir_flag_spec is actually meaningless, as there is
15386 # no search path for DLLs.
15387 hardcode_libdir_flag_spec_F77=' '
15388 allow_undefined_flag_F77=unsupported
15389 # Tell ltmain to make .lib files, not .a files.
15390 libext=lib
15391 # Tell ltmain to make .dll files, not .so files.
15392 shrext_cmds=".dll"
15393 # FIXME: Setting linknames here is a bad hack.
15394 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15395 # The linker will automatically build a .lib file if we build a DLL.
15396 old_archive_From_new_cmds_F77='true'
15397 # FIXME: Should let the user specify the lib program.
15398 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15399 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15400 enable_shared_with_static_runtimes_F77=yes
15401 ;;
15402
15403 darwin* | rhapsody*)
15404 case $host_os in
15405 rhapsody* | darwin1.[012])
15406 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15407 ;;
15408 *) # Darwin 1.3 on
15409 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15410 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15411 else
15412 case ${MACOSX_DEPLOYMENT_TARGET} in
15413 10.[012])
15414 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15415 ;;
15416 10.*)
15417 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15418 ;;
15419 esac
15420 fi
15421 ;;
15422 esac
15423 archive_cmds_need_lc_F77=no
15424 hardcode_direct_F77=no
15425 hardcode_automatic_F77=yes
15426 hardcode_shlibpath_var_F77=unsupported
15427 whole_archive_flag_spec_F77=''
15428 link_all_deplibs_F77=yes
15429 if test "$GCC" = yes ; then
15430 output_verbose_link_cmd='echo'
15431 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15432 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15433 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15434 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15435 else
15436 case $cc_basename in
15437 xlc*)
15438 output_verbose_link_cmd='echo'
15439 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15440 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15442 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15443 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}'
15444 ;;
15445 *)
15446 ld_shlibs_F77=no
15447 ;;
15448 esac
15449 fi
15450 ;;
15451
15452 dgux*)
15453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454 hardcode_libdir_flag_spec_F77='-L$libdir'
15455 hardcode_shlibpath_var_F77=no
15456 ;;
15457
15458 freebsd1*)
15459 ld_shlibs_F77=no
15460 ;;
15461
15462 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15463 # support. Future versions do this automatically, but an explicit c++rt0.o
15464 # does not break anything, and helps significantly (at the cost of a little
15465 # extra space).
15466 freebsd2.2*)
15467 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15468 hardcode_libdir_flag_spec_F77='-R$libdir'
15469 hardcode_direct_F77=yes
15470 hardcode_shlibpath_var_F77=no
15471 ;;
15472
15473 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15474 freebsd2*)
15475 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_direct_F77=yes
15477 hardcode_minus_L_F77=yes
15478 hardcode_shlibpath_var_F77=no
15479 ;;
15480
15481 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15482 freebsd* | dragonfly*)
15483 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15484 hardcode_libdir_flag_spec_F77='-R$libdir'
15485 hardcode_direct_F77=yes
15486 hardcode_shlibpath_var_F77=no
15487 ;;
15488
15489 hpux9*)
15490 if test "$GCC" = yes; then
15491 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'
15492 else
15493 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'
15494 fi
15495 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15496 hardcode_libdir_separator_F77=:
15497 hardcode_direct_F77=yes
15498
15499 # hardcode_minus_L: Not really in the search PATH,
15500 # but as the default location of the library.
15501 hardcode_minus_L_F77=yes
15502 export_dynamic_flag_spec_F77='${wl}-E'
15503 ;;
15504
15505 hpux10*)
15506 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15507 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15508 else
15509 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15510 fi
15511 if test "$with_gnu_ld" = no; then
15512 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15513 hardcode_libdir_separator_F77=:
15514
15515 hardcode_direct_F77=yes
15516 export_dynamic_flag_spec_F77='${wl}-E'
15517
15518 # hardcode_minus_L: Not really in the search PATH,
15519 # but as the default location of the library.
15520 hardcode_minus_L_F77=yes
15521 fi
15522 ;;
15523
15524 hpux11*)
15525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15526 case $host_cpu in
15527 hppa*64*)
15528 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 ;;
15530 ia64*)
15531 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15532 ;;
15533 *)
15534 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15535 ;;
15536 esac
15537 else
15538 case $host_cpu in
15539 hppa*64*)
15540 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15541 ;;
15542 ia64*)
15543 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15544 ;;
15545 *)
15546 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15547 ;;
15548 esac
15549 fi
15550 if test "$with_gnu_ld" = no; then
15551 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15552 hardcode_libdir_separator_F77=:
15553
15554 case $host_cpu in
15555 hppa*64*|ia64*)
15556 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15557 hardcode_direct_F77=no
15558 hardcode_shlibpath_var_F77=no
15559 ;;
15560 *)
15561 hardcode_direct_F77=yes
15562 export_dynamic_flag_spec_F77='${wl}-E'
15563
15564 # hardcode_minus_L: Not really in the search PATH,
15565 # but as the default location of the library.
15566 hardcode_minus_L_F77=yes
15567 ;;
15568 esac
15569 fi
15570 ;;
15571
15572 irix5* | irix6* | nonstopux*)
15573 if test "$GCC" = yes; then
15574 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'
15575 else
15576 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'
15577 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15578 fi
15579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15580 hardcode_libdir_separator_F77=:
15581 link_all_deplibs_F77=yes
15582 ;;
15583
15584 netbsd*)
15585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15587 else
15588 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15589 fi
15590 hardcode_libdir_flag_spec_F77='-R$libdir'
15591 hardcode_direct_F77=yes
15592 hardcode_shlibpath_var_F77=no
15593 ;;
15594
15595 newsos6)
15596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15597 hardcode_direct_F77=yes
15598 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15599 hardcode_libdir_separator_F77=:
15600 hardcode_shlibpath_var_F77=no
15601 ;;
15602
15603 openbsd*)
15604 if test -f /usr/libexec/ld.so; then
15605 hardcode_direct_F77=yes
15606 hardcode_shlibpath_var_F77=no
15607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15608 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15610 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15611 export_dynamic_flag_spec_F77='${wl}-E'
15612 else
15613 case $host_os in
15614 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15615 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_libdir_flag_spec_F77='-R$libdir'
15617 ;;
15618 *)
15619 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15620 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15621 ;;
15622 esac
15623 fi
15624 else
15625 ld_shlibs_F77=no
15626 fi
15627 ;;
15628
15629 os2*)
15630 hardcode_libdir_flag_spec_F77='-L$libdir'
15631 hardcode_minus_L_F77=yes
15632 allow_undefined_flag_F77=unsupported
15633 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'
15634 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15635 ;;
15636
15637 osf3*)
15638 if test "$GCC" = yes; then
15639 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15640 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'
15641 else
15642 allow_undefined_flag_F77=' -expect_unresolved \*'
15643 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'
15644 fi
15645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15646 hardcode_libdir_separator_F77=:
15647 ;;
15648
15649 osf4* | osf5*) # as osf3* with the addition of -msym flag
15650 if test "$GCC" = yes; then
15651 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15652 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'
15653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15654 else
15655 allow_undefined_flag_F77=' -expect_unresolved \*'
15656 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'
15657 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~
15658 $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'
15659
15660 # Both c and cxx compiler support -rpath directly
15661 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15662 fi
15663 hardcode_libdir_separator_F77=:
15664 ;;
15665
15666 solaris*)
15667 no_undefined_flag_F77=' -z text'
15668 if test "$GCC" = yes; then
15669 wlarc='${wl}'
15670 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15672 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15673 else
15674 wlarc=''
15675 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15678 fi
15679 hardcode_libdir_flag_spec_F77='-R$libdir'
15680 hardcode_shlibpath_var_F77=no
15681 case $host_os in
15682 solaris2.[0-5] | solaris2.[0-5].*) ;;
15683 *)
15684 # The compiler driver will combine and reorder linker options,
15685 # but understands `-z linker_flag'. GCC discards it without `$wl',
15686 # but is careful enough not to reorder.
15687 # Supported since Solaris 2.6 (maybe 2.5.1?)
15688 if test "$GCC" = yes; then
15689 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15690 else
15691 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15692 fi
15693 ;;
15694 esac
15695 link_all_deplibs_F77=yes
15696 ;;
15697
15698 sunos4*)
15699 if test "x$host_vendor" = xsequent; then
15700 # Use $CC to link under sequent, because it throws in some extra .o
15701 # files that make .init and .fini sections work.
15702 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15703 else
15704 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15705 fi
15706 hardcode_libdir_flag_spec_F77='-L$libdir'
15707 hardcode_direct_F77=yes
15708 hardcode_minus_L_F77=yes
15709 hardcode_shlibpath_var_F77=no
15710 ;;
15711
15712 sysv4)
15713 case $host_vendor in
15714 sni)
15715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716 hardcode_direct_F77=yes # is this really true???
15717 ;;
15718 siemens)
15719 ## LD is ld it makes a PLAMLIB
15720 ## CC just makes a GrossModule.
15721 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15722 reload_cmds_F77='$CC -r -o $output$reload_objs'
15723 hardcode_direct_F77=no
15724 ;;
15725 motorola)
15726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15728 ;;
15729 esac
15730 runpath_var='LD_RUN_PATH'
15731 hardcode_shlibpath_var_F77=no
15732 ;;
15733
15734 sysv4.3*)
15735 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736 hardcode_shlibpath_var_F77=no
15737 export_dynamic_flag_spec_F77='-Bexport'
15738 ;;
15739
15740 sysv4*MP*)
15741 if test -d /usr/nec; then
15742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_shlibpath_var_F77=no
15744 runpath_var=LD_RUN_PATH
15745 hardcode_runpath_var=yes
15746 ld_shlibs_F77=yes
15747 fi
15748 ;;
15749
15750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15751 no_undefined_flag_F77='${wl}-z,text'
15752 archive_cmds_need_lc_F77=no
15753 hardcode_shlibpath_var_F77=no
15754 runpath_var='LD_RUN_PATH'
15755
15756 if test "$GCC" = yes; then
15757 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 else
15760 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15761 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15762 fi
15763 ;;
15764
15765 sysv5* | sco3.2v5* | sco5v6*)
15766 # Note: We can NOT use -z defs as we might desire, because we do not
15767 # link with -lc, and that would cause any symbols used from libc to
15768 # always be unresolved, which means just about no library would
15769 # ever link correctly. If we're not using GNU ld we use -z text
15770 # though, which does catch some bad symbols but isn't as heavy-handed
15771 # as -z defs.
15772 no_undefined_flag_F77='${wl}-z,text'
15773 allow_undefined_flag_F77='${wl}-z,nodefs'
15774 archive_cmds_need_lc_F77=no
15775 hardcode_shlibpath_var_F77=no
15776 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15777 hardcode_libdir_separator_F77=':'
15778 link_all_deplibs_F77=yes
15779 export_dynamic_flag_spec_F77='${wl}-Bexport'
15780 runpath_var='LD_RUN_PATH'
15781
15782 if test "$GCC" = yes; then
15783 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15784 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 else
15786 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15788 fi
15789 ;;
15790
15791 uts4*)
15792 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793 hardcode_libdir_flag_spec_F77='-L$libdir'
15794 hardcode_shlibpath_var_F77=no
15795 ;;
15796
15797 *)
15798 ld_shlibs_F77=no
15799 ;;
15800 esac
15801 fi
15802
15803 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15804 $as_echo "$ld_shlibs_F77" >&6; }
15805 test "$ld_shlibs_F77" = no && can_build_shared=no
15806
15807 #
15808 # Do we need to explicitly link libc?
15809 #
15810 case "x$archive_cmds_need_lc_F77" in
15811 x|xyes)
15812 # Assume -lc should be added
15813 archive_cmds_need_lc_F77=yes
15814
15815 if test "$enable_shared" = yes && test "$GCC" = yes; then
15816 case $archive_cmds_F77 in
15817 *'~'*)
15818 # FIXME: we may have to deal with multi-command sequences.
15819 ;;
15820 '$CC '*)
15821 # Test whether the compiler implicitly links with -lc since on some
15822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15823 # to ld, don't add -lc before -lgcc.
15824 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15825 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15826 $rm conftest*
15827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15828
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>&5
15831 ac_status=$?
15832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } 2>conftest.err; then
15834 soname=conftest
15835 lib=conftest
15836 libobjs=conftest.$ac_objext
15837 deplibs=
15838 wl=$lt_prog_compiler_wl_F77
15839 pic_flag=$lt_prog_compiler_pic_F77
15840 compiler_flags=-v
15841 linker_flags=-v
15842 verstring=
15843 output_objdir=.
15844 libname=conftest
15845 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15846 allow_undefined_flag_F77=
15847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15848 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15849 ac_status=$?
15850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }
15852 then
15853 archive_cmds_need_lc_F77=no
15854 else
15855 archive_cmds_need_lc_F77=yes
15856 fi
15857 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15858 else
15859 cat conftest.err 1>&5
15860 fi
15861 $rm conftest*
15862 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15863 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15864 ;;
15865 esac
15866 fi
15867 ;;
15868 esac
15869
15870 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15871 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15872 library_names_spec=
15873 libname_spec='lib$name'
15874 soname_spec=
15875 shrext_cmds=".so"
15876 postinstall_cmds=
15877 postuninstall_cmds=
15878 finish_cmds=
15879 finish_eval=
15880 shlibpath_var=
15881 shlibpath_overrides_runpath=unknown
15882 version_type=none
15883 dynamic_linker="$host_os ld.so"
15884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15885
15886 need_lib_prefix=unknown
15887 hardcode_into_libs=no
15888
15889 # when you set need_version to no, make sure it does not cause -set_version
15890 # flags to be left without arguments
15891 need_version=unknown
15892
15893 case $host_os in
15894 aix3*)
15895 version_type=linux
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15897 shlibpath_var=LIBPATH
15898
15899 # AIX 3 has no versioning support, so we append a major version to the name.
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 ;;
15902
15903 aix[4-9]*)
15904 version_type=linux
15905 need_lib_prefix=no
15906 need_version=no
15907 hardcode_into_libs=yes
15908 if test "$host_cpu" = ia64; then
15909 # AIX 5 supports IA64
15910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15911 shlibpath_var=LD_LIBRARY_PATH
15912 else
15913 # With GCC up to 2.95.x, collect2 would create an import file
15914 # for dependence libraries. The import file would start with
15915 # the line `#! .'. This would cause the generated library to
15916 # depend on `.', always an invalid library. This was fixed in
15917 # development snapshots of GCC prior to 3.0.
15918 case $host_os in
15919 aix4 | aix4.[01] | aix4.[01].*)
15920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15921 echo ' yes '
15922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15923 :
15924 else
15925 can_build_shared=no
15926 fi
15927 ;;
15928 esac
15929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15930 # soname into executable. Probably we can add versioning support to
15931 # collect2, so additional links can be useful in future.
15932 if test "$aix_use_runtimelinking" = yes; then
15933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15934 # instead of lib<name>.a to let people know that these are not
15935 # typical AIX shared libraries.
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 else
15938 # We preserve .a as extension for shared libraries through AIX4.2
15939 # and later when we are not doing run time linking.
15940 library_names_spec='${libname}${release}.a $libname.a'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 fi
15943 shlibpath_var=LIBPATH
15944 fi
15945 ;;
15946
15947 amigaos*)
15948 library_names_spec='$libname.ixlibrary $libname.a'
15949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15950 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'
15951 ;;
15952
15953 beos*)
15954 library_names_spec='${libname}${shared_ext}'
15955 dynamic_linker="$host_os ld.so"
15956 shlibpath_var=LIBRARY_PATH
15957 ;;
15958
15959 bsdi[45]*)
15960 version_type=linux
15961 need_version=no
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15965 shlibpath_var=LD_LIBRARY_PATH
15966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15968 # the default ld.so.conf also contains /usr/contrib/lib and
15969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15970 # libtool to hard-code these into programs
15971 ;;
15972
15973 cygwin* | mingw* | pw32*)
15974 version_type=windows
15975 shrext_cmds=".dll"
15976 need_version=no
15977 need_lib_prefix=no
15978
15979 case $GCC,$host_os in
15980 yes,cygwin* | yes,mingw* | yes,pw32*)
15981 library_names_spec='$libname.dll.a'
15982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15983 postinstall_cmds='base_file=`basename \${file}`~
15984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15985 dldir=$destdir/`dirname \$dlpath`~
15986 test -d \$dldir || mkdir -p \$dldir~
15987 $install_prog $dir/$dlname \$dldir/$dlname~
15988 chmod a+x \$dldir/$dlname'
15989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15990 dlpath=$dir/\$dldll~
15991 $rm \$dlpath'
15992 shlibpath_overrides_runpath=yes
15993
15994 case $host_os in
15995 cygwin*)
15996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15999 ;;
16000 mingw*)
16001 # MinGW DLLs use traditional 'lib' prefix
16002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16005 # It is most probably a Windows format PATH printed by
16006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16007 # path with ; separators, and with drive letters. We can handle the
16008 # drive letters (cygwin fileutils understands them), so leave them,
16009 # especially as we might pass files found there to a mingw objdump,
16010 # which wouldn't understand a cygwinified path. Ahh.
16011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16012 else
16013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16014 fi
16015 ;;
16016 pw32*)
16017 # pw32 DLLs use 'pw' prefix rather than 'lib'
16018 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16019 ;;
16020 esac
16021 ;;
16022
16023 *)
16024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16025 ;;
16026 esac
16027 dynamic_linker='Win32 ld.exe'
16028 # FIXME: first we should search . and the directory the executable is in
16029 shlibpath_var=PATH
16030 ;;
16031
16032 darwin* | rhapsody*)
16033 dynamic_linker="$host_os dyld"
16034 version_type=darwin
16035 need_lib_prefix=no
16036 need_version=no
16037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16038 soname_spec='${libname}${release}${major}$shared_ext'
16039 shlibpath_overrides_runpath=yes
16040 shlibpath_var=DYLD_LIBRARY_PATH
16041 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16042
16043 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16044 ;;
16045
16046 dgux*)
16047 version_type=linux
16048 need_lib_prefix=no
16049 need_version=no
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 ;;
16054
16055 freebsd1*)
16056 dynamic_linker=no
16057 ;;
16058
16059 freebsd* | dragonfly*)
16060 # DragonFly does not have aout. When/if they implement a new
16061 # versioning mechanism, adjust this.
16062 if test -x /usr/bin/objformat; then
16063 objformat=`/usr/bin/objformat`
16064 else
16065 case $host_os in
16066 freebsd[123]*) objformat=aout ;;
16067 *) objformat=elf ;;
16068 esac
16069 fi
16070 version_type=freebsd-$objformat
16071 case $version_type in
16072 freebsd-elf*)
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16074 need_version=no
16075 need_lib_prefix=no
16076 ;;
16077 freebsd-*)
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16079 need_version=yes
16080 ;;
16081 esac
16082 shlibpath_var=LD_LIBRARY_PATH
16083 case $host_os in
16084 freebsd2*)
16085 shlibpath_overrides_runpath=yes
16086 ;;
16087 freebsd3.[01]* | freebsdelf3.[01]*)
16088 shlibpath_overrides_runpath=yes
16089 hardcode_into_libs=yes
16090 ;;
16091 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16092 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16093 shlibpath_overrides_runpath=no
16094 hardcode_into_libs=yes
16095 ;;
16096 *) # from 4.6 on, and DragonFly
16097 shlibpath_overrides_runpath=yes
16098 hardcode_into_libs=yes
16099 ;;
16100 esac
16101 ;;
16102
16103 gnu*)
16104 version_type=linux
16105 need_lib_prefix=no
16106 need_version=no
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16108 soname_spec='${libname}${release}${shared_ext}$major'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 hardcode_into_libs=yes
16111 ;;
16112
16113 hpux9* | hpux10* | hpux11*)
16114 # Give a soname corresponding to the major version so that dld.sl refuses to
16115 # link against other versions.
16116 version_type=sunos
16117 need_lib_prefix=no
16118 need_version=no
16119 case $host_cpu in
16120 ia64*)
16121 shrext_cmds='.so'
16122 hardcode_into_libs=yes
16123 dynamic_linker="$host_os dld.so"
16124 shlibpath_var=LD_LIBRARY_PATH
16125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 if test "X$HPUX_IA64_MODE" = X32; then
16129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16130 else
16131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16132 fi
16133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16134 ;;
16135 hppa*64*)
16136 shrext_cmds='.sl'
16137 hardcode_into_libs=yes
16138 dynamic_linker="$host_os dld.sl"
16139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16145 ;;
16146 *)
16147 shrext_cmds='.sl'
16148 dynamic_linker="$host_os dld.sl"
16149 shlibpath_var=SHLIB_PATH
16150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 ;;
16154 esac
16155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16156 postinstall_cmds='chmod 555 $lib'
16157 ;;
16158
16159 interix[3-9]*)
16160 version_type=linux
16161 need_lib_prefix=no
16162 need_version=no
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=no
16168 hardcode_into_libs=yes
16169 ;;
16170
16171 irix5* | irix6* | nonstopux*)
16172 case $host_os in
16173 nonstopux*) version_type=nonstopux ;;
16174 *)
16175 if test "$lt_cv_prog_gnu_ld" = yes; then
16176 version_type=linux
16177 else
16178 version_type=irix
16179 fi ;;
16180 esac
16181 need_lib_prefix=no
16182 need_version=no
16183 soname_spec='${libname}${release}${shared_ext}$major'
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16185 case $host_os in
16186 irix5* | nonstopux*)
16187 libsuff= shlibsuff=
16188 ;;
16189 *)
16190 case $LD in # libtool.m4 will add one of these switches to LD
16191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16192 libsuff= shlibsuff= libmagic=32-bit;;
16193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16194 libsuff=32 shlibsuff=N32 libmagic=N32;;
16195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16197 *) libsuff= shlibsuff= libmagic=never-match;;
16198 esac
16199 ;;
16200 esac
16201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16202 shlibpath_overrides_runpath=no
16203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16205 hardcode_into_libs=yes
16206 ;;
16207
16208 # No shared lib support for Linux oldld, aout, or coff.
16209 linux*oldld* | linux*aout* | linux*coff*)
16210 dynamic_linker=no
16211 ;;
16212
16213 # This must be Linux ELF.
16214 linux* | k*bsd*-gnu)
16215 version_type=linux
16216 need_lib_prefix=no
16217 need_version=no
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 shlibpath_overrides_runpath=no
16223 # This implies no fast_install, which is unacceptable.
16224 # Some rework will be needed to allow for fast_install
16225 # before this can be enabled.
16226 hardcode_into_libs=yes
16227 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16228 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16229
16230 # Append ld.so.conf contents to the search path
16231 if test -f /etc/ld.so.conf; then
16232 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16233 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16234 fi
16235
16236 # We used to test for /lib/ld.so.1 and disable shared libraries on
16237 # powerpc, because MkLinux only supported shared libraries with the
16238 # GNU dynamic linker. Since this was broken with cross compilers,
16239 # most powerpc-linux boxes support dynamic linking these days and
16240 # people can always --disable-shared, the test was removed, and we
16241 # assume the GNU/Linux dynamic linker is in use.
16242 dynamic_linker='GNU/Linux ld.so'
16243 ;;
16244
16245 netbsd*)
16246 version_type=sunos
16247 need_lib_prefix=no
16248 need_version=no
16249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16252 dynamic_linker='NetBSD (a.out) ld.so'
16253 else
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 dynamic_linker='NetBSD ld.elf_so'
16257 fi
16258 shlibpath_var=LD_LIBRARY_PATH
16259 shlibpath_overrides_runpath=yes
16260 hardcode_into_libs=yes
16261 ;;
16262
16263 newsos6)
16264 version_type=linux
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 shlibpath_overrides_runpath=yes
16268 ;;
16269
16270 nto-qnx*)
16271 version_type=linux
16272 need_lib_prefix=no
16273 need_version=no
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 shlibpath_var=LD_LIBRARY_PATH
16277 shlibpath_overrides_runpath=yes
16278 ;;
16279
16280 openbsd*)
16281 version_type=sunos
16282 sys_lib_dlsearch_path_spec="/usr/lib"
16283 need_lib_prefix=no
16284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16285 case $host_os in
16286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16287 *) need_version=no ;;
16288 esac
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16291 shlibpath_var=LD_LIBRARY_PATH
16292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16293 case $host_os in
16294 openbsd2.[89] | openbsd2.[89].*)
16295 shlibpath_overrides_runpath=no
16296 ;;
16297 *)
16298 shlibpath_overrides_runpath=yes
16299 ;;
16300 esac
16301 else
16302 shlibpath_overrides_runpath=yes
16303 fi
16304 ;;
16305
16306 os2*)
16307 libname_spec='$name'
16308 shrext_cmds=".dll"
16309 need_lib_prefix=no
16310 library_names_spec='$libname${shared_ext} $libname.a'
16311 dynamic_linker='OS/2 ld.exe'
16312 shlibpath_var=LIBPATH
16313 ;;
16314
16315 osf3* | osf4* | osf5*)
16316 version_type=osf
16317 need_lib_prefix=no
16318 need_version=no
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16324 ;;
16325
16326 rdos*)
16327 dynamic_linker=no
16328 ;;
16329
16330 solaris*)
16331 version_type=linux
16332 need_lib_prefix=no
16333 need_version=no
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=yes
16338 hardcode_into_libs=yes
16339 # ldd complains unless libraries are executable
16340 postinstall_cmds='chmod +x $lib'
16341 ;;
16342
16343 sunos4*)
16344 version_type=sunos
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=yes
16349 if test "$with_gnu_ld" = yes; then
16350 need_lib_prefix=no
16351 fi
16352 need_version=yes
16353 ;;
16354
16355 sysv4 | sysv4.3*)
16356 version_type=linux
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 case $host_vendor in
16361 sni)
16362 shlibpath_overrides_runpath=no
16363 need_lib_prefix=no
16364 export_dynamic_flag_spec='${wl}-Blargedynsym'
16365 runpath_var=LD_RUN_PATH
16366 ;;
16367 siemens)
16368 need_lib_prefix=no
16369 ;;
16370 motorola)
16371 need_lib_prefix=no
16372 need_version=no
16373 shlibpath_overrides_runpath=no
16374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16375 ;;
16376 esac
16377 ;;
16378
16379 sysv4*MP*)
16380 if test -d /usr/nec ;then
16381 version_type=linux
16382 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16383 soname_spec='$libname${shared_ext}.$major'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 fi
16386 ;;
16387
16388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16389 version_type=freebsd-elf
16390 need_lib_prefix=no
16391 need_version=no
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 hardcode_into_libs=yes
16396 if test "$with_gnu_ld" = yes; then
16397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16398 shlibpath_overrides_runpath=no
16399 else
16400 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16401 shlibpath_overrides_runpath=yes
16402 case $host_os in
16403 sco3.2v5*)
16404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16405 ;;
16406 esac
16407 fi
16408 sys_lib_dlsearch_path_spec='/usr/lib'
16409 ;;
16410
16411 uts4*)
16412 version_type=linux
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 ;;
16417
16418 *)
16419 dynamic_linker=no
16420 ;;
16421 esac
16422 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16423 $as_echo "$dynamic_linker" >&6; }
16424 test "$dynamic_linker" = no && can_build_shared=no
16425
16426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16427 $as_echo_n "(cached) " >&6
16428 else
16429 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16430 fi
16431
16432 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16433 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16434 $as_echo_n "(cached) " >&6
16435 else
16436 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16437 fi
16438
16439 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16440
16441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16442 if test "$GCC" = yes; then
16443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16444 fi
16445
16446 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16447 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16448 hardcode_action_F77=
16449 if test -n "$hardcode_libdir_flag_spec_F77" || \
16450 test -n "$runpath_var_F77" || \
16451 test "X$hardcode_automatic_F77" = "Xyes" ; then
16452
16453 # We can hardcode non-existant directories.
16454 if test "$hardcode_direct_F77" != no &&
16455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16456 # have to relink, otherwise we might link with an installed library
16457 # when we should be linking with a yet-to-be-installed one
16458 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16459 test "$hardcode_minus_L_F77" != no; then
16460 # Linking always hardcodes the temporary library directory.
16461 hardcode_action_F77=relink
16462 else
16463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16464 hardcode_action_F77=immediate
16465 fi
16466 else
16467 # We cannot hardcode anything, or else we can only hardcode existing
16468 # directories.
16469 hardcode_action_F77=unsupported
16470 fi
16471 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16472 $as_echo "$hardcode_action_F77" >&6; }
16473
16474 if test "$hardcode_action_F77" = relink; then
16475 # Fast installation is not supported
16476 enable_fast_install=no
16477 elif test "$shlibpath_overrides_runpath" = yes ||
16478 test "$enable_shared" = no; then
16479 # Fast installation is not necessary
16480 enable_fast_install=needless
16481 fi
16482
16483
16484 # The else clause should only fire when bootstrapping the
16485 # libtool distribution, otherwise you forgot to ship ltmain.sh
16486 # with your package, and you will get complaints that there are
16487 # no rules to generate ltmain.sh.
16488 if test -f "$ltmain"; then
16489 # See if we are running on zsh, and set the options which allow our commands through
16490 # without removal of \ escapes.
16491 if test -n "${ZSH_VERSION+set}" ; then
16492 setopt NO_GLOB_SUBST
16493 fi
16494 # Now quote all the things that may contain metacharacters while being
16495 # careful not to overquote the AC_SUBSTed values. We take copies of the
16496 # variables and quote the copies for generation of the libtool script.
16497 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16498 SED SHELL STRIP \
16499 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16500 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16501 deplibs_check_method reload_flag reload_cmds need_locks \
16502 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16503 lt_cv_sys_global_symbol_to_c_name_address \
16504 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16505 old_postinstall_cmds old_postuninstall_cmds \
16506 compiler_F77 \
16507 CC_F77 \
16508 LD_F77 \
16509 lt_prog_compiler_wl_F77 \
16510 lt_prog_compiler_pic_F77 \
16511 lt_prog_compiler_static_F77 \
16512 lt_prog_compiler_no_builtin_flag_F77 \
16513 export_dynamic_flag_spec_F77 \
16514 thread_safe_flag_spec_F77 \
16515 whole_archive_flag_spec_F77 \
16516 enable_shared_with_static_runtimes_F77 \
16517 old_archive_cmds_F77 \
16518 old_archive_from_new_cmds_F77 \
16519 predep_objects_F77 \
16520 postdep_objects_F77 \
16521 predeps_F77 \
16522 postdeps_F77 \
16523 compiler_lib_search_path_F77 \
16524 compiler_lib_search_dirs_F77 \
16525 archive_cmds_F77 \
16526 archive_expsym_cmds_F77 \
16527 postinstall_cmds_F77 \
16528 postuninstall_cmds_F77 \
16529 old_archive_from_expsyms_cmds_F77 \
16530 allow_undefined_flag_F77 \
16531 no_undefined_flag_F77 \
16532 export_symbols_cmds_F77 \
16533 hardcode_libdir_flag_spec_F77 \
16534 hardcode_libdir_flag_spec_ld_F77 \
16535 hardcode_libdir_separator_F77 \
16536 hardcode_automatic_F77 \
16537 module_cmds_F77 \
16538 module_expsym_cmds_F77 \
16539 lt_cv_prog_compiler_c_o_F77 \
16540 fix_srcfile_path_F77 \
16541 exclude_expsyms_F77 \
16542 include_expsyms_F77; do
16543
16544 case $var in
16545 old_archive_cmds_F77 | \
16546 old_archive_from_new_cmds_F77 | \
16547 archive_cmds_F77 | \
16548 archive_expsym_cmds_F77 | \
16549 module_cmds_F77 | \
16550 module_expsym_cmds_F77 | \
16551 old_archive_from_expsyms_cmds_F77 | \
16552 export_symbols_cmds_F77 | \
16553 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16554 postinstall_cmds | postuninstall_cmds | \
16555 old_postinstall_cmds | old_postuninstall_cmds | \
16556 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16557 # Double-quote double-evaled strings.
16558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16559 ;;
16560 *)
16561 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16562 ;;
16563 esac
16564 done
16565
16566 case $lt_echo in
16567 *'\$0 --fallback-echo"')
16568 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16569 ;;
16570 esac
16571
16572 cfgfile="$ofile"
16573
16574 cat <<__EOF__ >> "$cfgfile"
16575 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16576
16577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16578
16579 # Shell to use when invoking shell scripts.
16580 SHELL=$lt_SHELL
16581
16582 # Whether or not to build shared libraries.
16583 build_libtool_libs=$enable_shared
16584
16585 # Whether or not to build static libraries.
16586 build_old_libs=$enable_static
16587
16588 # Whether or not to add -lc for building shared libraries.
16589 build_libtool_need_lc=$archive_cmds_need_lc_F77
16590
16591 # Whether or not to disallow shared libs when runtime libs are static
16592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16593
16594 # Whether or not to optimize for fast installation.
16595 fast_install=$enable_fast_install
16596
16597 # The host system.
16598 host_alias=$host_alias
16599 host=$host
16600 host_os=$host_os
16601
16602 # The build system.
16603 build_alias=$build_alias
16604 build=$build
16605 build_os=$build_os
16606
16607 # An echo program that does not interpret backslashes.
16608 echo=$lt_echo
16609
16610 # The archiver.
16611 AR=$lt_AR
16612 AR_FLAGS=$lt_AR_FLAGS
16613
16614 # A C compiler.
16615 LTCC=$lt_LTCC
16616
16617 # LTCC compiler flags.
16618 LTCFLAGS=$lt_LTCFLAGS
16619
16620 # A language-specific compiler.
16621 CC=$lt_compiler_F77
16622
16623 # Is the compiler the GNU C compiler?
16624 with_gcc=$GCC_F77
16625
16626 # An ERE matcher.
16627 EGREP=$lt_EGREP
16628
16629 # The linker used to build libraries.
16630 LD=$lt_LD_F77
16631
16632 # Whether we need hard or soft links.
16633 LN_S=$lt_LN_S
16634
16635 # A BSD-compatible nm program.
16636 NM=$lt_NM
16637
16638 # A symbol stripping program
16639 STRIP=$lt_STRIP
16640
16641 # Used to examine libraries when file_magic_cmd begins "file"
16642 MAGIC_CMD=$MAGIC_CMD
16643
16644 # Used on cygwin: DLL creation program.
16645 DLLTOOL="$DLLTOOL"
16646
16647 # Used on cygwin: object dumper.
16648 OBJDUMP="$OBJDUMP"
16649
16650 # Used on cygwin: assembler.
16651 AS="$AS"
16652
16653 # The name of the directory that contains temporary libtool files.
16654 objdir=$objdir
16655
16656 # How to create reloadable object files.
16657 reload_flag=$lt_reload_flag
16658 reload_cmds=$lt_reload_cmds
16659
16660 # How to pass a linker flag through the compiler.
16661 wl=$lt_lt_prog_compiler_wl_F77
16662
16663 # Object file suffix (normally "o").
16664 objext="$ac_objext"
16665
16666 # Old archive suffix (normally "a").
16667 libext="$libext"
16668
16669 # Shared library suffix (normally ".so").
16670 shrext_cmds='$shrext_cmds'
16671
16672 # Executable file suffix (normally "").
16673 exeext="$exeext"
16674
16675 # Additional compiler flags for building library objects.
16676 pic_flag=$lt_lt_prog_compiler_pic_F77
16677 pic_mode=$pic_mode
16678
16679 # What is the maximum length of a command?
16680 max_cmd_len=$lt_cv_sys_max_cmd_len
16681
16682 # Does compiler simultaneously support -c and -o options?
16683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16684
16685 # Must we lock files when doing compilation?
16686 need_locks=$lt_need_locks
16687
16688 # Do we need the lib prefix for modules?
16689 need_lib_prefix=$need_lib_prefix
16690
16691 # Do we need a version for libraries?
16692 need_version=$need_version
16693
16694 # Whether dlopen is supported.
16695 dlopen_support=$enable_dlopen
16696
16697 # Whether dlopen of programs is supported.
16698 dlopen_self=$enable_dlopen_self
16699
16700 # Whether dlopen of statically linked programs is supported.
16701 dlopen_self_static=$enable_dlopen_self_static
16702
16703 # Compiler flag to prevent dynamic linking.
16704 link_static_flag=$lt_lt_prog_compiler_static_F77
16705
16706 # Compiler flag to turn off builtin functions.
16707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16708
16709 # Compiler flag to allow reflexive dlopens.
16710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16711
16712 # Compiler flag to generate shared objects directly from archives.
16713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16714
16715 # Compiler flag to generate thread-safe objects.
16716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16717
16718 # Library versioning type.
16719 version_type=$version_type
16720
16721 # Format of library name prefix.
16722 libname_spec=$lt_libname_spec
16723
16724 # List of archive names. First name is the real one, the rest are links.
16725 # The last name is the one that the linker finds with -lNAME.
16726 library_names_spec=$lt_library_names_spec
16727
16728 # The coded name of the library, if different from the real name.
16729 soname_spec=$lt_soname_spec
16730
16731 # Commands used to build and install an old-style archive.
16732 RANLIB=$lt_RANLIB
16733 old_archive_cmds=$lt_old_archive_cmds_F77
16734 old_postinstall_cmds=$lt_old_postinstall_cmds
16735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16736
16737 # Create an old-style archive from a shared archive.
16738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16739
16740 # Create a temporary old-style archive to link instead of a shared archive.
16741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16742
16743 # Commands used to build and install a shared archive.
16744 archive_cmds=$lt_archive_cmds_F77
16745 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16746 postinstall_cmds=$lt_postinstall_cmds
16747 postuninstall_cmds=$lt_postuninstall_cmds
16748
16749 # Commands used to build a loadable module (assumed same as above if empty)
16750 module_cmds=$lt_module_cmds_F77
16751 module_expsym_cmds=$lt_module_expsym_cmds_F77
16752
16753 # Commands to strip libraries.
16754 old_striplib=$lt_old_striplib
16755 striplib=$lt_striplib
16756
16757 # Dependencies to place before the objects being linked to create a
16758 # shared library.
16759 predep_objects=$lt_predep_objects_F77
16760
16761 # Dependencies to place after the objects being linked to create a
16762 # shared library.
16763 postdep_objects=$lt_postdep_objects_F77
16764
16765 # Dependencies to place before the objects being linked to create a
16766 # shared library.
16767 predeps=$lt_predeps_F77
16768
16769 # Dependencies to place after the objects being linked to create a
16770 # shared library.
16771 postdeps=$lt_postdeps_F77
16772
16773 # The directories searched by this compiler when creating a shared
16774 # library
16775 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16776
16777 # The library search path used internally by the compiler when linking
16778 # a shared library.
16779 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16780
16781 # Method to check whether dependent libraries are shared objects.
16782 deplibs_check_method=$lt_deplibs_check_method
16783
16784 # Command to use when deplibs_check_method == file_magic.
16785 file_magic_cmd=$lt_file_magic_cmd
16786
16787 # Flag that allows shared libraries with undefined symbols to be built.
16788 allow_undefined_flag=$lt_allow_undefined_flag_F77
16789
16790 # Flag that forces no undefined symbols.
16791 no_undefined_flag=$lt_no_undefined_flag_F77
16792
16793 # Commands used to finish a libtool library installation in a directory.
16794 finish_cmds=$lt_finish_cmds
16795
16796 # Same as above, but a single script fragment to be evaled but not shown.
16797 finish_eval=$lt_finish_eval
16798
16799 # Take the output of nm and produce a listing of raw symbols and C names.
16800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16801
16802 # Transform the output of nm in a proper C declaration
16803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16804
16805 # Transform the output of nm in a C name address pair
16806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16807
16808 # This is the shared library runtime path variable.
16809 runpath_var=$runpath_var
16810
16811 # This is the shared library path variable.
16812 shlibpath_var=$shlibpath_var
16813
16814 # Is shlibpath searched before the hard-coded library search path?
16815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16816
16817 # How to hardcode a shared library path into an executable.
16818 hardcode_action=$hardcode_action_F77
16819
16820 # Whether we should hardcode library paths into libraries.
16821 hardcode_into_libs=$hardcode_into_libs
16822
16823 # Flag to hardcode \$libdir into a binary during linking.
16824 # This must work even if \$libdir does not exist.
16825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16826
16827 # If ld is used when linking, flag to hardcode \$libdir into
16828 # a binary during linking. This must work even if \$libdir does
16829 # not exist.
16830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16831
16832 # Whether we need a single -rpath flag with a separated argument.
16833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16834
16835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16836 # resulting binary.
16837 hardcode_direct=$hardcode_direct_F77
16838
16839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16840 # resulting binary.
16841 hardcode_minus_L=$hardcode_minus_L_F77
16842
16843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16844 # the resulting binary.
16845 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16846
16847 # Set to yes if building a shared library automatically hardcodes DIR into the library
16848 # and all subsequent libraries and executables linked against it.
16849 hardcode_automatic=$hardcode_automatic_F77
16850
16851 # Variables whose values should be saved in libtool wrapper scripts and
16852 # restored at relink time.
16853 variables_saved_for_relink="$variables_saved_for_relink"
16854
16855 # Whether libtool must link a program against all its dependency libraries.
16856 link_all_deplibs=$link_all_deplibs_F77
16857
16858 # Compile-time system search path for libraries
16859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16860
16861 # Run-time system search path for libraries
16862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16863
16864 # Fix the shell variable \$srcfile for the compiler.
16865 fix_srcfile_path=$lt_fix_srcfile_path
16866
16867 # Set to yes if exported symbols are required.
16868 always_export_symbols=$always_export_symbols_F77
16869
16870 # The commands to list exported symbols.
16871 export_symbols_cmds=$lt_export_symbols_cmds_F77
16872
16873 # The commands to extract the exported symbol list from a shared archive.
16874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16875
16876 # Symbols that should not be listed in the preloaded symbols.
16877 exclude_expsyms=$lt_exclude_expsyms_F77
16878
16879 # Symbols that must always be exported.
16880 include_expsyms=$lt_include_expsyms_F77
16881
16882 # ### END LIBTOOL TAG CONFIG: $tagname
16883
16884 __EOF__
16885
16886
16887 else
16888 # If there is no Makefile yet, we rely on a make rule to execute
16889 # `config.status --recheck' to rerun these tests and create the
16890 # libtool script then.
16891 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16892 if test -f "$ltmain_in"; then
16893 test -f Makefile && make "$ltmain"
16894 fi
16895 fi
16896
16897
16898 ac_ext=c
16899 ac_cpp='$CPP $CPPFLAGS'
16900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16903
16904 CC="$lt_save_CC"
16905
16906 else
16907 tagname=""
16908 fi
16909 ;;
16910
16911 GCJ)
16912 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16913
16914
16915 # Source file extension for Java test sources.
16916 ac_ext=java
16917
16918 # Object file extension for compiled Java test sources.
16919 objext=o
16920 objext_GCJ=$objext
16921
16922 # Code to be used in simple compile tests
16923 lt_simple_compile_test_code="class foo {}"
16924
16925 # Code to be used in simple link tests
16926 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16927
16928 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16929
16930 # If no C compiler was specified, use CC.
16931 LTCC=${LTCC-"$CC"}
16932
16933 # If no C compiler flags were specified, use CFLAGS.
16934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16935
16936 # Allow CC to be a program name with arguments.
16937 compiler=$CC
16938
16939
16940 # save warnings/boilerplate of simple test code
16941 ac_outfile=conftest.$ac_objext
16942 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16944 _lt_compiler_boilerplate=`cat conftest.err`
16945 $rm conftest*
16946
16947 ac_outfile=conftest.$ac_objext
16948 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16950 _lt_linker_boilerplate=`cat conftest.err`
16951 $rm -r conftest*
16952
16953
16954 # Allow CC to be a program name with arguments.
16955 lt_save_CC="$CC"
16956 CC=${GCJ-"gcj"}
16957 compiler=$CC
16958 compiler_GCJ=$CC
16959 for cc_temp in $compiler""; do
16960 case $cc_temp in
16961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16963 \-*) ;;
16964 *) break;;
16965 esac
16966 done
16967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16968
16969
16970 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16971 archive_cmds_need_lc_GCJ=no
16972
16973 old_archive_cmds_GCJ=$old_archive_cmds
16974
16975
16976 lt_prog_compiler_no_builtin_flag_GCJ=
16977
16978 if test "$GCC" = yes; then
16979 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16980
16981
16982 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16983 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16984 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16985 $as_echo_n "(cached) " >&6
16986 else
16987 lt_cv_prog_compiler_rtti_exceptions=no
16988 ac_outfile=conftest.$ac_objext
16989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16990 lt_compiler_flag="-fno-rtti -fno-exceptions"
16991 # Insert the option either (1) after the last *FLAGS variable, or
16992 # (2) before a word containing "conftest.", or (3) at the end.
16993 # Note that $ac_compile itself does not contain backslashes and begins
16994 # with a dollar sign (not a hyphen), so the echo should work correctly.
16995 # The option is referenced via a variable to avoid confusing sed.
16996 lt_compile=`echo "$ac_compile" | $SED \
16997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16999 -e 's:$: $lt_compiler_flag:'`
17000 (eval echo "\"\$as_me:17000: $lt_compile\"" >&5)
17001 (eval "$lt_compile" 2>conftest.err)
17002 ac_status=$?
17003 cat conftest.err >&5
17004 echo "$as_me:17004: \$? = $ac_status" >&5
17005 if (exit $ac_status) && test -s "$ac_outfile"; then
17006 # The compiler can only warn and ignore the option if not recognized
17007 # So say no if there are warnings other than the usual output.
17008 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17011 lt_cv_prog_compiler_rtti_exceptions=yes
17012 fi
17013 fi
17014 $rm conftest*
17015
17016 fi
17017 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17018 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17019
17020 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17021 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17022 else
17023 :
17024 fi
17025
17026 fi
17027
17028 lt_prog_compiler_wl_GCJ=
17029 lt_prog_compiler_pic_GCJ=
17030 lt_prog_compiler_static_GCJ=
17031
17032 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17033 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17034
17035 if test "$GCC" = yes; then
17036 lt_prog_compiler_wl_GCJ='-Wl,'
17037 lt_prog_compiler_static_GCJ='-static'
17038
17039 case $host_os in
17040 aix*)
17041 # All AIX code is PIC.
17042 if test "$host_cpu" = ia64; then
17043 # AIX 5 now supports IA64 processor
17044 lt_prog_compiler_static_GCJ='-Bstatic'
17045 fi
17046 ;;
17047
17048 amigaos*)
17049 # FIXME: we need at least 68020 code to build shared libraries, but
17050 # adding the `-m68020' flag to GCC prevents building anything better,
17051 # like `-m68040'.
17052 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17053 ;;
17054
17055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17056 # PIC is the default for these OSes.
17057 ;;
17058
17059 mingw* | cygwin* | pw32* | os2*)
17060 # This hack is so that the source file can tell whether it is being
17061 # built for inclusion in a dll (and should export symbols for example).
17062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17063 # (--disable-auto-import) libraries
17064
17065 ;;
17066
17067 darwin* | rhapsody*)
17068 # PIC is the default on this platform
17069 # Common symbols not allowed in MH_DYLIB files
17070 lt_prog_compiler_pic_GCJ='-fno-common'
17071 ;;
17072
17073 interix[3-9]*)
17074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17075 # Instead, we relocate shared libraries at runtime.
17076 ;;
17077
17078 msdosdjgpp*)
17079 # Just because we use GCC doesn't mean we suddenly get shared libraries
17080 # on systems that don't support them.
17081 lt_prog_compiler_can_build_shared_GCJ=no
17082 enable_shared=no
17083 ;;
17084
17085 sysv4*MP*)
17086 if test -d /usr/nec; then
17087 lt_prog_compiler_pic_GCJ=-Kconform_pic
17088 fi
17089 ;;
17090
17091 hpux*)
17092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17093 # not for PA HP-UX.
17094 case $host_cpu in
17095 hppa*64*|ia64*)
17096 # +Z the default
17097 ;;
17098 *)
17099 lt_prog_compiler_pic_GCJ='-fPIC'
17100 ;;
17101 esac
17102 ;;
17103
17104 *)
17105 lt_prog_compiler_pic_GCJ='-fPIC'
17106 ;;
17107 esac
17108 else
17109 # PORTME Check for flag to pass linker flags through the system compiler.
17110 case $host_os in
17111 aix*)
17112 lt_prog_compiler_wl_GCJ='-Wl,'
17113 if test "$host_cpu" = ia64; then
17114 # AIX 5 now supports IA64 processor
17115 lt_prog_compiler_static_GCJ='-Bstatic'
17116 else
17117 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17118 fi
17119 ;;
17120 darwin*)
17121 # PIC is the default on this platform
17122 # Common symbols not allowed in MH_DYLIB files
17123 case $cc_basename in
17124 xlc*)
17125 lt_prog_compiler_pic_GCJ='-qnocommon'
17126 lt_prog_compiler_wl_GCJ='-Wl,'
17127 ;;
17128 esac
17129 ;;
17130
17131 mingw* | cygwin* | pw32* | os2*)
17132 # This hack is so that the source file can tell whether it is being
17133 # built for inclusion in a dll (and should export symbols for example).
17134
17135 ;;
17136
17137 hpux9* | hpux10* | hpux11*)
17138 lt_prog_compiler_wl_GCJ='-Wl,'
17139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17140 # not for PA HP-UX.
17141 case $host_cpu in
17142 hppa*64*|ia64*)
17143 # +Z the default
17144 ;;
17145 *)
17146 lt_prog_compiler_pic_GCJ='+Z'
17147 ;;
17148 esac
17149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17150 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17151 ;;
17152
17153 irix5* | irix6* | nonstopux*)
17154 lt_prog_compiler_wl_GCJ='-Wl,'
17155 # PIC (with -KPIC) is the default.
17156 lt_prog_compiler_static_GCJ='-non_shared'
17157 ;;
17158
17159 newsos6)
17160 lt_prog_compiler_pic_GCJ='-KPIC'
17161 lt_prog_compiler_static_GCJ='-Bstatic'
17162 ;;
17163
17164 linux* | k*bsd*-gnu)
17165 case $cc_basename in
17166 icc* | ecc*)
17167 lt_prog_compiler_wl_GCJ='-Wl,'
17168 lt_prog_compiler_pic_GCJ='-KPIC'
17169 lt_prog_compiler_static_GCJ='-static'
17170 ;;
17171 pgcc* | pgf77* | pgf90* | pgf95*)
17172 # Portland Group compilers (*not* the Pentium gcc compiler,
17173 # which looks to be a dead project)
17174 lt_prog_compiler_wl_GCJ='-Wl,'
17175 lt_prog_compiler_pic_GCJ='-fpic'
17176 lt_prog_compiler_static_GCJ='-Bstatic'
17177 ;;
17178 ccc*)
17179 lt_prog_compiler_wl_GCJ='-Wl,'
17180 # All Alpha code is PIC.
17181 lt_prog_compiler_static_GCJ='-non_shared'
17182 ;;
17183 *)
17184 case `$CC -V 2>&1 | sed 5q` in
17185 *Sun\ C*)
17186 # Sun C 5.9
17187 lt_prog_compiler_pic_GCJ='-KPIC'
17188 lt_prog_compiler_static_GCJ='-Bstatic'
17189 lt_prog_compiler_wl_GCJ='-Wl,'
17190 ;;
17191 *Sun\ F*)
17192 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17193 lt_prog_compiler_pic_GCJ='-KPIC'
17194 lt_prog_compiler_static_GCJ='-Bstatic'
17195 lt_prog_compiler_wl_GCJ=''
17196 ;;
17197 esac
17198 ;;
17199 esac
17200 ;;
17201
17202 osf3* | osf4* | osf5*)
17203 lt_prog_compiler_wl_GCJ='-Wl,'
17204 # All OSF/1 code is PIC.
17205 lt_prog_compiler_static_GCJ='-non_shared'
17206 ;;
17207
17208 rdos*)
17209 lt_prog_compiler_static_GCJ='-non_shared'
17210 ;;
17211
17212 solaris*)
17213 lt_prog_compiler_pic_GCJ='-KPIC'
17214 lt_prog_compiler_static_GCJ='-Bstatic'
17215 case $cc_basename in
17216 f77* | f90* | f95*)
17217 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17218 *)
17219 lt_prog_compiler_wl_GCJ='-Wl,';;
17220 esac
17221 ;;
17222
17223 sunos4*)
17224 lt_prog_compiler_wl_GCJ='-Qoption ld '
17225 lt_prog_compiler_pic_GCJ='-PIC'
17226 lt_prog_compiler_static_GCJ='-Bstatic'
17227 ;;
17228
17229 sysv4 | sysv4.2uw2* | sysv4.3*)
17230 lt_prog_compiler_wl_GCJ='-Wl,'
17231 lt_prog_compiler_pic_GCJ='-KPIC'
17232 lt_prog_compiler_static_GCJ='-Bstatic'
17233 ;;
17234
17235 sysv4*MP*)
17236 if test -d /usr/nec ;then
17237 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17238 lt_prog_compiler_static_GCJ='-Bstatic'
17239 fi
17240 ;;
17241
17242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17243 lt_prog_compiler_wl_GCJ='-Wl,'
17244 lt_prog_compiler_pic_GCJ='-KPIC'
17245 lt_prog_compiler_static_GCJ='-Bstatic'
17246 ;;
17247
17248 unicos*)
17249 lt_prog_compiler_wl_GCJ='-Wl,'
17250 lt_prog_compiler_can_build_shared_GCJ=no
17251 ;;
17252
17253 uts4*)
17254 lt_prog_compiler_pic_GCJ='-pic'
17255 lt_prog_compiler_static_GCJ='-Bstatic'
17256 ;;
17257
17258 *)
17259 lt_prog_compiler_can_build_shared_GCJ=no
17260 ;;
17261 esac
17262 fi
17263
17264 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17265 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17266
17267 #
17268 # Check to make sure the PIC flag actually works.
17269 #
17270 if test -n "$lt_prog_compiler_pic_GCJ"; then
17271
17272 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17273 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17274 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17275 $as_echo_n "(cached) " >&6
17276 else
17277 lt_cv_prog_compiler_pic_works_GCJ=no
17278 ac_outfile=conftest.$ac_objext
17279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17280 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17281 # Insert the option either (1) after the last *FLAGS variable, or
17282 # (2) before a word containing "conftest.", or (3) at the end.
17283 # Note that $ac_compile itself does not contain backslashes and begins
17284 # with a dollar sign (not a hyphen), so the echo should work correctly.
17285 # The option is referenced via a variable to avoid confusing sed.
17286 lt_compile=`echo "$ac_compile" | $SED \
17287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17289 -e 's:$: $lt_compiler_flag:'`
17290 (eval echo "\"\$as_me:17290: $lt_compile\"" >&5)
17291 (eval "$lt_compile" 2>conftest.err)
17292 ac_status=$?
17293 cat conftest.err >&5
17294 echo "$as_me:17294: \$? = $ac_status" >&5
17295 if (exit $ac_status) && test -s "$ac_outfile"; then
17296 # The compiler can only warn and ignore the option if not recognized
17297 # So say no if there are warnings other than the usual output.
17298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17301 lt_cv_prog_compiler_pic_works_GCJ=yes
17302 fi
17303 fi
17304 $rm conftest*
17305
17306 fi
17307 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17308 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17309
17310 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17311 case $lt_prog_compiler_pic_GCJ in
17312 "" | " "*) ;;
17313 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17314 esac
17315 else
17316 lt_prog_compiler_pic_GCJ=
17317 lt_prog_compiler_can_build_shared_GCJ=no
17318 fi
17319
17320 fi
17321 case $host_os in
17322 # For platforms which do not support PIC, -DPIC is meaningless:
17323 *djgpp*)
17324 lt_prog_compiler_pic_GCJ=
17325 ;;
17326 *)
17327 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17328 ;;
17329 esac
17330
17331 #
17332 # Check to make sure the static flag actually works.
17333 #
17334 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17335 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17336 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17337 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17338 $as_echo_n "(cached) " >&6
17339 else
17340 lt_cv_prog_compiler_static_works_GCJ=no
17341 save_LDFLAGS="$LDFLAGS"
17342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17345 # The linker can only warn and ignore the option if not recognized
17346 # So say no if there are warnings
17347 if test -s conftest.err; then
17348 # Append any errors to the config.log.
17349 cat conftest.err 1>&5
17350 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17352 if diff conftest.exp conftest.er2 >/dev/null; then
17353 lt_cv_prog_compiler_static_works_GCJ=yes
17354 fi
17355 else
17356 lt_cv_prog_compiler_static_works_GCJ=yes
17357 fi
17358 fi
17359 $rm -r conftest*
17360 LDFLAGS="$save_LDFLAGS"
17361
17362 fi
17363 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17364 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17365
17366 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17367 :
17368 else
17369 lt_prog_compiler_static_GCJ=
17370 fi
17371
17372
17373 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17374 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17375 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17376 $as_echo_n "(cached) " >&6
17377 else
17378 lt_cv_prog_compiler_c_o_GCJ=no
17379 $rm -r conftest 2>/dev/null
17380 mkdir conftest
17381 cd conftest
17382 mkdir out
17383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17384
17385 lt_compiler_flag="-o out/conftest2.$ac_objext"
17386 # Insert the option either (1) after the last *FLAGS variable, or
17387 # (2) before a word containing "conftest.", or (3) at the end.
17388 # Note that $ac_compile itself does not contain backslashes and begins
17389 # with a dollar sign (not a hyphen), so the echo should work correctly.
17390 lt_compile=`echo "$ac_compile" | $SED \
17391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17393 -e 's:$: $lt_compiler_flag:'`
17394 (eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
17395 (eval "$lt_compile" 2>out/conftest.err)
17396 ac_status=$?
17397 cat out/conftest.err >&5
17398 echo "$as_me:17398: \$? = $ac_status" >&5
17399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17400 then
17401 # The compiler can only warn and ignore the option if not recognized
17402 # So say no if there are warnings
17403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17406 lt_cv_prog_compiler_c_o_GCJ=yes
17407 fi
17408 fi
17409 chmod u+w . 2>&5
17410 $rm conftest*
17411 # SGI C++ compiler will create directory out/ii_files/ for
17412 # template instantiation
17413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17414 $rm out/* && rmdir out
17415 cd ..
17416 rmdir conftest
17417 $rm conftest*
17418
17419 fi
17420 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17421 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17422
17423
17424 hard_links="nottested"
17425 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17426 # do not overwrite the value of need_locks provided by the user
17427 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17428 $as_echo_n "checking if we can lock with hard links... " >&6; }
17429 hard_links=yes
17430 $rm conftest*
17431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17432 touch conftest.a
17433 ln conftest.a conftest.b 2>&5 || hard_links=no
17434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17435 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17436 $as_echo "$hard_links" >&6; }
17437 if test "$hard_links" = no; then
17438 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17439 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17440 need_locks=warn
17441 fi
17442 else
17443 need_locks=no
17444 fi
17445
17446 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17447 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17448
17449 runpath_var=
17450 allow_undefined_flag_GCJ=
17451 enable_shared_with_static_runtimes_GCJ=no
17452 archive_cmds_GCJ=
17453 archive_expsym_cmds_GCJ=
17454 old_archive_From_new_cmds_GCJ=
17455 old_archive_from_expsyms_cmds_GCJ=
17456 export_dynamic_flag_spec_GCJ=
17457 whole_archive_flag_spec_GCJ=
17458 thread_safe_flag_spec_GCJ=
17459 hardcode_libdir_flag_spec_GCJ=
17460 hardcode_libdir_flag_spec_ld_GCJ=
17461 hardcode_libdir_separator_GCJ=
17462 hardcode_direct_GCJ=no
17463 hardcode_minus_L_GCJ=no
17464 hardcode_shlibpath_var_GCJ=unsupported
17465 link_all_deplibs_GCJ=unknown
17466 hardcode_automatic_GCJ=no
17467 module_cmds_GCJ=
17468 module_expsym_cmds_GCJ=
17469 always_export_symbols_GCJ=no
17470 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17471 # include_expsyms should be a list of space-separated symbols to be *always*
17472 # included in the symbol list
17473 include_expsyms_GCJ=
17474 # exclude_expsyms can be an extended regexp of symbols to exclude
17475 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17477 # as well as any symbol that contains `d'.
17478 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17480 # platforms (ab)use it in PIC code, but their linkers get confused if
17481 # the symbol is explicitly referenced. Since portable code cannot
17482 # rely on this symbol name, it's probably fine to never include it in
17483 # preloaded symbol tables.
17484 # Exclude shared library initialization/finalization symbols.
17485 extract_expsyms_cmds=
17486 # Just being paranoid about ensuring that cc_basename is set.
17487 for cc_temp in $compiler""; do
17488 case $cc_temp in
17489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17491 \-*) ;;
17492 *) break;;
17493 esac
17494 done
17495 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17496
17497 case $host_os in
17498 cygwin* | mingw* | pw32*)
17499 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17500 # When not using gcc, we currently assume that we are using
17501 # Microsoft Visual C++.
17502 if test "$GCC" != yes; then
17503 with_gnu_ld=no
17504 fi
17505 ;;
17506 interix*)
17507 # we just hope/assume this is gcc and not c89 (= MSVC++)
17508 with_gnu_ld=yes
17509 ;;
17510 openbsd*)
17511 with_gnu_ld=no
17512 ;;
17513 esac
17514
17515 ld_shlibs_GCJ=yes
17516 if test "$with_gnu_ld" = yes; then
17517 # If archive_cmds runs LD, not CC, wlarc should be empty
17518 wlarc='${wl}'
17519
17520 # Set some defaults for GNU ld with shared library support. These
17521 # are reset later if shared libraries are not supported. Putting them
17522 # here allows them to be overridden if necessary.
17523 runpath_var=LD_RUN_PATH
17524 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17525 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17526 # ancient GNU ld didn't support --whole-archive et. al.
17527 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17528 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17529 else
17530 whole_archive_flag_spec_GCJ=
17531 fi
17532 supports_anon_versioning=no
17533 case `$LD -v 2>/dev/null` in
17534 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17535 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17536 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17537 *\ 2.11.*) ;; # other 2.11 versions
17538 *) supports_anon_versioning=yes ;;
17539 esac
17540
17541 # See if GNU ld supports shared libraries.
17542 case $host_os in
17543 aix[3-9]*)
17544 # On AIX/PPC, the GNU linker is very broken
17545 if test "$host_cpu" != ia64; then
17546 ld_shlibs_GCJ=no
17547 cat <<EOF 1>&2
17548
17549 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17550 *** to be unable to reliably create shared libraries on AIX.
17551 *** Therefore, libtool is disabling shared libraries support. If you
17552 *** really care for shared libraries, you may want to modify your PATH
17553 *** so that a non-GNU linker is found, and then restart.
17554
17555 EOF
17556 fi
17557 ;;
17558
17559 amigaos*)
17560 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)'
17561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17562 hardcode_minus_L_GCJ=yes
17563
17564 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17565 # that the semantics of dynamic libraries on AmigaOS, at least up
17566 # to version 4, is to share data among multiple programs linked
17567 # with the same dynamic library. Since this doesn't match the
17568 # behavior of shared libraries on other platforms, we can't use
17569 # them.
17570 ld_shlibs_GCJ=no
17571 ;;
17572
17573 beos*)
17574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575 allow_undefined_flag_GCJ=unsupported
17576 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17577 # support --undefined. This deserves some investigation. FIXME
17578 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17579 else
17580 ld_shlibs_GCJ=no
17581 fi
17582 ;;
17583
17584 cygwin* | mingw* | pw32*)
17585 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17586 # as there is no search path for DLLs.
17587 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17588 allow_undefined_flag_GCJ=unsupported
17589 always_export_symbols_GCJ=no
17590 enable_shared_with_static_runtimes_GCJ=yes
17591 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17592
17593 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17594 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17595 # If the export-symbols file already is a .def file (1st line
17596 # is EXPORTS), use it as is; otherwise, prepend...
17597 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17598 cp $export_symbols $output_objdir/$soname.def;
17599 else
17600 echo EXPORTS > $output_objdir/$soname.def;
17601 cat $export_symbols >> $output_objdir/$soname.def;
17602 fi~
17603 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17604 else
17605 ld_shlibs_GCJ=no
17606 fi
17607 ;;
17608
17609 interix[3-9]*)
17610 hardcode_direct_GCJ=no
17611 hardcode_shlibpath_var_GCJ=no
17612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17613 export_dynamic_flag_spec_GCJ='${wl}-E'
17614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17615 # Instead, shared libraries are loaded at an image base (0x10000000 by
17616 # default) and relocated if they conflict, which is a slow very memory
17617 # consuming and fragmenting process. To avoid this, we pick a random,
17618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17619 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17620 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'
17621 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'
17622 ;;
17623
17624 gnu* | linux* | k*bsd*-gnu)
17625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17626 tmp_addflag=
17627 case $cc_basename,$host_cpu in
17628 pgcc*) # Portland Group C compiler
17629 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'
17630 tmp_addflag=' $pic_flag'
17631 ;;
17632 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17633 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'
17634 tmp_addflag=' $pic_flag -Mnomain' ;;
17635 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17636 tmp_addflag=' -i_dynamic' ;;
17637 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17638 tmp_addflag=' -i_dynamic -nofor_main' ;;
17639 ifc* | ifort*) # Intel Fortran compiler
17640 tmp_addflag=' -nofor_main' ;;
17641 esac
17642 case `$CC -V 2>&1 | sed 5q` in
17643 *Sun\ C*) # Sun C 5.9
17644 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17645 tmp_sharedflag='-G' ;;
17646 *Sun\ F*) # Sun Fortran 8.3
17647 tmp_sharedflag='-G' ;;
17648 *)
17649 tmp_sharedflag='-shared' ;;
17650 esac
17651 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17652
17653 if test $supports_anon_versioning = yes; then
17654 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17656 $echo "local: *; };" >> $output_objdir/$libname.ver~
17657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17658 fi
17659 else
17660 ld_shlibs_GCJ=no
17661 fi
17662 ;;
17663
17664 netbsd*)
17665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17666 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17667 wlarc=
17668 else
17669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17671 fi
17672 ;;
17673
17674 solaris*)
17675 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17676 ld_shlibs_GCJ=no
17677 cat <<EOF 1>&2
17678
17679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17680 *** create shared libraries on Solaris systems. Therefore, libtool
17681 *** is disabling shared libraries support. We urge you to upgrade GNU
17682 *** binutils to release 2.9.1 or newer. Another option is to modify
17683 *** your PATH or compiler configuration so that the native linker is
17684 *** used, and then restart.
17685
17686 EOF
17687 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17689 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17690 else
17691 ld_shlibs_GCJ=no
17692 fi
17693 ;;
17694
17695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17696 case `$LD -v 2>&1` in
17697 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17698 ld_shlibs_GCJ=no
17699 cat <<_LT_EOF 1>&2
17700
17701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17702 *** reliably create shared libraries on SCO systems. Therefore, libtool
17703 *** is disabling shared libraries support. We urge you to upgrade GNU
17704 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17705 *** your PATH or compiler configuration so that the native linker is
17706 *** used, and then restart.
17707
17708 _LT_EOF
17709 ;;
17710 *)
17711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17712 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17715 else
17716 ld_shlibs_GCJ=no
17717 fi
17718 ;;
17719 esac
17720 ;;
17721
17722 sunos4*)
17723 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17724 wlarc=
17725 hardcode_direct_GCJ=yes
17726 hardcode_shlibpath_var_GCJ=no
17727 ;;
17728
17729 *)
17730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17731 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17733 else
17734 ld_shlibs_GCJ=no
17735 fi
17736 ;;
17737 esac
17738
17739 if test "$ld_shlibs_GCJ" = no; then
17740 runpath_var=
17741 hardcode_libdir_flag_spec_GCJ=
17742 export_dynamic_flag_spec_GCJ=
17743 whole_archive_flag_spec_GCJ=
17744 fi
17745 else
17746 # PORTME fill in a description of your system's linker (not GNU ld)
17747 case $host_os in
17748 aix3*)
17749 allow_undefined_flag_GCJ=unsupported
17750 always_export_symbols_GCJ=yes
17751 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'
17752 # Note: this linker hardcodes the directories in LIBPATH if there
17753 # are no directories specified by -L.
17754 hardcode_minus_L_GCJ=yes
17755 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17756 # Neither direct hardcoding nor static linking is supported with a
17757 # broken collect2.
17758 hardcode_direct_GCJ=unsupported
17759 fi
17760 ;;
17761
17762 aix[4-9]*)
17763 if test "$host_cpu" = ia64; then
17764 # On IA64, the linker does run time linking by default, so we don't
17765 # have to do anything special.
17766 aix_use_runtimelinking=no
17767 exp_sym_flag='-Bexport'
17768 no_entry_flag=""
17769 else
17770 # If we're using GNU nm, then we don't want the "-C" option.
17771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17773 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'
17774 else
17775 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'
17776 fi
17777 aix_use_runtimelinking=no
17778
17779 # Test if we are trying to use run time linking or normal
17780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17781 # need to do runtime linking.
17782 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17783 for ld_flag in $LDFLAGS; do
17784 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17785 aix_use_runtimelinking=yes
17786 break
17787 fi
17788 done
17789 ;;
17790 esac
17791
17792 exp_sym_flag='-bexport'
17793 no_entry_flag='-bnoentry'
17794 fi
17795
17796 # When large executables or shared objects are built, AIX ld can
17797 # have problems creating the table of contents. If linking a library
17798 # or program results in "error TOC overflow" add -mminimal-toc to
17799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17801
17802 archive_cmds_GCJ=''
17803 hardcode_direct_GCJ=yes
17804 hardcode_libdir_separator_GCJ=':'
17805 link_all_deplibs_GCJ=yes
17806
17807 if test "$GCC" = yes; then
17808 case $host_os in aix4.[012]|aix4.[012].*)
17809 # We only want to do this on AIX 4.2 and lower, the check
17810 # below for broken collect2 doesn't work under 4.3+
17811 collect2name=`${CC} -print-prog-name=collect2`
17812 if test -f "$collect2name" && \
17813 strings "$collect2name" | grep resolve_lib_name >/dev/null
17814 then
17815 # We have reworked collect2
17816 :
17817 else
17818 # We have old collect2
17819 hardcode_direct_GCJ=unsupported
17820 # It fails to find uninstalled libraries when the uninstalled
17821 # path is not listed in the libpath. Setting hardcode_minus_L
17822 # to unsupported forces relinking
17823 hardcode_minus_L_GCJ=yes
17824 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17825 hardcode_libdir_separator_GCJ=
17826 fi
17827 ;;
17828 esac
17829 shared_flag='-shared'
17830 if test "$aix_use_runtimelinking" = yes; then
17831 shared_flag="$shared_flag "'${wl}-G'
17832 fi
17833 else
17834 # not using gcc
17835 if test "$host_cpu" = ia64; then
17836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17837 # chokes on -Wl,-G. The following line is correct:
17838 shared_flag='-G'
17839 else
17840 if test "$aix_use_runtimelinking" = yes; then
17841 shared_flag='${wl}-G'
17842 else
17843 shared_flag='${wl}-bM:SRE'
17844 fi
17845 fi
17846 fi
17847
17848 # It seems that -bexpall does not export symbols beginning with
17849 # underscore (_), so it is better to generate a list of symbols to export.
17850 always_export_symbols_GCJ=yes
17851 if test "$aix_use_runtimelinking" = yes; then
17852 # Warning - without using the other runtime loading flags (-brtl),
17853 # -berok will link without error, but may produce a broken library.
17854 allow_undefined_flag_GCJ='-berok'
17855 # Determine the default libpath from the value encoded in an empty executable.
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h. */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862
17863 int
17864 main ()
17865 {
17866
17867 ;
17868 return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876 esac
17877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17878 $as_echo "$ac_try_echo") >&5
17879 (eval "$ac_link") 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest$ac_exeext && {
17889 test "$cross_compiling" = yes ||
17890 $as_test_x conftest$ac_exeext
17891 }; then
17892
17893 lt_aix_libpath_sed='
17894 /Import File Strings/,/^$/ {
17895 /^0/ {
17896 s/^0 *\(.*\)$/\1/
17897 p
17898 }
17899 }'
17900 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17901 # Check for a 64-bit object if we didn't find anything.
17902 if test -z "$aix_libpath"; then
17903 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17904 fi
17905 else
17906 $as_echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17908
17909
17910 fi
17911
17912 rm -rf conftest.dSYM
17913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17914 conftest$ac_exeext conftest.$ac_ext
17915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17916
17917 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17918 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"
17919 else
17920 if test "$host_cpu" = ia64; then
17921 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17922 allow_undefined_flag_GCJ="-z nodefs"
17923 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"
17924 else
17925 # Determine the default libpath from the value encoded in an empty executable.
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932
17933 int
17934 main ()
17935 {
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 rm -f conftest.$ac_objext conftest$ac_exeext
17942 if { (ac_try="$ac_link"
17943 case "(($ac_try" in
17944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945 *) ac_try_echo=$ac_try;;
17946 esac
17947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17948 $as_echo "$ac_try_echo") >&5
17949 (eval "$ac_link") 2>conftest.er1
17950 ac_status=$?
17951 grep -v '^ *+' conftest.er1 >conftest.err
17952 rm -f conftest.er1
17953 cat conftest.err >&5
17954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } && {
17956 test -z "$ac_c_werror_flag" ||
17957 test ! -s conftest.err
17958 } && test -s conftest$ac_exeext && {
17959 test "$cross_compiling" = yes ||
17960 $as_test_x conftest$ac_exeext
17961 }; then
17962
17963 lt_aix_libpath_sed='
17964 /Import File Strings/,/^$/ {
17965 /^0/ {
17966 s/^0 *\(.*\)$/\1/
17967 p
17968 }
17969 }'
17970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17971 # Check for a 64-bit object if we didn't find anything.
17972 if test -z "$aix_libpath"; then
17973 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17974 fi
17975 else
17976 $as_echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17978
17979
17980 fi
17981
17982 rm -rf conftest.dSYM
17983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17984 conftest$ac_exeext conftest.$ac_ext
17985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17986
17987 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17988 # Warning - without using the other run time loading flags,
17989 # -berok will link without error, but may produce a broken library.
17990 no_undefined_flag_GCJ=' ${wl}-bernotok'
17991 allow_undefined_flag_GCJ=' ${wl}-berok'
17992 # Exported symbols can be pulled into shared objects from archives
17993 whole_archive_flag_spec_GCJ='$convenience'
17994 archive_cmds_need_lc_GCJ=yes
17995 # This is similar to how AIX traditionally builds its shared libraries.
17996 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'
17997 fi
17998 fi
17999 ;;
18000
18001 amigaos*)
18002 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)'
18003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18004 hardcode_minus_L_GCJ=yes
18005 # see comment about different semantics on the GNU ld section
18006 ld_shlibs_GCJ=no
18007 ;;
18008
18009 bsdi[45]*)
18010 export_dynamic_flag_spec_GCJ=-rdynamic
18011 ;;
18012
18013 cygwin* | mingw* | pw32*)
18014 # When not using gcc, we currently assume that we are using
18015 # Microsoft Visual C++.
18016 # hardcode_libdir_flag_spec is actually meaningless, as there is
18017 # no search path for DLLs.
18018 hardcode_libdir_flag_spec_GCJ=' '
18019 allow_undefined_flag_GCJ=unsupported
18020 # Tell ltmain to make .lib files, not .a files.
18021 libext=lib
18022 # Tell ltmain to make .dll files, not .so files.
18023 shrext_cmds=".dll"
18024 # FIXME: Setting linknames here is a bad hack.
18025 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18026 # The linker will automatically build a .lib file if we build a DLL.
18027 old_archive_From_new_cmds_GCJ='true'
18028 # FIXME: Should let the user specify the lib program.
18029 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18030 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18031 enable_shared_with_static_runtimes_GCJ=yes
18032 ;;
18033
18034 darwin* | rhapsody*)
18035 case $host_os in
18036 rhapsody* | darwin1.[012])
18037 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18038 ;;
18039 *) # Darwin 1.3 on
18040 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18041 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18042 else
18043 case ${MACOSX_DEPLOYMENT_TARGET} in
18044 10.[012])
18045 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18046 ;;
18047 10.*)
18048 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18049 ;;
18050 esac
18051 fi
18052 ;;
18053 esac
18054 archive_cmds_need_lc_GCJ=no
18055 hardcode_direct_GCJ=no
18056 hardcode_automatic_GCJ=yes
18057 hardcode_shlibpath_var_GCJ=unsupported
18058 whole_archive_flag_spec_GCJ=''
18059 link_all_deplibs_GCJ=yes
18060 if test "$GCC" = yes ; then
18061 output_verbose_link_cmd='echo'
18062 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18063 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18064 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18065 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18066 else
18067 case $cc_basename in
18068 xlc*)
18069 output_verbose_link_cmd='echo'
18070 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18071 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18073 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18074 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}'
18075 ;;
18076 *)
18077 ld_shlibs_GCJ=no
18078 ;;
18079 esac
18080 fi
18081 ;;
18082
18083 dgux*)
18084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086 hardcode_shlibpath_var_GCJ=no
18087 ;;
18088
18089 freebsd1*)
18090 ld_shlibs_GCJ=no
18091 ;;
18092
18093 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18094 # support. Future versions do this automatically, but an explicit c++rt0.o
18095 # does not break anything, and helps significantly (at the cost of a little
18096 # extra space).
18097 freebsd2.2*)
18098 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18099 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18100 hardcode_direct_GCJ=yes
18101 hardcode_shlibpath_var_GCJ=no
18102 ;;
18103
18104 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18105 freebsd2*)
18106 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18107 hardcode_direct_GCJ=yes
18108 hardcode_minus_L_GCJ=yes
18109 hardcode_shlibpath_var_GCJ=no
18110 ;;
18111
18112 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18113 freebsd* | dragonfly*)
18114 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18115 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18116 hardcode_direct_GCJ=yes
18117 hardcode_shlibpath_var_GCJ=no
18118 ;;
18119
18120 hpux9*)
18121 if test "$GCC" = yes; then
18122 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'
18123 else
18124 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'
18125 fi
18126 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18127 hardcode_libdir_separator_GCJ=:
18128 hardcode_direct_GCJ=yes
18129
18130 # hardcode_minus_L: Not really in the search PATH,
18131 # but as the default location of the library.
18132 hardcode_minus_L_GCJ=yes
18133 export_dynamic_flag_spec_GCJ='${wl}-E'
18134 ;;
18135
18136 hpux10*)
18137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18138 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18139 else
18140 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18141 fi
18142 if test "$with_gnu_ld" = no; then
18143 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18144 hardcode_libdir_separator_GCJ=:
18145
18146 hardcode_direct_GCJ=yes
18147 export_dynamic_flag_spec_GCJ='${wl}-E'
18148
18149 # hardcode_minus_L: Not really in the search PATH,
18150 # but as the default location of the library.
18151 hardcode_minus_L_GCJ=yes
18152 fi
18153 ;;
18154
18155 hpux11*)
18156 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18157 case $host_cpu in
18158 hppa*64*)
18159 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18160 ;;
18161 ia64*)
18162 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18163 ;;
18164 *)
18165 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18166 ;;
18167 esac
18168 else
18169 case $host_cpu in
18170 hppa*64*)
18171 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18172 ;;
18173 ia64*)
18174 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18175 ;;
18176 *)
18177 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18178 ;;
18179 esac
18180 fi
18181 if test "$with_gnu_ld" = no; then
18182 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18183 hardcode_libdir_separator_GCJ=:
18184
18185 case $host_cpu in
18186 hppa*64*|ia64*)
18187 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18188 hardcode_direct_GCJ=no
18189 hardcode_shlibpath_var_GCJ=no
18190 ;;
18191 *)
18192 hardcode_direct_GCJ=yes
18193 export_dynamic_flag_spec_GCJ='${wl}-E'
18194
18195 # hardcode_minus_L: Not really in the search PATH,
18196 # but as the default location of the library.
18197 hardcode_minus_L_GCJ=yes
18198 ;;
18199 esac
18200 fi
18201 ;;
18202
18203 irix5* | irix6* | nonstopux*)
18204 if test "$GCC" = yes; then
18205 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'
18206 else
18207 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'
18208 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18209 fi
18210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18211 hardcode_libdir_separator_GCJ=:
18212 link_all_deplibs_GCJ=yes
18213 ;;
18214
18215 netbsd*)
18216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18218 else
18219 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18220 fi
18221 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18222 hardcode_direct_GCJ=yes
18223 hardcode_shlibpath_var_GCJ=no
18224 ;;
18225
18226 newsos6)
18227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18228 hardcode_direct_GCJ=yes
18229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18230 hardcode_libdir_separator_GCJ=:
18231 hardcode_shlibpath_var_GCJ=no
18232 ;;
18233
18234 openbsd*)
18235 if test -f /usr/libexec/ld.so; then
18236 hardcode_direct_GCJ=yes
18237 hardcode_shlibpath_var_GCJ=no
18238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18239 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18240 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18241 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18242 export_dynamic_flag_spec_GCJ='${wl}-E'
18243 else
18244 case $host_os in
18245 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18246 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18247 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18248 ;;
18249 *)
18250 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18251 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18252 ;;
18253 esac
18254 fi
18255 else
18256 ld_shlibs_GCJ=no
18257 fi
18258 ;;
18259
18260 os2*)
18261 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18262 hardcode_minus_L_GCJ=yes
18263 allow_undefined_flag_GCJ=unsupported
18264 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'
18265 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18266 ;;
18267
18268 osf3*)
18269 if test "$GCC" = yes; then
18270 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18271 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'
18272 else
18273 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18274 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'
18275 fi
18276 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18277 hardcode_libdir_separator_GCJ=:
18278 ;;
18279
18280 osf4* | osf5*) # as osf3* with the addition of -msym flag
18281 if test "$GCC" = yes; then
18282 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18283 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'
18284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18285 else
18286 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18287 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'
18288 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~
18289 $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'
18290
18291 # Both c and cxx compiler support -rpath directly
18292 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18293 fi
18294 hardcode_libdir_separator_GCJ=:
18295 ;;
18296
18297 solaris*)
18298 no_undefined_flag_GCJ=' -z text'
18299 if test "$GCC" = yes; then
18300 wlarc='${wl}'
18301 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18303 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18304 else
18305 wlarc=''
18306 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18307 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18309 fi
18310 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18311 hardcode_shlibpath_var_GCJ=no
18312 case $host_os in
18313 solaris2.[0-5] | solaris2.[0-5].*) ;;
18314 *)
18315 # The compiler driver will combine and reorder linker options,
18316 # but understands `-z linker_flag'. GCC discards it without `$wl',
18317 # but is careful enough not to reorder.
18318 # Supported since Solaris 2.6 (maybe 2.5.1?)
18319 if test "$GCC" = yes; then
18320 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18321 else
18322 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18323 fi
18324 ;;
18325 esac
18326 link_all_deplibs_GCJ=yes
18327 ;;
18328
18329 sunos4*)
18330 if test "x$host_vendor" = xsequent; then
18331 # Use $CC to link under sequent, because it throws in some extra .o
18332 # files that make .init and .fini sections work.
18333 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18334 else
18335 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18336 fi
18337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18338 hardcode_direct_GCJ=yes
18339 hardcode_minus_L_GCJ=yes
18340 hardcode_shlibpath_var_GCJ=no
18341 ;;
18342
18343 sysv4)
18344 case $host_vendor in
18345 sni)
18346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18347 hardcode_direct_GCJ=yes # is this really true???
18348 ;;
18349 siemens)
18350 ## LD is ld it makes a PLAMLIB
18351 ## CC just makes a GrossModule.
18352 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18353 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18354 hardcode_direct_GCJ=no
18355 ;;
18356 motorola)
18357 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18359 ;;
18360 esac
18361 runpath_var='LD_RUN_PATH'
18362 hardcode_shlibpath_var_GCJ=no
18363 ;;
18364
18365 sysv4.3*)
18366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18367 hardcode_shlibpath_var_GCJ=no
18368 export_dynamic_flag_spec_GCJ='-Bexport'
18369 ;;
18370
18371 sysv4*MP*)
18372 if test -d /usr/nec; then
18373 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374 hardcode_shlibpath_var_GCJ=no
18375 runpath_var=LD_RUN_PATH
18376 hardcode_runpath_var=yes
18377 ld_shlibs_GCJ=yes
18378 fi
18379 ;;
18380
18381 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18382 no_undefined_flag_GCJ='${wl}-z,text'
18383 archive_cmds_need_lc_GCJ=no
18384 hardcode_shlibpath_var_GCJ=no
18385 runpath_var='LD_RUN_PATH'
18386
18387 if test "$GCC" = yes; then
18388 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18389 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18390 else
18391 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18392 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18393 fi
18394 ;;
18395
18396 sysv5* | sco3.2v5* | sco5v6*)
18397 # Note: We can NOT use -z defs as we might desire, because we do not
18398 # link with -lc, and that would cause any symbols used from libc to
18399 # always be unresolved, which means just about no library would
18400 # ever link correctly. If we're not using GNU ld we use -z text
18401 # though, which does catch some bad symbols but isn't as heavy-handed
18402 # as -z defs.
18403 no_undefined_flag_GCJ='${wl}-z,text'
18404 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18405 archive_cmds_need_lc_GCJ=no
18406 hardcode_shlibpath_var_GCJ=no
18407 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18408 hardcode_libdir_separator_GCJ=':'
18409 link_all_deplibs_GCJ=yes
18410 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18411 runpath_var='LD_RUN_PATH'
18412
18413 if test "$GCC" = yes; then
18414 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18415 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18416 else
18417 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18418 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18419 fi
18420 ;;
18421
18422 uts4*)
18423 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18424 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18425 hardcode_shlibpath_var_GCJ=no
18426 ;;
18427
18428 *)
18429 ld_shlibs_GCJ=no
18430 ;;
18431 esac
18432 fi
18433
18434 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18435 $as_echo "$ld_shlibs_GCJ" >&6; }
18436 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18437
18438 #
18439 # Do we need to explicitly link libc?
18440 #
18441 case "x$archive_cmds_need_lc_GCJ" in
18442 x|xyes)
18443 # Assume -lc should be added
18444 archive_cmds_need_lc_GCJ=yes
18445
18446 if test "$enable_shared" = yes && test "$GCC" = yes; then
18447 case $archive_cmds_GCJ in
18448 *'~'*)
18449 # FIXME: we may have to deal with multi-command sequences.
18450 ;;
18451 '$CC '*)
18452 # Test whether the compiler implicitly links with -lc since on some
18453 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18454 # to ld, don't add -lc before -lgcc.
18455 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18456 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18457 $rm conftest*
18458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18459
18460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18461 (eval $ac_compile) 2>&5
18462 ac_status=$?
18463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } 2>conftest.err; then
18465 soname=conftest
18466 lib=conftest
18467 libobjs=conftest.$ac_objext
18468 deplibs=
18469 wl=$lt_prog_compiler_wl_GCJ
18470 pic_flag=$lt_prog_compiler_pic_GCJ
18471 compiler_flags=-v
18472 linker_flags=-v
18473 verstring=
18474 output_objdir=.
18475 libname=conftest
18476 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18477 allow_undefined_flag_GCJ=
18478 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18479 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18480 ac_status=$?
18481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }
18483 then
18484 archive_cmds_need_lc_GCJ=no
18485 else
18486 archive_cmds_need_lc_GCJ=yes
18487 fi
18488 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18489 else
18490 cat conftest.err 1>&5
18491 fi
18492 $rm conftest*
18493 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18494 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18495 ;;
18496 esac
18497 fi
18498 ;;
18499 esac
18500
18501 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18502 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18503 library_names_spec=
18504 libname_spec='lib$name'
18505 soname_spec=
18506 shrext_cmds=".so"
18507 postinstall_cmds=
18508 postuninstall_cmds=
18509 finish_cmds=
18510 finish_eval=
18511 shlibpath_var=
18512 shlibpath_overrides_runpath=unknown
18513 version_type=none
18514 dynamic_linker="$host_os ld.so"
18515 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18516
18517 need_lib_prefix=unknown
18518 hardcode_into_libs=no
18519
18520 # when you set need_version to no, make sure it does not cause -set_version
18521 # flags to be left without arguments
18522 need_version=unknown
18523
18524 case $host_os in
18525 aix3*)
18526 version_type=linux
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18528 shlibpath_var=LIBPATH
18529
18530 # AIX 3 has no versioning support, so we append a major version to the name.
18531 soname_spec='${libname}${release}${shared_ext}$major'
18532 ;;
18533
18534 aix[4-9]*)
18535 version_type=linux
18536 need_lib_prefix=no
18537 need_version=no
18538 hardcode_into_libs=yes
18539 if test "$host_cpu" = ia64; then
18540 # AIX 5 supports IA64
18541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18542 shlibpath_var=LD_LIBRARY_PATH
18543 else
18544 # With GCC up to 2.95.x, collect2 would create an import file
18545 # for dependence libraries. The import file would start with
18546 # the line `#! .'. This would cause the generated library to
18547 # depend on `.', always an invalid library. This was fixed in
18548 # development snapshots of GCC prior to 3.0.
18549 case $host_os in
18550 aix4 | aix4.[01] | aix4.[01].*)
18551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18552 echo ' yes '
18553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18554 :
18555 else
18556 can_build_shared=no
18557 fi
18558 ;;
18559 esac
18560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18561 # soname into executable. Probably we can add versioning support to
18562 # collect2, so additional links can be useful in future.
18563 if test "$aix_use_runtimelinking" = yes; then
18564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18565 # instead of lib<name>.a to let people know that these are not
18566 # typical AIX shared libraries.
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 else
18569 # We preserve .a as extension for shared libraries through AIX4.2
18570 # and later when we are not doing run time linking.
18571 library_names_spec='${libname}${release}.a $libname.a'
18572 soname_spec='${libname}${release}${shared_ext}$major'
18573 fi
18574 shlibpath_var=LIBPATH
18575 fi
18576 ;;
18577
18578 amigaos*)
18579 library_names_spec='$libname.ixlibrary $libname.a'
18580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18581 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'
18582 ;;
18583
18584 beos*)
18585 library_names_spec='${libname}${shared_ext}'
18586 dynamic_linker="$host_os ld.so"
18587 shlibpath_var=LIBRARY_PATH
18588 ;;
18589
18590 bsdi[45]*)
18591 version_type=linux
18592 need_version=no
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18596 shlibpath_var=LD_LIBRARY_PATH
18597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18599 # the default ld.so.conf also contains /usr/contrib/lib and
18600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18601 # libtool to hard-code these into programs
18602 ;;
18603
18604 cygwin* | mingw* | pw32*)
18605 version_type=windows
18606 shrext_cmds=".dll"
18607 need_version=no
18608 need_lib_prefix=no
18609
18610 case $GCC,$host_os in
18611 yes,cygwin* | yes,mingw* | yes,pw32*)
18612 library_names_spec='$libname.dll.a'
18613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18614 postinstall_cmds='base_file=`basename \${file}`~
18615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18616 dldir=$destdir/`dirname \$dlpath`~
18617 test -d \$dldir || mkdir -p \$dldir~
18618 $install_prog $dir/$dlname \$dldir/$dlname~
18619 chmod a+x \$dldir/$dlname'
18620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18621 dlpath=$dir/\$dldll~
18622 $rm \$dlpath'
18623 shlibpath_overrides_runpath=yes
18624
18625 case $host_os in
18626 cygwin*)
18627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18630 ;;
18631 mingw*)
18632 # MinGW DLLs use traditional 'lib' prefix
18633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18636 # It is most probably a Windows format PATH printed by
18637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18638 # path with ; separators, and with drive letters. We can handle the
18639 # drive letters (cygwin fileutils understands them), so leave them,
18640 # especially as we might pass files found there to a mingw objdump,
18641 # which wouldn't understand a cygwinified path. Ahh.
18642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18643 else
18644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18645 fi
18646 ;;
18647 pw32*)
18648 # pw32 DLLs use 'pw' prefix rather than 'lib'
18649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18650 ;;
18651 esac
18652 ;;
18653
18654 *)
18655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18656 ;;
18657 esac
18658 dynamic_linker='Win32 ld.exe'
18659 # FIXME: first we should search . and the directory the executable is in
18660 shlibpath_var=PATH
18661 ;;
18662
18663 darwin* | rhapsody*)
18664 dynamic_linker="$host_os dyld"
18665 version_type=darwin
18666 need_lib_prefix=no
18667 need_version=no
18668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18669 soname_spec='${libname}${release}${major}$shared_ext'
18670 shlibpath_overrides_runpath=yes
18671 shlibpath_var=DYLD_LIBRARY_PATH
18672 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18673
18674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18675 ;;
18676
18677 dgux*)
18678 version_type=linux
18679 need_lib_prefix=no
18680 need_version=no
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18682 soname_spec='${libname}${release}${shared_ext}$major'
18683 shlibpath_var=LD_LIBRARY_PATH
18684 ;;
18685
18686 freebsd1*)
18687 dynamic_linker=no
18688 ;;
18689
18690 freebsd* | dragonfly*)
18691 # DragonFly does not have aout. When/if they implement a new
18692 # versioning mechanism, adjust this.
18693 if test -x /usr/bin/objformat; then
18694 objformat=`/usr/bin/objformat`
18695 else
18696 case $host_os in
18697 freebsd[123]*) objformat=aout ;;
18698 *) objformat=elf ;;
18699 esac
18700 fi
18701 version_type=freebsd-$objformat
18702 case $version_type in
18703 freebsd-elf*)
18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18705 need_version=no
18706 need_lib_prefix=no
18707 ;;
18708 freebsd-*)
18709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18710 need_version=yes
18711 ;;
18712 esac
18713 shlibpath_var=LD_LIBRARY_PATH
18714 case $host_os in
18715 freebsd2*)
18716 shlibpath_overrides_runpath=yes
18717 ;;
18718 freebsd3.[01]* | freebsdelf3.[01]*)
18719 shlibpath_overrides_runpath=yes
18720 hardcode_into_libs=yes
18721 ;;
18722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18724 shlibpath_overrides_runpath=no
18725 hardcode_into_libs=yes
18726 ;;
18727 *) # from 4.6 on, and DragonFly
18728 shlibpath_overrides_runpath=yes
18729 hardcode_into_libs=yes
18730 ;;
18731 esac
18732 ;;
18733
18734 gnu*)
18735 version_type=linux
18736 need_lib_prefix=no
18737 need_version=no
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18739 soname_spec='${libname}${release}${shared_ext}$major'
18740 shlibpath_var=LD_LIBRARY_PATH
18741 hardcode_into_libs=yes
18742 ;;
18743
18744 hpux9* | hpux10* | hpux11*)
18745 # Give a soname corresponding to the major version so that dld.sl refuses to
18746 # link against other versions.
18747 version_type=sunos
18748 need_lib_prefix=no
18749 need_version=no
18750 case $host_cpu in
18751 ia64*)
18752 shrext_cmds='.so'
18753 hardcode_into_libs=yes
18754 dynamic_linker="$host_os dld.so"
18755 shlibpath_var=LD_LIBRARY_PATH
18756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18758 soname_spec='${libname}${release}${shared_ext}$major'
18759 if test "X$HPUX_IA64_MODE" = X32; then
18760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18761 else
18762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18763 fi
18764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18765 ;;
18766 hppa*64*)
18767 shrext_cmds='.sl'
18768 hardcode_into_libs=yes
18769 dynamic_linker="$host_os dld.sl"
18770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18773 soname_spec='${libname}${release}${shared_ext}$major'
18774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18776 ;;
18777 *)
18778 shrext_cmds='.sl'
18779 dynamic_linker="$host_os dld.sl"
18780 shlibpath_var=SHLIB_PATH
18781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783 soname_spec='${libname}${release}${shared_ext}$major'
18784 ;;
18785 esac
18786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18787 postinstall_cmds='chmod 555 $lib'
18788 ;;
18789
18790 interix[3-9]*)
18791 version_type=linux
18792 need_lib_prefix=no
18793 need_version=no
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath=no
18799 hardcode_into_libs=yes
18800 ;;
18801
18802 irix5* | irix6* | nonstopux*)
18803 case $host_os in
18804 nonstopux*) version_type=nonstopux ;;
18805 *)
18806 if test "$lt_cv_prog_gnu_ld" = yes; then
18807 version_type=linux
18808 else
18809 version_type=irix
18810 fi ;;
18811 esac
18812 need_lib_prefix=no
18813 need_version=no
18814 soname_spec='${libname}${release}${shared_ext}$major'
18815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18816 case $host_os in
18817 irix5* | nonstopux*)
18818 libsuff= shlibsuff=
18819 ;;
18820 *)
18821 case $LD in # libtool.m4 will add one of these switches to LD
18822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18823 libsuff= shlibsuff= libmagic=32-bit;;
18824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18825 libsuff=32 shlibsuff=N32 libmagic=N32;;
18826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18828 *) libsuff= shlibsuff= libmagic=never-match;;
18829 esac
18830 ;;
18831 esac
18832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18833 shlibpath_overrides_runpath=no
18834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18836 hardcode_into_libs=yes
18837 ;;
18838
18839 # No shared lib support for Linux oldld, aout, or coff.
18840 linux*oldld* | linux*aout* | linux*coff*)
18841 dynamic_linker=no
18842 ;;
18843
18844 # This must be Linux ELF.
18845 linux* | k*bsd*-gnu)
18846 version_type=linux
18847 need_lib_prefix=no
18848 need_version=no
18849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18850 soname_spec='${libname}${release}${shared_ext}$major'
18851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 shlibpath_overrides_runpath=no
18854 # This implies no fast_install, which is unacceptable.
18855 # Some rework will be needed to allow for fast_install
18856 # before this can be enabled.
18857 hardcode_into_libs=yes
18858 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18859 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18860
18861 # Append ld.so.conf contents to the search path
18862 if test -f /etc/ld.so.conf; then
18863 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18864 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18865 fi
18866
18867 # We used to test for /lib/ld.so.1 and disable shared libraries on
18868 # powerpc, because MkLinux only supported shared libraries with the
18869 # GNU dynamic linker. Since this was broken with cross compilers,
18870 # most powerpc-linux boxes support dynamic linking these days and
18871 # people can always --disable-shared, the test was removed, and we
18872 # assume the GNU/Linux dynamic linker is in use.
18873 dynamic_linker='GNU/Linux ld.so'
18874 ;;
18875
18876 netbsd*)
18877 version_type=sunos
18878 need_lib_prefix=no
18879 need_version=no
18880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18883 dynamic_linker='NetBSD (a.out) ld.so'
18884 else
18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18886 soname_spec='${libname}${release}${shared_ext}$major'
18887 dynamic_linker='NetBSD ld.elf_so'
18888 fi
18889 shlibpath_var=LD_LIBRARY_PATH
18890 shlibpath_overrides_runpath=yes
18891 hardcode_into_libs=yes
18892 ;;
18893
18894 newsos6)
18895 version_type=linux
18896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18897 shlibpath_var=LD_LIBRARY_PATH
18898 shlibpath_overrides_runpath=yes
18899 ;;
18900
18901 nto-qnx*)
18902 version_type=linux
18903 need_lib_prefix=no
18904 need_version=no
18905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18906 soname_spec='${libname}${release}${shared_ext}$major'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath=yes
18909 ;;
18910
18911 openbsd*)
18912 version_type=sunos
18913 sys_lib_dlsearch_path_spec="/usr/lib"
18914 need_lib_prefix=no
18915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18916 case $host_os in
18917 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18918 *) need_version=no ;;
18919 esac
18920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18922 shlibpath_var=LD_LIBRARY_PATH
18923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18924 case $host_os in
18925 openbsd2.[89] | openbsd2.[89].*)
18926 shlibpath_overrides_runpath=no
18927 ;;
18928 *)
18929 shlibpath_overrides_runpath=yes
18930 ;;
18931 esac
18932 else
18933 shlibpath_overrides_runpath=yes
18934 fi
18935 ;;
18936
18937 os2*)
18938 libname_spec='$name'
18939 shrext_cmds=".dll"
18940 need_lib_prefix=no
18941 library_names_spec='$libname${shared_ext} $libname.a'
18942 dynamic_linker='OS/2 ld.exe'
18943 shlibpath_var=LIBPATH
18944 ;;
18945
18946 osf3* | osf4* | osf5*)
18947 version_type=osf
18948 need_lib_prefix=no
18949 need_version=no
18950 soname_spec='${libname}${release}${shared_ext}$major'
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952 shlibpath_var=LD_LIBRARY_PATH
18953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18955 ;;
18956
18957 rdos*)
18958 dynamic_linker=no
18959 ;;
18960
18961 solaris*)
18962 version_type=linux
18963 need_lib_prefix=no
18964 need_version=no
18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18966 soname_spec='${libname}${release}${shared_ext}$major'
18967 shlibpath_var=LD_LIBRARY_PATH
18968 shlibpath_overrides_runpath=yes
18969 hardcode_into_libs=yes
18970 # ldd complains unless libraries are executable
18971 postinstall_cmds='chmod +x $lib'
18972 ;;
18973
18974 sunos4*)
18975 version_type=sunos
18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18978 shlibpath_var=LD_LIBRARY_PATH
18979 shlibpath_overrides_runpath=yes
18980 if test "$with_gnu_ld" = yes; then
18981 need_lib_prefix=no
18982 fi
18983 need_version=yes
18984 ;;
18985
18986 sysv4 | sysv4.3*)
18987 version_type=linux
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989 soname_spec='${libname}${release}${shared_ext}$major'
18990 shlibpath_var=LD_LIBRARY_PATH
18991 case $host_vendor in
18992 sni)
18993 shlibpath_overrides_runpath=no
18994 need_lib_prefix=no
18995 export_dynamic_flag_spec='${wl}-Blargedynsym'
18996 runpath_var=LD_RUN_PATH
18997 ;;
18998 siemens)
18999 need_lib_prefix=no
19000 ;;
19001 motorola)
19002 need_lib_prefix=no
19003 need_version=no
19004 shlibpath_overrides_runpath=no
19005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19006 ;;
19007 esac
19008 ;;
19009
19010 sysv4*MP*)
19011 if test -d /usr/nec ;then
19012 version_type=linux
19013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19014 soname_spec='$libname${shared_ext}.$major'
19015 shlibpath_var=LD_LIBRARY_PATH
19016 fi
19017 ;;
19018
19019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19020 version_type=freebsd-elf
19021 need_lib_prefix=no
19022 need_version=no
19023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19024 soname_spec='${libname}${release}${shared_ext}$major'
19025 shlibpath_var=LD_LIBRARY_PATH
19026 hardcode_into_libs=yes
19027 if test "$with_gnu_ld" = yes; then
19028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19029 shlibpath_overrides_runpath=no
19030 else
19031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19032 shlibpath_overrides_runpath=yes
19033 case $host_os in
19034 sco3.2v5*)
19035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19036 ;;
19037 esac
19038 fi
19039 sys_lib_dlsearch_path_spec='/usr/lib'
19040 ;;
19041
19042 uts4*)
19043 version_type=linux
19044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19045 soname_spec='${libname}${release}${shared_ext}$major'
19046 shlibpath_var=LD_LIBRARY_PATH
19047 ;;
19048
19049 *)
19050 dynamic_linker=no
19051 ;;
19052 esac
19053 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19054 $as_echo "$dynamic_linker" >&6; }
19055 test "$dynamic_linker" = no && can_build_shared=no
19056
19057 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19058 $as_echo_n "(cached) " >&6
19059 else
19060 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19061 fi
19062
19063 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19064 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19065 $as_echo_n "(cached) " >&6
19066 else
19067 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19068 fi
19069
19070 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19071
19072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19073 if test "$GCC" = yes; then
19074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19075 fi
19076
19077 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19078 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19079 hardcode_action_GCJ=
19080 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19081 test -n "$runpath_var_GCJ" || \
19082 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19083
19084 # We can hardcode non-existant directories.
19085 if test "$hardcode_direct_GCJ" != no &&
19086 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19087 # have to relink, otherwise we might link with an installed library
19088 # when we should be linking with a yet-to-be-installed one
19089 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19090 test "$hardcode_minus_L_GCJ" != no; then
19091 # Linking always hardcodes the temporary library directory.
19092 hardcode_action_GCJ=relink
19093 else
19094 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19095 hardcode_action_GCJ=immediate
19096 fi
19097 else
19098 # We cannot hardcode anything, or else we can only hardcode existing
19099 # directories.
19100 hardcode_action_GCJ=unsupported
19101 fi
19102 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19103 $as_echo "$hardcode_action_GCJ" >&6; }
19104
19105 if test "$hardcode_action_GCJ" = relink; then
19106 # Fast installation is not supported
19107 enable_fast_install=no
19108 elif test "$shlibpath_overrides_runpath" = yes ||
19109 test "$enable_shared" = no; then
19110 # Fast installation is not necessary
19111 enable_fast_install=needless
19112 fi
19113
19114
19115 # The else clause should only fire when bootstrapping the
19116 # libtool distribution, otherwise you forgot to ship ltmain.sh
19117 # with your package, and you will get complaints that there are
19118 # no rules to generate ltmain.sh.
19119 if test -f "$ltmain"; then
19120 # See if we are running on zsh, and set the options which allow our commands through
19121 # without removal of \ escapes.
19122 if test -n "${ZSH_VERSION+set}" ; then
19123 setopt NO_GLOB_SUBST
19124 fi
19125 # Now quote all the things that may contain metacharacters while being
19126 # careful not to overquote the AC_SUBSTed values. We take copies of the
19127 # variables and quote the copies for generation of the libtool script.
19128 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19129 SED SHELL STRIP \
19130 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19131 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19132 deplibs_check_method reload_flag reload_cmds need_locks \
19133 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19134 lt_cv_sys_global_symbol_to_c_name_address \
19135 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19136 old_postinstall_cmds old_postuninstall_cmds \
19137 compiler_GCJ \
19138 CC_GCJ \
19139 LD_GCJ \
19140 lt_prog_compiler_wl_GCJ \
19141 lt_prog_compiler_pic_GCJ \
19142 lt_prog_compiler_static_GCJ \
19143 lt_prog_compiler_no_builtin_flag_GCJ \
19144 export_dynamic_flag_spec_GCJ \
19145 thread_safe_flag_spec_GCJ \
19146 whole_archive_flag_spec_GCJ \
19147 enable_shared_with_static_runtimes_GCJ \
19148 old_archive_cmds_GCJ \
19149 old_archive_from_new_cmds_GCJ \
19150 predep_objects_GCJ \
19151 postdep_objects_GCJ \
19152 predeps_GCJ \
19153 postdeps_GCJ \
19154 compiler_lib_search_path_GCJ \
19155 compiler_lib_search_dirs_GCJ \
19156 archive_cmds_GCJ \
19157 archive_expsym_cmds_GCJ \
19158 postinstall_cmds_GCJ \
19159 postuninstall_cmds_GCJ \
19160 old_archive_from_expsyms_cmds_GCJ \
19161 allow_undefined_flag_GCJ \
19162 no_undefined_flag_GCJ \
19163 export_symbols_cmds_GCJ \
19164 hardcode_libdir_flag_spec_GCJ \
19165 hardcode_libdir_flag_spec_ld_GCJ \
19166 hardcode_libdir_separator_GCJ \
19167 hardcode_automatic_GCJ \
19168 module_cmds_GCJ \
19169 module_expsym_cmds_GCJ \
19170 lt_cv_prog_compiler_c_o_GCJ \
19171 fix_srcfile_path_GCJ \
19172 exclude_expsyms_GCJ \
19173 include_expsyms_GCJ; do
19174
19175 case $var in
19176 old_archive_cmds_GCJ | \
19177 old_archive_from_new_cmds_GCJ | \
19178 archive_cmds_GCJ | \
19179 archive_expsym_cmds_GCJ | \
19180 module_cmds_GCJ | \
19181 module_expsym_cmds_GCJ | \
19182 old_archive_from_expsyms_cmds_GCJ | \
19183 export_symbols_cmds_GCJ | \
19184 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19185 postinstall_cmds | postuninstall_cmds | \
19186 old_postinstall_cmds | old_postuninstall_cmds | \
19187 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19188 # Double-quote double-evaled strings.
19189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19190 ;;
19191 *)
19192 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19193 ;;
19194 esac
19195 done
19196
19197 case $lt_echo in
19198 *'\$0 --fallback-echo"')
19199 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19200 ;;
19201 esac
19202
19203 cfgfile="$ofile"
19204
19205 cat <<__EOF__ >> "$cfgfile"
19206 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19207
19208 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19209
19210 # Shell to use when invoking shell scripts.
19211 SHELL=$lt_SHELL
19212
19213 # Whether or not to build shared libraries.
19214 build_libtool_libs=$enable_shared
19215
19216 # Whether or not to build static libraries.
19217 build_old_libs=$enable_static
19218
19219 # Whether or not to add -lc for building shared libraries.
19220 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19221
19222 # Whether or not to disallow shared libs when runtime libs are static
19223 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19224
19225 # Whether or not to optimize for fast installation.
19226 fast_install=$enable_fast_install
19227
19228 # The host system.
19229 host_alias=$host_alias
19230 host=$host
19231 host_os=$host_os
19232
19233 # The build system.
19234 build_alias=$build_alias
19235 build=$build
19236 build_os=$build_os
19237
19238 # An echo program that does not interpret backslashes.
19239 echo=$lt_echo
19240
19241 # The archiver.
19242 AR=$lt_AR
19243 AR_FLAGS=$lt_AR_FLAGS
19244
19245 # A C compiler.
19246 LTCC=$lt_LTCC
19247
19248 # LTCC compiler flags.
19249 LTCFLAGS=$lt_LTCFLAGS
19250
19251 # A language-specific compiler.
19252 CC=$lt_compiler_GCJ
19253
19254 # Is the compiler the GNU C compiler?
19255 with_gcc=$GCC_GCJ
19256
19257 # An ERE matcher.
19258 EGREP=$lt_EGREP
19259
19260 # The linker used to build libraries.
19261 LD=$lt_LD_GCJ
19262
19263 # Whether we need hard or soft links.
19264 LN_S=$lt_LN_S
19265
19266 # A BSD-compatible nm program.
19267 NM=$lt_NM
19268
19269 # A symbol stripping program
19270 STRIP=$lt_STRIP
19271
19272 # Used to examine libraries when file_magic_cmd begins "file"
19273 MAGIC_CMD=$MAGIC_CMD
19274
19275 # Used on cygwin: DLL creation program.
19276 DLLTOOL="$DLLTOOL"
19277
19278 # Used on cygwin: object dumper.
19279 OBJDUMP="$OBJDUMP"
19280
19281 # Used on cygwin: assembler.
19282 AS="$AS"
19283
19284 # The name of the directory that contains temporary libtool files.
19285 objdir=$objdir
19286
19287 # How to create reloadable object files.
19288 reload_flag=$lt_reload_flag
19289 reload_cmds=$lt_reload_cmds
19290
19291 # How to pass a linker flag through the compiler.
19292 wl=$lt_lt_prog_compiler_wl_GCJ
19293
19294 # Object file suffix (normally "o").
19295 objext="$ac_objext"
19296
19297 # Old archive suffix (normally "a").
19298 libext="$libext"
19299
19300 # Shared library suffix (normally ".so").
19301 shrext_cmds='$shrext_cmds'
19302
19303 # Executable file suffix (normally "").
19304 exeext="$exeext"
19305
19306 # Additional compiler flags for building library objects.
19307 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19308 pic_mode=$pic_mode
19309
19310 # What is the maximum length of a command?
19311 max_cmd_len=$lt_cv_sys_max_cmd_len
19312
19313 # Does compiler simultaneously support -c and -o options?
19314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19315
19316 # Must we lock files when doing compilation?
19317 need_locks=$lt_need_locks
19318
19319 # Do we need the lib prefix for modules?
19320 need_lib_prefix=$need_lib_prefix
19321
19322 # Do we need a version for libraries?
19323 need_version=$need_version
19324
19325 # Whether dlopen is supported.
19326 dlopen_support=$enable_dlopen
19327
19328 # Whether dlopen of programs is supported.
19329 dlopen_self=$enable_dlopen_self
19330
19331 # Whether dlopen of statically linked programs is supported.
19332 dlopen_self_static=$enable_dlopen_self_static
19333
19334 # Compiler flag to prevent dynamic linking.
19335 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19336
19337 # Compiler flag to turn off builtin functions.
19338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19339
19340 # Compiler flag to allow reflexive dlopens.
19341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19342
19343 # Compiler flag to generate shared objects directly from archives.
19344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19345
19346 # Compiler flag to generate thread-safe objects.
19347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19348
19349 # Library versioning type.
19350 version_type=$version_type
19351
19352 # Format of library name prefix.
19353 libname_spec=$lt_libname_spec
19354
19355 # List of archive names. First name is the real one, the rest are links.
19356 # The last name is the one that the linker finds with -lNAME.
19357 library_names_spec=$lt_library_names_spec
19358
19359 # The coded name of the library, if different from the real name.
19360 soname_spec=$lt_soname_spec
19361
19362 # Commands used to build and install an old-style archive.
19363 RANLIB=$lt_RANLIB
19364 old_archive_cmds=$lt_old_archive_cmds_GCJ
19365 old_postinstall_cmds=$lt_old_postinstall_cmds
19366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19367
19368 # Create an old-style archive from a shared archive.
19369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19370
19371 # Create a temporary old-style archive to link instead of a shared archive.
19372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19373
19374 # Commands used to build and install a shared archive.
19375 archive_cmds=$lt_archive_cmds_GCJ
19376 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19377 postinstall_cmds=$lt_postinstall_cmds
19378 postuninstall_cmds=$lt_postuninstall_cmds
19379
19380 # Commands used to build a loadable module (assumed same as above if empty)
19381 module_cmds=$lt_module_cmds_GCJ
19382 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19383
19384 # Commands to strip libraries.
19385 old_striplib=$lt_old_striplib
19386 striplib=$lt_striplib
19387
19388 # Dependencies to place before the objects being linked to create a
19389 # shared library.
19390 predep_objects=$lt_predep_objects_GCJ
19391
19392 # Dependencies to place after the objects being linked to create a
19393 # shared library.
19394 postdep_objects=$lt_postdep_objects_GCJ
19395
19396 # Dependencies to place before the objects being linked to create a
19397 # shared library.
19398 predeps=$lt_predeps_GCJ
19399
19400 # Dependencies to place after the objects being linked to create a
19401 # shared library.
19402 postdeps=$lt_postdeps_GCJ
19403
19404 # The directories searched by this compiler when creating a shared
19405 # library
19406 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19407
19408 # The library search path used internally by the compiler when linking
19409 # a shared library.
19410 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19411
19412 # Method to check whether dependent libraries are shared objects.
19413 deplibs_check_method=$lt_deplibs_check_method
19414
19415 # Command to use when deplibs_check_method == file_magic.
19416 file_magic_cmd=$lt_file_magic_cmd
19417
19418 # Flag that allows shared libraries with undefined symbols to be built.
19419 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19420
19421 # Flag that forces no undefined symbols.
19422 no_undefined_flag=$lt_no_undefined_flag_GCJ
19423
19424 # Commands used to finish a libtool library installation in a directory.
19425 finish_cmds=$lt_finish_cmds
19426
19427 # Same as above, but a single script fragment to be evaled but not shown.
19428 finish_eval=$lt_finish_eval
19429
19430 # Take the output of nm and produce a listing of raw symbols and C names.
19431 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19432
19433 # Transform the output of nm in a proper C declaration
19434 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19435
19436 # Transform the output of nm in a C name address pair
19437 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19438
19439 # This is the shared library runtime path variable.
19440 runpath_var=$runpath_var
19441
19442 # This is the shared library path variable.
19443 shlibpath_var=$shlibpath_var
19444
19445 # Is shlibpath searched before the hard-coded library search path?
19446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19447
19448 # How to hardcode a shared library path into an executable.
19449 hardcode_action=$hardcode_action_GCJ
19450
19451 # Whether we should hardcode library paths into libraries.
19452 hardcode_into_libs=$hardcode_into_libs
19453
19454 # Flag to hardcode \$libdir into a binary during linking.
19455 # This must work even if \$libdir does not exist.
19456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19457
19458 # If ld is used when linking, flag to hardcode \$libdir into
19459 # a binary during linking. This must work even if \$libdir does
19460 # not exist.
19461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19462
19463 # Whether we need a single -rpath flag with a separated argument.
19464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19465
19466 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19467 # resulting binary.
19468 hardcode_direct=$hardcode_direct_GCJ
19469
19470 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19471 # resulting binary.
19472 hardcode_minus_L=$hardcode_minus_L_GCJ
19473
19474 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19475 # the resulting binary.
19476 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19477
19478 # Set to yes if building a shared library automatically hardcodes DIR into the library
19479 # and all subsequent libraries and executables linked against it.
19480 hardcode_automatic=$hardcode_automatic_GCJ
19481
19482 # Variables whose values should be saved in libtool wrapper scripts and
19483 # restored at relink time.
19484 variables_saved_for_relink="$variables_saved_for_relink"
19485
19486 # Whether libtool must link a program against all its dependency libraries.
19487 link_all_deplibs=$link_all_deplibs_GCJ
19488
19489 # Compile-time system search path for libraries
19490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19491
19492 # Run-time system search path for libraries
19493 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19494
19495 # Fix the shell variable \$srcfile for the compiler.
19496 fix_srcfile_path=$lt_fix_srcfile_path
19497
19498 # Set to yes if exported symbols are required.
19499 always_export_symbols=$always_export_symbols_GCJ
19500
19501 # The commands to list exported symbols.
19502 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19503
19504 # The commands to extract the exported symbol list from a shared archive.
19505 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19506
19507 # Symbols that should not be listed in the preloaded symbols.
19508 exclude_expsyms=$lt_exclude_expsyms_GCJ
19509
19510 # Symbols that must always be exported.
19511 include_expsyms=$lt_include_expsyms_GCJ
19512
19513 # ### END LIBTOOL TAG CONFIG: $tagname
19514
19515 __EOF__
19516
19517
19518 else
19519 # If there is no Makefile yet, we rely on a make rule to execute
19520 # `config.status --recheck' to rerun these tests and create the
19521 # libtool script then.
19522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19523 if test -f "$ltmain_in"; then
19524 test -f Makefile && make "$ltmain"
19525 fi
19526 fi
19527
19528
19529 ac_ext=c
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535 CC="$lt_save_CC"
19536
19537 else
19538 tagname=""
19539 fi
19540 ;;
19541
19542 RC)
19543
19544
19545 # Source file extension for RC test sources.
19546 ac_ext=rc
19547
19548 # Object file extension for compiled RC test sources.
19549 objext=o
19550 objext_RC=$objext
19551
19552 # Code to be used in simple compile tests
19553 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19554
19555 # Code to be used in simple link tests
19556 lt_simple_link_test_code="$lt_simple_compile_test_code"
19557
19558 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19559
19560 # If no C compiler was specified, use CC.
19561 LTCC=${LTCC-"$CC"}
19562
19563 # If no C compiler flags were specified, use CFLAGS.
19564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19565
19566 # Allow CC to be a program name with arguments.
19567 compiler=$CC
19568
19569
19570 # save warnings/boilerplate of simple test code
19571 ac_outfile=conftest.$ac_objext
19572 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19573 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19574 _lt_compiler_boilerplate=`cat conftest.err`
19575 $rm conftest*
19576
19577 ac_outfile=conftest.$ac_objext
19578 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19579 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19580 _lt_linker_boilerplate=`cat conftest.err`
19581 $rm -r conftest*
19582
19583
19584 # Allow CC to be a program name with arguments.
19585 lt_save_CC="$CC"
19586 CC=${RC-"windres"}
19587 compiler=$CC
19588 compiler_RC=$CC
19589 for cc_temp in $compiler""; do
19590 case $cc_temp in
19591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19593 \-*) ;;
19594 *) break;;
19595 esac
19596 done
19597 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19598
19599 lt_cv_prog_compiler_c_o_RC=yes
19600
19601 # The else clause should only fire when bootstrapping the
19602 # libtool distribution, otherwise you forgot to ship ltmain.sh
19603 # with your package, and you will get complaints that there are
19604 # no rules to generate ltmain.sh.
19605 if test -f "$ltmain"; then
19606 # See if we are running on zsh, and set the options which allow our commands through
19607 # without removal of \ escapes.
19608 if test -n "${ZSH_VERSION+set}" ; then
19609 setopt NO_GLOB_SUBST
19610 fi
19611 # Now quote all the things that may contain metacharacters while being
19612 # careful not to overquote the AC_SUBSTed values. We take copies of the
19613 # variables and quote the copies for generation of the libtool script.
19614 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19615 SED SHELL STRIP \
19616 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19617 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19618 deplibs_check_method reload_flag reload_cmds need_locks \
19619 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19620 lt_cv_sys_global_symbol_to_c_name_address \
19621 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19622 old_postinstall_cmds old_postuninstall_cmds \
19623 compiler_RC \
19624 CC_RC \
19625 LD_RC \
19626 lt_prog_compiler_wl_RC \
19627 lt_prog_compiler_pic_RC \
19628 lt_prog_compiler_static_RC \
19629 lt_prog_compiler_no_builtin_flag_RC \
19630 export_dynamic_flag_spec_RC \
19631 thread_safe_flag_spec_RC \
19632 whole_archive_flag_spec_RC \
19633 enable_shared_with_static_runtimes_RC \
19634 old_archive_cmds_RC \
19635 old_archive_from_new_cmds_RC \
19636 predep_objects_RC \
19637 postdep_objects_RC \
19638 predeps_RC \
19639 postdeps_RC \
19640 compiler_lib_search_path_RC \
19641 compiler_lib_search_dirs_RC \
19642 archive_cmds_RC \
19643 archive_expsym_cmds_RC \
19644 postinstall_cmds_RC \
19645 postuninstall_cmds_RC \
19646 old_archive_from_expsyms_cmds_RC \
19647 allow_undefined_flag_RC \
19648 no_undefined_flag_RC \
19649 export_symbols_cmds_RC \
19650 hardcode_libdir_flag_spec_RC \
19651 hardcode_libdir_flag_spec_ld_RC \
19652 hardcode_libdir_separator_RC \
19653 hardcode_automatic_RC \
19654 module_cmds_RC \
19655 module_expsym_cmds_RC \
19656 lt_cv_prog_compiler_c_o_RC \
19657 fix_srcfile_path_RC \
19658 exclude_expsyms_RC \
19659 include_expsyms_RC; do
19660
19661 case $var in
19662 old_archive_cmds_RC | \
19663 old_archive_from_new_cmds_RC | \
19664 archive_cmds_RC | \
19665 archive_expsym_cmds_RC | \
19666 module_cmds_RC | \
19667 module_expsym_cmds_RC | \
19668 old_archive_from_expsyms_cmds_RC | \
19669 export_symbols_cmds_RC | \
19670 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19671 postinstall_cmds | postuninstall_cmds | \
19672 old_postinstall_cmds | old_postuninstall_cmds | \
19673 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19674 # Double-quote double-evaled strings.
19675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19676 ;;
19677 *)
19678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19679 ;;
19680 esac
19681 done
19682
19683 case $lt_echo in
19684 *'\$0 --fallback-echo"')
19685 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19686 ;;
19687 esac
19688
19689 cfgfile="$ofile"
19690
19691 cat <<__EOF__ >> "$cfgfile"
19692 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19693
19694 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19695
19696 # Shell to use when invoking shell scripts.
19697 SHELL=$lt_SHELL
19698
19699 # Whether or not to build shared libraries.
19700 build_libtool_libs=$enable_shared
19701
19702 # Whether or not to build static libraries.
19703 build_old_libs=$enable_static
19704
19705 # Whether or not to add -lc for building shared libraries.
19706 build_libtool_need_lc=$archive_cmds_need_lc_RC
19707
19708 # Whether or not to disallow shared libs when runtime libs are static
19709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19710
19711 # Whether or not to optimize for fast installation.
19712 fast_install=$enable_fast_install
19713
19714 # The host system.
19715 host_alias=$host_alias
19716 host=$host
19717 host_os=$host_os
19718
19719 # The build system.
19720 build_alias=$build_alias
19721 build=$build
19722 build_os=$build_os
19723
19724 # An echo program that does not interpret backslashes.
19725 echo=$lt_echo
19726
19727 # The archiver.
19728 AR=$lt_AR
19729 AR_FLAGS=$lt_AR_FLAGS
19730
19731 # A C compiler.
19732 LTCC=$lt_LTCC
19733
19734 # LTCC compiler flags.
19735 LTCFLAGS=$lt_LTCFLAGS
19736
19737 # A language-specific compiler.
19738 CC=$lt_compiler_RC
19739
19740 # Is the compiler the GNU C compiler?
19741 with_gcc=$GCC_RC
19742
19743 # An ERE matcher.
19744 EGREP=$lt_EGREP
19745
19746 # The linker used to build libraries.
19747 LD=$lt_LD_RC
19748
19749 # Whether we need hard or soft links.
19750 LN_S=$lt_LN_S
19751
19752 # A BSD-compatible nm program.
19753 NM=$lt_NM
19754
19755 # A symbol stripping program
19756 STRIP=$lt_STRIP
19757
19758 # Used to examine libraries when file_magic_cmd begins "file"
19759 MAGIC_CMD=$MAGIC_CMD
19760
19761 # Used on cygwin: DLL creation program.
19762 DLLTOOL="$DLLTOOL"
19763
19764 # Used on cygwin: object dumper.
19765 OBJDUMP="$OBJDUMP"
19766
19767 # Used on cygwin: assembler.
19768 AS="$AS"
19769
19770 # The name of the directory that contains temporary libtool files.
19771 objdir=$objdir
19772
19773 # How to create reloadable object files.
19774 reload_flag=$lt_reload_flag
19775 reload_cmds=$lt_reload_cmds
19776
19777 # How to pass a linker flag through the compiler.
19778 wl=$lt_lt_prog_compiler_wl_RC
19779
19780 # Object file suffix (normally "o").
19781 objext="$ac_objext"
19782
19783 # Old archive suffix (normally "a").
19784 libext="$libext"
19785
19786 # Shared library suffix (normally ".so").
19787 shrext_cmds='$shrext_cmds'
19788
19789 # Executable file suffix (normally "").
19790 exeext="$exeext"
19791
19792 # Additional compiler flags for building library objects.
19793 pic_flag=$lt_lt_prog_compiler_pic_RC
19794 pic_mode=$pic_mode
19795
19796 # What is the maximum length of a command?
19797 max_cmd_len=$lt_cv_sys_max_cmd_len
19798
19799 # Does compiler simultaneously support -c and -o options?
19800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19801
19802 # Must we lock files when doing compilation?
19803 need_locks=$lt_need_locks
19804
19805 # Do we need the lib prefix for modules?
19806 need_lib_prefix=$need_lib_prefix
19807
19808 # Do we need a version for libraries?
19809 need_version=$need_version
19810
19811 # Whether dlopen is supported.
19812 dlopen_support=$enable_dlopen
19813
19814 # Whether dlopen of programs is supported.
19815 dlopen_self=$enable_dlopen_self
19816
19817 # Whether dlopen of statically linked programs is supported.
19818 dlopen_self_static=$enable_dlopen_self_static
19819
19820 # Compiler flag to prevent dynamic linking.
19821 link_static_flag=$lt_lt_prog_compiler_static_RC
19822
19823 # Compiler flag to turn off builtin functions.
19824 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19825
19826 # Compiler flag to allow reflexive dlopens.
19827 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19828
19829 # Compiler flag to generate shared objects directly from archives.
19830 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19831
19832 # Compiler flag to generate thread-safe objects.
19833 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19834
19835 # Library versioning type.
19836 version_type=$version_type
19837
19838 # Format of library name prefix.
19839 libname_spec=$lt_libname_spec
19840
19841 # List of archive names. First name is the real one, the rest are links.
19842 # The last name is the one that the linker finds with -lNAME.
19843 library_names_spec=$lt_library_names_spec
19844
19845 # The coded name of the library, if different from the real name.
19846 soname_spec=$lt_soname_spec
19847
19848 # Commands used to build and install an old-style archive.
19849 RANLIB=$lt_RANLIB
19850 old_archive_cmds=$lt_old_archive_cmds_RC
19851 old_postinstall_cmds=$lt_old_postinstall_cmds
19852 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19853
19854 # Create an old-style archive from a shared archive.
19855 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19856
19857 # Create a temporary old-style archive to link instead of a shared archive.
19858 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19859
19860 # Commands used to build and install a shared archive.
19861 archive_cmds=$lt_archive_cmds_RC
19862 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19863 postinstall_cmds=$lt_postinstall_cmds
19864 postuninstall_cmds=$lt_postuninstall_cmds
19865
19866 # Commands used to build a loadable module (assumed same as above if empty)
19867 module_cmds=$lt_module_cmds_RC
19868 module_expsym_cmds=$lt_module_expsym_cmds_RC
19869
19870 # Commands to strip libraries.
19871 old_striplib=$lt_old_striplib
19872 striplib=$lt_striplib
19873
19874 # Dependencies to place before the objects being linked to create a
19875 # shared library.
19876 predep_objects=$lt_predep_objects_RC
19877
19878 # Dependencies to place after the objects being linked to create a
19879 # shared library.
19880 postdep_objects=$lt_postdep_objects_RC
19881
19882 # Dependencies to place before the objects being linked to create a
19883 # shared library.
19884 predeps=$lt_predeps_RC
19885
19886 # Dependencies to place after the objects being linked to create a
19887 # shared library.
19888 postdeps=$lt_postdeps_RC
19889
19890 # The directories searched by this compiler when creating a shared
19891 # library
19892 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19893
19894 # The library search path used internally by the compiler when linking
19895 # a shared library.
19896 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19897
19898 # Method to check whether dependent libraries are shared objects.
19899 deplibs_check_method=$lt_deplibs_check_method
19900
19901 # Command to use when deplibs_check_method == file_magic.
19902 file_magic_cmd=$lt_file_magic_cmd
19903
19904 # Flag that allows shared libraries with undefined symbols to be built.
19905 allow_undefined_flag=$lt_allow_undefined_flag_RC
19906
19907 # Flag that forces no undefined symbols.
19908 no_undefined_flag=$lt_no_undefined_flag_RC
19909
19910 # Commands used to finish a libtool library installation in a directory.
19911 finish_cmds=$lt_finish_cmds
19912
19913 # Same as above, but a single script fragment to be evaled but not shown.
19914 finish_eval=$lt_finish_eval
19915
19916 # Take the output of nm and produce a listing of raw symbols and C names.
19917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19918
19919 # Transform the output of nm in a proper C declaration
19920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19921
19922 # Transform the output of nm in a C name address pair
19923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19924
19925 # This is the shared library runtime path variable.
19926 runpath_var=$runpath_var
19927
19928 # This is the shared library path variable.
19929 shlibpath_var=$shlibpath_var
19930
19931 # Is shlibpath searched before the hard-coded library search path?
19932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19933
19934 # How to hardcode a shared library path into an executable.
19935 hardcode_action=$hardcode_action_RC
19936
19937 # Whether we should hardcode library paths into libraries.
19938 hardcode_into_libs=$hardcode_into_libs
19939
19940 # Flag to hardcode \$libdir into a binary during linking.
19941 # This must work even if \$libdir does not exist.
19942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19943
19944 # If ld is used when linking, flag to hardcode \$libdir into
19945 # a binary during linking. This must work even if \$libdir does
19946 # not exist.
19947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19948
19949 # Whether we need a single -rpath flag with a separated argument.
19950 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19951
19952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19953 # resulting binary.
19954 hardcode_direct=$hardcode_direct_RC
19955
19956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19957 # resulting binary.
19958 hardcode_minus_L=$hardcode_minus_L_RC
19959
19960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19961 # the resulting binary.
19962 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19963
19964 # Set to yes if building a shared library automatically hardcodes DIR into the library
19965 # and all subsequent libraries and executables linked against it.
19966 hardcode_automatic=$hardcode_automatic_RC
19967
19968 # Variables whose values should be saved in libtool wrapper scripts and
19969 # restored at relink time.
19970 variables_saved_for_relink="$variables_saved_for_relink"
19971
19972 # Whether libtool must link a program against all its dependency libraries.
19973 link_all_deplibs=$link_all_deplibs_RC
19974
19975 # Compile-time system search path for libraries
19976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19977
19978 # Run-time system search path for libraries
19979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19980
19981 # Fix the shell variable \$srcfile for the compiler.
19982 fix_srcfile_path=$lt_fix_srcfile_path
19983
19984 # Set to yes if exported symbols are required.
19985 always_export_symbols=$always_export_symbols_RC
19986
19987 # The commands to list exported symbols.
19988 export_symbols_cmds=$lt_export_symbols_cmds_RC
19989
19990 # The commands to extract the exported symbol list from a shared archive.
19991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19992
19993 # Symbols that should not be listed in the preloaded symbols.
19994 exclude_expsyms=$lt_exclude_expsyms_RC
19995
19996 # Symbols that must always be exported.
19997 include_expsyms=$lt_include_expsyms_RC
19998
19999 # ### END LIBTOOL TAG CONFIG: $tagname
20000
20001 __EOF__
20002
20003
20004 else
20005 # If there is no Makefile yet, we rely on a make rule to execute
20006 # `config.status --recheck' to rerun these tests and create the
20007 # libtool script then.
20008 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20009 if test -f "$ltmain_in"; then
20010 test -f Makefile && make "$ltmain"
20011 fi
20012 fi
20013
20014
20015 ac_ext=c
20016 ac_cpp='$CPP $CPPFLAGS'
20017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20020
20021 CC="$lt_save_CC"
20022
20023 ;;
20024
20025 *)
20026 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20027 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20028 { (exit 1); exit 1; }; }
20029 ;;
20030 esac
20031
20032 # Append the new tag name to the list of available tags.
20033 if test -n "$tagname" ; then
20034 available_tags="$available_tags $tagname"
20035 fi
20036 fi
20037 done
20038 IFS="$lt_save_ifs"
20039
20040 # Now substitute the updated list of available tags.
20041 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20042 mv "${ofile}T" "$ofile"
20043 chmod +x "$ofile"
20044 else
20045 rm -f "${ofile}T"
20046 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20047 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20048 { (exit 1); exit 1; }; }
20049 fi
20050 fi
20051
20052
20053
20054 # This can be used to rebuild libtool when needed
20055 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20056
20057 # Always use our own libtool.
20058 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20059
20060 # Prevent multiple expansion
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081 ac_ext=c
20082 ac_cpp='$CPP $CPPFLAGS'
20083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086 if test -n "$ac_tool_prefix"; then
20087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20090 $as_echo_n "checking for $ac_word... " >&6; }
20091 if test "${ac_cv_prog_CC+set}" = set; then
20092 $as_echo_n "(cached) " >&6
20093 else
20094 if test -n "$CC"; then
20095 ac_cv_prog_CC="$CC" # Let the user override the test.
20096 else
20097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20098 for as_dir in $PATH
20099 do
20100 IFS=$as_save_IFS
20101 test -z "$as_dir" && as_dir=.
20102 for ac_exec_ext in '' $ac_executable_extensions; do
20103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20104 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20106 break 2
20107 fi
20108 done
20109 done
20110 IFS=$as_save_IFS
20111
20112 fi
20113 fi
20114 CC=$ac_cv_prog_CC
20115 if test -n "$CC"; then
20116 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20117 $as_echo "$CC" >&6; }
20118 else
20119 { $as_echo "$as_me:$LINENO: result: no" >&5
20120 $as_echo "no" >&6; }
20121 fi
20122
20123
20124 fi
20125 if test -z "$ac_cv_prog_CC"; then
20126 ac_ct_CC=$CC
20127 # Extract the first word of "gcc", so it can be a program name with args.
20128 set dummy gcc; ac_word=$2
20129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20130 $as_echo_n "checking for $ac_word... " >&6; }
20131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20132 $as_echo_n "(cached) " >&6
20133 else
20134 if test -n "$ac_ct_CC"; then
20135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20136 else
20137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20138 for as_dir in $PATH
20139 do
20140 IFS=$as_save_IFS
20141 test -z "$as_dir" && as_dir=.
20142 for ac_exec_ext in '' $ac_executable_extensions; do
20143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20144 ac_cv_prog_ac_ct_CC="gcc"
20145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20146 break 2
20147 fi
20148 done
20149 done
20150 IFS=$as_save_IFS
20151
20152 fi
20153 fi
20154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20155 if test -n "$ac_ct_CC"; then
20156 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20157 $as_echo "$ac_ct_CC" >&6; }
20158 else
20159 { $as_echo "$as_me:$LINENO: result: no" >&5
20160 $as_echo "no" >&6; }
20161 fi
20162
20163 if test "x$ac_ct_CC" = x; then
20164 CC=""
20165 else
20166 case $cross_compiling:$ac_tool_warned in
20167 yes:)
20168 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20170 ac_tool_warned=yes ;;
20171 esac
20172 CC=$ac_ct_CC
20173 fi
20174 else
20175 CC="$ac_cv_prog_CC"
20176 fi
20177
20178 if test -z "$CC"; then
20179 if test -n "$ac_tool_prefix"; then
20180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20181 set dummy ${ac_tool_prefix}cc; ac_word=$2
20182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20183 $as_echo_n "checking for $ac_word... " >&6; }
20184 if test "${ac_cv_prog_CC+set}" = set; then
20185 $as_echo_n "(cached) " >&6
20186 else
20187 if test -n "$CC"; then
20188 ac_cv_prog_CC="$CC" # Let the user override the test.
20189 else
20190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20191 for as_dir in $PATH
20192 do
20193 IFS=$as_save_IFS
20194 test -z "$as_dir" && as_dir=.
20195 for ac_exec_ext in '' $ac_executable_extensions; do
20196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20197 ac_cv_prog_CC="${ac_tool_prefix}cc"
20198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20199 break 2
20200 fi
20201 done
20202 done
20203 IFS=$as_save_IFS
20204
20205 fi
20206 fi
20207 CC=$ac_cv_prog_CC
20208 if test -n "$CC"; then
20209 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20210 $as_echo "$CC" >&6; }
20211 else
20212 { $as_echo "$as_me:$LINENO: result: no" >&5
20213 $as_echo "no" >&6; }
20214 fi
20215
20216
20217 fi
20218 fi
20219 if test -z "$CC"; then
20220 # Extract the first word of "cc", so it can be a program name with args.
20221 set dummy cc; ac_word=$2
20222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20223 $as_echo_n "checking for $ac_word... " >&6; }
20224 if test "${ac_cv_prog_CC+set}" = set; then
20225 $as_echo_n "(cached) " >&6
20226 else
20227 if test -n "$CC"; then
20228 ac_cv_prog_CC="$CC" # Let the user override the test.
20229 else
20230 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20239 ac_prog_rejected=yes
20240 continue
20241 fi
20242 ac_cv_prog_CC="cc"
20243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20244 break 2
20245 fi
20246 done
20247 done
20248 IFS=$as_save_IFS
20249
20250 if test $ac_prog_rejected = yes; then
20251 # We found a bogon in the path, so make sure we never use it.
20252 set dummy $ac_cv_prog_CC
20253 shift
20254 if test $# != 0; then
20255 # We chose a different compiler from the bogus one.
20256 # However, it has the same basename, so the bogon will be chosen
20257 # first if we set CC to just the basename; use the full file name.
20258 shift
20259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20260 fi
20261 fi
20262 fi
20263 fi
20264 CC=$ac_cv_prog_CC
20265 if test -n "$CC"; then
20266 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20267 $as_echo "$CC" >&6; }
20268 else
20269 { $as_echo "$as_me:$LINENO: result: no" >&5
20270 $as_echo "no" >&6; }
20271 fi
20272
20273
20274 fi
20275 if test -z "$CC"; then
20276 if test -n "$ac_tool_prefix"; then
20277 for ac_prog in cl.exe
20278 do
20279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20282 $as_echo_n "checking for $ac_word... " >&6; }
20283 if test "${ac_cv_prog_CC+set}" = set; then
20284 $as_echo_n "(cached) " >&6
20285 else
20286 if test -n "$CC"; then
20287 ac_cv_prog_CC="$CC" # Let the user override the test.
20288 else
20289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20290 for as_dir in $PATH
20291 do
20292 IFS=$as_save_IFS
20293 test -z "$as_dir" && as_dir=.
20294 for ac_exec_ext in '' $ac_executable_extensions; do
20295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20298 break 2
20299 fi
20300 done
20301 done
20302 IFS=$as_save_IFS
20303
20304 fi
20305 fi
20306 CC=$ac_cv_prog_CC
20307 if test -n "$CC"; then
20308 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20309 $as_echo "$CC" >&6; }
20310 else
20311 { $as_echo "$as_me:$LINENO: result: no" >&5
20312 $as_echo "no" >&6; }
20313 fi
20314
20315
20316 test -n "$CC" && break
20317 done
20318 fi
20319 if test -z "$CC"; then
20320 ac_ct_CC=$CC
20321 for ac_prog in cl.exe
20322 do
20323 # Extract the first word of "$ac_prog", so it can be a program name with args.
20324 set dummy $ac_prog; ac_word=$2
20325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20326 $as_echo_n "checking for $ac_word... " >&6; }
20327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20328 $as_echo_n "(cached) " >&6
20329 else
20330 if test -n "$ac_ct_CC"; then
20331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20332 else
20333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20334 for as_dir in $PATH
20335 do
20336 IFS=$as_save_IFS
20337 test -z "$as_dir" && as_dir=.
20338 for ac_exec_ext in '' $ac_executable_extensions; do
20339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20340 ac_cv_prog_ac_ct_CC="$ac_prog"
20341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20342 break 2
20343 fi
20344 done
20345 done
20346 IFS=$as_save_IFS
20347
20348 fi
20349 fi
20350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20351 if test -n "$ac_ct_CC"; then
20352 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20353 $as_echo "$ac_ct_CC" >&6; }
20354 else
20355 { $as_echo "$as_me:$LINENO: result: no" >&5
20356 $as_echo "no" >&6; }
20357 fi
20358
20359
20360 test -n "$ac_ct_CC" && break
20361 done
20362
20363 if test "x$ac_ct_CC" = x; then
20364 CC=""
20365 else
20366 case $cross_compiling:$ac_tool_warned in
20367 yes:)
20368 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20370 ac_tool_warned=yes ;;
20371 esac
20372 CC=$ac_ct_CC
20373 fi
20374 fi
20375
20376 fi
20377
20378
20379 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20381 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20382 See \`config.log' for more details." >&5
20383 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20384 See \`config.log' for more details." >&2;}
20385 { (exit 1); exit 1; }; }; }
20386
20387 # Provide some information about the compiler.
20388 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20389 set X $ac_compile
20390 ac_compiler=$2
20391 { (ac_try="$ac_compiler --version >&5"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395 esac
20396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20397 $as_echo "$ac_try_echo") >&5
20398 (eval "$ac_compiler --version >&5") 2>&5
20399 ac_status=$?
20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }
20402 { (ac_try="$ac_compiler -v >&5"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406 esac
20407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20408 $as_echo "$ac_try_echo") >&5
20409 (eval "$ac_compiler -v >&5") 2>&5
20410 ac_status=$?
20411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }
20413 { (ac_try="$ac_compiler -V >&5"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417 esac
20418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20419 $as_echo "$ac_try_echo") >&5
20420 (eval "$ac_compiler -V >&5") 2>&5
20421 ac_status=$?
20422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }
20424
20425 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20426 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20428 $as_echo_n "(cached) " >&6
20429 else
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436
20437 int
20438 main ()
20439 {
20440 #ifndef __GNUC__
20441 choke me
20442 #endif
20443
20444 ;
20445 return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext
20449 if { (ac_try="$ac_compile"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453 esac
20454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20455 $as_echo "$ac_try_echo") >&5
20456 (eval "$ac_compile") 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest.$ac_objext; then
20466 ac_compiler_gnu=yes
20467 else
20468 $as_echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_compiler_gnu=no
20472 fi
20473
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20476
20477 fi
20478 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20479 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20480 if test $ac_compiler_gnu = yes; then
20481 GCC=yes
20482 else
20483 GCC=
20484 fi
20485 ac_test_CFLAGS=${CFLAGS+set}
20486 ac_save_CFLAGS=$CFLAGS
20487 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20488 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20489 if test "${ac_cv_prog_cc_g+set}" = set; then
20490 $as_echo_n "(cached) " >&6
20491 else
20492 ac_save_c_werror_flag=$ac_c_werror_flag
20493 ac_c_werror_flag=yes
20494 ac_cv_prog_cc_g=no
20495 CFLAGS="-g"
20496 cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h. */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502
20503 int
20504 main ()
20505 {
20506
20507 ;
20508 return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (ac_try="$ac_compile"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20516 esac
20517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20518 $as_echo "$ac_try_echo") >&5
20519 (eval "$ac_compile") 2>conftest.er1
20520 ac_status=$?
20521 grep -v '^ *+' conftest.er1 >conftest.err
20522 rm -f conftest.er1
20523 cat conftest.err >&5
20524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } && {
20526 test -z "$ac_c_werror_flag" ||
20527 test ! -s conftest.err
20528 } && test -s conftest.$ac_objext; then
20529 ac_cv_prog_cc_g=yes
20530 else
20531 $as_echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20533
20534 CFLAGS=""
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541
20542 int
20543 main ()
20544 {
20545
20546 ;
20547 return 0;
20548 }
20549 _ACEOF
20550 rm -f conftest.$ac_objext
20551 if { (ac_try="$ac_compile"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20557 $as_echo "$ac_try_echo") >&5
20558 (eval "$ac_compile") 2>conftest.er1
20559 ac_status=$?
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
20563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } && {
20565 test -z "$ac_c_werror_flag" ||
20566 test ! -s conftest.err
20567 } && test -s conftest.$ac_objext; then
20568 :
20569 else
20570 $as_echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 ac_c_werror_flag=$ac_save_c_werror_flag
20574 CFLAGS="-g"
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581
20582 int
20583 main ()
20584 {
20585
20586 ;
20587 return 0;
20588 }
20589 _ACEOF
20590 rm -f conftest.$ac_objext
20591 if { (ac_try="$ac_compile"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595 esac
20596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20597 $as_echo "$ac_try_echo") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
20608 ac_cv_prog_cc_g=yes
20609 else
20610 $as_echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 fi
20618
20619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 fi
20621
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 ac_c_werror_flag=$ac_save_c_werror_flag
20624 fi
20625 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20626 $as_echo "$ac_cv_prog_cc_g" >&6; }
20627 if test "$ac_test_CFLAGS" = set; then
20628 CFLAGS=$ac_save_CFLAGS
20629 elif test $ac_cv_prog_cc_g = yes; then
20630 if test "$GCC" = yes; then
20631 CFLAGS="-g -O2"
20632 else
20633 CFLAGS="-g"
20634 fi
20635 else
20636 if test "$GCC" = yes; then
20637 CFLAGS="-O2"
20638 else
20639 CFLAGS=
20640 fi
20641 fi
20642 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20643 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20644 if test "${ac_cv_prog_cc_c89+set}" = set; then
20645 $as_echo_n "(cached) " >&6
20646 else
20647 ac_cv_prog_cc_c89=no
20648 ac_save_CC=$CC
20649 cat >conftest.$ac_ext <<_ACEOF
20650 /* confdefs.h. */
20651 _ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20655 #include <stdarg.h>
20656 #include <stdio.h>
20657 #include <sys/types.h>
20658 #include <sys/stat.h>
20659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20660 struct buf { int x; };
20661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20662 static char *e (p, i)
20663 char **p;
20664 int i;
20665 {
20666 return p[i];
20667 }
20668 static char *f (char * (*g) (char **, int), char **p, ...)
20669 {
20670 char *s;
20671 va_list v;
20672 va_start (v,p);
20673 s = g (p, va_arg (v,int));
20674 va_end (v);
20675 return s;
20676 }
20677
20678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20679 function prototypes and stuff, but not '\xHH' hex character constants.
20680 These don't provoke an error unfortunately, instead are silently treated
20681 as 'x'. The following induces an error, until -std is added to get
20682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20683 array size at least. It's necessary to write '\x00'==0 to get something
20684 that's true only with -std. */
20685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20686
20687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20688 inside strings and character constants. */
20689 #define FOO(x) 'x'
20690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20691
20692 int test (int i, double x);
20693 struct s1 {int (*f) (int a);};
20694 struct s2 {int (*f) (double a);};
20695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20696 int argc;
20697 char **argv;
20698 int
20699 main ()
20700 {
20701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20702 ;
20703 return 0;
20704 }
20705 _ACEOF
20706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20708 do
20709 CC="$ac_save_CC $ac_arg"
20710 rm -f conftest.$ac_objext
20711 if { (ac_try="$ac_compile"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20715 esac
20716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20717 $as_echo "$ac_try_echo") >&5
20718 (eval "$ac_compile") 2>conftest.er1
20719 ac_status=$?
20720 grep -v '^ *+' conftest.er1 >conftest.err
20721 rm -f conftest.er1
20722 cat conftest.err >&5
20723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } && {
20725 test -z "$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20727 } && test -s conftest.$ac_objext; then
20728 ac_cv_prog_cc_c89=$ac_arg
20729 else
20730 $as_echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733
20734 fi
20735
20736 rm -f core conftest.err conftest.$ac_objext
20737 test "x$ac_cv_prog_cc_c89" != "xno" && break
20738 done
20739 rm -f conftest.$ac_ext
20740 CC=$ac_save_CC
20741
20742 fi
20743 # AC_CACHE_VAL
20744 case "x$ac_cv_prog_cc_c89" in
20745 x)
20746 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20747 $as_echo "none needed" >&6; } ;;
20748 xno)
20749 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20750 $as_echo "unsupported" >&6; } ;;
20751 *)
20752 CC="$CC $ac_cv_prog_cc_c89"
20753 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20755 esac
20756
20757
20758 ac_ext=c
20759 ac_cpp='$CPP $CPPFLAGS'
20760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20763
20764 depcc="$CC" am_compiler_list=
20765
20766 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20767 $as_echo_n "checking dependency style of $depcc... " >&6; }
20768 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20769 $as_echo_n "(cached) " >&6
20770 else
20771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20772 # We make a subdir and do the tests there. Otherwise we can end up
20773 # making bogus files that we don't know about and never remove. For
20774 # instance it was reported that on HP-UX the gcc test will end up
20775 # making a dummy file named `D' -- because `-MD' means `put the output
20776 # in D'.
20777 mkdir conftest.dir
20778 # Copy depcomp to subdir because otherwise we won't find it if we're
20779 # using a relative directory.
20780 cp "$am_depcomp" conftest.dir
20781 cd conftest.dir
20782 # We will build objects and dependencies in a subdirectory because
20783 # it helps to detect inapplicable dependency modes. For instance
20784 # both Tru64's cc and ICC support -MD to output dependencies as a
20785 # side effect of compilation, but ICC will put the dependencies in
20786 # the current directory while Tru64 will put them in the object
20787 # directory.
20788 mkdir sub
20789
20790 am_cv_CC_dependencies_compiler_type=none
20791 if test "$am_compiler_list" = ""; then
20792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20793 fi
20794 am__universal=false
20795 case " $depcc " in #(
20796 *\ -arch\ *\ -arch\ *) am__universal=true ;;
20797 esac
20798
20799 for depmode in $am_compiler_list; do
20800 # Setup a source with many dependencies, because some compilers
20801 # like to wrap large dependency lists on column 80 (with \), and
20802 # we should not choose a depcomp mode which is confused by this.
20803 #
20804 # We need to recreate these files for each test, as the compiler may
20805 # overwrite some of them when testing with obscure command lines.
20806 # This happens at least with the AIX C compiler.
20807 : > sub/conftest.c
20808 for i in 1 2 3 4 5 6; do
20809 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20810 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20811 # Solaris 8's {/usr,}/bin/sh.
20812 touch sub/conftst$i.h
20813 done
20814 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20815
20816 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20817 # mode. It turns out that the SunPro C++ compiler does not properly
20818 # handle `-M -o', and we need to detect this. Also, some Intel
20819 # versions had trouble with output in subdirs
20820 am__obj=sub/conftest.${OBJEXT-o}
20821 am__minus_obj="-o $am__obj"
20822 case $depmode in
20823 gcc)
20824 # This depmode causes a compiler race in universal mode.
20825 test "$am__universal" = false || continue
20826 ;;
20827 nosideeffect)
20828 # after this tag, mechanisms are not by side-effect, so they'll
20829 # only be used when explicitly requested
20830 if test "x$enable_dependency_tracking" = xyes; then
20831 continue
20832 else
20833 break
20834 fi
20835 ;;
20836 msvisualcpp | msvcmsys)
20837 # This compiler won't grok `-c -o', but also, the minuso test has
20838 # not run yet. These depmodes are late enough in the game, and
20839 # so weak that their functioning should not be impacted.
20840 am__obj=conftest.${OBJEXT-o}
20841 am__minus_obj=
20842 ;;
20843 none) break ;;
20844 esac
20845 if depmode=$depmode \
20846 source=sub/conftest.c object=$am__obj \
20847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20848 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20849 >/dev/null 2>conftest.err &&
20850 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20852 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20854 # icc doesn't choke on unknown options, it will just issue warnings
20855 # or remarks (even with -Werror). So we grep stderr for any message
20856 # that says an option was ignored or not supported.
20857 # When given -MP, icc 7.0 and 7.1 complain thusly:
20858 # icc: Command line warning: ignoring option '-M'; no argument required
20859 # The diagnosis changed in icc 8.0:
20860 # icc: Command line remark: option '-MP' not supported
20861 if (grep 'ignoring option' conftest.err ||
20862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20863 am_cv_CC_dependencies_compiler_type=$depmode
20864 break
20865 fi
20866 fi
20867 done
20868
20869 cd ..
20870 rm -rf conftest.dir
20871 else
20872 am_cv_CC_dependencies_compiler_type=none
20873 fi
20874
20875 fi
20876 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20877 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20878 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20879
20880 if
20881 test "x$enable_dependency_tracking" != xno \
20882 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20883 am__fastdepCC_TRUE=
20884 am__fastdepCC_FALSE='#'
20885 else
20886 am__fastdepCC_TRUE='#'
20887 am__fastdepCC_FALSE=
20888 fi
20889
20890
20891
20892
20893
20894
20895
20896 # Check whether --with-xorg-module-dir was given.
20897 if test "${with_xorg_module_dir+set}" = set; then
20898 withval=$with_xorg_module_dir; moduledir="$withval"
20899 else
20900 moduledir="$libdir/xorg/modules"
20901 fi
20902
20903
20904 # Checks for extensions
20905
20906 SAVE_CFLAGS="$CFLAGS"
20907 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914
20915 #include "xorg-server.h"
20916 #if !defined RANDR
20917 #error RANDR not defined
20918 #endif
20919
20920 int
20921 main ()
20922 {
20923
20924 ;
20925 return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (ac_try="$ac_compile"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933 esac
20934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20935 $as_echo "$ac_try_echo") >&5
20936 (eval "$ac_compile") 2>conftest.er1
20937 ac_status=$?
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
20941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } && {
20943 test -z "$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 } && test -s conftest.$ac_objext; then
20946 _EXT_CHECK=yes
20947 else
20948 $as_echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951 _EXT_CHECK=no
20952 fi
20953
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 CFLAGS="$SAVE_CFLAGS"
20956 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20957 $as_echo_n "checking if RANDR is defined... " >&6; }
20958 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20959 $as_echo "$_EXT_CHECK" >&6; }
20960 if test "$_EXT_CHECK" != no; then
20961 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20962 fi
20963
20964
20965 SAVE_CFLAGS="$CFLAGS"
20966 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h. */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973
20974 #include "xorg-server.h"
20975 #if !defined RENDER
20976 #error RENDER not defined
20977 #endif
20978
20979 int
20980 main ()
20981 {
20982
20983 ;
20984 return 0;
20985 }
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992 esac
20993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 _EXT_CHECK=yes
21006 else
21007 $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 _EXT_CHECK=no
21011 fi
21012
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014 CFLAGS="$SAVE_CFLAGS"
21015 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21016 $as_echo_n "checking if RENDER is defined... " >&6; }
21017 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21018 $as_echo "$_EXT_CHECK" >&6; }
21019 if test "$_EXT_CHECK" != no; then
21020 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21021 fi
21022
21023
21024 SAVE_CFLAGS="$CFLAGS"
21025 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h. */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032
21033 #include "xorg-server.h"
21034 #if !defined XV
21035 #error XV not defined
21036 #endif
21037
21038 int
21039 main ()
21040 {
21041
21042 ;
21043 return 0;
21044 }
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21051 esac
21052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21053 $as_echo "$ac_try_echo") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21064 _EXT_CHECK=yes
21065 else
21066 $as_echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069 _EXT_CHECK=no
21070 fi
21071
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 CFLAGS="$SAVE_CFLAGS"
21074 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21075 $as_echo_n "checking if XV is defined... " >&6; }
21076 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21077 $as_echo "$_EXT_CHECK" >&6; }
21078 if test "$_EXT_CHECK" != no; then
21079 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21080 fi
21081
21082
21083 SAVE_CFLAGS="$CFLAGS"
21084 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h. */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091
21092 #include "xorg-server.h"
21093 #if !defined DPMSExtension
21094 #error DPMSExtension not defined
21095 #endif
21096
21097 int
21098 main ()
21099 {
21100
21101 ;
21102 return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (ac_try="$ac_compile"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110 esac
21111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21112 $as_echo "$ac_try_echo") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 _EXT_CHECK=yes
21124 else
21125 $as_echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 _EXT_CHECK=no
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 CFLAGS="$SAVE_CFLAGS"
21133 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21134 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
21135 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21136 $as_echo "$_EXT_CHECK" >&6; }
21137 if test "$_EXT_CHECK" != no; then
21138 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21139 fi
21140
21141
21142 # Checks for pkg-config packages
21143
21144
21145 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21146 if test -n "$ac_tool_prefix"; then
21147 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21148 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21150 $as_echo_n "checking for $ac_word... " >&6; }
21151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21152 $as_echo_n "(cached) " >&6
21153 else
21154 case $PKG_CONFIG in
21155 [\\/]* | ?:[\\/]*)
21156 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21157 ;;
21158 *)
21159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21160 for as_dir in $PATH
21161 do
21162 IFS=$as_save_IFS
21163 test -z "$as_dir" && as_dir=.
21164 for ac_exec_ext in '' $ac_executable_extensions; do
21165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21166 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21168 break 2
21169 fi
21170 done
21171 done
21172 IFS=$as_save_IFS
21173
21174 ;;
21175 esac
21176 fi
21177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21178 if test -n "$PKG_CONFIG"; then
21179 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21180 $as_echo "$PKG_CONFIG" >&6; }
21181 else
21182 { $as_echo "$as_me:$LINENO: result: no" >&5
21183 $as_echo "no" >&6; }
21184 fi
21185
21186
21187 fi
21188 if test -z "$ac_cv_path_PKG_CONFIG"; then
21189 ac_pt_PKG_CONFIG=$PKG_CONFIG
21190 # Extract the first word of "pkg-config", so it can be a program name with args.
21191 set dummy pkg-config; ac_word=$2
21192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21193 $as_echo_n "checking for $ac_word... " >&6; }
21194 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21195 $as_echo_n "(cached) " >&6
21196 else
21197 case $ac_pt_PKG_CONFIG in
21198 [\\/]* | ?:[\\/]*)
21199 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21200 ;;
21201 *)
21202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21203 for as_dir in $PATH
21204 do
21205 IFS=$as_save_IFS
21206 test -z "$as_dir" && as_dir=.
21207 for ac_exec_ext in '' $ac_executable_extensions; do
21208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21209 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21211 break 2
21212 fi
21213 done
21214 done
21215 IFS=$as_save_IFS
21216
21217 ;;
21218 esac
21219 fi
21220 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21221 if test -n "$ac_pt_PKG_CONFIG"; then
21222 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21223 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21224 else
21225 { $as_echo "$as_me:$LINENO: result: no" >&5
21226 $as_echo "no" >&6; }
21227 fi
21228
21229 if test "x$ac_pt_PKG_CONFIG" = x; then
21230 PKG_CONFIG=""
21231 else
21232 case $cross_compiling:$ac_tool_warned in
21233 yes:)
21234 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21236 ac_tool_warned=yes ;;
21237 esac
21238 PKG_CONFIG=$ac_pt_PKG_CONFIG
21239 fi
21240 else
21241 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21242 fi
21243
21244 fi
21245 if test -n "$PKG_CONFIG"; then
21246 _pkg_min_version=0.9.0
21247 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21248 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21249 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21250 { $as_echo "$as_me:$LINENO: result: yes" >&5
21251 $as_echo "yes" >&6; }
21252 else
21253 { $as_echo "$as_me:$LINENO: result: no" >&5
21254 $as_echo "no" >&6; }
21255 PKG_CONFIG=""
21256 fi
21257
21258 fi
21259
21260 pkg_failed=no
21261 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21262 $as_echo_n "checking for XORG... " >&6; }
21263
21264 if test -n "$XORG_CFLAGS"; then
21265 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21266 elif test -n "$PKG_CONFIG"; then
21267 if test -n "$PKG_CONFIG" && \
21268 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21269 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21270 ac_status=$?
21271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; then
21273 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21274 else
21275 pkg_failed=yes
21276 fi
21277 else
21278 pkg_failed=untried
21279 fi
21280 if test -n "$XORG_LIBS"; then
21281 pkg_cv_XORG_LIBS="$XORG_LIBS"
21282 elif test -n "$PKG_CONFIG"; then
21283 if test -n "$PKG_CONFIG" && \
21284 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21285 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21286 ac_status=$?
21287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; then
21289 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21290 else
21291 pkg_failed=yes
21292 fi
21293 else
21294 pkg_failed=untried
21295 fi
21296
21297
21298
21299 if test $pkg_failed = yes; then
21300
21301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21302 _pkg_short_errors_supported=yes
21303 else
21304 _pkg_short_errors_supported=no
21305 fi
21306 if test $_pkg_short_errors_supported = yes; then
21307 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21308 else
21309 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21310 fi
21311 # Put the nasty error message in config.log where it belongs
21312 echo "$XORG_PKG_ERRORS" >&5
21313
21314 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21315
21316 $XORG_PKG_ERRORS
21317
21318 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21319 installed software in a non-standard prefix.
21320
21321 Alternatively, you may set the environment variables XORG_CFLAGS
21322 and XORG_LIBS to avoid the need to call pkg-config.
21323 See the pkg-config man page for more details.
21324 " >&5
21325 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21326
21327 $XORG_PKG_ERRORS
21328
21329 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21330 installed software in a non-standard prefix.
21331
21332 Alternatively, you may set the environment variables XORG_CFLAGS
21333 and XORG_LIBS to avoid the need to call pkg-config.
21334 See the pkg-config man page for more details.
21335 " >&2;}
21336 { (exit 1); exit 1; }; }
21337 elif test $pkg_failed = untried; then
21338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21340 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21341 is in your PATH or set the PKG_CONFIG environment variable to the full
21342 path to pkg-config.
21343
21344 Alternatively, you may set the environment variables XORG_CFLAGS
21345 and XORG_LIBS to avoid the need to call pkg-config.
21346 See the pkg-config man page for more details.
21347
21348 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21349 See \`config.log' for more details." >&5
21350 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21351 is in your PATH or set the PKG_CONFIG environment variable to the full
21352 path to pkg-config.
21353
21354 Alternatively, you may set the environment variables XORG_CFLAGS
21355 and XORG_LIBS to avoid the need to call pkg-config.
21356 See the pkg-config man page for more details.
21357
21358 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21359 See \`config.log' for more details." >&2;}
21360 { (exit 1); exit 1; }; }; }
21361 else
21362 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21363 XORG_LIBS=$pkg_cv_XORG_LIBS
21364 { $as_echo "$as_me:$LINENO: result: yes" >&5
21365 $as_echo "yes" >&6; }
21366 :
21367 fi
21368
21369 pkg_failed=no
21370 { $as_echo "$as_me:$LINENO: checking for XEXT" >&5
21371 $as_echo_n "checking for XEXT... " >&6; }
21372
21373 if test -n "$XEXT_CFLAGS"; then
21374 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
21375 elif test -n "$PKG_CONFIG"; then
21376 if test -n "$PKG_CONFIG" && \
21377 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21378 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21379 ac_status=$?
21380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; then
21382 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
21383 else
21384 pkg_failed=yes
21385 fi
21386 else
21387 pkg_failed=untried
21388 fi
21389 if test -n "$XEXT_LIBS"; then
21390 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
21391 elif test -n "$PKG_CONFIG"; then
21392 if test -n "$PKG_CONFIG" && \
21393 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21394 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21395 ac_status=$?
21396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; then
21398 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
21399 else
21400 pkg_failed=yes
21401 fi
21402 else
21403 pkg_failed=untried
21404 fi
21405
21406
21407
21408 if test $pkg_failed = yes; then
21409
21410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21411 _pkg_short_errors_supported=yes
21412 else
21413 _pkg_short_errors_supported=no
21414 fi
21415 if test $_pkg_short_errors_supported = yes; then
21416 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
21417 else
21418 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
21419 fi
21420 # Put the nasty error message in config.log where it belongs
21421 echo "$XEXT_PKG_ERRORS" >&5
21422
21423 { $as_echo "$as_me:$LINENO: result: no" >&5
21424 $as_echo "no" >&6; }
21425 HAVE_XEXTPROTO_71="no"
21426 elif test $pkg_failed = untried; then
21427 HAVE_XEXTPROTO_71="no"
21428 else
21429 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
21430 XEXT_LIBS=$pkg_cv_XEXT_LIBS
21431 { $as_echo "$as_me:$LINENO: result: yes" >&5
21432 $as_echo "yes" >&6; }
21433 HAVE_XEXTPROTO_71="yes";
21434 cat >>confdefs.h <<\_ACEOF
21435 #define HAVE_XEXTPROTO_71 1
21436 _ACEOF
21437
21438 fi
21439 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
21440 HAVE_XEXTPROTO_71_TRUE=
21441 HAVE_XEXTPROTO_71_FALSE='#'
21442 else
21443 HAVE_XEXTPROTO_71_TRUE='#'
21444 HAVE_XEXTPROTO_71_FALSE=
21445 fi
21446
21447 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21448
21449 # Checks for libraries.
21450 SAVE_CPPFLAGS="$CPPFLAGS"
21451 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21452 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21453 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21454 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21455 $as_echo_n "(cached) " >&6
21456 else
21457 cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h. */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 #include "xorg-server.h"
21464
21465 int
21466 main ()
21467 {
21468 #ifndef XSERVER_LIBPCIACCESS
21469 (void) XSERVER_LIBPCIACCESS;
21470 #endif
21471
21472 ;
21473 return 0;
21474 }
21475 _ACEOF
21476 rm -f conftest.$ac_objext
21477 if { (ac_try="$ac_compile"
21478 case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21481 esac
21482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483 $as_echo "$ac_try_echo") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21494 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21495 else
21496 $as_echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21500 fi
21501
21502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21503 fi
21504 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21505 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21506 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21507 XSERVER_LIBPCIACCESS=yes
21508 else
21509 XSERVER_LIBPCIACCESS=no
21510 fi
21511
21512 { $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5
21513 $as_echo_n "checking for xf86Modes.h... " >&6; }
21514 if test "${ac_cv_header_xf86Modes_h+set}" = set; then
21515 $as_echo_n "(cached) " >&6
21516 else
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h. */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include "xorg-server.h"
21524
21525 #include <xf86Modes.h>
21526 _ACEOF
21527 rm -f conftest.$ac_objext
21528 if { (ac_try="$ac_compile"
21529 case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21532 esac
21533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21534 $as_echo "$ac_try_echo") >&5
21535 (eval "$ac_compile") 2>conftest.er1
21536 ac_status=$?
21537 grep -v '^ *+' conftest.er1 >conftest.err
21538 rm -f conftest.er1
21539 cat conftest.err >&5
21540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && {
21542 test -z "$ac_c_werror_flag" ||
21543 test ! -s conftest.err
21544 } && test -s conftest.$ac_objext; then
21545 ac_cv_header_xf86Modes_h=yes
21546 else
21547 $as_echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550 ac_cv_header_xf86Modes_h=no
21551 fi
21552
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554 fi
21555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5
21556 $as_echo "$ac_cv_header_xf86Modes_h" >&6; }
21557 if test "x$ac_cv_header_xf86Modes_h" = x""yes; then
21558 XMODES=yes
21559 else
21560 XMODES=no
21561 fi
21562
21563
21564 CPPFLAGS="$SAVE_CPPFLAGS"
21565
21566 # Checks for header files.
21567 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21568 $as_echo_n "checking for ANSI C header files... " >&6; }
21569 if test "${ac_cv_header_stdc+set}" = set; then
21570 $as_echo_n "(cached) " >&6
21571 else
21572 cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h. */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 #include <stdlib.h>
21579 #include <stdarg.h>
21580 #include <string.h>
21581 #include <float.h>
21582
21583 int
21584 main ()
21585 {
21586
21587 ;
21588 return 0;
21589 }
21590 _ACEOF
21591 rm -f conftest.$ac_objext
21592 if { (ac_try="$ac_compile"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21596 esac
21597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21598 $as_echo "$ac_try_echo") >&5
21599 (eval "$ac_compile") 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } && {
21606 test -z "$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 } && test -s conftest.$ac_objext; then
21609 ac_cv_header_stdc=yes
21610 else
21611 $as_echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 ac_cv_header_stdc=no
21615 fi
21616
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618
21619 if test $ac_cv_header_stdc = yes; then
21620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h. */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 #include <string.h>
21628
21629 _ACEOF
21630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21631 $EGREP "memchr" >/dev/null 2>&1; then
21632 :
21633 else
21634 ac_cv_header_stdc=no
21635 fi
21636 rm -f conftest*
21637
21638 fi
21639
21640 if test $ac_cv_header_stdc = yes; then
21641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21642 cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h. */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 #include <stdlib.h>
21649
21650 _ACEOF
21651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21652 $EGREP "free" >/dev/null 2>&1; then
21653 :
21654 else
21655 ac_cv_header_stdc=no
21656 fi
21657 rm -f conftest*
21658
21659 fi
21660
21661 if test $ac_cv_header_stdc = yes; then
21662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21663 if test "$cross_compiling" = yes; then
21664 :
21665 else
21666 cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h. */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 #include <ctype.h>
21673 #include <stdlib.h>
21674 #if ((' ' & 0x0FF) == 0x020)
21675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21677 #else
21678 # define ISLOWER(c) \
21679 (('a' <= (c) && (c) <= 'i') \
21680 || ('j' <= (c) && (c) <= 'r') \
21681 || ('s' <= (c) && (c) <= 'z'))
21682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21683 #endif
21684
21685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21686 int
21687 main ()
21688 {
21689 int i;
21690 for (i = 0; i < 256; i++)
21691 if (XOR (islower (i), ISLOWER (i))
21692 || toupper (i) != TOUPPER (i))
21693 return 2;
21694 return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest$ac_exeext
21698 if { (ac_try="$ac_link"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702 esac
21703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21704 $as_echo "$ac_try_echo") >&5
21705 (eval "$ac_link") 2>&5
21706 ac_status=$?
21707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21709 { (case "(($ac_try" in
21710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21711 *) ac_try_echo=$ac_try;;
21712 esac
21713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21714 $as_echo "$ac_try_echo") >&5
21715 (eval "$ac_try") 2>&5
21716 ac_status=$?
21717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 :
21720 else
21721 $as_echo "$as_me: program exited with status $ac_status" >&5
21722 $as_echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21724
21725 ( exit $ac_status )
21726 ac_cv_header_stdc=no
21727 fi
21728 rm -rf conftest.dSYM
21729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21730 fi
21731
21732
21733 fi
21734 fi
21735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21736 $as_echo "$ac_cv_header_stdc" >&6; }
21737 if test $ac_cv_header_stdc = yes; then
21738
21739 cat >>confdefs.h <<\_ACEOF
21740 #define STDC_HEADERS 1
21741 _ACEOF
21742
21743 fi
21744
21745
21746 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21747
21748 pkg_failed=no
21749 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21750 $as_echo_n "checking for PCIACCESS... " >&6; }
21751
21752 if test -n "$PCIACCESS_CFLAGS"; then
21753 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21754 elif test -n "$PKG_CONFIG"; then
21755 if test -n "$PKG_CONFIG" && \
21756 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21757 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21758 ac_status=$?
21759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; then
21761 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21762 else
21763 pkg_failed=yes
21764 fi
21765 else
21766 pkg_failed=untried
21767 fi
21768 if test -n "$PCIACCESS_LIBS"; then
21769 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21770 elif test -n "$PKG_CONFIG"; then
21771 if test -n "$PKG_CONFIG" && \
21772 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21773 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21774 ac_status=$?
21775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; then
21777 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21778 else
21779 pkg_failed=yes
21780 fi
21781 else
21782 pkg_failed=untried
21783 fi
21784
21785
21786
21787 if test $pkg_failed = yes; then
21788
21789 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21790 _pkg_short_errors_supported=yes
21791 else
21792 _pkg_short_errors_supported=no
21793 fi
21794 if test $_pkg_short_errors_supported = yes; then
21795 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21796 else
21797 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21798 fi
21799 # Put the nasty error message in config.log where it belongs
21800 echo "$PCIACCESS_PKG_ERRORS" >&5
21801
21802 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21803
21804 $PCIACCESS_PKG_ERRORS
21805
21806 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21807 installed software in a non-standard prefix.
21808
21809 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21810 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21811 See the pkg-config man page for more details.
21812 " >&5
21813 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21814
21815 $PCIACCESS_PKG_ERRORS
21816
21817 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21818 installed software in a non-standard prefix.
21819
21820 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21821 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21822 See the pkg-config man page for more details.
21823 " >&2;}
21824 { (exit 1); exit 1; }; }
21825 elif test $pkg_failed = untried; then
21826 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21828 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21829 is in your PATH or set the PKG_CONFIG environment variable to the full
21830 path to pkg-config.
21831
21832 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21833 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21834 See the pkg-config man page for more details.
21835
21836 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21837 See \`config.log' for more details." >&5
21838 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21839 is in your PATH or set the PKG_CONFIG environment variable to the full
21840 path to pkg-config.
21841
21842 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21843 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21844 See the pkg-config man page for more details.
21845
21846 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21847 See \`config.log' for more details." >&2;}
21848 { (exit 1); exit 1; }; }; }
21849 else
21850 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21851 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21852 { $as_echo "$as_me:$LINENO: result: yes" >&5
21853 $as_echo "yes" >&6; }
21854 :
21855 fi
21856 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21857 fi
21858 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21859 XSERVER_LIBPCIACCESS_TRUE=
21860 XSERVER_LIBPCIACCESS_FALSE='#'
21861 else
21862 XSERVER_LIBPCIACCESS_TRUE='#'
21863 XSERVER_LIBPCIACCESS_FALSE=
21864 fi
21865
21866 if test "x$XMODES" = xyes; then
21867 XMODES_TRUE=
21868 XMODES_FALSE='#'
21869 else
21870 XMODES_TRUE='#'
21871 XMODES_FALSE=
21872 fi
21873
21874
21875 if test "x$XMODES" = xyes; then
21876
21877 cat >>confdefs.h <<\_ACEOF
21878 #define HAVE_XMODES 1
21879 _ACEOF
21880
21881 fi
21882
21883
21884
21885 if test "x$GCC" = xyes ; then
21886 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
21887 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
21888 -Wbad-function-cast"
21889 case `gcc -dumpversion` in
21890 3.4.* | 4.*)
21891 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
21892 ;;
21893 esac
21894 else
21895 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
21896 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
21897 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
21898 $as_echo_n "(cached) " >&6
21899 else
21900 cat >conftest.$ac_ext <<_ACEOF
21901 /* confdefs.h. */
21902 _ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21906 $ac_includes_default
21907 int
21908 main ()
21909 {
21910 #ifndef __SUNPRO_C
21911 (void) __SUNPRO_C;
21912 #endif
21913
21914 ;
21915 return 0;
21916 }
21917 _ACEOF
21918 rm -f conftest.$ac_objext
21919 if { (ac_try="$ac_compile"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923 esac
21924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21925 $as_echo "$ac_try_echo") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } && {
21933 test -z "$ac_c_werror_flag" ||
21934 test ! -s conftest.err
21935 } && test -s conftest.$ac_objext; then
21936 ac_cv_have_decl___SUNPRO_C=yes
21937 else
21938 $as_echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941 ac_cv_have_decl___SUNPRO_C=no
21942 fi
21943
21944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 fi
21946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
21947 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
21948 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
21949 SUNCC="yes"
21950 else
21951 SUNCC="no"
21952 fi
21953
21954 if test "x$SUNCC" = "xyes"; then
21955 CWARNFLAGS="-v"
21956 fi
21957 fi
21958
21959
21960 XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
21961
21962
21963
21964 DRIVER_NAME=siliconmotion
21965
21966
21967
21968
21969
21970 if test x$APP_MAN_SUFFIX = x ; then
21971 APP_MAN_SUFFIX=1
21972 fi
21973 if test x$APP_MAN_DIR = x ; then
21974 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21975 fi
21976
21977 if test x$LIB_MAN_SUFFIX = x ; then
21978 LIB_MAN_SUFFIX=3
21979 fi
21980 if test x$LIB_MAN_DIR = x ; then
21981 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21982 fi
21983
21984 if test x$FILE_MAN_SUFFIX = x ; then
21985 case $host_os in
21986 solaris*) FILE_MAN_SUFFIX=4 ;;
21987 *) FILE_MAN_SUFFIX=5 ;;
21988 esac
21989 fi
21990 if test x$FILE_MAN_DIR = x ; then
21991 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21992 fi
21993
21994 if test x$MISC_MAN_SUFFIX = x ; then
21995 case $host_os in
21996 solaris*) MISC_MAN_SUFFIX=5 ;;
21997 *) MISC_MAN_SUFFIX=7 ;;
21998 esac
21999 fi
22000 if test x$MISC_MAN_DIR = x ; then
22001 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22002 fi
22003
22004 if test x$DRIVER_MAN_SUFFIX = x ; then
22005 case $host_os in
22006 solaris*) DRIVER_MAN_SUFFIX=7 ;;
22007 *) DRIVER_MAN_SUFFIX=4 ;;
22008 esac
22009 fi
22010 if test x$DRIVER_MAN_DIR = x ; then
22011 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22012 fi
22013
22014 if test x$ADMIN_MAN_SUFFIX = x ; then
22015 case $host_os in
22016 solaris*) ADMIN_MAN_SUFFIX=1m ;;
22017 *) ADMIN_MAN_SUFFIX=8 ;;
22018 esac
22019 fi
22020 if test x$ADMIN_MAN_DIR = x ; then
22021 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22022 fi
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040 # Check whether --with-release-version was given.
22041 if test "${with_release_version+set}" = set; then
22042 withval=$with_release_version; RELEASE_VERSION="$withval"
22043 else
22044 RELEASE_VERSION=""
22045 fi
22046
22047 if test "x$RELEASE_VERSION" != "x"; then
22048 PACKAGE="$PACKAGE-$RELEASE_VERSION"
22049 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22050 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22051 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22052 fi
22053
22054 cat >>confdefs.h <<_ACEOF
22055 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22056 _ACEOF
22057
22058 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22059 if test "x$PVM" = "x"; then
22060 PVM="0"
22061 fi
22062
22063 cat >>confdefs.h <<_ACEOF
22064 #define PACKAGE_VERSION_MINOR $PVM
22065 _ACEOF
22066
22067 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22068 if test "x$PVP" = "x"; then
22069 PVP="0"
22070 fi
22071
22072 cat >>confdefs.h <<_ACEOF
22073 #define PACKAGE_VERSION_PATCHLEVEL $PVP
22074 _ACEOF
22075
22076
22077
22078 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22079 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22080 echo 'git directory not found: installing possibly empty changelog.' >&2)"
22081
22082 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22083
22084
22085
22086 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
22087
22088 cat >confcache <<\_ACEOF
22089 # This file is a shell script that caches the results of configure
22090 # tests run on this system so they can be shared between configure
22091 # scripts and configure runs, see configure's option --config-cache.
22092 # It is not useful on other systems. If it contains results you don't
22093 # want to keep, you may remove or edit it.
22094 #
22095 # config.status only pays attention to the cache file if you give it
22096 # the --recheck option to rerun configure.
22097 #
22098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22100 # following values.
22101
22102 _ACEOF
22103
22104 # The following way of writing the cache mishandles newlines in values,
22105 # but we know of no workaround that is simple, portable, and efficient.
22106 # So, we kill variables containing newlines.
22107 # Ultrix sh set writes to stderr and can't be redirected directly,
22108 # and sets the high bit in the cache file unless we assign to the vars.
22109 (
22110 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22111 eval ac_val=\$$ac_var
22112 case $ac_val in #(
22113 *${as_nl}*)
22114 case $ac_var in #(
22115 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22117 esac
22118 case $ac_var in #(
22119 _ | IFS | as_nl) ;; #(
22120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22121 *) $as_unset $ac_var ;;
22122 esac ;;
22123 esac
22124 done
22125
22126 (set) 2>&1 |
22127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22128 *${as_nl}ac_space=\ *)
22129 # `set' does not quote correctly, so add quotes (double-quote
22130 # substitution turns \\\\ into \\, and sed turns \\ into \).
22131 sed -n \
22132 "s/'/'\\\\''/g;
22133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22134 ;; #(
22135 *)
22136 # `set' quotes correctly as required by POSIX, so do not add quotes.
22137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22138 ;;
22139 esac |
22140 sort
22141 ) |
22142 sed '
22143 /^ac_cv_env_/b end
22144 t clear
22145 :clear
22146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22147 t end
22148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22149 :end' >>confcache
22150 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22151 if test -w "$cache_file"; then
22152 test "x$cache_file" != "x/dev/null" &&
22153 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22154 $as_echo "$as_me: updating cache $cache_file" >&6;}
22155 cat confcache >$cache_file
22156 else
22157 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22158 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22159 fi
22160 fi
22161 rm -f confcache
22162
22163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22164 # Let make expand exec_prefix.
22165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22166
22167 DEFS=-DHAVE_CONFIG_H
22168
22169 ac_libobjs=
22170 ac_ltlibobjs=
22171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22172 # 1. Remove the extension, and $U if already installed.
22173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22174 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22176 # will be set to the directory where LIBOBJS objects are built.
22177 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22178 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22179 done
22180 LIBOBJS=$ac_libobjs
22181
22182 LTLIBOBJS=$ac_ltlibobjs
22183
22184
22185 if test -n "$EXEEXT"; then
22186 am__EXEEXT_TRUE=
22187 am__EXEEXT_FALSE='#'
22188 else
22189 am__EXEEXT_TRUE='#'
22190 am__EXEEXT_FALSE=
22191 fi
22192
22193 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22194 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22195 Usually this means the macro was only invoked conditionally." >&5
22196 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22197 Usually this means the macro was only invoked conditionally." >&2;}
22198 { (exit 1); exit 1; }; }
22199 fi
22200 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22201 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22202 Usually this means the macro was only invoked conditionally." >&5
22203 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22204 Usually this means the macro was only invoked conditionally." >&2;}
22205 { (exit 1); exit 1; }; }
22206 fi
22207 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22208 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22209 Usually this means the macro was only invoked conditionally." >&5
22210 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22211 Usually this means the macro was only invoked conditionally." >&2;}
22212 { (exit 1); exit 1; }; }
22213 fi
22214 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22215 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22216 Usually this means the macro was only invoked conditionally." >&5
22217 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22218 Usually this means the macro was only invoked conditionally." >&2;}
22219 { (exit 1); exit 1; }; }
22220 fi
22221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22222 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22223 Usually this means the macro was only invoked conditionally." >&5
22224 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22225 Usually this means the macro was only invoked conditionally." >&2;}
22226 { (exit 1); exit 1; }; }
22227 fi
22228 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
22229 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
22230 Usually this means the macro was only invoked conditionally." >&5
22231 $as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
22232 Usually this means the macro was only invoked conditionally." >&2;}
22233 { (exit 1); exit 1; }; }
22234 fi
22235 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22236 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22237 Usually this means the macro was only invoked conditionally." >&5
22238 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22239 Usually this means the macro was only invoked conditionally." >&2;}
22240 { (exit 1); exit 1; }; }
22241 fi
22242 if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
22243 { { $as_echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined.
22244 Usually this means the macro was only invoked conditionally." >&5
22245 $as_echo "$as_me: error: conditional \"XMODES\" was never defined.
22246 Usually this means the macro was only invoked conditionally." >&2;}
22247 { (exit 1); exit 1; }; }
22248 fi
22249
22250 : ${CONFIG_STATUS=./config.status}
22251 ac_write_fail=0
22252 ac_clean_files_save=$ac_clean_files
22253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22254 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22255 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22256 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22257 #! $SHELL
22258 # Generated by $as_me.
22259 # Run this file to recreate the current configuration.
22260 # Compiler output produced by configure, useful for debugging
22261 # configure, is in config.log if it exists.
22262
22263 debug=false
22264 ac_cs_recheck=false
22265 ac_cs_silent=false
22266 SHELL=\${CONFIG_SHELL-$SHELL}
22267 _ACEOF
22268
22269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22270 ## --------------------- ##
22271 ## M4sh Initialization. ##
22272 ## --------------------- ##
22273
22274 # Be more Bourne compatible
22275 DUALCASE=1; export DUALCASE # for MKS sh
22276 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22277 emulate sh
22278 NULLCMD=:
22279 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22280 # is contrary to our usage. Disable this feature.
22281 alias -g '${1+"$@"}'='"$@"'
22282 setopt NO_GLOB_SUBST
22283 else
22284 case `(set -o) 2>/dev/null` in
22285 *posix*) set -o posix ;;
22286 esac
22287
22288 fi
22289
22290
22291
22292
22293 # PATH needs CR
22294 # Avoid depending upon Character Ranges.
22295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22298 as_cr_digits='0123456789'
22299 as_cr_alnum=$as_cr_Letters$as_cr_digits
22300
22301 as_nl='
22302 '
22303 export as_nl
22304 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22305 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22308 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22309 as_echo='printf %s\n'
22310 as_echo_n='printf %s'
22311 else
22312 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22313 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22314 as_echo_n='/usr/ucb/echo -n'
22315 else
22316 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22317 as_echo_n_body='eval
22318 arg=$1;
22319 case $arg in
22320 *"$as_nl"*)
22321 expr "X$arg" : "X\\(.*\\)$as_nl";
22322 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22323 esac;
22324 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22325 '
22326 export as_echo_n_body
22327 as_echo_n='sh -c $as_echo_n_body as_echo'
22328 fi
22329 export as_echo_body
22330 as_echo='sh -c $as_echo_body as_echo'
22331 fi
22332
22333 # The user is always right.
22334 if test "${PATH_SEPARATOR+set}" != set; then
22335 PATH_SEPARATOR=:
22336 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22337 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22338 PATH_SEPARATOR=';'
22339 }
22340 fi
22341
22342 # Support unset when possible.
22343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22344 as_unset=unset
22345 else
22346 as_unset=false
22347 fi
22348
22349
22350 # IFS
22351 # We need space, tab and new line, in precisely that order. Quoting is
22352 # there to prevent editors from complaining about space-tab.
22353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22354 # splitting by setting IFS to empty value.)
22355 IFS=" "" $as_nl"
22356
22357 # Find who we are. Look in the path if we contain no directory separator.
22358 case $0 in
22359 *[\\/]* ) as_myself=$0 ;;
22360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361 for as_dir in $PATH
22362 do
22363 IFS=$as_save_IFS
22364 test -z "$as_dir" && as_dir=.
22365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22366 done
22367 IFS=$as_save_IFS
22368
22369 ;;
22370 esac
22371 # We did not find ourselves, most probably we were run as `sh COMMAND'
22372 # in which case we are not to be found in the path.
22373 if test "x$as_myself" = x; then
22374 as_myself=$0
22375 fi
22376 if test ! -f "$as_myself"; then
22377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22378 { (exit 1); exit 1; }
22379 fi
22380
22381 # Work around bugs in pre-3.0 UWIN ksh.
22382 for as_var in ENV MAIL MAILPATH
22383 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22384 done
22385 PS1='$ '
22386 PS2='> '
22387 PS4='+ '
22388
22389 # NLS nuisances.
22390 LC_ALL=C
22391 export LC_ALL
22392 LANGUAGE=C
22393 export LANGUAGE
22394
22395 # Required to use basename.
22396 if expr a : '\(a\)' >/dev/null 2>&1 &&
22397 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22398 as_expr=expr
22399 else
22400 as_expr=false
22401 fi
22402
22403 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22404 as_basename=basename
22405 else
22406 as_basename=false
22407 fi
22408
22409
22410 # Name of the executable.
22411 as_me=`$as_basename -- "$0" ||
22412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22413 X"$0" : 'X\(//\)$' \| \
22414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22415 $as_echo X/"$0" |
22416 sed '/^.*\/\([^/][^/]*\)\/*$/{
22417 s//\1/
22418 q
22419 }
22420 /^X\/\(\/\/\)$/{
22421 s//\1/
22422 q
22423 }
22424 /^X\/\(\/\).*/{
22425 s//\1/
22426 q
22427 }
22428 s/.*/./; q'`
22429
22430 # CDPATH.
22431 $as_unset CDPATH
22432
22433
22434
22435 as_lineno_1=$LINENO
22436 as_lineno_2=$LINENO
22437 test "x$as_lineno_1" != "x$as_lineno_2" &&
22438 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22439
22440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22441 # uniformly replaced by the line number. The first 'sed' inserts a
22442 # line-number line after each line using $LINENO; the second 'sed'
22443 # does the real work. The second script uses 'N' to pair each
22444 # line-number line with the line containing $LINENO, and appends
22445 # trailing '-' during substitution so that $LINENO is not a special
22446 # case at line end.
22447 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22448 # scripts with optimization help from Paolo Bonzini. Blame Lee
22449 # E. McMahon (1931-1989) for sed's syntax. :-)
22450 sed -n '
22451 p
22452 /[$]LINENO/=
22453 ' <$as_myself |
22454 sed '
22455 s/[$]LINENO.*/&-/
22456 t lineno
22457 b
22458 :lineno
22459 N
22460 :loop
22461 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22462 t loop
22463 s/-\n.*//
22464 ' >$as_me.lineno &&
22465 chmod +x "$as_me.lineno" ||
22466 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22467 { (exit 1); exit 1; }; }
22468
22469 # Don't try to exec as it changes $[0], causing all sort of problems
22470 # (the dirname of $[0] is not the place where we might find the
22471 # original and so on. Autoconf is especially sensitive to this).
22472 . "./$as_me.lineno"
22473 # Exit status is that of the last command.
22474 exit
22475 }
22476
22477
22478 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22479 as_dirname=dirname
22480 else
22481 as_dirname=false
22482 fi
22483
22484 ECHO_C= ECHO_N= ECHO_T=
22485 case `echo -n x` in
22486 -n*)
22487 case `echo 'x\c'` in
22488 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22489 *) ECHO_C='\c';;
22490 esac;;
22491 *)
22492 ECHO_N='-n';;
22493 esac
22494 if expr a : '\(a\)' >/dev/null 2>&1 &&
22495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22496 as_expr=expr
22497 else
22498 as_expr=false
22499 fi
22500
22501 rm -f conf$$ conf$$.exe conf$$.file
22502 if test -d conf$$.dir; then
22503 rm -f conf$$.dir/conf$$.file
22504 else
22505 rm -f conf$$.dir
22506 mkdir conf$$.dir 2>/dev/null
22507 fi
22508 if (echo >conf$$.file) 2>/dev/null; then
22509 if ln -s conf$$.file conf$$ 2>/dev/null; then
22510 as_ln_s='ln -s'
22511 # ... but there are two gotchas:
22512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22514 # In both cases, we have to default to `cp -p'.
22515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22516 as_ln_s='cp -p'
22517 elif ln conf$$.file conf$$ 2>/dev/null; then
22518 as_ln_s=ln
22519 else
22520 as_ln_s='cp -p'
22521 fi
22522 else
22523 as_ln_s='cp -p'
22524 fi
22525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22526 rmdir conf$$.dir 2>/dev/null
22527
22528 if mkdir -p . 2>/dev/null; then
22529 as_mkdir_p=:
22530 else
22531 test -d ./-p && rmdir ./-p
22532 as_mkdir_p=false
22533 fi
22534
22535 if test -x / >/dev/null 2>&1; then
22536 as_test_x='test -x'
22537 else
22538 if ls -dL / >/dev/null 2>&1; then
22539 as_ls_L_option=L
22540 else
22541 as_ls_L_option=
22542 fi
22543 as_test_x='
22544 eval sh -c '\''
22545 if test -d "$1"; then
22546 test -d "$1/.";
22547 else
22548 case $1 in
22549 -*)set "./$1";;
22550 esac;
22551 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22552 ???[sx]*):;;*)false;;esac;fi
22553 '\'' sh
22554 '
22555 fi
22556 as_executable_p=$as_test_x
22557
22558 # Sed expression to map a string onto a valid CPP name.
22559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22560
22561 # Sed expression to map a string onto a valid variable name.
22562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22563
22564
22565 exec 6>&1
22566
22567 # Save the log message, to keep $[0] and so on meaningful, and to
22568 # report actual input values of CONFIG_FILES etc. instead of their
22569 # values after options handling.
22570 ac_log="
22571 This file was extended by xf86-video-siliconmotion $as_me 1.7.3, which was
22572 generated by GNU Autoconf 2.63. Invocation command line was
22573
22574 CONFIG_FILES = $CONFIG_FILES
22575 CONFIG_HEADERS = $CONFIG_HEADERS
22576 CONFIG_LINKS = $CONFIG_LINKS
22577 CONFIG_COMMANDS = $CONFIG_COMMANDS
22578 $ $0 $@
22579
22580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22581 "
22582
22583 _ACEOF
22584
22585 case $ac_config_files in *"
22586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22587 esac
22588
22589 case $ac_config_headers in *"
22590 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22591 esac
22592
22593
22594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22595 # Files that config.status was made for.
22596 config_files="$ac_config_files"
22597 config_headers="$ac_config_headers"
22598 config_commands="$ac_config_commands"
22599
22600 _ACEOF
22601
22602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22603 ac_cs_usage="\
22604 \`$as_me' instantiates files from templates according to the
22605 current configuration.
22606
22607 Usage: $0 [OPTION]... [FILE]...
22608
22609 -h, --help print this help, then exit
22610 -V, --version print version number and configuration settings, then exit
22611 -q, --quiet, --silent
22612 do not print progress messages
22613 -d, --debug don't remove temporary files
22614 --recheck update $as_me by reconfiguring in the same conditions
22615 --file=FILE[:TEMPLATE]
22616 instantiate the configuration file FILE
22617 --header=FILE[:TEMPLATE]
22618 instantiate the configuration header FILE
22619
22620 Configuration files:
22621 $config_files
22622
22623 Configuration headers:
22624 $config_headers
22625
22626 Configuration commands:
22627 $config_commands
22628
22629 Report bugs to <bug-autoconf (at] gnu.org>."
22630
22631 _ACEOF
22632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22633 ac_cs_version="\\
22634 xf86-video-siliconmotion config.status 1.7.3
22635 configured by $0, generated by GNU Autoconf 2.63,
22636 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22637
22638 Copyright (C) 2008 Free Software Foundation, Inc.
22639 This config.status script is free software; the Free Software Foundation
22640 gives unlimited permission to copy, distribute and modify it."
22641
22642 ac_pwd='$ac_pwd'
22643 srcdir='$srcdir'
22644 INSTALL='$INSTALL'
22645 MKDIR_P='$MKDIR_P'
22646 AWK='$AWK'
22647 test -n "\$AWK" || AWK=awk
22648 _ACEOF
22649
22650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22651 # The default lists apply if the user does not specify any file.
22652 ac_need_defaults=:
22653 while test $# != 0
22654 do
22655 case $1 in
22656 --*=*)
22657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22659 ac_shift=:
22660 ;;
22661 *)
22662 ac_option=$1
22663 ac_optarg=$2
22664 ac_shift=shift
22665 ;;
22666 esac
22667
22668 case $ac_option in
22669 # Handling of the options.
22670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22671 ac_cs_recheck=: ;;
22672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22673 $as_echo "$ac_cs_version"; exit ;;
22674 --debug | --debu | --deb | --de | --d | -d )
22675 debug=: ;;
22676 --file | --fil | --fi | --f )
22677 $ac_shift
22678 case $ac_optarg in
22679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22680 esac
22681 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22682 ac_need_defaults=false;;
22683 --header | --heade | --head | --hea )
22684 $ac_shift
22685 case $ac_optarg in
22686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22687 esac
22688 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22689 ac_need_defaults=false;;
22690 --he | --h)
22691 # Conflict between --help and --header
22692 { $as_echo "$as_me: error: ambiguous option: $1
22693 Try \`$0 --help' for more information." >&2
22694 { (exit 1); exit 1; }; };;
22695 --help | --hel | -h )
22696 $as_echo "$ac_cs_usage"; exit ;;
22697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22698 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22699 ac_cs_silent=: ;;
22700
22701 # This is an error.
22702 -*) { $as_echo "$as_me: error: unrecognized option: $1
22703 Try \`$0 --help' for more information." >&2
22704 { (exit 1); exit 1; }; } ;;
22705
22706 *) ac_config_targets="$ac_config_targets $1"
22707 ac_need_defaults=false ;;
22708
22709 esac
22710 shift
22711 done
22712
22713 ac_configure_extra_args=
22714
22715 if $ac_cs_silent; then
22716 exec 6>/dev/null
22717 ac_configure_extra_args="$ac_configure_extra_args --silent"
22718 fi
22719
22720 _ACEOF
22721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22722 if \$ac_cs_recheck; then
22723 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22724 shift
22725 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22726 CONFIG_SHELL='$SHELL'
22727 export CONFIG_SHELL
22728 exec "\$@"
22729 fi
22730
22731 _ACEOF
22732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22733 exec 5>>config.log
22734 {
22735 echo
22736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22737 ## Running $as_me. ##
22738 _ASBOX
22739 $as_echo "$ac_log"
22740 } >&5
22741
22742 _ACEOF
22743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22744 #
22745 # INIT-COMMANDS
22746 #
22747 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22748
22749 _ACEOF
22750
22751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22752
22753 # Handling of arguments.
22754 for ac_config_target in $ac_config_targets
22755 do
22756 case $ac_config_target in
22757 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22758 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22759 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22760 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22761 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22762
22763 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22764 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22765 { (exit 1); exit 1; }; };;
22766 esac
22767 done
22768
22769
22770 # If the user did not use the arguments to specify the items to instantiate,
22771 # then the envvar interface is used. Set only those that are not.
22772 # We use the long form for the default assignment because of an extremely
22773 # bizarre bug on SunOS 4.1.3.
22774 if $ac_need_defaults; then
22775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22778 fi
22779
22780 # Have a temporary directory for convenience. Make it in the build tree
22781 # simply because there is no reason against having it here, and in addition,
22782 # creating and moving files from /tmp can sometimes cause problems.
22783 # Hook for its removal unless debugging.
22784 # Note that there is a small window in which the directory will not be cleaned:
22785 # after its creation but before its name has been assigned to `$tmp'.
22786 $debug ||
22787 {
22788 tmp=
22789 trap 'exit_status=$?
22790 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22791 ' 0
22792 trap '{ (exit 1); exit 1; }' 1 2 13 15
22793 }
22794 # Create a (secure) tmp directory for tmp files.
22795
22796 {
22797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22798 test -n "$tmp" && test -d "$tmp"
22799 } ||
22800 {
22801 tmp=./conf$$-$RANDOM
22802 (umask 077 && mkdir "$tmp")
22803 } ||
22804 {
22805 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22806 { (exit 1); exit 1; }
22807 }
22808
22809 # Set up the scripts for CONFIG_FILES section.
22810 # No need to generate them if there are no CONFIG_FILES.
22811 # This happens for instance with `./config.status config.h'.
22812 if test -n "$CONFIG_FILES"; then
22813
22814
22815 ac_cr='
'
22817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22819 ac_cs_awk_cr='\\r'
22820 else
22821 ac_cs_awk_cr=$ac_cr
22822 fi
22823
22824 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22825 _ACEOF
22826
22827
22828 {
22829 echo "cat >conf$$subs.awk <<_ACEOF" &&
22830 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22831 echo "_ACEOF"
22832 } >conf$$subs.sh ||
22833 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22834 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22835 { (exit 1); exit 1; }; }
22836 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22837 ac_delim='%!_!# '
22838 for ac_last_try in false false false false false :; do
22839 . ./conf$$subs.sh ||
22840 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22841 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22842 { (exit 1); exit 1; }; }
22843
22844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22845 if test $ac_delim_n = $ac_delim_num; then
22846 break
22847 elif $ac_last_try; then
22848 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22849 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22850 { (exit 1); exit 1; }; }
22851 else
22852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22853 fi
22854 done
22855 rm -f conf$$subs.sh
22856
22857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22858 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22859 _ACEOF
22860 sed -n '
22861 h
22862 s/^/S["/; s/!.*/"]=/
22863 p
22864 g
22865 s/^[^!]*!//
22866 :repl
22867 t repl
22868 s/'"$ac_delim"'$//
22869 t delim
22870 :nl
22871 h
22872 s/\(.\{148\}\).*/\1/
22873 t more1
22874 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22875 p
22876 n
22877 b repl
22878 :more1
22879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22880 p
22881 g
22882 s/.\{148\}//
22883 t nl
22884 :delim
22885 h
22886 s/\(.\{148\}\).*/\1/
22887 t more2
22888 s/["\\]/\\&/g; s/^/"/; s/$/"/
22889 p
22890 b
22891 :more2
22892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22893 p
22894 g
22895 s/.\{148\}//
22896 t delim
22897 ' <conf$$subs.awk | sed '
22898 /^[^""]/{
22899 N
22900 s/\n//
22901 }
22902 ' >>$CONFIG_STATUS || ac_write_fail=1
22903 rm -f conf$$subs.awk
22904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22905 _ACAWK
22906 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22907 for (key in S) S_is_set[key] = 1
22908 FS = ""
22909
22910 }
22911 {
22912 line = $ 0
22913 nfields = split(line, field, "@")
22914 substed = 0
22915 len = length(field[1])
22916 for (i = 2; i < nfields; i++) {
22917 key = field[i]
22918 keylen = length(key)
22919 if (S_is_set[key]) {
22920 value = S[key]
22921 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22922 len += length(value) + length(field[++i])
22923 substed = 1
22924 } else
22925 len += 1 + keylen
22926 }
22927
22928 print line
22929 }
22930
22931 _ACAWK
22932 _ACEOF
22933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22934 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22935 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22936 else
22937 cat
22938 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22939 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22940 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22941 { (exit 1); exit 1; }; }
22942 _ACEOF
22943
22944 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22945 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22946 # trailing colons and then remove the whole line if VPATH becomes empty
22947 # (actually we leave an empty line to preserve line numbers).
22948 if test "x$srcdir" = x.; then
22949 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22950 s/:*\$(srcdir):*/:/
22951 s/:*\${srcdir}:*/:/
22952 s/:*@srcdir@:*/:/
22953 s/^\([^=]*=[ ]*\):*/\1/
22954 s/:*$//
22955 s/^[^=]*=[ ]*$//
22956 }'
22957 fi
22958
22959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22960 fi # test -n "$CONFIG_FILES"
22961
22962 # Set up the scripts for CONFIG_HEADERS section.
22963 # No need to generate them if there are no CONFIG_HEADERS.
22964 # This happens for instance with `./config.status Makefile'.
22965 if test -n "$CONFIG_HEADERS"; then
22966 cat >"$tmp/defines.awk" <<\_ACAWK ||
22967 BEGIN {
22968 _ACEOF
22969
22970 # Transform confdefs.h into an awk script `defines.awk', embedded as
22971 # here-document in config.status, that substitutes the proper values into
22972 # config.h.in to produce config.h.
22973
22974 # Create a delimiter string that does not exist in confdefs.h, to ease
22975 # handling of long lines.
22976 ac_delim='%!_!# '
22977 for ac_last_try in false false :; do
22978 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22979 if test -z "$ac_t"; then
22980 break
22981 elif $ac_last_try; then
22982 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22983 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22984 { (exit 1); exit 1; }; }
22985 else
22986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22987 fi
22988 done
22989
22990 # For the awk script, D is an array of macro values keyed by name,
22991 # likewise P contains macro parameters if any. Preserve backslash
22992 # newline sequences.
22993
22994 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22995 sed -n '
22996 s/.\{148\}/&'"$ac_delim"'/g
22997 t rset
22998 :rset
22999 s/^[ ]*#[ ]*define[ ][ ]*/ /
23000 t def
23001 d
23002 :def
23003 s/\\$//
23004 t bsnl
23005 s/["\\]/\\&/g
23006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23007 D["\1"]=" \3"/p
23008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23009 d
23010 :bsnl
23011 s/["\\]/\\&/g
23012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23013 D["\1"]=" \3\\\\\\n"\\/p
23014 t cont
23015 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23016 t cont
23017 d
23018 :cont
23019 n
23020 s/.\{148\}/&'"$ac_delim"'/g
23021 t clear
23022 :clear
23023 s/\\$//
23024 t bsnlc
23025 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23026 d
23027 :bsnlc
23028 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23029 b cont
23030 ' <confdefs.h | sed '
23031 s/'"$ac_delim"'/"\\\
23032 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23033
23034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23035 for (key in D) D_is_set[key] = 1
23036 FS = ""
23037 }
23038 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23039 line = \$ 0
23040 split(line, arg, " ")
23041 if (arg[1] == "#") {
23042 defundef = arg[2]
23043 mac1 = arg[3]
23044 } else {
23045 defundef = substr(arg[1], 2)
23046 mac1 = arg[2]
23047 }
23048 split(mac1, mac2, "(") #)
23049 macro = mac2[1]
23050 prefix = substr(line, 1, index(line, defundef) - 1)
23051 if (D_is_set[macro]) {
23052 # Preserve the white space surrounding the "#".
23053 print prefix "define", macro P[macro] D[macro]
23054 next
23055 } else {
23056 # Replace #undef with comments. This is necessary, for example,
23057 # in the case of _POSIX_SOURCE, which is predefined and required
23058 # on some systems where configure will not decide to define it.
23059 if (defundef == "undef") {
23060 print "/*", prefix defundef, macro, "*/"
23061 next
23062 }
23063 }
23064 }
23065 { print }
23066 _ACAWK
23067 _ACEOF
23068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23069 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23070 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23071 { (exit 1); exit 1; }; }
23072 fi # test -n "$CONFIG_HEADERS"
23073
23074
23075 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23076 shift
23077 for ac_tag
23078 do
23079 case $ac_tag in
23080 :[FHLC]) ac_mode=$ac_tag; continue;;
23081 esac
23082 case $ac_mode$ac_tag in
23083 :[FHL]*:*);;
23084 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23085 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23086 { (exit 1); exit 1; }; };;
23087 :[FH]-) ac_tag=-:-;;
23088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23089 esac
23090 ac_save_IFS=$IFS
23091 IFS=:
23092 set x $ac_tag
23093 IFS=$ac_save_IFS
23094 shift
23095 ac_file=$1
23096 shift
23097
23098 case $ac_mode in
23099 :L) ac_source=$1;;
23100 :[FH])
23101 ac_file_inputs=
23102 for ac_f
23103 do
23104 case $ac_f in
23105 -) ac_f="$tmp/stdin";;
23106 *) # Look for the file first in the build tree, then in the source tree
23107 # (if the path is not absolute). The absolute path cannot be DOS-style,
23108 # because $ac_f cannot contain `:'.
23109 test -f "$ac_f" ||
23110 case $ac_f in
23111 [\\/$]*) false;;
23112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23113 esac ||
23114 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23115 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23116 { (exit 1); exit 1; }; };;
23117 esac
23118 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23119 ac_file_inputs="$ac_file_inputs '$ac_f'"
23120 done
23121
23122 # Let's still pretend it is `configure' which instantiates (i.e., don't
23123 # use $as_me), people would be surprised to read:
23124 # /* config.h. Generated by config.status. */
23125 configure_input='Generated from '`
23126 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23127 `' by configure.'
23128 if test x"$ac_file" != x-; then
23129 configure_input="$ac_file. $configure_input"
23130 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23131 $as_echo "$as_me: creating $ac_file" >&6;}
23132 fi
23133 # Neutralize special characters interpreted by sed in replacement strings.
23134 case $configure_input in #(
23135 *\&* | *\|* | *\\* )
23136 ac_sed_conf_input=`$as_echo "$configure_input" |
23137 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23138 *) ac_sed_conf_input=$configure_input;;
23139 esac
23140
23141 case $ac_tag in
23142 *:-:* | *:-) cat >"$tmp/stdin" \
23143 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23144 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23145 { (exit 1); exit 1; }; } ;;
23146 esac
23147 ;;
23148 esac
23149
23150 ac_dir=`$as_dirname -- "$ac_file" ||
23151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23152 X"$ac_file" : 'X\(//\)[^/]' \| \
23153 X"$ac_file" : 'X\(//\)$' \| \
23154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23155 $as_echo X"$ac_file" |
23156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23157 s//\1/
23158 q
23159 }
23160 /^X\(\/\/\)[^/].*/{
23161 s//\1/
23162 q
23163 }
23164 /^X\(\/\/\)$/{
23165 s//\1/
23166 q
23167 }
23168 /^X\(\/\).*/{
23169 s//\1/
23170 q
23171 }
23172 s/.*/./; q'`
23173 { as_dir="$ac_dir"
23174 case $as_dir in #(
23175 -*) as_dir=./$as_dir;;
23176 esac
23177 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23178 as_dirs=
23179 while :; do
23180 case $as_dir in #(
23181 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23182 *) as_qdir=$as_dir;;
23183 esac
23184 as_dirs="'$as_qdir' $as_dirs"
23185 as_dir=`$as_dirname -- "$as_dir" ||
23186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23187 X"$as_dir" : 'X\(//\)[^/]' \| \
23188 X"$as_dir" : 'X\(//\)$' \| \
23189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23190 $as_echo X"$as_dir" |
23191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23192 s//\1/
23193 q
23194 }
23195 /^X\(\/\/\)[^/].*/{
23196 s//\1/
23197 q
23198 }
23199 /^X\(\/\/\)$/{
23200 s//\1/
23201 q
23202 }
23203 /^X\(\/\).*/{
23204 s//\1/
23205 q
23206 }
23207 s/.*/./; q'`
23208 test -d "$as_dir" && break
23209 done
23210 test -z "$as_dirs" || eval "mkdir $as_dirs"
23211 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23212 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23213 { (exit 1); exit 1; }; }; }
23214 ac_builddir=.
23215
23216 case "$ac_dir" in
23217 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23218 *)
23219 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23220 # A ".." for each directory in $ac_dir_suffix.
23221 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23222 case $ac_top_builddir_sub in
23223 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23224 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23225 esac ;;
23226 esac
23227 ac_abs_top_builddir=$ac_pwd
23228 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23229 # for backward compatibility:
23230 ac_top_builddir=$ac_top_build_prefix
23231
23232 case $srcdir in
23233 .) # We are building in place.
23234 ac_srcdir=.
23235 ac_top_srcdir=$ac_top_builddir_sub
23236 ac_abs_top_srcdir=$ac_pwd ;;
23237 [\\/]* | ?:[\\/]* ) # Absolute name.
23238 ac_srcdir=$srcdir$ac_dir_suffix;
23239 ac_top_srcdir=$srcdir
23240 ac_abs_top_srcdir=$srcdir ;;
23241 *) # Relative name.
23242 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23243 ac_top_srcdir=$ac_top_build_prefix$srcdir
23244 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23245 esac
23246 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23247
23248
23249 case $ac_mode in
23250 :F)
23251 #
23252 # CONFIG_FILE
23253 #
23254
23255 case $INSTALL in
23256 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23257 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23258 esac
23259 ac_MKDIR_P=$MKDIR_P
23260 case $MKDIR_P in
23261 [\\/$]* | ?:[\\/]* ) ;;
23262 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23263 esac
23264 _ACEOF
23265
23266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23267 # If the template does not know about datarootdir, expand it.
23268 # FIXME: This hack should be removed a few years after 2.60.
23269 ac_datarootdir_hack=; ac_datarootdir_seen=
23270
23271 ac_sed_dataroot='
23272 /datarootdir/ {
23273 p
23274 q
23275 }
23276 /@datadir@/p
23277 /@docdir@/p
23278 /@infodir@/p
23279 /@localedir@/p
23280 /@mandir@/p
23281 '
23282 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23283 *datarootdir*) ac_datarootdir_seen=yes;;
23284 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23285 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23286 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23287 _ACEOF
23288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23289 ac_datarootdir_hack='
23290 s&@datadir@&$datadir&g
23291 s&@docdir@&$docdir&g
23292 s&@infodir@&$infodir&g
23293 s&@localedir@&$localedir&g
23294 s&@mandir@&$mandir&g
23295 s&\\\${datarootdir}&$datarootdir&g' ;;
23296 esac
23297 _ACEOF
23298
23299 # Neutralize VPATH when `$srcdir' = `.'.
23300 # Shell code in configure.ac might set extrasub.
23301 # FIXME: do we really want to maintain this feature?
23302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23303 ac_sed_extra="$ac_vpsub
23304 $extrasub
23305 _ACEOF
23306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23307 :t
23308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23309 s|@configure_input@|$ac_sed_conf_input|;t t
23310 s&@top_builddir@&$ac_top_builddir_sub&;t t
23311 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23312 s&@srcdir@&$ac_srcdir&;t t
23313 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23314 s&@top_srcdir@&$ac_top_srcdir&;t t
23315 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23316 s&@builddir@&$ac_builddir&;t t
23317 s&@abs_builddir@&$ac_abs_builddir&;t t
23318 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23319 s&@INSTALL@&$ac_INSTALL&;t t
23320 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23321 $ac_datarootdir_hack
23322 "
23323 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23324 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23325 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23326 { (exit 1); exit 1; }; }
23327
23328 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23329 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23330 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23331 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23332 which seems to be undefined. Please make sure it is defined." >&5
23333 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23334 which seems to be undefined. Please make sure it is defined." >&2;}
23335
23336 rm -f "$tmp/stdin"
23337 case $ac_file in
23338 -) cat "$tmp/out" && rm -f "$tmp/out";;
23339 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23340 esac \
23341 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23342 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23343 { (exit 1); exit 1; }; }
23344 ;;
23345 :H)
23346 #
23347 # CONFIG_HEADER
23348 #
23349 if test x"$ac_file" != x-; then
23350 {
23351 $as_echo "/* $configure_input */" \
23352 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23353 } >"$tmp/config.h" \
23354 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23355 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23356 { (exit 1); exit 1; }; }
23357 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23358 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23359 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23360 else
23361 rm -f "$ac_file"
23362 mv "$tmp/config.h" "$ac_file" \
23363 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23364 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23365 { (exit 1); exit 1; }; }
23366 fi
23367 else
23368 $as_echo "/* $configure_input */" \
23369 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23370 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23371 $as_echo "$as_me: error: could not create -" >&2;}
23372 { (exit 1); exit 1; }; }
23373 fi
23374 # Compute "$ac_file"'s index in $config_headers.
23375 _am_arg="$ac_file"
23376 _am_stamp_count=1
23377 for _am_header in $config_headers :; do
23378 case $_am_header in
23379 $_am_arg | $_am_arg:* )
23380 break ;;
23381 * )
23382 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23383 esac
23384 done
23385 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23386 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23387 X"$_am_arg" : 'X\(//\)[^/]' \| \
23388 X"$_am_arg" : 'X\(//\)$' \| \
23389 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23390 $as_echo X"$_am_arg" |
23391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23392 s//\1/
23393 q
23394 }
23395 /^X\(\/\/\)[^/].*/{
23396 s//\1/
23397 q
23398 }
23399 /^X\(\/\/\)$/{
23400 s//\1/
23401 q
23402 }
23403 /^X\(\/\).*/{
23404 s//\1/
23405 q
23406 }
23407 s/.*/./; q'`/stamp-h$_am_stamp_count
23408 ;;
23409
23410 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23411 $as_echo "$as_me: executing $ac_file commands" >&6;}
23412 ;;
23413 esac
23414
23415
23416 case $ac_file$ac_mode in
23417 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23418 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23419 # are listed without --file. Let's play safe and only enable the eval
23420 # if we detect the quoting.
23421 case $CONFIG_FILES in
23422 *\'*) eval set x "$CONFIG_FILES" ;;
23423 *) set x $CONFIG_FILES ;;
23424 esac
23425 shift
23426 for mf
23427 do
23428 # Strip MF so we end up with the name of the file.
23429 mf=`echo "$mf" | sed -e 's/:.*$//'`
23430 # Check whether this is an Automake generated Makefile or not.
23431 # We used to match only the files named `Makefile.in', but
23432 # some people rename them; so instead we look at the file content.
23433 # Grep'ing the first line is not enough: some people post-process
23434 # each Makefile.in and add a new line on top of each file to say so.
23435 # Grep'ing the whole file is not good either: AIX grep has a line
23436 # limit of 2048, but all sed's we know have understand at least 4000.
23437 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23438 dirpart=`$as_dirname -- "$mf" ||
23439 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23440 X"$mf" : 'X\(//\)[^/]' \| \
23441 X"$mf" : 'X\(//\)$' \| \
23442 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23443 $as_echo X"$mf" |
23444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23445 s//\1/
23446 q
23447 }
23448 /^X\(\/\/\)[^/].*/{
23449 s//\1/
23450 q
23451 }
23452 /^X\(\/\/\)$/{
23453 s//\1/
23454 q
23455 }
23456 /^X\(\/\).*/{
23457 s//\1/
23458 q
23459 }
23460 s/.*/./; q'`
23461 else
23462 continue
23463 fi
23464 # Extract the definition of DEPDIR, am__include, and am__quote
23465 # from the Makefile without running `make'.
23466 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23467 test -z "$DEPDIR" && continue
23468 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23469 test -z "am__include" && continue
23470 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23471 # When using ansi2knr, U may be empty or an underscore; expand it
23472 U=`sed -n 's/^U = //p' < "$mf"`
23473 # Find all dependency output files, they are included files with
23474 # $(DEPDIR) in their names. We invoke sed twice because it is the
23475 # simplest approach to changing $(DEPDIR) to its actual value in the
23476 # expansion.
23477 for file in `sed -n "
23478 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23479 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23480 # Make sure the directory exists.
23481 test -f "$dirpart/$file" && continue
23482 fdir=`$as_dirname -- "$file" ||
23483 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23484 X"$file" : 'X\(//\)[^/]' \| \
23485 X"$file" : 'X\(//\)$' \| \
23486 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23487 $as_echo X"$file" |
23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23489 s//\1/
23490 q
23491 }
23492 /^X\(\/\/\)[^/].*/{
23493 s//\1/
23494 q
23495 }
23496 /^X\(\/\/\)$/{
23497 s//\1/
23498 q
23499 }
23500 /^X\(\/\).*/{
23501 s//\1/
23502 q
23503 }
23504 s/.*/./; q'`
23505 { as_dir=$dirpart/$fdir
23506 case $as_dir in #(
23507 -*) as_dir=./$as_dir;;
23508 esac
23509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23510 as_dirs=
23511 while :; do
23512 case $as_dir in #(
23513 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23514 *) as_qdir=$as_dir;;
23515 esac
23516 as_dirs="'$as_qdir' $as_dirs"
23517 as_dir=`$as_dirname -- "$as_dir" ||
23518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23519 X"$as_dir" : 'X\(//\)[^/]' \| \
23520 X"$as_dir" : 'X\(//\)$' \| \
23521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23522 $as_echo X"$as_dir" |
23523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23524 s//\1/
23525 q
23526 }
23527 /^X\(\/\/\)[^/].*/{
23528 s//\1/
23529 q
23530 }
23531 /^X\(\/\/\)$/{
23532 s//\1/
23533 q
23534 }
23535 /^X\(\/\).*/{
23536 s//\1/
23537 q
23538 }
23539 s/.*/./; q'`
23540 test -d "$as_dir" && break
23541 done
23542 test -z "$as_dirs" || eval "mkdir $as_dirs"
23543 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23544 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23545 { (exit 1); exit 1; }; }; }
23546 # echo "creating $dirpart/$file"
23547 echo '# dummy' > "$dirpart/$file"
23548 done
23549 done
23550 }
23551 ;;
23552
23553 esac
23554 done # for ac_tag
23555
23556
23557 { (exit 0); exit 0; }
23558 _ACEOF
23559 chmod +x $CONFIG_STATUS
23560 ac_clean_files=$ac_clean_files_save
23561
23562 test $ac_write_fail = 0 ||
23563 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23564 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23565 { (exit 1); exit 1; }; }
23566
23567
23568 # configure is writing to config.log, and then calls config.status.
23569 # config.status does its own redirection, appending to config.log.
23570 # Unfortunately, on DOS this fails, as config.log is still kept open
23571 # by configure, so config.status won't be able to write to it; its
23572 # output is simply discarded. So we exec the FD to /dev/null,
23573 # effectively closing config.log, so it can be properly (re)opened and
23574 # appended to by config.status. When coming back to configure, we
23575 # need to make the FD available again.
23576 if test "$no_create" != yes; then
23577 ac_cs_success=:
23578 ac_config_status_args=
23579 test "$silent" = yes &&
23580 ac_config_status_args="$ac_config_status_args --quiet"
23581 exec 5>/dev/null
23582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23583 exec 5>>config.log
23584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23585 # would make configure fail if this is the last instruction.
23586 $ac_cs_success || { (exit 1); exit 1; }
23587 fi
23588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23589 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23590 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23591 fi
23592
23593